|
| 03 May 2015 05:31 PM |
| Have been looking threw a lot of tutorials can't figure it out. |
|
|
| Report Abuse |
|
|
| |
|
|
| 03 May 2015 05:37 PM |
Turn where you clicked into a value and print(value)
|
|
|
| Report Abuse |
|
|
|
| 03 May 2015 05:40 PM |
| That is what i am trying to do so how do i do it? |
|
|
| Report Abuse |
|
|
|
| 03 May 2015 05:49 PM |
| Can you show me your script? |
|
|
| Report Abuse |
|
|
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 |
|
|
|
| 04 May 2015 04:39 PM |
| mouse.hit only tells the object that the ray hits if i am correct? |
|
|
| Report Abuse |
|
|
|
| 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 |
|
|
|
| 04 May 2015 04:43 PM |
| So p stands for position on a vector3 value? |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 04 May 2015 04:45 PM |
| http://wiki.roblox.com/index.php?title=CFrame#Properties |
|
|
| Report Abuse |
|
|
|
| 04 May 2015 04:46 PM |
| Thank you every one for explaining. |
|
|
| Report Abuse |
|
|