Script not going through if statement

i’d move the gamepass check logic into playeradded, but only have the toolgiving logic inside of characteradded

1 Like

I’ve already tried that, thanks for sharing regardless!

1 Like

It seems to be working, thanks!

1 Like

Oh wait. The last part of my solution warlier (the Humanoid.Died event) only works once. It doesn’t account for when the player respawns.

To solve that, after the first Humanoid.Died event, connect the CharacterAdded event (like what Gold mentioned earlier) again and connect the Humanoid.Died event inside it.

should look this this

player.CharacterAdded:Connect(character)
    character:WaitForChild("Humanoid").Died:Connect(function()
		if workspace:FindFirstChild(player.Name.."'s Ball") then
			workspace:FindFirstChild(player.Name.."'s Ball"):Destroy()
		end
	end)
end)
1 Like