Hello! I'm trying to make this script try to change the text message while in-game but I don't want this script to be held in the gui. I want this to be in workspace so I can add on to extra stuff. What did I do wrong here because it isn't really working.
game.Workspace.ChildAdded:connect(function(Char) if Char:FindFirstChild("Humanoid") ~= nil then local hint = game.Players[""..Char.Name..""].PlayerGui.Talker.Frame.Text local floor = game.Workspace.Floor print(Char.Name) hint.Text = "Welcome! The server just started!" wait (3) hint.Text = "We are getting started..." wait (2) hint.Text = "We are choosing a map!" wait (1) hint.Text = "Please wait..." wait(.5) hint.Text = "Map loaded! Have fun!" wait (1) hint.Text = "You are now playing: Sword Fighting" end end)
game.Players.PlayerAdded:connect(function(Char) plr.ChildAdded:connect(function() if Char:FindFirstChild("Humanoid") ~= nil then local hint = game.Players:FindFirstChild(Char.Name).PlayerGui.Talker.Frame.TextLabel -- CHange the "Text" name to "TextLabel" because "Text" is usually for the text itself local floor = game.Workspace.Floor print(Char.Name) hint.Text = "Welcome! The server just started!" wait (3) hint.Text = "We are getting started..." wait (2) hint.Text = "We are choosing a map!" wait (1) hint.Text = "Please wait..." wait(.5) hint.Text = "Map loaded! Have fun!" wait (1) hint.Text = "You are now playing: Sword Fighting" end end) end)
Hope that helped (: