UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 04 Apr 2013 09:45 PM |
| How do I add a cursor to a hopperbin? |
|
|
| Report Abuse |
|
|
Colonized
|
  |
| Joined: 23 Jul 2011 |
| Total Posts: 160 |
|
|
| 04 Apr 2013 09:47 PM |
| http://wiki.roblox.com/index.php/RBX.lua.HopperBin_(Object) |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 09:48 PM |
| Use the mouse.Selected event to get the mouse, and then use mouse.Cursor = "cursor" to set the cursor. |
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 04 Apr 2013 09:52 PM |
I really don't know anything about making a hoppebin...I watched a video on how to make one, really all I did was take the script he had that ran print("Hello") and replaced the hello with my script...
It looks like this
function OnClick(Mouse) --200 lines of my script end
function ToolOn(Mouse) Mouse.Button1Down:connect(OnClick) end
script.Parent.Selected:connect(ToolOn)
How do I add the default ROBLOX tool aim thing? |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 09:55 PM |
function OnClick(Mouse) --200 lines of my script end
function ToolOn(Mouse) mouse.Icon = "rbxasset://Textures/GunCursor.png" Mouse.Button1Down:connect(function(OnClick)
end) end
script.Parent.Selected:connect(ToolOn)
|
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 04 Apr 2013 10:01 PM |
| It made my tool stop working :c |
|
|
| Report Abuse |
|
|
|
| 04 Apr 2013 10:09 PM |
| Can you PM me the whole script? |
|
|
| Report Abuse |
|
|
UnBuild
|
  |
| Joined: 22 Mar 2013 |
| Total Posts: 3233 |
|
|
| 04 Apr 2013 10:10 PM |
Its really long, but I fixed it.
function ToolOn(Mouse) --Checks for clicks
Mouse.Icon = "rbxasset://textures\\GunCursor.png"
Mouse.Button1Down:connect(OnClick)
end --Ends checking for clicks
script.Parent.Selected:connect(ToolOn) --Checks for selected tool |
|
|
| Report Abuse |
|
|