Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

[player] is not a valid member of Workspace. Help? [SOLVED]

Asked by 5 years ago
Edited 5 years ago

Basically, I've got a script in StarterGUI which changes the walkspeed of the player who clicks it.

game.Workspace(script.Parent.Parent.Parent.Parent.Parent.Name).WalkSpeed = 22

A simple script, which in theory should work, but it gives back this result in game.

awesomepersen2345 is not a valid member of Workspace I've tried putting a wait block, but to no difference.

0
You don't index with () you index with [] you're just invoking __namecall User#24403 69 — 5y
0
Also don't use so many script.Parents just use LocalPlayer User#24403 69 — 5y
0
This worked. Thank you BirdManOfficial 5 — 5y

Answer this question