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

Is the PlayerAdded event deprecated?

Asked by
RedCombee 585 Moderation Voter
10 years ago

Simply by using the PlayerAdded event, I tried to insert some values into the player, and none of them were created.

NOTE: I am using Start Server and Start Player to do so.

0
What's your code? Freemium 110 — 10y

1 answer

Log in to vote
0
Answered by
TomsGames 225 Moderation Voter
10 years ago

To answer the question, PlayerAdded is not deprecated.

Here is an example of a working code:

game.Players.PlayerAdded:connect(function(player)
    s = Instance.new("StringValue", player)
    s.Name = "Variable"
    s.Value = "learning"
end)

Should put a stringvalue "Variable" into the player. Change this to how you want :)

Ad

Answer this question