Plr = game.Players.LocalPlayer humanoid = Plr.Character.Humanoid.WalkSpeed Tool = script.Parent Tool.Activated:connect(function(mouse) humanoid = 100 end)
None of the tool functions work at all, am I over thinking this?
the "game.player" and the character are not created the same time
Plr = game.Players.LocalPlayer char = Plr.Character Tool = script.Parent repeat wait() until char:FindFirstChild("Humanoid"); humanoid = char.Humanoid Tool.Activated:connect(function(mouse) humanoid.WalkSpeed = 100 end)
The activated event doesn't take nor return anything. Also WalkSpeed isn't a object, but an integer so the variable humanoid is just whatever the characters current WalkSpeed is.
--LocalScript local ply = game.Players.LocalPlayer local cha = ply.Character local hum = cha:WaitForChild("Humanoid") script.Parent.Activated:connect(function() hum.WalkSpeed = 100 end)
If you need to see what parameters an event or function takes or object they return then just go to the View tab in Studio and select ObjectBrowser then search whichever class the function or event is in.