for some reason
local p =game.Players:GetPlayerFromCharacter(Tool.Parent)
dmg = p.leaderstats.Damage.Value
doesn't work and when it prints its value, its 0. help anyone????
Tool.Activated:Connect(function() if Debounce == false then Debounce = true local p =game.Players:GetPlayerFromCharacter(Tool.Parent) dmg = p.leaderstats.Damage.Value print(p.leaderstats.Damage.Value) local Humanoid = Tool.Parent:WaitForChild("Humanoid") local AnimTrack = Humanoid:LoadAnimation(Slash)
AnimTrack:Play() wait(.3) sound:Play() wait(0.4) Debounce = false end
end)