Manipulating Camera on Spawn but better. (Worse)

Hello there. I wanted to make a mini loading screen for my newest game. However, the camera tweens in a weird way. Take a look below.
robloxapp-20210604-1902197.wmv (177.3 KB)

Here is my script (local)

local playMainGui = script.Parent
local player = game.Players.LocalPlayer
local character = player.Character or player.CharacterAdded:Wait()
script.Parent.Parent.Main.Enabled = false
script.Parent.Enabled = true
local camera = game.Workspace.CurrentCamera
script.Parent.Parent.Main.Enabled = false
local tweenService = game:GetService("TweenService")
local info = TweenInfo.new(2, Enum.EasingStyle.Sine)

camera.CameraType = Enum.CameraType.Scriptable
game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, false)
camera.CameraSubject = workspace:FindFirstChild("CutScene")
camera.CFrame = workspace.CutScene.CFrame

game.Lighting.Blur.Size = 9
character:WaitForChild("Humanoid").WalkSpeed = 0
wait(math.random(4, 6))

	repeat wait() until 	game:GetService("ReplicatedStorage").EventsAndFunctions.AddPlayer
	game:GetService("ReplicatedStorage").EventsAndFunctions.AddPlayer:FireServer()
	camera.CameraSubject = player.Character:WaitForChild("Humanoid")
local tween = tweenService:Create(camera, info, {CFrame = CFrame.new(character.HumanoidRootPart.CFrame.LookVector * 8, character.HumanoidRootPart.Position)})
tween:Play()
camera.CameraType = Enum.CameraType.Custom
	script.Parent.Parent.Main.Enabled = true
	game.StarterGui:SetCoreGuiEnabled(Enum.CoreGuiType.Backpack, true)
	character:WaitForChild("Humanoid").WalkSpeed = 16
	game.Lighting.Blur.Size = 6.5
	script.Parent:Destroy()

1 Like

Video won’t load for me, could you maybe reupload with a different format?

2 Likes