Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I'm not sure if this is correct, can you look at this for me? [closed]

Asked by 6 years ago
Edited 6 years ago

Basically, I am making a script where you have to press Q on the keyboard and the player will get faster but for some reason it is not working. When i run it a press q is says this:

13:46:19.046 - WalkSpeed is not a valid member of Model

so is it saying the walkspeed is not a value in the humanoid model

local humanoid = game.Players.LocalPlayer
sprinting = true
game:GetService("UserInputService").InputBegan:connect(function(input)
    if input.KeyCode == Enum.KeyCode.Q then
        humanoid.Character.WalkSpeed = 40
        end
end)
0
Please post any problems you are having with your code. "My script doesn't work" is a generic statement, you should post any output errors if there are any. User#19524 175 — 6y

Closed as Non-Descriptive by User#19524

This question has been closed because its title or content does not adequately describe the problem you are trying to solve.
Please ensure that your question pertains to your actual problem, rather than your attempted solution. That is, you were trying to solve problem X, and you thought solution Y would work, but instead of asking about X when you ran into trouble, you asked about Y.

Why was this question closed?