|
| 08 May 2017 09:20 PM |
I equipped a tool and when I hover over a part it'll display something?
I know it's MouseEnter for Gui's but I'm not sure what to use for tools :/
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
pexf
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1195 |
|
| |
|
| |
|
pexf
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1195 |
|
| |
|
|
| 08 May 2017 09:35 PM |
"The Part the mouse is currently over. If the mouse is not currently over any object (on the skybox, for example) this property is nil."
--[[
just a test script
if mouse.Target ~= nil then if mouse.Target.Parent.Name == "Blocks" then print(mouse.Target.Name) end end
--]]
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
pexf
|
  |
| Joined: 02 Nov 2013 |
| Total Posts: 1195 |
|
|
| 08 May 2017 09:52 PM |
idk
i just tested this and it only prints when it's == nil
while wait() do if mouse.Target == "Blocks" then print("hI") elseif mouse.Target == nil then print("searching") end end
|
|
|
| Report Abuse |
|
|
| |
|
|
| 08 May 2017 09:55 PM |
adding a loop will cause me problem so I'll have to find another way
|
|
|
| Report Abuse |
|
|