|
| 29 Jul 2014 05:46 PM |
I'm working on a game, and, for the entire game, the player's character's parent has been set to nil (essentially removing it but keeping the camera). However, I need a brick to be clickable. A ClickDetector will not work, as the character is missing and ClickRange causes it to be unclickable.
Is there anything that could work here? |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2014 05:47 PM |
local mouse = game.Players.LocalPlayer:GetMouse() mouse.Button1Down:connect(function() if mouse.Target and mouse.Target == partyouwanthere then
MomoiroCloverZ, newbag expert Lua coder. |
|
|
| Report Abuse |
|
|
|
| 29 Jul 2014 05:54 PM |
| Ah, completely forgot about LocalMouse. This requires a bit more effort to throw through a LocalScript, but that idea should work. Thanks. |
|
|
| Report Abuse |
|
|