Char = script.Parent Hum = Char:FindFirstChild("Humanoid")
if Hum == nil then script:Destroy() end
parts = {} fires = {}
function Trans()
workspace.die:Play() workspace.die2:Play() Joints = Char:GetChildren() for a = 1,#Joints do if Joints[a]:IsA("BasePart") then table.insert(parts,Joints[a]) Joints[a].Anchored = false Joints[a]:BreakJoints() end end for c = 1,40 do Run.Heartbeat:wait() for b = 1,#parts do end end
end
function TransDelay() for c = 1,50 do Run.Heartbeat:wait() for b = 1,#parts do parts[b].Transparency = parts[b].Transparency + 0.02 end end for b = 1,#parts do parts[b]:Destroy() end end
Run = game:GetService("RunService")
Trans() TransDelay()
wait(1)
script:Destroy()
uh idk, im not that good, but have you tried setting variable for humanoid.parent? if you do that then uh do a if statement checking if the player's head exists then make another if statement checking if there is a face (called "Decal" btw) and if there is just get the id and change it to the decal you want to change it to.
if it doesnt work, please state so.