local h = script.Parent.Humanoid
local alarm = script.Parent.Parent.AlarmLight
local ting = true
h.Died:connect(function()
if ting == true then
ting = false
script.Parent.Head.Transparency = 1
script.Parent.Torso.Transparency = 1
script.Parent.Head.CanCollide = false
script.Parent.Torso.CanCollide = false
alarm.Material = 'Neon'
alarm.SurfaceLight.Enabled = true
wait(120)
script.Parent.Head.Transparency = 0
script.Parent.Torso.Transparency = 0
script.Parent.Head.CanCollide = true
script.Parent.Torso.CanCollide = true
alarm.Material = 'Metal'
alarm.SurfaceLight.Enabled = false
ting = true
end
end)
The CanCollide of the Head and Torso is still True after I shot down the humanoid. Please give me some tips about the Humanoid so I can fix the problem. |