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

Switch that when it is touched it rotates more than one brick on the same pivot?

Asked by
RoyMer 301 Moderation Voter
9 years ago
local part = workspace:WaitForChild("Test3"):WaitForChild("Move3")

script.Parent.Touched:connect(function(hit)
    if hit.Parent:FindFirstChild("Humanoid") then

        part.CFrame = part.CFrame * CFrame.Angles(0,0,math.pi/14)
        wait (1)
        part.CFrame = part.CFrame * CFrame.Angles(0,0,math.pi/-14) 
    end
end)

This is so far what I have done, I do not know what I could do to make more than one brick rotate together on the same pivot.

Answer this question