heirIoom
|
  |
| Joined: 15 Jul 2012 |
| Total Posts: 3775 |
|
|
| 13 Feb 2016 07:54 PM |
Can anyone tel me how to fix this?
script.Parent.CFrame = CFrame.new(Vector3.new(workspace.Model.Torso.Position))
or
script.Parent.Position = Vector3.new(workspace.Model.Torso.Position)
Everytime I run either of these it brings the part to 0,0,0 with no errors.
|
|
|
| Report Abuse |
|
|
heirIoom
|
  |
| Joined: 15 Jul 2012 |
| Total Posts: 3775 |
|
| |
|
|
| 13 Feb 2016 07:59 PM |
script.Parent.CFrame = Vector3.new(Workspace.Model.Torso.Position
If you don't have a variable, do game.Workspace also. |
|
|
| Report Abuse |
|
|
|
| 13 Feb 2016 08:00 PM |
script.Parent.Position = game.Workspace.Model.Torso.Position
|
|
|
| Report Abuse |
|
|
mattscy
|
  |
| Joined: 06 May 2011 |
| Total Posts: 1079 |
|
|
| 13 Feb 2016 08:00 PM |
Just do
script.Parent.CFrame = workspace.Model.Torso.CFrame |
|
|
| Report Abuse |
|
|
heirIoom
|
  |
| Joined: 15 Jul 2012 |
| Total Posts: 3775 |
|
|
| 13 Feb 2016 08:01 PM |
Workspace is a deprecated method. Using workspace skips game.Workspace btw.
The above wouldnt work, because CFrame doesnt play in with Vector on the same lines. Also there werent any parenthesis. Ty for helpin out some though.
|
|
|
| Report Abuse |
|
|
heirIoom
|
  |
| Joined: 15 Jul 2012 |
| Total Posts: 3775 |
|
|
| 13 Feb 2016 08:01 PM |
@Matt Ur a life saver lol thanks a ton!
|
|
|
| Report Abuse |
|
|
|
| 13 Feb 2016 08:03 PM |
| oh gg i forgot about that rip my scripting |
|
|
| Report Abuse |
|
|