How do i delete whole model with script?

Example:
There are 2 rooms
First roon - location where you are spawning
Second room - next location where you have to move
When player enters next room, and first room closes, i wanna delete first room so it makes less lag. How do i do it?

Simply call :Destroy() or slowly delete it using a for loop.

local FirstRoom = Lib.Map.FirstRoom
-- When first room closes
FirstRoom:Destroy()
1 Like

Its looks so simple lol, thanks for the script

No problem