-
What do you want to achieve? Keep it simple and clear!
Smoke particle applied to all sorrounding parts hit by blast explosion -
What is the issue? Include screenshots / videos if possible!
Smoke only applied to a single part not all sorrounding parts - What solutions have you tried so far? Did you look for solutions on the Developer Hub?
function onTouch(hit)
local ExpAnim = game.ServerStorage.Smoke:Clone()
ExpAnim.Parent = hit -- this is the attempt to add smoke to all parts but no success
local e = Instance.new("Explosion")
e.BlastPressure = 80000
e.BlastRadius = 95
e.Position = script.Parent.Position
e.Hit:Connect(function(part, distance)
if part.ClassName == "Part" then
local ExpAnim = game.ServerStorage.Smoke:Clone()
ExpAnim.Parent = part -- tried using this method of explosion.hit but parts' still clean without the smoke appearing with it
end
end)
e.Parent =workspace
local s = Instance.new("Sound")
s.SoundId = "rbxassetid://440431180"
s.PlaybackSpeed = .75
s.Volume = 5
s.MaxDistance = 30000
s.PlayOnRemove = true
s.Parent = script.Parent
script.Parent:Destroy()
print("OOOooof")
end
script.Parent.Touched:connect(onTouch)
Any help?