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.
local tweenService = game:GetService("TweenService")
local Info = TweenInfo.new(
3,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
local CamInfo = TweenInfo.new(
3,
Enum.EasingStyle.Sine,
Enum.EasingDirection.Out,
0,
false,
0
)
script.Parent.ClickDetector.MouseClick:connect(function()
local Cam = workspace.CurrentCamera
Cam.CameraType = 'Scriptable'
local CamGoals1 = {CFrame = workspace.CONCIOUSROOM.CameraPosition2.CFrame}
local CamGoals2 = {CFrame = workspace.CONCIOUSROOM.CameraPosition3.CFrame}
local CamTween1 = tweenService:Create(Cam, CamInfo, CamGoals1)
local CamTween2 = tweenService:Create(Cam, CamInfo, CamGoals2)
CamTween1:Play()
CamTween2:Play()
local LeftGate = game.Workspace.CONCIOUSROOM.LeftGateSeal
local LeftPoles = game.Workspace.CONCIOUSROOM.LeftPoles
local NewLeftGatePos = game.Workspace.CONCIOUSROOM.LeftGateSealPosition2
local NewLeftPolesPos = game.Workspace.CONCIOUSROOM.LeftPolesPosition2
local RightGate = workspace.CONCIOUSROOM.RightGateSeal
local RightPoles = workspace.CONCIOUSROOM.RightPoles
local Seal = workspace.CONCIOUSROOM.Seal
local NewRightGatePos = workspace.CONCIOUSROOM.RightGateSealPosition2
local NewRightPolesPos = workspace.CONCIOUSROOM.RightPolesPosition2
local NewSealPos = workspace.CONCIOUSROOM.SealPosition2
local Goals1 = {Position = NewLeftGatePos.Position, Orientation = NewLeftGatePos.Orientation}
local Goals2 = {Position = NewLeftPolesPos.Position, Orientation = NewLeftPolesPos.Orientation}
local Goals3 = {Position = NewRightGatePos.Position, Orientation = NewRightGatePos.Orientation}
local Goals4 = {Position = NewRightPolesPos.Position, Orientation = NewRightPolesPos.Orientation}
local Goals5 = {Position = NewSealPos.Position, Orientation = NewSealPos.Orientation}
local Tween1 = tweenService:Create(LeftGate, Info, Goals1)
local Tween2 = tweenService:Create(LeftPoles, Info, Goals2)
local Tween3 = tweenService:Create(RightGate, Info, Goals3)
local Tween4 = tweenService:Create(RightPoles, Info, Goals4)
local Tween5 = tweenService:Create(Seal, Info, Goals5)
Tween1:Play()
Tween2:Play()
Tween3:Play()
Tween4:Play()
Tween5:Play()
workspace.CONCIOUSROOM.trusses:Destroy()
end)
Please help me, I have always wanted to do this and I am so close. If you found an error please tell me.
