Just use a variable to store the firstSpawn state.
local firstSpawn = true function SpawnEventHandler() if firstSpawn then -- Do your thing firstSpawn = false end end