Hey, so, I made an event that when the player dies, they lose half of their money(Platinum). However, the problem is that it only does that once, so it only counts when I die for the first time. I'll post my scripts now, please, tell me what's wrong here.
RemoteEvent:
local remotevent = script.RemoteEvent
remotefunction.OnServerEvent:Connect(function(player)
player.leaderstats.Platinum.Value = player.leaderstats.Platinum.Value / 2
end)
Death handler:
local plr = game.Players.LocalPlayer
local char = plr.Character or plr.CharacterAdded:Wait()
local hum = char:WaitForChild("Humanoid")
hum.Died:Connect(function()
game.Workspace.deathslol.RemoteEvent:FireServer()
end)

4 comments
No, that is not it. That is actually, the problem. It only halves it the first time you die, but it's meant to actually halve it every time you die.
no .Died only happens once, it doesnt need debounce to not run multiple times
Gameplayer, no need to downvote my script just because there's a unnecessary debounce.
I'm making sure, also nice job downvoting EVERY answer.