Hey! im making some hitboxes for my shooter game. They are supposed to collide with the world. I want that collision to disappear when the player dies. The event for Died doesn’t appear to be firing. Here is the script for the collisions:
script.Parent.Died:Connect(function()
print ("the player has died")
local hitbox = script.Parent.Parent.hitbox
hitbox.BrickColor = "Navy Blue"
hitbox.CanCollide = false
wait(5)
hitbox.CanCollide = true
end)
the part is supposed to lose collisions and turn navy blue when the character dies.
this script is inside “Humanoid” inside startercharacter.
the print inside the function isn’t printing, so the function isn’t firing. Any help?