Squid game piggy bank

It didn’t work sadly… It doesn’t give me the money when I touch the part

Instead you can use .Died event.

game.Players.PlayerAdded:Connect(function(player)
  local char = player.CharacterAdded:Wait()
  local humanoid = char:WaitForChild("Humanoid") or char:FindFirstChild("Humanoid")
  humanoid.Died:Connect(function()
          -- Add cash code here
  end)
end)
1 Like

Yes, that’s a good spot for it.

1 Like

It works! Thanks so much I appreciate it

And thank you everybody for taking your time to help me, I hope we all can learn something from these messages :smiley:

1 Like