Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Slider doesn't change value of walkspeed. Help?

Asked by 4 years ago
while wait() do
    game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = script.Parent.Value.Value      
end

Is there anything wrong? I am making a slider and made this script but it doesn't seem to be working :/

0
Use while true do and use a server script WideSteal321 773 — 4y
0
Didn't work :< Luna_SyntaxYT 8 — 4y
0
Why are you using double ".Value"? kapipi12 133 — 4y
0
because the numbervalue is called value Luna_SyntaxYT 8 — 4y

1 answer

Log in to vote
0
Answered by 4 years ago
Edited 4 years ago

Make sure it is a Int Value and try to do this

game:GetService("RunService").Heartbeat:Connect(function()

    game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = script.Parent.Value.Value      
end)

Make sure it is in a local script Aswell

0
I am gonna use gui to lua and it's gonna break this maybe? Luna_SyntaxYT 8 — 4y
0
Gui to lua? you can use this in gui's just change it to MouseButton1 If you were to use a Gui click the while wait() Causes more lag this Does not cause Lag But if you were to use the heartbeat to create parts if it were to create to many parts then it will Lag Corrupt_Wolfstrik3r 51 — 4y
Ad

Answer this question