I'm pretty new at scripting and i've been working on a gui to change your walkspeed. I've made a TextBox where you type in a number and a TextButton that you click to change your walkspeed to the number. If I make the number 16 in studio and then test it, my speed will be changed to 16 (the default speed) However, when I change the text and click the TextButton, it stays at 16.
Here is the LocalScript in the Textbutton
local player = game.Players.LocalPlayer local char = player.Character local text = script.Parent.Parent.SpeedBox.Text script.Parent.MouseButton1Click:connect(function() char.Humanoid.WalkSpeed = text print("current speed =",text) end)
There are no Errors in the output, if someone could help me out i'd appreciate it.
Here is the full GUI