this is my script
local camera = game.WorkSpace.Camera
game.ReplicatedStorage.HatchEgg.OnClientEvent:Connect(function(pet)
camera.CameraType = Enum.CameraType.Scriptable
camera.CFrame = studio.CamPart.CFrame
local tweenInfo = TweenInfo.new(
2,
Enum.EasingStyle.Bounce,
Enum.EasingDirection.Out,
0,
false,
0
)
local tween = TweenService:Create(camera, tweenInfo, {CFrame = CFrame.new(petClone.PrimaryPart.Position + (petClone.PrimaryPart.CFrame.lookVector * 5) + Vector3.new(0,0.75,0)),petClone.PrimaryPart.Position})
tween:Play()
wait(1)
for i, v in pairs(studio.Particle:GetChildren()) do
if v:IsA("ParticleEmitter") then
v.Enabled = false
camera.CameraType = Enum.CameraType.Custom
studio.Egg.Transparency = 0
studio.Egg.Size = Vector3.new(5.143, 6.3, 5.243)
petClone:Destroy()
end
end
end)
script does not have any errors also its a part of alvin bloxs script from video pet hatching system but i dont see anything wrong in this script please help

1 comment
you forgot to add stop.