Try this in a localscript that is parented under the button
local button = script.Parent
local player = game.Players.LocalPlayer
local character = player.Character
local humanoid = character:WaitForChild("Humanoid")
local defaultSpeed = humanoid.WalkSpeed
local fastSpeed = defaultSpeed * 2
humanoid.WalkSpeed = fastSpeed
local enabled = true --button is started in ON position, so the player will walk at fast speed
button.MouseButton1Click:Connect(function()
if enabled then --turn button OFF , player will walk at defaultSpeed
humanoid.WalkSpeed = defaultSpeed
enabled = false
else --turn button ON , player will walk at fast speed
humanoid.WalkSpeed = fastSpeed
enabled = true
end
end)
![image|191x73](upload://5TrmXpuPI6zG13uoUmcSaVZPoFQ.png)
With the trouble of different languages and using a translator, you might need to find someone who can Collaborate with you, using Team Create.
So they can see the script and the gui and everything working or not working together.
I think this may be a the bigger problem. The script I posted works perfectly and Iāve been using it for years. But, it needs to be installed correctly. Other than that it takes care of everything by itself.
It couldnāt be any more easy ā¦ #1. Download the file #2 Open your program and go down to StarterPlayer.StarterPlayerScripts, right click on that and insert from file. Add the download ā¦
Thatās it, you donāt need to do anything else ā¦ hit play.
Itās an all in one script and it will make itās own Gui.
There is no errors ā¦ somehow youāre not adding this to your program correctly.
If you donāt know how to insert a file, I donāt know what to say ā¦
If you have anything else trying to do this take it out while testing.
bro, it doesnāt work the way I wanted, sorry, I need the speed to be equal to 16 when pressed and again when pressed again, the speed became the same as the player had
If you hold delete and sprint, when you let off delete it will go back to the normal speed.
If you click the icon it will stay sprinting ā¦ unless you press delete or click the icon again.