PlayerAdded (Event): Difference between revisions
From Legacy Roblox Wiki
Jump to navigationJump to search
>Police4000 No edit summary |
>Mindraker stub, cats. |
||
Line 1: | Line 1: | ||
{{Stub}} | |||
In [[Roblox_studio|Roblox studio]], insert a script into [[Workspace]].<br> | |||
Copy the following script: | |||
<pre>function onPlayerEntered(newPlayer) | <pre>function onPlayerEntered(newPlayer) | ||
wait(10) | wait(10) -- How many seconds before the Torso will become transparent | ||
newPlayer.Character.Torso.Transparency = 1 | newPlayer.Character.Torso.Transparency = 1 -- The Torso will become transparent. | ||
end | end | ||
game.Players.PlayerAdded:connect(onPlayerEntered)</pre> | game.Players.PlayerAdded:connect(onPlayerEntered)</pre> | ||
Edit the value after "wait" as you please. | |||
[[Category:Scripting Tutorials]] | |||
Revision as of 15:08, 20 August 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.