Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i change the orientation of a model?

Asked by 5 years ago
Edited 5 years ago

code:

local part = script.Parent.ModelHolder[Models]:Clone()
part.Parent = workspace
part:SetPrimaryPartCFrame(CFrame.new(Vector3.new(0,math.random(0,360),0)))
0
You don't need the Vector3.new inside the CFrame User#19524 175 — 5y
0
oh SamthekidRSsl 58 — 5y

1 answer

Log in to vote
2
Answered by
seith14 206 Moderation Voter
5 years ago

Try this and reply if it works or not

local part = script.Parent.ModelHolder[Models]:Clone()
part.Parent = workspace
part:SetPrimaryPartCFrame(part:GetPrimaryPartCFrame() * CFrame.Angles(0, math.rad(0,360), 0)) 
Ad

Answer this question