(sorry for my english) Get the player name from the local player dont works character.humanoid - dont works script (im using local script) also im hew in scripting
local tool = script.Parent local Player = game.Players.LocalPlayer local Char = Player.Character local leaderstats = Player.leaderstats tool.Activated:Connect(function() --(here i need to get player humanoid or player in workspace) end)
The player in workspace is the character. To get the humanoid use Char:WaitForChild("Humanoid")