I’m quite embarrassed to admit that I need some help after previously getting help from people.
Context: I’m attempting to create a cutscene that triggers when a player joins the game.
local RunService = game:GetService("RunService") local Character = game.Players.LocalPlayer.Character or game.Players.LocalPlayer.CharacterAdded:Wait() local Camera = workspace.Camera function Cinematic() local CinematicsFolder = Game.ServerStorage.MoonAnimatorExports.TEST_Camera.Frames -- Path to your folder! local CurrentCameraCFrame = workspace.CurrentCamera.CFrame Camera.CameraType = Enum.CameraType.Scriptable local FrameTime = 0 local Connection Connection = RunService.RenderStepped:Connect(function(DT) local NewDT = DT * 60 FrameTime += NewDT local NeededFrame = CinematicsFolder.Frames:FindFirstChild(tonumber(math.ceil(FrameTime))) if NeededFrame then Character.Humanoid.AutoRotate = false Camera.CFrame = NeededFrame.Value else Connection:Disconnect() Character.Humanoid.AutoRotate = true Camera.CameraType = Enum.CameraType.Custom Camera.CFrame = CurrentCameraCFrame end Game.Players.PlayerAdded:Connect(Cinematic) end) end
Disclaimer: This is not my script. I’ve only written parts to call the function and the path to my folder. The original creator of the script is linked here.
I’ve also looked at the Script output and found nothing relating to the actual script, leading me to think that I messed up with calling the function.
If anyone could point out, or potentially fix what is wrong with this script, it’ll be greatly appreciated.