I'm trying to make a button that sets the the player's WalkSpeed to 150, what's wrong?
local button = script.Parent
local player = game.Players.LocalPlayer --Find Player name
local nameofplayer = player.Character.Name--Get the player in workspace
botaoz.ClickDetector.MouseClick:connect(function(player)
Workspace.Player.Name.Humanoid.WalkSpeed = 150
end

4 comments
Localscript or serverscript?
local
You can't use local scripts on ClickDetectors, you must use a server script and get the player that clicked it.
sorry it's a serverscript :p