Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

invalid argument #1 (Vector3 expected, got NumberSequence)?

Asked by
GOECWW 2
4 years ago

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)

0
Please indent your code (the lua button on the post creator) and also in which line does It error? iOwn_You 543 — 4y
0
in Core.ExplodingParticle.Size = Core.ExplodingParticle.Size + Vector3.new(0.1,0.1,0.1) GOECWW 2 — 4y

1 answer

Log in to vote
0
Answered by
GOECWW 2
4 years ago

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

0
now i got this error attempt to perform arithmetic (add) on NumberSequence and number i also just deleted the vector3.new part and just did + 1 GOECWW 2 — 4y
Ad

Answer this question