What I am making, is that you can hold down shift, or X on an Xbox 360 controller, to go twice the normal humanoid walkspeed. The issue i'm having is that when I go to test this, it does not do what it's supposed to do, and no errors and reported in the output! Here's the code below:
--Shift to run!
local player = game.Players.LocalPlayer
local humanoid = player.Character.Humanoid
local userInputService = game:GetService("UserInputService")
local function Run()
humanoid.WalkSpeed = 32
end
if userInputService:IsKeyDown(16) or userInputService:IsGamepadButtonDown(2) then
Run()
end

1 comment
Sorry for such a ridiculously late response but it does not work. However, I'm still learning and failure is always a part of learning something new!