When i load into game it sets walkspeed to 0 no matter what, how do i fix the issue?
function click ()
local spt = script.Parent.Text
if spt ~= nil then
script.Parent.TextV.Value = tonumber(spt)
end
local f = script.Parent.TextV.Value
print("WalkSpeed Set to: " .. script.Parent.TextV.Value)
script.Parent.Parent.Parent.Parent.Parent.Parent.Character.Humanoid.WalkSpeed = f -- goes to LocalPlayers Walkspeed Value
end
script.Parent.Button.MouseButton1Click:Connect(click)


2 comments
What is the text you are trying to convert to a number?
What ever is in the text box while running the game