I’m trying to make exploded parts emit smoke and then after a few seconds have the smoke clear smoothly
I’m not sure what the problem is I have tried to fix it but nothing has worked
Here is the part of the script that I am having the problem with, it all works great until the line labeled “Smoke”
explode.Hit:Connect(function(part, distance)
if part and distance < 50 and part.Name == "Part" then
part:Destroy()
elseif part.Name == "Destroy" then
part:Destroy()
elseif part.Name == "Part" then
part.Material = "Pebble"
part.BrickColor = BrickColor.new(199)
--Smoke--
local smoke = game.ServerStorage.Smolder:Clone() smoke.Parent = part
delay(10, function()
for i = 50, 5, 1 do
part.Smolder.Size = NumberSequence.new(i, i)
wait(.5)
end
end)
end
end)