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

Rotating a model? [closed]

Asked by
Cuvette 246 Moderation Voter
8 years ago

So I've finally figured out how to move a model but now i'm having a bit of trouble rotating it, here is my code so far, if you got any ideas that would be great!

local movearea = script.Parent.Parent.Parent.BoundingArea
Parts = player:LoadInstance("BuildingBricks11")
Parts.PrimaryPart = Parts.BoundingBox
Parts:SetPrimaryPartCFrame(CFrame.new(movearea.Position.X,34,movearea.Position.Z))
local rotatedCFrame = Parts:GetPrimaryPartCFrame() * CFrame.Angles(0, math.rad(movearea.Rotation.Y), 0) -- This is what i'm stuck on
Parts.Parent = script.Parent.Parent.Parent.SavedObjects

I know it's just a variable but i'm quite unsure on how to execute it

1
All you have to do is set the rotated CFrame with SetPrimaryPartCFrame BlackJPI 2658 — 8y
0
Yeah just as you sent that I sorted it, thanks anyway! Cuvette 246 — 8y

Locked by 1waffle1 and Sublimus

This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.

Why was this question closed?