wait(2)
gpid = 188000708 -- Gamepass ID
local player = script.Parent.Parent
local GPS = game:GetService("GamePassService")
while true do
wait()
if player.Character.Humanoid.Health == 0 then
if GPS:PlayerHasPass(player, gpid) then
backup = player.Backpack:clone()
backup.Parent = player.StarterGear
end
end
end
The script is meant to keep the players backpack if they have a certain gamepass. I tested it in studio and it did not work, then I tested it in a roblox game and it also didn't work, please could someone help/explain why it doesn't work?
The script is in a normal script and in the players backpack, and yes I do own the gamepass that I am using in the script.

1 comment
Ah alright, I thought the items would stay in their backpack until they respawned.