As the title says if i edit the numbers in the angles it doesn't work. Help me don't change this script thx!
val = script.Parent.Parent.Open val2 = script.Parent.Parent.Moving DA1 = script.Parent.Parent.DoorA1 S1 = script.Parent.Beep Open = script.Parent.Parent.SoundPlayer.Open Close = script.Parent.Parent.SoundPlayer.Close function onC() S1:Play() if val2.Value == false then if val.Value == false then val2.Value = true Open:Play() for i = 1, (DA1.Size.X*3.50)-3.50 do wait(0.01) lv = DA1.CFrame DA1.CFrame = lv + ((lv*CFrame.Angles(0,math.pi/2,2)).lookVector*0.25) end val2.Value = false val.Value = true else val2.Value = true Close:Play() for i = 1, (DA1.Size.X*3.50)-3.50 do wait(0.01) lv = DA1.CFrame DA1.CFrame = lv - ((lv*CFrame.Angles(0,math.pi/2,2)).lookVector*0.25) end val2.Value = false val.Value = false end end end script.Parent.ClickDetector.MouseClick:connect(onC)