So basically I'm trying to make a short speed boost when you press shift but whenever I try the script it keeps saying Walkspeed is not a valid member of Humanoid can somebody review this code for me please, I suck at scripting and I'm like 2 days into it so don't criticize me too hard ;p
uif = game:GetService("UserInputService")
uif.InputBegan:connect(function(imput)
if imput.KeyCode == Enum.KeyCode.LeftShift then
local plr = game.Players.LocalPlayer
local char = script.Parent.Humanoid
char.WalkSpeed = 25
wait(3)
local char = script.Parent.Humanoid
char.Walkspeed = 16
end
end)

4 comments
Where is this script located?
For this to work, this script must be located in the players character(which is located in the workspace).
you defined char twice, dont do that.
u have 5 answers accept one