TheWisest
|
  |
| Joined: 11 Nov 2010 |
| Total Posts: 7345 |
|
|
| 30 Dec 2011 11:06 AM |
I've been experimenting with tools lately, and not having much luck....
Here's one of my first trys, yet it doesn't work.... Please help!
Ben = script.Parent
function Down(mouse) h = mouse.Target if (h ~= nil) then if h.ClassName == "Part" then h.BrickColor = BrickColor.new("Really black") mouse.Icon = "rbxasset://textures\\ArrowCursor.png"
elseif
print("Y U NO NO PARTYS???")
end end end
function Equip(mouse) mouse.Icon = "rbxasset://textures\\ArrowCursor.png" end
mouse.Button1Down:connect(Down) Ben.Selected:connect(Equip)
And thanks. :)
Christmas? BAH HUMBUG! |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2011 11:08 AM |
Ben = script.Parent function Down(mouse) h = mouse.Target if (h) then if h:IsA('Part') then h.BrickColor = BrickColor.new("Really black") mouse.Icon = "rbxasset://textures\ArrowCursor.png" else print("Y U NO NO PARTYS???") end end end function Equip(mouse) mouse.Icon = "rbxasset://textures\ArrowCursor.png" end mouse.Button1Down:connect(Down) Ben.Selected:connect(Equip)
-metaplates, Master of JavaScript. |
|
|
| Report Abuse |
|
|
TheWisest
|
  |
| Joined: 11 Nov 2010 |
| Total Posts: 7345 |
|
|
| 30 Dec 2011 11:12 AM |
Doesn't work. :L
Christmas? BAH HUMBUG! |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2011 11:14 AM |
Ben = script.Parent function Down(mouse) h = mouse.Target if (h) then if h:IsA('Part') then h.BrickColor = BrickColor.new("Really black") mouse.Icon = "rbxasset://textures\ArrowCursor.png" else print("Y U NO NO PARTYS???") end end end function Equip(mouse) mouse.Icon = "rbxasset://textures\ArrowCursor.png" end Ben.Selected:connect(function(m) Equip(m) m.Button1Down(function() Down(m) end) end)
-metaplates, Master of JavaScript. |
|
|
| Report Abuse |
|
|
TheWisest
|
  |
| Joined: 11 Nov 2010 |
| Total Posts: 7345 |
|
|
| 30 Dec 2011 11:24 AM |
Doesn't work, thanks for trying so hard though. ;)
Christmas? BAH HUMBUG! |
|
|
| Report Abuse |
|
|
|
| 30 Dec 2011 11:27 AM |
Ben = script.Parent function Down(mouse) h = mouse.Target if (h and h:IsA('Part')) then h.BrickColor = BrickColor.new("Really black") mouse.Icon = "rbxasset://textures\ArrowCursor.png" else print("Y U NO NO PARTYS???") end end function Equip(mouse) mouse.Icon = "rbxasset://textures\ArrowCursor.png" end Ben.Equipped:connect(function(m) Equip(m) m.Button1Down(function() Down(m) end) end) Are you using a tool or Hopperbin? If you're using a tool, that should work.
-metaplates, Master of JavaScript. |
|
|
| Report Abuse |
|
|
TheWisest
|
  |
| Joined: 11 Nov 2010 |
| Total Posts: 7345 |
|
|
| 30 Dec 2011 11:35 AM |
I changed it to a tool, and it still didn't work. :/
Christmas? BAH HUMBUG! |
|
|
| Report Abuse |
|
|