Anyone know how i can make anything like this?
You should try to do an event that you could fire with mouse.Target
and on event, it toggles a ui and toggle it again when the mouse.Target
isn’t the part anymore.
you can use the ClickDetector.MouseEnter event, with this event u can make ur gui visible
something like this
ClickDetector.MouseHover(function()
SurfaceGui.Enabled = true
end)
As Ryzz3rberg said, you could use a click detector to trigger a MouseHoverEnter
and MouseHoverLeave
function. Maybe something like this.
local Part = game.Workspace.Part
local ClickDetector = Part.ClickDetector
local SurfaceGui = Part.SurfaceGui
ClickDetector.MouseHoverEnter:Connect(function()
SurfaceGui.Enabled = true
end)
ClickDetector.MouseHoverLeave:Connect(function()
SurfaceGui.Enabled = false
end)
uhhh, i forgot the MouseHoverEnter xd, thx for fixing my reply
No problem! Always happy to help.
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.