Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Part and gui

Is there a way to make that when you put your mouse over a part a gui appears a by the brick? like the guns in apocalypse rising. If this is possible please tell me how or post an example of a model.

2 answers

✓ Accepted answer

Ok, this is a little hard, I hope you know scripting with mouses. The first step is to define the mouse using :GetMouse() Next, you can do a while true do loop (or changed:Connect(Mouse)), and inside, check if the Mouse.Hit ~= nil and Mouse.Hit == Part Name, then if it is, do what you want.

Let me know if you want me to try to give you an example script.

1 comment

0

Please give me an example script.


function Entered()
	--code [What happens on hover]
end

function Entered2()
	--code [What happens after hover]
end

script.Parent.MouseEnter:connect(Entered)
script.Parent.MouseLeave:connect(Entered2)

This discussion is preserved as it was. New answers, comments, and votes are closed.