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
 

Re: Find the mouse position in a Tool?

Previous Thread :: Next Thread 
Kingdaro557 is not online. Kingdaro557
Joined: 23 Mar 2008
Total Posts: 1439
09 Dec 2009 10:09 AM
What's the "mouse.hit.p" of a tool? I'm trying to learn tool scripting by looking through the object browser, but I don't see anything on a mouse position.
Report Abuse
RightLegRed is not online. RightLegRed
Joined: 02 Oct 2009
Total Posts: 6761
09 Dec 2009 10:11 AM
It's still mouse.Hit.p
Report Abuse
Kingdaro557 is not online. Kingdaro557
Joined: 23 Mar 2008
Total Posts: 1439
09 Dec 2009 10:13 AM
Rly? Thanks! (I feel like an idiot to not try that. >.>)

Is it still Mouse.Target though to find which brick is being highlighted by the mouse? And Activated() is the click event, right?
Report Abuse
RightLegRed is not online. RightLegRed
Joined: 02 Oct 2009
Total Posts: 6761
09 Dec 2009 10:15 AM
For a tool it's Equipped and yes, mouse.Target.
Report Abuse
gombob is not online. gombob
Joined: 01 May 2008
Total Posts: 5215
09 Dec 2009 10:19 AM
You can only acces mouse in a local Script in a Tool :p
Report Abuse
Kingdaro557 is not online. Kingdaro557
Joined: 23 Mar 2008
Total Posts: 1439
09 Dec 2009 10:20 AM
It's Equipped? Well that makes no sense to me. I assume the Equiped event is when the tool is actually equiped, and not both equipped and clicked afterwards, but I'll take your word for it.
Report Abuse
Kingdaro557 is not online. Kingdaro557
Joined: 23 Mar 2008
Total Posts: 1439
09 Dec 2009 10:21 AM
Oh thank god you told me that :D

>:(

forum:findFirstChild("Flood Check"):remove()
Report Abuse
RightLegRed is not online. RightLegRed
Joined: 02 Oct 2009
Total Posts: 6761
09 Dec 2009 10:23 AM
@King




script.Parent.Equipped:connect(function(Mouse)
Mouse.Move:connect(function()
print(Mouse.Hit.p)
end)
end)
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