it is truly an "Eye-popping moment".
But seriously why does it lag(this has happened to me before too)?
local function DestructEye()
local HolderPos = Holder.Position
Holder:Destroy()
local NParticles = math.random(5,13)
local ParticleInfo = TweenInfo.new(0.5)
local ParticleInfo2 = TweenInfo.new(1)
for i=1,NParticles,1 do
local Particle = Instance.new("Frame",CogParent)
Particle.BackgroundColor3 = Color3.fromRGB(255,255,255)
Particle.Parent = CogParent
local PartS = math.random(100,400)*0.001
Particle.Size = UDim2.new(PartS,0,PartS,0)
local Corner = Instance.new("UICorner",Particle)
Corner.CornerRadius = UDim.new(1,0)
local RandomDirectionX = math.random(100,300) * 0.01
local RandomX = math.random(1,2)
if RandomX == 2 then
RandomDirectionX = RandomDirectionX * (-1)
end
local RandomDirectionY = math.random(100,500) * 0.01
local GoTo1 = UDim2.new(RandomDirectionX*0.5,0,RandomDirectionY*(-0.05),0)
local ParticleTween = TS:Create(Particle,ParticleInfo,{Position = GoTo1})
ParticleTween:Play()
game.Debris:AddItem(ParticleTween,0.5)
local function WaitALittle2()
ParticleTween.Completed:Wait()
local GoTo2 = UDim2.new(RandomDirectionX,0,RandomDirectionY,0)
local ParticleTween2 = TS:Create(Particle,ParticleInfo2,{Position = GoTo2,Size = UDim2.new(0,0,0,0)})
ParticleTween2:Play()
game.Debris:AddItem(ParticleTween2,1)
game.Debris:AddItem(Particle,1)
end
coroutine.wrap(WaitALittle2)()
end
end
