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

How do I give player points when a person joins a game?

Asked by 10 years ago

I know it may have something weird to do with http or something.

Possibly like

~~~~~~~~~~~~~~~~~ function OnPlayerJoined(game) ~~~~~~~~~~~~~~~~~

2 answers

Log in to vote
3
Answered by 10 years ago
local pointsToAward = 1

game.Players.PlayerAdded:connect(function(player)
    game:GetService("MarketplaceService"):AwardPoints(player.userId, pointsToAward)
end
Ad
Log in to vote
0
Answered by
Tkdriverx 514 Moderation Voter
10 years ago

Try the wiki.

Answer this question