PlayerAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Buckethead101 mNo edit summary |
>Buckethead101 No edit summary |
||
Line 17: | Line 17: | ||
<pre>function onPlayerEntered(newPlayer) | <pre>function onPlayerEntered(newPlayer) | ||
wait(10) | wait(10) | ||
newPlayer. | newPlayer.Character.Head.Color = Color3.new(math.random(), math.random(), math.random()) | ||
end | end | ||
Revision as of 01:20, 11 September 2008
Stub This article is a stub. If you think you know more about this than we do, please help us by contacting a writer. Thank you! |
In Roblox studio, insert a script into Workspace.
Copy the following script:
function onPlayerEntered(newPlayer) wait(10) -- How many seconds before the Torso will become transparent newPlayer.Character.Torso.Transparency = 1 -- The Torso will become transparent. end game.Players.PlayerAdded:connect(onPlayerEntered)
Edit the value after "wait" as you please.
You can also make it do other things, like make the player's head change to a completly random color.
function onPlayerEntered(newPlayer) wait(10) newPlayer.Character.Head.Color = Color3.new(math.random(), math.random(), math.random()) end game.Players.PlayerAdded:connect(onPlayerEntered)