oplmn1
|
  |
| Joined: 25 Nov 2010 |
| Total Posts: 994 |
|
|
| 24 Feb 2014 09:21 PM |
I have this tool, and I only want it to do things if it clicked...
I tried a ton of crap. So I just want a simple answer. One that you know will work.
If you want more info: I have at tool, You click places, Brick gets created on that spot, but, if I click the sky, It breaks the tool.
|
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 24 Feb 2014 09:24 PM |
if not mouse then return end
????
or
-- localscript
player = game.Players.LocalPlayer
player.Selected:connect(function(what) if what == game.Workspace.Baseplate then --merp end end) |
|
|
| Report Abuse |
|
|
oplmn1
|
  |
| Joined: 25 Nov 2010 |
| Total Posts: 994 |
|
|
| 24 Feb 2014 09:25 PM |
| Stop fking using return I hate it. It should burn It confuses me, It doesn't make sense to me. Just remove it from everything you give me k? Thanks. |
|
|
| Report Abuse |
|
|
oplmn1
|
  |
| Joined: 25 Nov 2010 |
| Total Posts: 994 |
|
|
| 24 Feb 2014 09:28 PM |
And other than that, thanks, but it doesent work.
mouse.Button1Down:connect(function() if not mouse then -- Code end end)
--These dont work either-- if hit then if mouse.hit then if hit.p then if hit:IsA("BasePart") or hit:IsA("Hat") then |
|
|
| Report Abuse |
|
|
|
| 24 Feb 2014 09:38 PM |
if mouse.hit ~= nil then ... |
|
|
| Report Abuse |
|
|
oplmn1
|
  |
| Joined: 25 Nov 2010 |
| Total Posts: 994 |
|
| |
|
|
| 24 Feb 2014 09:40 PM |
isn't it mouse.Hit--caps at the start? |
|
|
| Report Abuse |
|
|
oplmn1
|
  |
| Joined: 25 Nov 2010 |
| Total Posts: 994 |
|
| |
|
|
| 24 Feb 2014 09:47 PM |
Post the script and I'll look at it.
Also, just because you don't understand return doesn't mean it should burn. The world doesn't revolve around you. |
|
|
| Report Abuse |
|
|
oplmn1
|
  |
| Joined: 25 Nov 2010 |
| Total Posts: 994 |
|
| |
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
| |
|
|
| 24 Feb 2014 10:40 PM |
| I believe there is a method for checking if the mouse clixked an instance. |
|
|
| Report Abuse |
|
|
KEVEKEV77
|
  |
| Joined: 12 Mar 2009 |
| Total Posts: 6961 |
|
|
| 24 Feb 2014 11:24 PM |
Isn't it..... if FindRayOnPart or something?
|
|
|
| Report Abuse |
|
|