You can't check for GamePasses with that method in a local script.
Use a remote function and check it on the server.
Put a RemoteFunction in ReplicatedStorage and add a script in ServerScriptService with contents of:
local remoteFunction = Game:GetService("ReplicatedStorage").RemoteFunction;
remoteFunction.onServerInvoke = function(plr)
return Game:GetService("GamePassService"):PlayerHasPass(plr, 167686361);
end;
And from the local script, replace your conditional statement (if game:GetService...) with:
if Game:GetService("ReplicatedStorage").RemoteFunction:InvokeServer() then |