Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

i make an explosion but it doesnt go to part? help pls?

here is the script (please don't judge me, i am new to codeing)

local part = Instance.new("Part")
local exp = Instance.new("Explosion")
exp.Position = part.Position -- doesn;t work here

2 comments

0

you never parented the explosion to anything

0

thx but i couldn accept cause you commented

1 answer

✓ Accepted answer

I think I understand your issue, but I do not work with explosions much. I'm pretty sure, as theking commented, that you need to parent the explosion to something in order to let the explosion travel to that object.

local part = Instance.new("Part")
local exp = Instance.new("Explosion", part) -- this is now parented to the part.
-- (Removed because you can't change position of an explosion) exp.Position = part.Position

If you have any questions or this doesn't work, feel free to comment and I will try my best to help.

This discussion is preserved as it was. New answers, comments, and votes are closed.