#/e command
43 messages · Page 1 of 1 (latest)
Why do you need for it be a messge in chat?
to be cool
its a demon slayer game, but i want admin commands for my game so i can have fun trolling players
Dont focus on admin commands when your game isnt even near complete
it is complete
its fully complete?
ye
well what does the dev forum say?
I do not know. i dont work with in game messages yet
Im using prompts for now
and click detectors
bruuh
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
message = string.lower(message)
if message == "/e open" then
game.StarterGui.ScreenGui.Enabled = true
end
end)
end)
i want to know whats wrong here 😭
oh i might know lmao
do this
game.Players.PlayerAdded:Connect(function(player)
player.Chatted:Connect(function(message)
message = string.lower(message)
if message == [ "/e open"] then
game.StarterGui.ScreenGui.Enabled = true
end
end)
end)
it might fdo
do it
Nonono
Your first script was almost correctly done
The problem is game.PlayerGui is not visible for the player
That's just some sort of template
We all make this mistake 🙂
What's actually visible on the player is duplicated from there
It's called "PlayerGui" and it's in the player
So here's what to do:
You already have the player in the PlayerAdded as the parameter
Now, instead of using game.StarterGui, use player.PlayerGui
Now, you won't ever make this mistake again!
thx
i also learned from this my mistakes in the script
its not game.startergui.screengui
it shoudl be playergui instead
yes