Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

help me i made a super sayan gamepass but how do i make that script only for who has the gamepass??

how do i make the script only for who has the gamepass so that other people cannot use it

5 comments

0

i already finished the super sayan script

0

Read through the wiki and learn yourself.

0

dude please

0

what the heck man shouldn't you be a scripting helper?

0

He is helping by making you learn to do it yourself so you know how to do it in the future instead of just giving the anwer and you never really understanding how it works.

1 answer

✓ Accepted answer

By using the yield function "PlayerHasPass" of the GamePassService.

gamepassid = 5834590
gps = game:GetService("GamePassService")
game.Players.PlayerAdded:connect(function(player)
if gps:PlayerHasPass(player,gamepassid) then
-- enter code here
end
end)

2 comments

0

THANKS

0

Please accept my answer if this helped you.

This discussion is preserved as it was. New answers, comments, and votes are closed.