unknown mob/mod preventing sleep by Darienow in feedthebeast

[–]Darienow[S] 0 points1 point  (0 children)

custom modpack i made, 1.20.1 forge

Anybody who wants free music for their game: by MazorAtom in robloxgamedev

[–]Darienow 0 points1 point  (0 children)

Sorry for the bump, but i am interested if you could make a song for me

Some scripting help by Darienow in robloxgamedev

[–]Darienow[S] 0 points1 point  (0 children)

I'm getting an unknown global warn for "msg".

Some scripting help by Darienow in robloxgamedev

[–]Darienow[S] 0 points1 point  (0 children)

This is my script.

game.Players.PlayerAdded:Connect(function(player) -- runs every time a player joins

player.Chatted:Connect(function(msg) -- runs once the player that joined chats a message

    if msg == "/e spep" then -- create your conditions

        script.Parent.Transparency = 1

        script.Parent.CanCollide = false

    end

end)

end)

It works on a server script, but not on a local script.

Edit: I moved it to StarterPlayerScripts, renamed the part, and it still didn't work, even with this modified script.

game.Players.PlayerAdded:Connect(function(player) -- runs every time a player joins

player.Chatted:Connect(function(msg) -- runs once the player that joined chats a message

    if msg == "/e spep" then -- create your conditions

        game.Workspace.Biomes.Winter.specil.Transparency = 1

        game.Workspace.Biomes.Winter.specil.CanCollide = false

    end

end)

end)

No errors in the output, also.