How can I fix my script (NOT ANSWERED YET)

Every time i run it says EyesGui is not a valid member of “PlayerGui” Player.username.PlayerGui
Here is the script :


If you can help that would be AMAZING!! Thank you.

1 Like

Can you provide a picture of your explorer when this error shows. Perhaps you should try checking if “Eyes” exist when you’re testing. It’s probably more convenient to break that one line into different variables:

local Player = game:GetService("Players").LocalPlayer
local PlayerGui = Player:WaitForChild('PlayerGui') 
local Eyes = PlayerGui:WaitForChild('EyesGui', 6)

Probably you are trying to reference the EyesGui when it doesnt already exist.
Where is that localscript?

its on a tool. So in starterPack

let me try that real quick. Give

Now it doesnt show me no errors but like it doesnt show the gui

Does my GUI need to be in “Player” or “StarterGui” ?

Your guis should be in StarterGui. Contents in StarterGui will automatically replicate to the Player’s PlayerGuI when they spawn.

Ok yeah but now its not giving me an error but like its not doing anything