Explosion script works but the explosion doesnt show up. Its a server script parenetd to a part. Help
edit: The explosion seems to be created its just not visible!!!
Edit: THE 1st PRINT STATMENT DOES SHOW UP MY BAD
wait(3)
local boom = Instance.new("Explosion")
boom.Parent = script.Parent
boom.Position = script.Parent.Position
boom.ExplosionType = "NoCraters"
boom.BlastRadius = 10
boom.BlastPressure = 10
print("Explosion created")
boom.hit:Connect(function(part)
if part.Parent:FindFirstChild("Humanoid") then
part.Parent:TakeDamage(100)
else
print("No humanoid detected")
end
end)
kry1068
(Flash)
December 30, 2021, 10:01pm
#2
Check for an instance called “Explosion” via to script
kry1068
(Flash)
December 30, 2021, 10:01pm
#3
script.Parent:FindFirstChild(“Explosion”)
NyrionDev
(Nyrion)
December 30, 2021, 10:03pm
#4
In order for boom.hit
line to run, the first print does show up. So my assumption is that the explosion is visible and the print does work but way to early for you to see(perhaps try increasing the wait).
Hello flash!
The explosion does damage to me so i know its created.
1 Like
kry1068
(Flash)
December 30, 2021, 10:04pm
#6
Oh so you don’t need the first print statement
The script starts out as disabled and is re activated, And boom.hit does run since it has done damage to me
Well its not running, even though the explosion seems to be created. The main issue is that I cant see the explosion.
1 Like
kry1068
(Flash)
December 30, 2021, 10:05pm
#9
Hmm… Let me read again character
Rs
kry1068
(Flash)
December 30, 2021, 10:09pm
#10
script.Parent.Touched:Connect(function(hit)
hit.Parent:Explode()
end)
The explosion can already hit the player. The explosion isnt visible im saying.
kry1068
(Flash)
December 30, 2021, 10:11pm
#12
Yh but have you tried this? Charssss
:Explode() Isnt a thing. The script you gave me doesnt accomplish what is wrong with my script. The script works but the explosion isnt visible.
kry1068
(Flash)
December 30, 2021, 10:14pm
#14
In one of my projects, a RPG fires a bullet. When the bullet tournee a part, it explodes with :Explode()
kry1068
(Flash)
December 30, 2021, 10:15pm
#15
Touches not tournee CHARACETRS
:Explode() has to be defined first in that case(I guess). And the player isnt exploding. Thats not the issue with the script, teh explosion isnt visible but ist there. The explosion damage its just invisible.
kry1068
(Flash)
December 30, 2021, 10:16pm
#17
Maybe make a particle visible during the Explosion
The particle would probably show but that wont show anything on why the explosion isnt working.
Also teh first print does show up my bad
kry1068
(Flash)
December 30, 2021, 10:19pm
#19
QUACK! I have to go to sleep. Look on DevHub or look around Elon Musk’s mansion. My best solutions for now! Good night. QUACK!
I uh- ok?? why quak and what…