I Tried To Make The Text Change While The Local Script Is In The Workspace And While The Game Is Running But The Script Won't Work Anyone Help?? :)
Gui = game.Workspace.Players.LocalPlayer.PlayerGui while true do Gui.GameText.Frame.TextOfGame.Text = "Waiting For More Players." wait(.5) Gui.GameText.Frame.TextOfGame.Text = "Waiting For More Players.." wait(.5) Gui.GameText.Frame.TextOfGame.Text = "Waiting For More Players..." wait(.1) end
Thanks :)
Players is not a descendant of Workspace. Also, this script should be a descendant of StarterGui.
Gui = game.Players.LocalPlayer.PlayerGui while true do Gui.GameText.Frame.TextOfGame.Text = "Waiting For More Players." wait(.5) Gui.GameText.Frame.TextOfGame.Text = "Waiting For More Players.." wait(.5) Gui.GameText.Frame.TextOfGame.Text = "Waiting For More Players..." wait(.1) end
LocalScripts will never run from the Workspace, they will only run from a client. Put the localscript in the player for it to work.
Gui = gamePlayers.LocalPlayer.PlayerGui -- Can't get Players from Workspace while true do Gui.GameText.Frame.TextOfGame.Text = "Waiting For More Players." wait(.5) Gui.GameText.Frame.TextOfGame.Text = "Waiting For More Players.." wait(.5) Gui.GameText.Frame.TextOfGame.Text = "Waiting For More Players..." wait(.1) end
Your problem is one, the script needs to be inside StarterGui, and two the gui variable can't access Players and LocalPlayer from the Workspace. Hope I helped and remember to rate up.