local player = game.Players.LocalPlayer.Character.Humanoid
function gui()
player.WalkSpeed = 50
end
script.Parent.MouseButton1Click:connect(gui)
I tried this with Local and normal scripts. There is nothing in the output. This is in a TextButton
See the problem here > https://www.roblox.com/games/622386122/GUI-test

2 comments
Player should be game.Players.LocalPlayer, but eh
Yep I know, but does not work always. IK u will be like "No it does" but, just trust me, it does not in my scripts :)