ok, I have changed this like 5 times now.
what happens is that the model rotates all in one movement(but not to were I told t to go) and the model moves up slowly like I told it to and the print statements work.
why wont the rotate work?
ok... the start (rotation) position is 90 and I need it to rotate up slowly until it hits -65
a the same time the model needs to move up and right slowly to keep it in the same spot.
with this code it moves up and over but don't rotate right. (pleas help!)
local ArmOne = script.Parent.Parent.ArmRotatorTwo.ArmOne
local ArmTwo = script.Parent.Parent.ArmRotatorTwo.ArmTwo
local Rotater = script.Parent.Parent.BraceRotater
local Four = script.Parent.Parent.ArmRotatorTwo.PartFour
local One = script.Parent.Parent.ArmRotatorTwo.PartOne
local Three = script.Parent.Parent.ArmRotatorTwo.PartThree
local Two = script.Parent.Parent.ArmRotatorTwo.PartTwo
local Brace = script.Parent.Parent.ArmRotatorTwo.Brace
local Left = script.Parent.Parent.ArmRotatorTwo.LeftArm
local Right = script.Parent.Parent.ArmRotatorTwo.RightArm
local Model = ArmTwo.Parent
local Prime = Model.PrimaryPart
local ArmRotation = ArmTwo.Rotation.Z
local NumberOne = 0
local NumberTwo = 0
Rotater.CanCollide = false
ArmOne.CanCollide = false
ArmTwo.CanCollide = false
Four.CanCollide = false
One.CanCollide = false
Three.CanCollide = false
Two.CanCollide = false
Brace.CanCollide = false
Left.CanCollide = false
Right.CanCollide = false
function Rotate()
wait(.5)
print ("Start")
while (ArmRotation > -65) do
Model:SetPrimaryPartCFrame(CFrame.new(Prime.CFrame.X - .05, Prime.CFrame.Y + .05, Prime.CFrame.Z))
wait(.2)
print ("Done Step One")
CFrame.Angles(Prime.Rotation.X, Prime.Rotation.Y, Prime.Rotation.Z - 0.05)
print ("Done Step Two")
NumberOne = NumberOne + 1
print(NumberOne)
wait(.2)
end
--while (Model > -65) do
--Model:SetPrimaryPartCFrame(CFrame + Vector3.new (Prime.CFrame.X - .05, Prime.CFrame.Y + .05, Prime.CFrame.Z))
--wait(.2)
--CFrame.Angles(Prime.Rotation.X, Prime.Rotation.Y - 0.05, Prime.Rotation.Z)
--NumberOne = NumberOne + 1
--print(NumberOne)
--wait(.2)
end
script.Parent.ClickDetector.MouseClick:connect(Rotate)
wait(.1)
Rotater.CanCollide = true
ArmOne.CanCollide = true
ArmTwo.CanCollide = true
Four.CanCollide = true
One.CanCollide = true
Three.CanCollide = true
Two.CanCollide = true
Brace.CanCollide = true
Left.CanCollide = true
Right.CanCollide = true
I have tried many different things, and I cant find any video's on this can someone help me.

1 comment
P.S. if i use * the frame just jumps around twisting