0% found this document useful (0 votes)
247 views1 page

Speed Control Script for Roblox

This document provides a script for Roblox that modifies a player's walking speed based on the Left Shift key input. When the Left Shift key is pressed, the player's walking speed increases to 100, and when released, it resets to 10. The script utilizes the UserInputService to detect key inputs and adjust the Humanoid's WalkSpeed accordingly.

Uploaded by

zinedinemeziane5
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
247 views1 page

Speed Control Script for Roblox

This document provides a script for Roblox that modifies a player's walking speed based on the Left Shift key input. When the Left Shift key is pressed, the player's walking speed increases to 100, and when released, it resets to 10. The script utilizes the UserInputService to detect key inputs and adjust the Humanoid's WalkSpeed accordingly.

Uploaded by

zinedinemeziane5
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd

--Go To StarterPLayer--

--Go to StarterPlayerScripts--
--Add LocalScript--

local UserInputService = game:GetService("UserInputService")


local player = [Link]
local Character =[Link] or [Link]:Wait()
local Humanoid = Character:WaitForChild("Humanoid")

[Link]:Connect(function(input, gameProcessed)
if [Link] == [Link] then
[Link] = 100
end
end)

[Link]:Connect(function(input, gameProcessed)
if [Link] == [Link] then
[Link] = 10
end
end)

You might also like