maybe I didn’t formulate the question correctly. I’m building my game and I don’t understand how this script works. I just took it from the internet. I would like to get some help from you to figure out how it works
script.Parent.Humanoid.Died:connect(function() --this function connects each time the script.Parent dies. This means the script must be loaded in the player.
local caboom = Instance.new(“Explosion”, script.Parent) -- creates an explosion instance parented to the player (Why did they use caboom instead of kaboom? lol)
caboom.Position = script.Parent.HumanoidRootPart.position --makes the explosion at the HumanoidRootPart of the player.
caboom.ExplosionType = Enum.ExplosionType.NoCraters -- makes it so it won't destroy Terrain
caboom.DestroyJointRadiusPercent = 0 -- ensures the explosion doesn't break the joints of other players as well.
end)