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

How do I make a group of brick spin around the hinge?

Asked by 5 years ago
Edited 5 years ago

local hinge = script.Parent.Hinge == (one brick)

local Model = script.Parent.B1 == (two bricks)

local hingePos = hinge.Position

for i = 1, 360 do

Model:SetPrimaryPartCFrame(CFrame.new(hingePos) * CFrame.Angles(0, math.rad(i), 0) * CFrame.new(1,0,0) )

wait()

end

I'm trying to make the model spin around the hinge.

for some reason this script doesn't show any result to me, what's wrong?

how do I set, SetPrimaryPartCFrame?

0
Good question. if you want to know the answer... I don't. ANE_bot 17 — 5y

Answer this question