Here is the script that causes trouble:
UserInputService.InputBegan:Connect(function(input:InputObject)
if input.KeyCode = Enum.KeyCode.LeftShift then
if humanoid then
humanoid.WalkSpeed = 30
end
end
end)
UserInputService.InputEnded:Connect(function(input:InputObject)
if input.KeyCode = Enum.KeyCode.LeftShift then
if humanoid then
humanoid.WalkSpeed = 16
end
end
end)
it says line 22 on InputBegan, but i have then after the if statement -_-