script.Parent.MouseButton1Click:connect(function()
if game:GetService("GamePassService"):PlayerHasPass(p,id) then
print("Player Owns")
end
end)
Wont work
henlo my guy
mousebutton1click is client only and gamepassservice is server only
you have to detect the click in a localscript and invoke a remote function to the server to check if the player has the pass