local Players = game:GetService("Players") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") script.Parent.HoverDetect.MouseHoverEnter:connect(function(Player) playerGui.InteractorNote.Frame.InteractInfo.Text = "Ay" end) script.Parent.HoverDetect.MouseHoverLeave:connect(function(Player) playerGui.InteractorNote.Frame.InteractInfo.Text = " " end)
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?
--in textlabel/button or whatever (localscript)
script.Parent.HoverDetect.MouseHoverEnter:connect(function() playerGui.InteractorNote.Frame.InteractInfo.Text = "Ay" end) script.Parent.HoverDetect.MouseHoverLeave:connect(function() playerGui.InteractorNote.Frame.InteractInfo.Text = " " end)