I know I can put a part where I have the fallenpartsdestroyheight set to, but is there a function or something that shows if a player has fallen out of the world?
You should put a block right where blocks are destroyed and enlarge it so it cover a lot of area. Then, add ontouch scripts inside the block. Make sure to anchor and turn off can collide on the block. Here is the script I would use:
script.Parent.Touched:Connect(function(hit) local hum = hit.Parent:FindFirstChild("Humanoid") if hum then print(hit.Parent.Name .. " has fell out of the world.") end end)
You can connect the ChildRemoved
event to the player's character and compare if the HRP's Y pos is less than the base's y pos:
game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local HRP = character:FindFirstChild("HumanoidRootPart") character.ChildRemoved:Connect(function(childRemoved) if childRemoved == HRP then local YValue = HRP.Position.Y if YValue < workspace.Base.Position.Y then print(player, "fell out of the world") end end end) end) end)