Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 24 May 2015 08:37 PM |
Line: script.Parent.Position=CFrame.new(script.Parent.Parent.CFrame)
Output: Workspace.test.apple.Move:18: bad argument #1 to 'new' (Vector3 expected, got userdata)
Any help quys? |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 08:37 PM |
Positions use Vector3 values, not CFrame
-[::ƧѡÎḾḠΰῩ::]-[::Helper of Scripting and Writer of Wikis::] |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 08:38 PM |
| script.Parent.Position=Vector3.new(CFrame.new(script.Parent.Parent.CFrame)) |
|
|
| Report Abuse |
|
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 24 May 2015 08:41 PM |
| @GlaciesRex, The same output comes out. |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 24 May 2015 08:41 PM |
^ wtf are you on
script.Parent.CFrame = script.Parent.Parent.CFrame |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
Vitalityc
|
  |
| Joined: 02 Aug 2013 |
| Total Posts: 302 |
|
|
| 24 May 2015 08:43 PM |
| Wow I'm on everything I guess you can say, thanks. |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 09:02 PM |
script.Parent.Position=Vector3.new(script.Parent.Parent.Position)
Try this |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
|
| 24 May 2015 09:04 PM |
| noobs are filling up scripters |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 09:08 PM |
| Who me? I'm not the best scripter but I'm not a nub :) |
|
|
| Report Abuse |
|
|
Chrapnel
|
  |
| Joined: 01 Feb 2014 |
| Total Posts: 951 |
|
|
| 24 May 2015 09:10 PM |
script.Parent.Position = script.Parent.Parent.Position
...why has this not been mentioned yet |
|
|
| Report Abuse |
|
|
|
| 24 May 2015 09:11 PM |
| I'm not sure if you're intending to change the Position or the CFrame of the parent... |
|
|
| Report Abuse |
|
|