Hey developers,
I have been making recently a message command even tho no errors is in the output it’s do not show. Here is my script:
game.Players.all
is not a thing. It would try to look for a player named “all”
You have to iterate through the players and enable the gui separately
for _, player in pairs(game:GetService("Players"):GetPlayers()) do
local gui = player.PlayerGui.MessageGui.Background
gui.Top.Text = plr.Name
gui.Body.Text = msg:split(" ")[2]
gui.Visible = true
wait(5)
print("Message Sent")
end
1 Like
Oh, alright, I defined all but I guess I failed to do so!