I am not sure how to get leader stats from a hit. When the player dies he should remove 100 Candy from his leader stats but I use a function and the hit from the parenthesis
local leaderstats = hit.Parent:WaitForChild(“leaderstats”)
local Candy = leaderstats.Candy
Candy.Value = Candy.Value - 100
the player dies but doesn’t remove the 100 am I using the wrong idea?
