The reason it didn't work, is cause when you Say Char its not the character, its the players mouse
so the solution is easy
when you equip the tool, the tool goes into the character so we can say
local Character = script.Parent.Parent
then we can adjust the walk speed
Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed * 1.2
Note: attempt to index nil means that the property you are getting dosn't exist
script.Parent.Equipped:Connect(function(PlayerMouse)
local Character = script.Parent.Parent
Character.Humanoid.WalkSpeed = Character.Humanoid.WalkSpeed * 1.2
end)
7 comments
It now says WalkSpeed isn't a valid member of Model
ok wait
fixed
try now
script.Parent.Parent isn't character in all cases, you would be better doing game.Players.LocalPlayer.Character
i know
but what is he uses a script and not local?