yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 13 May 2015 06:57 PM |
-- it does the vector3.new part, meaning it spawns in the map but not in front of player
--yes variables are good
part:TranslateBy((character.Torso.Position - playerhead.Position) + Vector3.new(0,-1.9,0)) |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 13 May 2015 07:17 PM |
| can i please get some help? |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 13 May 2015 07:21 PM |
this is a joke
this is scripters isn't it? |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 13 May 2015 07:22 PM |
| translateby isn't even a method of part |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 13 May 2015 07:23 PM |
| you want it to spawn in front of the player? |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 13 May 2015 07:23 PM |
part is the name of my model
the model goes into workspace but doesn't move to the player's feet |
|
|
| Report Abuse |
|
|
TimeTicks
|
  |
| Joined: 27 Apr 2011 |
| Total Posts: 27115 |
|
|
| 13 May 2015 07:25 PM |
calm down kid. You should just use :Clone() to acheive this.
local partClone = game.ServerStorage.Part:Clone() partClone.Parent = game.Position partClone.CFrame = CFrame.new((character.Torso.Position - playerhead.Position) + Vector3.new(0,-1.9)) |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 13 May 2015 07:27 PM |
already tried that
doesn't work.
my only problem is that the model doesn't move to the player's feet. |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 13 May 2015 07:31 PM |
| It's a model not a part.. cframing rofl |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 13 May 2015 07:32 PM |
local frontOfChar = CFrame.new(character.Torso.CFrame.lookVector * 2)
primaryPart:SetPrimaryPartCFrame(frontOfChar * CFrame.new(character.Torso.CFrame * CFrame.new(0, -1, 0))
??
is my snippet horribly wrong as well
i'm on a chromebook so i can't test it |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 13 May 2015 07:34 PM |
| *model:SetPrimaryPartCFrame(my args here) |
|
|
| Report Abuse |
|
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
| |
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 13 May 2015 07:37 PM |
"i am trying
to
move
a
model"
http://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame
jesus christ |
|
|
| Report Abuse |
|
|
rayk999
|
  |
| Joined: 18 Feb 2011 |
| Total Posts: 4705 |
|
| |
|
yankeejr
|
  |
| Joined: 04 Jul 2012 |
| Total Posts: 4906 |
|
|
| 13 May 2015 07:49 PM |
| Players.Player1.PlayerGui.Inventory.InventoryFrame.Button.L:45: bad argument #1 to 'new' (Vector3 expected, got userdata) |
|
|
| Report Abuse |
|
|
instawin
|
  |
| Joined: 04 Jun 2013 |
| Total Posts: 8777 |
|
|
| 13 May 2015 08:01 PM |
"Vector3 expected"
you aren't even testing my snippet |
|
|
| Report Abuse |
|
|