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: How to print position of where you clicked ray casting.

Previous Thread :: Next Thread 
ReverseUniverse is not online. ReverseUniverse
Joined: 23 Jan 2015
Total Posts: 1118
03 May 2015 05:31 PM
Have been looking threw a lot of tutorials can't figure it out.
Report Abuse
ReverseUniverse is not online. ReverseUniverse
Joined: 23 Jan 2015
Total Posts: 1118
03 May 2015 05:33 PM
Any one know how?
Report Abuse
mightybaseplate is online. mightybaseplate
Joined: 28 Aug 2010
Total Posts: 7660
03 May 2015 05:37 PM
Turn where you clicked into a value and print(value)
Report Abuse
ReverseUniverse is not online. ReverseUniverse
Joined: 23 Jan 2015
Total Posts: 1118
03 May 2015 05:40 PM
That is what i am trying to do so how do i do it?
Report Abuse
mightybaseplate is online. mightybaseplate
Joined: 28 Aug 2010
Total Posts: 7660
03 May 2015 05:49 PM
Can you show me your script?
Report Abuse
RoflBread is not online. RoflBread
Joined: 18 Jun 2009
Total Posts: 3803
03 May 2015 10:31 PM
hit, pos = game.Workspace:FindPartOnRay(your_ray)

print(pos)

or

print(mouse.Hit.p)
Report Abuse
ReverseUniverse is not online. ReverseUniverse
Joined: 23 Jan 2015
Total Posts: 1118
04 May 2015 04:39 PM
mouse.hit only tells the object that the ray hits if i am correct?
Report Abuse
bosswalrus is not online. bosswalrus
Joined: 04 Jan 2013
Total Posts: 5430
04 May 2015 04:40 PM
mouse.p I believe
Or mouse.X and Mouse.Y - oh crap thats only 2d

mouse.hit.p I think it is instead of mouse.p

No idea honestly, I hate to not know, I hope someone corrects me.

"I like to program" - Bosswalrus
Report Abuse
ReverseUniverse is not online. ReverseUniverse
Joined: 23 Jan 2015
Total Posts: 1118
04 May 2015 04:43 PM
So p stands for position on a vector3 value?
Report Abuse
MrNicNac is not online. MrNicNac
Joined: 29 Aug 2008
Total Posts: 26567
04 May 2015 04:44 PM
.p is the positional part of a CFrame.

Mouse.Hit is a CFrame

Use

Mouse.Hit.p

To get the position.
Report Abuse
instawin is not online. instawin
Joined: 04 Jun 2013
Total Posts: 8777
04 May 2015 04:45 PM
http://wiki.roblox.com/index.php?title=CFrame#Properties
Report Abuse
ReverseUniverse is not online. ReverseUniverse
Joined: 23 Jan 2015
Total Posts: 1118
04 May 2015 04:46 PM
Thank you every one for explaining.
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