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)

2 comments
line 3 seems sketchy
I'm stupid, it was disabled e.e