How can I get in touch with PlayerGui for my textlabel?
Asked by
7 years ago Edited 7 years ago
01 | local Players = game:GetService( "Players" ) |
02 | local player = Players.LocalPlayer |
03 | local playerGui = player:WaitForChild( "PlayerGui" ) |
05 | script.Parent.HoverDetect.MouseHoverEnter:connect( function (Player) |
07 | playerGui.InteractorNote.Frame.InteractInfo.Text = "Ay" |
13 | script.Parent.HoverDetect.MouseHoverLeave:connect( function (Player) |
15 | playerGui.InteractorNote.Frame.InteractInfo.Text = " " |
This is my current script. I want the Text setup in playerGui to change the text, but even without MouseHoverEnter it doesn't change. This is in a local script. I think my problem is that playerGui isn't being called right, but can anyone know what's wrong for sure?