Перейти к содержимому

How to make a Shift to Run in less than 2 minutes(Easy)

RocViBabot Coding & Gaming

0:00 / 0:00

How to make a Shift to Run in less than 2 minutes(Easy)

4 просмотра · 3 дн. назад
RocViBabot Coding & Gaming
10 подписчиков
4 просмотра · 3 дн. назад
🏃‍♂️💨 ¡APRENDE A CORRER EN ROBLOX CON SHIFT TO RUN! En este tutorial te enseño paso a paso cómo crear un sistema de correr profesional en Roblox Studio. 🔥 Con este sistema podrás correr manteniendo pulsada la tecla SHIFT y volver a caminar al soltarla. 💻 El script es este: local UserInputService = game:GetService("UserInputService") local humanoid = script.Parent:WaitForChild("Humanoid") local WALK_SPEED = 16 local RUN_SPEED = 26 humanoid.WalkSpeed = WALK_SPEED UserInputService.InputBegan:Connect(function(input, processed) if processed then return end if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then humanoid.WalkSpeed = RUN_SPEED end end) UserInputService.InputEnded:Connect(function(input) if input.KeyCode == Enum.KeyCode.LeftShift or input.KeyCode == Enum.KeyCode.RightShift then humanoid.WalkSpeed = WALK_SPEED end end) 👍 ¡Dale LIKE! 🔔 ¡Suscríbete para más tutoriales de Roblox Studio! #Roblox #RobloxStudio #ShiftToRun #TutorialRoblox #Scripting #Lua