|
|
|
bibo5oJoin Date: 2009-01-17 Post Count: 414 |
I don't know about the Rotation property, but you can use CFrame
part.CFrame = CFrame.new(posX,posY,posZ) * CFrame.new(angleX,angleY,angleZ) |
|
BLOXLUAJoin Date: 2013-03-16 Post Count: 453 |
"SetPrimaryPartCFrame(CFrame)", this might work, but if there is no PrimaryPart it will have an error. |
|
|
|
bibo5oJoin Date: 2009-01-17 Post Count: 414 |
http://wiki.roblox.com/index.php?title=API:Class/Model/SetPrimaryPartCFrame
SetPrimaryPartCFrame(CFrame.new(posX,posY,posZ) * CFrame.new(angleX,angleY,angleZ)) might work, idk, I've not used this before. |
|
BLOXLUAJoin Date: 2013-03-16 Post Count: 453 |
Nope, SetPrimaryPartCFrame works. |
|
BLOXLUAJoin Date: 2013-03-16 Post Count: 453 |
game.Workspace.Model:SetPrimaryPartModel(CFrame.fromEulerAnglesXYZ(0,math.rad(45),0)) |
|
|
|
|
connor954Join Date: 2008-07-24 Post Count: 947 |
lookVector? |
|
|
connor954Join Date: 2008-07-24 Post Count: 947 |
Straight from wiki
CFrame.lookVector = returns the facing direction (unit vector)
Also, you could use welds. |
|
ConmiroJoin Date: 2008-10-13 Post Count: 3393 |
|
|
|
|
|
|
|
lostendJoin Date: 2011-08-21 Post Count: 8265 |
For a model, you have to use this.
local part=script.Parent:WaitForChild('PartName')
script.Parent.PrimaryPart=part
script.Parent:SetPrimaryPartCFrame(CFrame.Angles(math.rad(90),0,0) |
|
|
|