|
| 03 Feb 2016 10:08 PM |
How would I make a brick go to where the mouse pointer is ONLY if its over a brick in workspace named HOVER_TRUE? |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 Feb 2016 10:18 PM |
http://wiki.roblox.com/index.php?title=API:Class/Mouse/Target You can probably figure the rest out from here. |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2016 10:21 PM |
local part = game.Workspace.Test
local mouse = game.Players.LocalPlayer:GetMouse()
local pos = part.Position
mouse.Move:connect(function() if mouse.Target then if mouse.Target.Name == "HOVER_TRUE" then part.Position = mouse.Target.Position else if mouse.Target.Name ~= part.Name then part.Position = pos end end end end)
#Code print("Song Link: http://www.roblox.com/Deorro-vs-Swedish-House-Mafia-Save-The-5-Hours-item?id=340827217") |
|
|
| Report Abuse |
|
|
|
| 03 Feb 2016 10:22 PM |
Ah cheers! Another quick question.. Is it possible to say that the Part going to the Pointer can only be placed on a stud, so its like in studio If I was to have '1 stud' enabled? |
|
|
| Report Abuse |
|
|