local gamepassid = 6429682 local GamepassServis = game:GetService("GamePassService") script.Parent.RemoteEvent.OnServerEvent:Connect(function(player,Playertoatt, playerstoattsname) print(game.Players[playerstoattsname].Name) Playertoatt.CFrame = game.Workspace.PrisonTp.CFrame+Vector3.new(0,1,0) if GamepassServis:PlayerOwnsGamePassAsync(game.Players[playerstoattsname], gamepassid) then wait(5) Playertoatt.CFrame = game.Workspace.OutOfPrisonTp.CFrame+Vector3.new(0,1,0) else wait(60) Playertoatt.CFrame = game.Workspace.OutOfPrisonTp.CFrame+Vector3.new(0,1,0) end end) this also wont work.
Use UserOwnsGamePassAsync and you need to Change the Service to GamepassService!