So I made this cutscene script, but it just... doesn't work in game? Works in studio but in game it does nothing. I thought maybe the camera just hadn't loaded in, so I added a wait, and even tried making a whole loading screen, but nope, in fact the wait CONSISTENTLY makes it NOT work. Please, scriptures of the studio, give me your strength.
LUA!
wait(4)
local cam = game.Workspace.CurrentCamera
cam.CameraType = Enum.CameraType.Scriptable
cam:GetPropertyChangedSignal("CameraType"):Wait()
cam.FieldOfView = 30
local noise = game.SoundService
local intro = game.Workspace.workwork.Humanoid.Animator:LoadAnimation(game.ReplicatedStorage:WaitForChild("Animations"):WaitForChild("Intro")) :: AnimationTrack
print('loaded')
wait(5)
game.ReplicatedStorage.starteranim:FireServer()
intro:Play()
v = script.MoonAnimator2Saves.a
cam.CFrame = v.Value
wait(5.167)
v = script.MoonAnimator2Saves.c
cam.CFrame = v.Value
wait(2.333)
v = script.MoonAnimator2Saves.e
cam.CFrame = v.Value
wait(1.2)
v = script.MoonAnimator2Saves.g
cam.CFrame = v.Value
wait(1)
game.Players.LocalPlayer.PlayerGui.Outfitgui.Enabled = true
game.Workspace.workwork:Destroy()
local e = game.Workspace.workaswell
e.Head.Transparency = 0
e['Left Arm'].Transparency = 0
e['Left Leg'].Transparency = 0
e['Right Arm'].Transparency = 0
e['Right Leg'].Transparency = 0
e.Torso.Transparency = 0
e.Head.Face.Transparency = 0
!LUA