(on a gui) i am stuck with this :
local walkbtn = script.Parent local player = game.Players.LocalPlayer local Character = player:WaitForChild("Character") local humanoid = Character:WaitForChild("Humanoid")
walkbtn.MouseButton1Down:connect(function() humanoid.WalkSpeed = 100 end)
and it dosnt work pls dont bully me am trash at scripting
You're using WaitForChild on a property, not a child. All you need to do is to replace local Character = player:WaitForChild("Character")
with local Character = player.Character
. Your also using a script as you showed earlier, change to a localscript.
"Character" is not a child of player.
Instead do
local character = player.Character or player.CharacterAdded:Wait() -- waits for the character to load