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

How can i make a script for a gamepass?

Asked by
fika123 -2
9 years ago

how can i make the script as if when the person buys the gamepass whatever is in it will automaticly go to the player?

1 answer

Log in to vote
0
Answered by 9 years ago

local id = 103728213

game.Players.PlayerAdded:connect(function(player) if Game:GetService("GamePassService"):PlayerHasPass(player, id) then print(player.Name .. " has the game pass!") else print(player.Name .. " doesn't have the game pass...") end end)

Source : http://wiki.roblox.com/index.php?title=PlayerHasPass_(Method)

Ad

Answer this question