Alexware
|
  |
| Joined: 07 May 2010 |
| Total Posts: 661 |
|
|
| 26 Jun 2017 05:20 PM |
I have it so local Request = Mouse.Hit.p However, I don't understand why I'm getting a "Vector3 expected, got CFrame" error because Mouse.Hit.p is a Position... right? How can I get around this? Any more info needed? |
|
|
| Report Abuse |
|
|
|
| 26 Jun 2017 05:28 PM |
| I believe it is a CFrame, not a Position. |
|
|
| Report Abuse |
|
|
ahwz
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 3230 |
|
|
| 26 Jun 2017 05:34 PM |
Mouse.Hit is a cframe
Mouse.Hit.p is a Vector3
are you sure its from that code?
|
|
|
| Report Abuse |
|
|
Alexware
|
  |
| Joined: 07 May 2010 |
| Total Posts: 661 |
|
|
| 26 Jun 2017 05:35 PM |
Are you sure it's from that code yes i'm 100% sure, it's the only script and it even said the line i changed it to local Request = Vector3.new(Mouse.Hit.x, Mouse.Hit.y, Mouse.Hit.z) and it's working fine, now.
|
|
|
| Report Abuse |
|
|
|
| 26 Jun 2017 05:37 PM |
wiki.roblox.com/index.php?title=API:Class/Mouse/Hit Returns a CFrame value
You can get the position of a CFrame value by adding '.p' to the end |
|
|
| Report Abuse |
|
|
ahwz
|
  |
| Joined: 01 Apr 2010 |
| Total Posts: 3230 |
|
|
| 26 Jun 2017 05:38 PM |
Vector3.new(Mouse.Hit.x, Mouse.Hit.y, Mouse.Hit.z)
and Mouse.Hit.p
are the same thing. you are just getting the position values of the CFrame and converting them to a vector3.
I am still convinced that it was something else you were doing as you only showed 1 line of code.
|
|
|
| Report Abuse |
|
|