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

Part and gui

Asked by 10 years ago

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

Log in to vote
0
Answered by 10 years ago

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.

0
Please give me an example script. SpaceEnder 5 — 10y
Ad
Log in to vote
1
Answered by
ImageLabel 1541 Moderation Voter
10 years ago

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)

Answer this question