Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

I tried a code that can show up a gui by hovering over with the mouse but nothing shown?

Asked by 9 years ago
local Player = Game.Players.LocalPlayer
local Mouse = Player:GetMouse()

Mouse.Move:connect(function()
    if Mouse.Target and Mouse.Target == Workspace.SpecialHoverBrick then
Player.PlayerGui.ScreenGui.SpecialHoverGui.Visible = true
    elseif Mouse.Target and Mouse.Target ~= Workspace.SpecialHoverBrick then
        Player.PlayerGui.ScreenGui.SpecialHoverGui.Visible = false
 end
end)
0
Any output? Lacryma 548 — 9y

Answer this question