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 10 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
10 years ago

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

PlayerHasPass (Method)

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

Answer this question