Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Is there a spawned event?

Asked by 10 years ago

Is there a spawned event, that can trigger a function before a player spawns, so you can do a for loop, and you can make the player holographically come from transparency at 1, to 0, gradiently?

1 answer

Log in to vote
0
Answered by 10 years ago

Well, there is a way to make a function that trigger when the character is spawned. First you need to check for the player,you could use the PlayerAdded event:

game.Players.PlayerAdded:connect(function (plr)

end)

Now with a player variable, you can use the CharacterAdded event:

game.Players.PlayerAdded:connect(function (plr)
    plr.CharacterAdded:connect(char)
        --Put content here
    end
end)

Well, now put the rest of your script there. Some links: PlayerAdded CharacterAdded

Note: probobly im wrong there.

Ad

Answer this question