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

Welcome script not working, help?

I've tried 2 ways. One with replacing "repeat wait() until player:FindFirstChild("PlayerGui") pg=player:FindFirstChild("PlayerGui")" with "local pg=Player.Playergui, and one with the "repeat wait() until player:FindFirstChild("PlayerGui") pg=player:FindFirstChild("PlayerGui")". Neither work. Help?

game.Players.PlayerAdded:connect(function(player)
--[[
repeat wait() until player:FindFirstChild("PlayerGui")
pg=player:FindFirstChild("PlayerGui")	
--]]
local pg=player.PlayerGui
pg.UI2.Frame.Welcome.Text="Welcome to the Centre, " ..player.Name.. " please abide to ze rules"
end)

1 answer

If this doesn't work, then try it in-game and press F9. Go to Server Console and if anything is red and you think it's from this script, comment it below.

game.Players.PlayerAdded:connect(function(player)
local pg = player:WaitForChild("PlayerGui")
pg.UI2.Frame.Welcome.Text = "Welcome to the Centre, " ..player.Name.. " please abide to ze rules"
end)

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