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

What's wrong here?

Asked by 9 years ago

This is a pretty simple script.. but doesn't work.. Why??

What it should do is delete a ScreenGui (script.Parent.Parent) fro the player's (game.Players.LocalPlayer) StarterGui....

if GamePassBlock == true then 
    if game:GetService("GamePassService"):PlayerHasPass(player, GPID) then
    script.Parent.Parent:Destroy()
    end
end

Could it be that ("GamePassService"):PlayerHasPass will only work in server scripts?

1 answer

Log in to vote
1
Answered by
Sublimus 992 Moderation Voter
9 years ago

("GamePassService"):PlayerHasPass will only work in normal scripts.

PlayerHasPass (Method)

0
Yay! thanks! fahmisack123 385 — 9y
0
No problem. Sublimus 992 — 9y
Ad

Answer this question