Answers for "how to make a shift to sprint roblox"

0

how to make a shift to sprint roblox

local UIS = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = script.Parent -- Put a LocalScript into StartPlayer > StarterCharacterScript
local Humanoid = Character:WaitForChild("Humanoid")

UIS.InputBegan:Connect(function(Key)
	if Key.KeyCode == Enum.KeyCode.LeftShift or Enum.KeyCode.RightShift then
    	local Running = true
        Humanoid.WalkSpeed = 32
	end
end

UIS.InputEnded:Connect(function(Key)
	if Key.KeyCode == Enum.KeyCode.LeftShift or Enum.KeyCode.RightShift then
    	local Running = false
        Humanoid.WalkSpeed = 16
	end
end
Posted by: Guest on November-05-2020
0

how to make a shift to sprint roblox

 local UIS = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = script.Parent -- Put a LocalScript into StartPlayer > StarterCharacterScript
local Humanoid = Character:WaitForChild("Humanoid")

UIS.InputBegan:Connect(function(Key)
	if Key.KeyCode == Enum.KeyCode.LeftShift or Enum.KeyCode.RightShift then
    	local Running = true
        Humanoid.WalkSpeed = 32
	end
end

UIS.InputEnded:Connect(function(Key)
	if Key.KeyCode == Enum.KeyCode.LeftShift or Enum.KeyCode.RightShift then
    	local Running = false
        Humanoid.WalkSpeed = 16
	end
end
Posted by: Guest on August-25-2021
0

how to make a shift to sprint roblox

 local UIS = game:GetService("UserInputService")
local Player = game.Players.LocalPlayer
local Character = script.Parent -- Put a LocalScript into StartPlayer > StarterCharacterScript
local Humanoid = Character:WaitForChild("Humanoid")

UIS.InputBegan:Connect(function(Key)
	if Key.KeyCode == Enum.KeyCode.LeftShift or Enum.KeyCode.RightShift then
    	local Running = true
        Humanoid.WalkSpeed = 64
	end
end

UIS.InputEnded:Connect(function(Key)
	if Key.KeyCode == Enum.KeyCode.LeftShift or Enum.KeyCode.RightShift then
    	local Running = false
        Humanoid.WalkSpeed = 32
	end
end
Posted by: Guest on August-25-2021

Code answers related to "how to make a shift to sprint roblox"

Browse Popular Code Answers by Language