generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Changing Mouse Icon.

Previous Thread :: Next Thread 
opplo is not online. 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 is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
24 May 2014 02:04 PM
Bump
Report Abuse
Devoi is not online. 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 is not online. opplo
Joined: 09 Dec 2008
Total Posts: 5320
24 May 2014 02:36 PM
Works great, cheers.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image