opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
|
| 24 May 2014 12:46 PM |
This is to change the mouse icon when you mouse over someone. I can't change the icon with the PlayerMouse because that's not aloud so I'm using a tool. But currently for the target function it's not finding the mouse because it's not within the equip function. I'm having difficulties help appreciated. This is a simplified script.
function target() if equipped then if mouse.Target ~= nil then posibleF = mouse.Target.Parent:FindFirstChild("Torso") if posibleF then mouse.Icon="rbxassetid://158217060" else mouse.Icon="rbxassetid://81888013" end end end end
function onEquipped(mouse) mouse.Move:connect(target) end
script.Parent.Equipped:connect(onEquipped) |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
| |
|
Devoi
|
  |
| Joined: 09 Jun 2013 |
| Total Posts: 5387 |
|
|
| 24 May 2014 02:15 PM |
script.Parent.Equipped:connect(function(mouse) mouse.Move:connect(function() if equipped then if mouse.Target ~= nil then posibleF = mouse.Target.Parent:FindFirstChild("Torso") if posibleF then mouse.Icon="rbxassetid://158217060" else mouse.Icon="rbxassetid://81888013" end end end end) end) |
|
|
| Report Abuse |
|
|
opplo
|
  |
| Joined: 09 Dec 2008 |
| Total Posts: 5320 |
|
| |
|