Hi, I would just like to know how to clone a part to the position where a player stood when they die. However, I dont want the part to spawn there if the player dies by falling into the void, otherwise nobody would be able to steal the collectible. Is there a way to specifically only clone the part if the player doesn’t fall off the map?
set a boundary where the item can spawn
Humanoid.Died:Connect(function()
if HumanoidRootPart.Position.Y < -250 then return end -- we are under 250 studs below roblox sea level if you call it that then we won't make the part.
local Part = instance.new("BasePart", workspace)
part.Anchored = true
part.Position = HumanoidRootPart.Position
end)