This is the script
local followMouse = script.Parent.Parent.FollowMouseScript followMouse.Disabled = false
I checked a bunch of times, it is a member of PlayerGui!!! But it just keeps giving me this error saying FollowMouseScript is not a valid member of PlayerGui
, is this a bug or is it really just me!?
The script above is a Script inside a Gui inside StarterGui, and I made it to activate a LocalScript that is inside StarterGui.
I tested this 10 times or more, and it keeps bringing me the same error!
Try using :
local followMouse = script.Parent.Parent:WaitForChild('FollowMouseScript') followMouse.Disabled = false
The only difference is that you're waiting for it to exist. Because the script might be trying to define it when the followmousescript hasn't been loaded yet.
If your game is FE, scripts cannot access the descendants of PlayerGui. Try doing something other than that