Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Why isn't the script showing a message to the GUI text?

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

1

line 3 seems sketchy

0

I'm stupid, it was disabled e.e

1 answer

✓ Accepted answer
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 (:

2 comments

0

The textlabel is called text

0

I changed it but still nothing ;-;

This discussion is preserved as it was. New answers, comments, and votes are closed.