Player turns into food after death [Survival Game]

  1. What do you want to achieve?
    If the player (animal) has died, I want the body to despawn immediately and at the position where the player has died a block of meat spawns! (I already got a block and a working hunger system,I just want the block to spawn at the location where the player has died maybe via cloning the block or whatever y’all suggest!)

  2. What is the issue?
    I don’t really know how I am supposed to write it in a script, I kinda need a code example (not a full code!) because I am aware of what I could use. Things like humanoid.died, :Clone(), etc.!

  3. What solutions have you tried so far?
    I was not able to find anything related to my issue on the devhub and on Youtube.

2 Likes

Example script

Humanoid.Died:Connect(function()
    local clone = meat:Clone()
    clone.CFrame = HumanoidRootPart.CFrame
    clone.Parent = workspace
end)
4 Likes

Thank you! That will help me a lot