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

Why is the explosion not appearing?

local RS = game:GetService("ReplicatedStorage")
local Block = script.Parent
local Ammunation = RS:WaitForChild("Ammunation")
local Cannonball = Ammunation.Cannonball
local ClickD = script.Parent.ClickDetector
local PosBlock = script.Parent.Parent.Copy





ClickD.MouseClick:Connect(function(plr)
	local ClonedCannonball = Cannonball:Clone()
	ClonedCannonball.Name = "CannonballCloned"
	ClonedCannonball.Parent = workspace
	ClonedCannonball.CFrame = CFrame.new(PosBlock.Position)
	ClonedCannonball.Anchored = false
	ClonedCannonball.Velocity = Vector3.new(0,50,75)
	wait(2.5)
	local Xplosive = Instance.new("Explosion",ClonedCannonball)
	
	ClonedCannonball:Destroy()
end)


The instance explosion is not appearing anywhere on the block, do I have to set position?

1 answer

✓ Accepted answer

Because after the Explosion appears you're immediately deleting the Cannonball you should add a wait(1) or something to it, and make it transparent

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