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

What's wrong here?

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

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