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

Help with local intro scrip?

i need help With intro script it need to be seen by only the local player

game.Players.localPlayer.PlayerAdded:connect(function(player) 
    script.IntroGui:Clone().Parent = player.PlayerGui 
end) 

its a local script

1 comment

0

Your problem may be that the 'IntroGui' may not be existant within the script at the time of execution of the code, or the 'PlayerGui' may not be existant within the Player at the time of execution. :)

2 answers

For server script:

game.Players.PlayerAdded:connect(function(player) 
   	x = script.IntroGui:Clone()
	x.Parent = player.PlayerGui
end) 

For local script:

game.Players.ChildAdded:connect(function(player) 
   	x = script.IntroGui:Clone()
	x.Parent = player.PlayerGui
end) 

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