There is this weird bug i am having where when the player dies all of the abilities stop working, all the leader stat stuff to make a certain ability stays the same except when i re equip it and try to use it nothing happens. I tried making a script that makes the equipped ability's unequip on death to see if that would fix it but that didn't help at all
local RS = game:GetService("ReplicatedStorage")
local Remote = RS:WaitForChild("Events").Base.PlayerDeath
local player = game.Players.LocalPlayer
textColor = BrickColor.new('Really red')
local function deathsave(playerName)
player.Equipped.One.Value = "1"
player.Equipped.Two.Value = "2"
player.Equipped.Three.Value = "3"
player.Equipped.Four.Value = "4"
player.Equipped.Five.Value = "5"
end
Remote.OnClientEvent:Connect(deathsave)
heres a video showing the problem: https://streamable.com/g93z34

1 comment
ive figured out the problem is the fact the magic goes into the players backpack