I’m attempting to make a tile light up when highlighted over.
How do I get the adornee from a surface gui?
I tried gui.Adornee, but it returned adornee is not a valid member of frame.
Any help with this?
I’m attempting to make a tile light up when highlighted over.
How do I get the adornee from a surface gui?
I tried gui.Adornee, but it returned adornee is not a valid member of frame.
Any help with this?
You’re indexing a Frame not a SurfaceGui.
Show us the code and the explorer. You seem to have an incorrect reference for gui.
You could try gui.Parent.Adornee but I cant say for sure until you show the code.
You can do it manually by going inside properties and select Adornee, the reason why it says that Adornee is not a valid member of Frame is because it’s member of SurfaceGui instead of Frame, or use this script:
game:GetService("Workspace"):FindFirstChild("NameOfSurfaceGui").Adornee = game:GetService("Workspace"):WaitForChild("AdorningPart")