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

This is not working?

Asked by 8 years ago
local e = Instance.new("Explosion")
e.Parent = script.Parent.Parent.bullet.bulletPart
e.Position = Vector3.new(script.Parent.Parent.bullet.bulletPart.Position.X, script.Parent.Parent.bullet.bulletPart.Position.Y, script.Parent.Parent.bullet.bulletPart.Position.Z)
script.Parent.Parent.bullet.bulletPart:remove()

What is suppose to happen is a a different chunk of code(that was not included here) moves the bullet(with CFrame) a certain distance and then after that, this chunk of code then goes off. The bullet works fine and everything but the explosion is not going off. Why?

bullet is a model and bulletPart is the part inside the model.

0
Is there an error? Is the explosion supposed to go off when it hits a object? If so, do you have a touched event for it? Please give more detail with your question. M39a9am3R 3210 — 8y
0
It is suppose to go off after the bullet stops moving. alex_ander 163 — 8y

Answer this question