How can I make a text GUI that show up when hover over a brick and when I move my mouse point away from the brick, the text GUI disappear. I want to add in the distance to how far the player have to reach in order to make the GUI show up. I also try to put the GUI inside the brick not in "StarterGUI", but it doesn't work. How can I do that? Can anyone help me?
local Player = game.Players.LocalPlayer
local Mouse = Player:GetMouse()
while wait() do
if Mouse.Target ~=nil and Mouse.Target.Name == 'HoverBrick' then
script.Parent.Frame.Visible = true
else
script.Parent.Frame.Visible = false
end
end

3 comments
That should work...
well, it does work, but I don't want to place the GUI inside "StarterGUI". I want the GUI to be Inside of the brick. How can I fix that?
Oh! Just put it into playerGui on hover