This is an extremely simple script and for some reason I am not able to figure out how to fix this.It doesn't work in studio solo mode where I'm testing it.Please help.
a=game.Workspace:FindFirstChild('Player1') function alba() a:FindFirstChild('Humanoid').WalkSpeed=12 end alba()
repeat wait() until game.Workspace:FindFirstChild('Player1') a=game.Workspace:FindFirstChild('Player1') function alba() a:FindFirstChild('Humanoid').WalkSpeed=12 end alba()
The problem with finding a character in Workspace is the script starts working before the character spawns in Workspace. So the problem with this script is that it immediatly attempts to find Player1 in workspace, which it won't. So, if we add a wait loop, it will keep delaying the script until Player1 is found in Workspace, then it will carry out the script.
Is your name actually Player1 or something else? And same with humanoid is it same as "Humanoid"