Here's my script
part1 = game.Workspace.Part
speed = 4
for i=1, (90/speed) do
part2.CFrame = part2.CFrame * CFrame.Angles(0,0.29/speed, 0);
wait(0.01)
end
The script makes one object move, but I have a bunch of parts which makes one door, (most of the parts have mesh in them) and I want it so that when somebody clicks the door the door will open, I have tried just copying the script for each part in the door but that doesn't work.
Any suggestions? |