Basically, the script in a part is trying to show a GUI whenever a mouse button hovers over it. Heres the script:

Honestly, I don’t know the issue, the only problem is that in the output it says ![]()
I’ve researched the index nil with PlayerGui and nothing specific to my case has come up. Well, I’m a beginner scripter so I don’t really know how to implement into my script at all.
You can’t use :GetPlayerFromCharacter because it isn’t a instance in the workspace. Just use Clicked.PlayerGui
You can get the player from ClickDetector event (are players, not characters.)
Try this:
script.Parent.MouseHoverEnter:Connect(function(player)
local playerGui = player:WaitForChild('PlayerGui')
...
end)
The feeling I get after looking at code for hours just to find out I forgot to call the function is terrible and amazing at the same time. Thank you, it worked!