Deidara4
|
  |
| Joined: 28 May 2009 |
| Total Posts: 283 |
|
|
| 11 Feb 2012 11:42 PM |
So I wanted to make a crosshairs script, but I keep getting the error message "attempt to index local 'mouse' (a number value)". If anyone knows what I'm doing wrong, please help. Sample;
function onChanged(mouse) if mouse == nil then print("Mouse not found") return end if script.Parent.Spread.Value > 89 and script.Parent.Spread.Value < 100 then mouse.Icon = "http://www.roblox.com/asset/?id=72216652" end if script.Parent.Spread.Value > 99 and script.Parent.Spread.Value < 110 then mouse.Icon = "http://www.roblox.com/asset/?id=72216658" end if script.Parent.Spread.Value > 109 and script.Parent.Spread.Value < 120 then mouse.Icon = "http://www.roblox.com/asset/?id=72216666" end end function Dah(mouse) onChanged(mouse) end script.Parent.Spread.Changed:connect(Dah) |
|
|
| Report Abuse |
|
|
Deidara4
|
  |
| Joined: 28 May 2009 |
| Total Posts: 283 |
|
| |
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
|
| 12 Feb 2012 12:54 AM |
http://wiki.roblox.com/index.php/HopperBin http://wiki.roblox.com/index.php/Selected_(Event) http://wiki.roblox.com/index.php/Mouse
mouse can only be obtain by a HopperBin/Tool through Selected/Equipped. |
|
|
| Report Abuse |
|
|