why is this not working, its just an event that fires when the character dies, the script is under StarterCharacterScripts please help
local Character :Model = script.Parent
local Humanoid :Humanoid = Character.Humanoid
local FaceTexture = "http://www.roblox.com/asset/?id=130187161010472"
local ServerScriptService = game:GetService("ServerScriptService")
local RagdollModule = require(ServerScriptService.RagdollModule)
function OnDeath()
if not Character then return end
print("death")
RagdollModule.Ragdoll(Character)
RagdollModule.BloodShit(Character.HumanoidRootPart)
Character.Head.Decal.Texture = FaceTexture
Character.Head.Decal.TextureContent = FaceTexture
end
Humanoid.Died:Connect(OnDeath)