Collapse Sidebar




The length of time, in seconds, that a ForceField will be applied to a Player character spawning at this SpawnLocation. If Duration is zero, the ForceField is never created, and it will not trigger the Instance/DescendantAdded or Instance/ChildAdded events.

This default value of this property is 10 seconds.

The duration feature allows developers to easily give Players protection from ‘spawn killing’ which can be a frustrating experience for players. Note, ForceFields will only protect users from Explosions and Weapons that use Humanoid/TakeDamage to deal damage or otherwise check for a ForceField.

Code Samples

SpawnLocation ForceField

This sample will create a neutral SpawnLocation in the Workspace that’ll give players spawning a ForceField for 20 seconds.