The part is not being cloned, I don’t know if the camera’s even being made. Here’s the local script:
local player = game.Players.LocalPlayer
local MainGUI = player.PlayerGui:WaitForChild("MainParticlesGUI")
local MainFrame = MainGUI.MainFrame
local ReplicatedStroage = game:GetService("ReplicatedStorage")
local ConfettiCode = script.Parent
local ViewportFrame = ConfettiCode.ViewportFrame1
local ViewportCamera = Instance.new("Camera")
local StarFetti = ReplicatedStroage:WaitForChild("StarFetti")
if ViewportFrame:IsA("ViewportFrame") then
if ViewportFrame ~= nil then
local FettiClone = StarFetti:Clone()
task.wait(3)
if FettiClone ~= nil then
FettiClone.Parent = ViewportFrame
ViewportFrame.CurrentCamera = ViewportCamera
ViewportCamera.Parent = ViewportFrame
ViewportCamera.CFrame = CFrame.lookAt(FettiClone.Position + Vector3.new(0, 4, 0), FettiClone.Position)
print("Cloned")
end
end
end