i'm not sure how to add it into the script. (not a local script)
i tried using local damage = game:GetService("Players").LocalPlayer.leaderstats.Damage.Value but it doesn't wotk
Tool.Activated:Connect(function(p) if p.Parent:FindFirstChild("Humanoid") and p.Parent ~= Tool.Parent then if Debounce == false then Debounce = true print(dmg) wait(0.01) local Humanoid = Tool.Parent:WaitForChild("Humanoid") local AnimTrack = Humanoid:LoadAnimation(Slash)
AnimTrack:Play() wait(.3) sound:Play() wait(0.4) Debounce = false end end
end)
Tool.Activated:Connect(function() damage=game.Players[Tool.Parent.Name].leaderstats.Damage.Value end)