how do i make the script only for who has the gamepass so that other people cannot use it
✓ ANSWER ACCEPTED
help me i made a super sayan gamepass but how do i make that script only for who has the gamepass??
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.

5 comments
i already finished the super sayan script
Read through the wiki and learn yourself.
dude please
what the heck man shouldn't you be a scripting helper?
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.