heres the script
local player = game.Players.LocalPlayer
local Sprint = false
script.Parent.MouseButton1Click:Connect(function()
if Sprint == true then
Sprint = false
player.Character:WaitForChild(“Humanoid”).WalkSpeed = 16
script.Parent.Parent.TextLabel.Text = “off”
else
Sprint = true
player.Character:WaitForChild(“Humanoid”).WalkSpeed = 26
script.Parent.Parent.TextLabel.Text = “on”
end
end)
I was going to screen record but I couldn’t screen record the whole screen with the properties in it. So what happen is that when the player press the button it will increase the player walkspeed, it does that but as soon as the player move, the player walkspeed reset to 16.
thanks for the reply, inbetween where exactly?, i’ve try putting prints in the if and else statement and they work perfectly well and they print onced.
actually good point about checking any other script that reset it because I have another script for PC and if the player isn’t pressing shift then the walkspeed is 16, thanks for reminding me that, thank you.