I have basically never done scripting and i want to smoothly rotate this group 90 degrees using a script, but cant figure out how. There dont seem to be any tutorials that explain how do this.
Here is what im trying to achieve.
I have basically never done scripting and i want to smoothly rotate this group 90 degrees using a script, but cant figure out how. There dont seem to be any tutorials that explain how do this.
Here is what im trying to achieve.
If it’s a model you can just set a primary part then do
rotation = CFrame.Angles(math.rad(90), 0, 0) --use math.rad(number) with CFrame.Angles otherwise it won't work, you can't do CFrame.Angles(90,0,0)
modelCF = model.PrimaryPart.CFrame
model:SetPrimaryPartCFrame(modelCF * rotation)
If you don’t know how to set a primary part then check How do you set a Part as a Primary Part? - Help and Feedback / Building Support - DevForum | Roblox