Roblox Developer Logo Get Started Learn Roblox API Reference Community



PluginSecurity: This member cannot be used in scripts, but is usable in the command bar and plugins.
Property of Workspace icon.pngWorkspace

Value Type: float
Description: FallenPartsDestroyHeight sets the height at which falling characters and parts are destroyed. This property can be read by scripts, but can only be written to by plugins, the command bar, or the properties window. If a part hits the FallenPartsDestroyHeight, and it was the last object inside of a Model icon.pngModel, the Model will be destroyed as well.


Click the link to go to the place with a working version of this example: [Destroy Height Place].

The place is not copy-locked so it can be opened in Studio by anyone.

Server side script

-- setting the spawn location
local SpawnLocation ="SpawnLocation")
local spawnPosition = SpawnLocation.Position
-- reading the destroy height and seeting the camera view
local height = game.Workspace.FallenPartsDestroyHeightlocal OFFSET =,60,-20)
local camera = game.Workspace.CurrentCamera
local FIELD_OF_VIEW = 50
local cameraPosition = spawnPosition + OFFSET
camera.CoordinateFrame =, spawnPosition)	
while true do
	-- creating a part
	local Part ='Part')
	-- adding it to the workspace
	Part.Parent = game.Workspace
	-- setting it's position
	Part.Position = spawnPosition +,height,0) + OFFSET