Why does my camera not animate even if the camera type is scriptable?
Alright. I am making a Kurama cage or room and the camera animation isn't functioning. It is executing but the actual animation never plays. I set the camera type to scriptable but it still didn't work. Take a look at my script. Tell me if there are any issues.
01 | local tweenService = game:GetService( "TweenService" ) |
02 | local Info = TweenInfo.new( |
05 | Enum.EasingStyle.Sine, |
06 | Enum.EasingDirection.Out, |
13 | local CamInfo = TweenInfo.new( |
16 | Enum.EasingStyle.Sine, |
17 | Enum.EasingDirection.Out, |
25 | script.Parent.ClickDetector.MouseClick:connect( function () |
27 | local Cam = workspace.CurrentCamera |
28 | Cam.CameraType = 'Scriptable' |
29 | local CamGoals 1 = { CFrame = workspace.CONCIOUSROOM.CameraPosition 2. CFrame } |
30 | local CamGoals 2 = { CFrame = workspace.CONCIOUSROOM.CameraPosition 3. CFrame } |
31 | local CamTween 1 = tweenService:Create(Cam, CamInfo, CamGoals 1 ) |
32 | local CamTween 2 = tweenService:Create(Cam, CamInfo, CamGoals 2 ) |
35 | local LeftGate = game.Workspace.CONCIOUSROOM.LeftGateSeal |
36 | local LeftPoles = game.Workspace.CONCIOUSROOM.LeftPoles |
37 | local NewLeftGatePos = game.Workspace.CONCIOUSROOM.LeftGateSealPosition 2 |
38 | local NewLeftPolesPos = game.Workspace.CONCIOUSROOM.LeftPolesPosition 2 |
39 | local RightGate = workspace.CONCIOUSROOM.RightGateSeal |
40 | local RightPoles = workspace.CONCIOUSROOM.RightPoles |
41 | local Seal = workspace.CONCIOUSROOM.Seal |
42 | local NewRightGatePos = workspace.CONCIOUSROOM.RightGateSealPosition 2 |
43 | local NewRightPolesPos = workspace.CONCIOUSROOM.RightPolesPosition 2 |
44 | local NewSealPos = workspace.CONCIOUSROOM.SealPosition 2 |
45 | local Goals 1 = { Position = NewLeftGatePos.Position, Orientation = NewLeftGatePos.Orientation } |
46 | local Goals 2 = { Position = NewLeftPolesPos.Position, Orientation = NewLeftPolesPos.Orientation } |
47 | local Goals 3 = { Position = NewRightGatePos.Position, Orientation = NewRightGatePos.Orientation } |
48 | local Goals 4 = { Position = NewRightPolesPos.Position, Orientation = NewRightPolesPos.Orientation } |
49 | local Goals 5 = { Position = NewSealPos.Position, Orientation = NewSealPos.Orientation } |
50 | local Tween 1 = tweenService:Create(LeftGate, Info, Goals 1 ) |
51 | local Tween 2 = tweenService:Create(LeftPoles, Info, Goals 2 ) |
52 | local Tween 3 = tweenService:Create(RightGate, Info, Goals 3 ) |
53 | local Tween 4 = tweenService:Create(RightPoles, Info, Goals 4 ) |
54 | local Tween 5 = tweenService:Create(Seal, Info, Goals 5 ) |
60 | workspace.CONCIOUSROOM.trusses:Destroy() |
Please help me, I have always wanted to do this and I am so close. If you found an error please tell me.