Shift To Run - Roblox Studio Tutorial

Опубликовано: 15 Август 2024
на канале: fil1pex
27
1

How to make shift to run in roblox studio, from speed 16 to 35
local script in starterplayerscripts:
------------------------------------------------------------------------------

--paste this script in starterplayerscrips!!!!!!!!!!!!!!!!


local userInp = game:GetService("UserInputService")
local plrs = game:GetService("Players")

local sprintSpeed = 35
local walkSpeed = 16

local player = plrs.LocalPlayer

local function beginSprint(input,gameProcessed)
if not gameProcessed then
if input.UserInputType == Enum.UserInputType.Keyboard then
local keycode = input.KeyCode
if keycode == Enum.KeyCode.LeftShift then
player.Character.Humanoid.WalkSpeed = sprintSpeed
end
end
end
end

local function endSprint(input,gameProcessed)
if not gameProcessed then
if input.UserInputType == Enum.UserInputType.Keyboard then
local keycode = input.KeyCode
if keycode == Enum.KeyCode.LeftShift then
player.Character.Humanoid.WalkSpeed = walkSpeed
end
end
end
end

userInp.InputBegan:Connect(beginSprint)
userInp.InputEnded:Connect(endSprint)
-------------------------------------------------------------------------------------------------


make sure to like for more


Смотрите видео Shift To Run - Roblox Studio Tutorial онлайн, длительностью часов минут секунд в хорошем качестве, которое загружено на канал fil1pex 15 Август 2024. Делитесь ссылкой на видео в социальных сетях, чтобы ваши подписчики и друзья так же посмотрели это видео. Данный видеоклип посмотрели 27 раз и оно понравилось 1 посетителям.