So ive been working on a core and i made it so when a event fires it explodes i wanted it to like make a button to make it explode but rn im testing the explosion by fireing the event ingame also i wanted to make it so before it explodes there are more but i wanted it to do lightning before it explodes but then i got the error
heres my code:
local Core = script.Parent local Event = game.ReplicatedStorage.CoreExplode local ExplodingParticle = Core.ExplodingParticle
Event.OnServerEvent:Connect(function() Core.Alert:Play() wait(10) Core.Explode:Play() local ExplodePart = Core:FindFirstChild("ExplodePart") ExplodePart.Transparency = 0 ExplodePart.Code.Disabled = false Core.Parent.Union.Anchored = false Core.Parent.Union.Script.Disabled = true Core.Parent.Union2.Anchored = false Core.Parent.Union2.Script.Disabled = true Core.Parent.Union3.Anchored = false Core.Parent.Union3.Script.Disabled = true ExplodingParticle.Enabled = true for i = 1,100,1 do Core.ExplodingParticle.Size = Core.ExplodingParticle.Size + Vector3.new(0.1,0.1,0.1) wait(0.01) end Core.Explode:Play() for i = 1,200,1 do ExplodePart.Size = ExplodePart.Size + Vector3.new(5,5,5) wait(0.01) end wait(1) ExplodePart.Size = Vector3.new(4.16, 4.16, 4.16) ExplodePart.Transparency = 1 ExplodePart.Position = Vector3.new(-53.14, 6.267, 2.12) Core:Destroy() ExplodingParticle.Enabled = false end)
I just saw why it erroroed its cuz i did vector3.new on a particle size but particle sizes dont have vector3's oof xd