Hi. I have been trying for awhile to get edit my script to only drop pizza when killed by another player.
it currently drops when ever a player dies
any help/pointers are appreciated
i think the changes need to be made here-----
local char = script.Parent local hum = char.Humanoid local players = game.Players local pizza = game.ReplicatedStorage.Pizza local debounce = false hum.Died:Connect(function() local player = players:GetPlayerFromCharacter(char) pizza.CFrame = char.HumanoidRootPart.CFrame pizza:Clone().Parent = game.Workspace game.Workspace.Pizza.Touched:Connect(function(hit) local otherPlayer = players:GetPlayerFromCharacter(hit.Parent) local otherHum = hit.Parent:FindFirstChild("Humanoid") if otherHum and otherHum ~= hum and not debounce then debounce = true
------- within here
Thanks credit for the current code https://www.youtube.com/watch?v=b-D4HBIQ0LQ