I’m pretty new to scripting so expect errors. I been trying to change WalkSpeed by a TextButton but everything failed and I don’t know why. Can someone help me? (All code is inside a LocalScript)
function WalkSpeed()
game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 40
end
Extra Code (an error?)
script.Parent.TextButton.MouseButton1Click:connect(WalkSpeed)

3 comments
Are there any errors in the output?
Whats the error saying?
TestButton is not a valid member of TextButton. That is the error.