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 » Scripters
Home Search
 

Re: If local player's hovering their mouse over other player

Previous Thread :: Next Thread 
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
21 Mar 2015 11:13 PM
I've seen this done in tools, but how? Like let's say I have the mouse as a black dot and then a red dot when it goes over a player. How do I do that?

Also sorry about the title, I had to shorten it.
Report Abuse
superconscript is not online. superconscript
Joined: 15 Mar 2012
Total Posts: 413
21 Mar 2015 11:23 PM
player = game.Players.LocalPlayer
mouse = player:GetMouse ()
while true do -- eh lol lagfest
playercheck = mouse.Target.Parent:FindFirstChild ("Humanoid")
if playercheck then
print (mouse.Target.Parent.Name)
end
else print "not player"
end
Report Abuse
superconscript is not online. superconscript
Joined: 15 Mar 2012
Total Posts: 413
21 Mar 2015 11:24 PM
OOPS major mistake add a wait in there
else print "not player"
wait(.5)
Report Abuse
superconscript is not online. superconscript
Joined: 15 Mar 2012
Total Posts: 413
21 Mar 2015 11:26 PM
If this works you can switch the print "(mouse.Target.Parent.Name"
with mouse.Icon "(red dot URL Here)"
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
21 Mar 2015 11:29 PM
@super
I'm really sure that's a rather inefficient way of doing it.
Report Abuse
superconscript is not online. superconscript
Joined: 15 Mar 2012
Total Posts: 413
21 Mar 2015 11:30 PM
I know that's why I put lagfest lol kinda lazy though to optimize it... but does it work?
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
21 Mar 2015 11:31 PM
I can't fix your code, it says I'm missing an end but I'm having a really hard time figuring out where to put it.
Report Abuse
superconscript is not online. superconscript
Joined: 15 Mar 2012
Total Posts: 413
21 Mar 2015 11:33 PM
well it should say expected end to close if or while function if you tell me which I can fix it but maybe it's just
end
else print "not player"
end
end
Report Abuse
BothAngles is not online. BothAngles
Joined: 01 Dec 2011
Total Posts: 9604
21 Mar 2015 11:34 PM
just give up
Report Abuse
superconscript is not online. superconscript
Joined: 15 Mar 2012
Total Posts: 413
21 Mar 2015 11:35 PM
Either way you can just use some of the techniques I used in mine and make your own its just an example.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
21 Mar 2015 11:35 PM
Well I'll just go find a free model tool with it and check out what they did.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
21 Mar 2015 11:36 PM
Ok super I'll try that out.
Report Abuse
Klink45 is not online. Klink45
Joined: 06 Jun 2011
Total Posts: 26054
21 Mar 2015 11:41 PM
Well I'm bumping this because free models aren't helping.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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