Hi, so my question is how to unanchor a model after 5 secs its spawned in. So basically i have a disaster game with map changing script. But i want to make it so players and disasters are able to break the map which means my map needs to be unanchored. BUT, as soon as new map comes, it starts lagging super hard and the map starts breaking by itself because its unanchored. But if i make it anchored then the lag is gone and map is good but no one can break it.. So how do i make it so after new map spawns in it wont break by itself? Or how do i make that if the map spawns in then it stays anchored but after 5 seconds it will unanchor? Heres the script: (Field... is used as a map)

print("Change Map Script Loaded")
	while true do
	wait(1)
	game.Lighting.Field1:clone().Parent = game.Workspace
	wait(60)
	local msg = Instance.new("Hint")
	msg.Parent = game.Workspace
	msg.Text = ("Changing Arena...")
	wait(4)
	msg:remove()
	game.Workspace.Field1:remove()
	wait(1)
	game.Lighting.Field2:clone().Parent = game.Workspace
	wait(60)
        local msg = Instance.new("Hint")
	msg.Parent = game.Workspace
	msg.Text = ("Changing Arena...")
	wait(4)
	msg:remove()
	game.Workspace.Field2:remove()
	wait(1)
        game.Lighting.Field3:clone().Parent = game.Workspace
	wait(60)
	local msg = Instance.new("Hint")
	msg.Parent = game.Workspace
	msg.Text = ("Changing Arena...")
	wait(4)
	msg:remove()
	game.Workspace.Field3:remove()
	wait(1)
        game.Lighting.Field4:clone().Parent = game.Workspace
	wait(60)
	local msg = Instance.new("Hint")
	msg.Parent = game.Workspace
	msg.Text = ("Changing Arena...")
	wait(4)
	msg:remove()
	game.Workspace.Field4:remove()
	wait(1)

5 comments

0

Lighting should Not be used as storage. And remove and clone are deprecated, use Destroy and Clone. Hints are also deprecated use GUIs.

0

Are Field1, Field2, Field3, and Field4 just parts or are they models?

0

to unanchor in 5 sec just do wait(5) then workspace.(map).Anchored = false

0

Fields are models @RYAN1565

0

Can you show me how the script should look like? @incapaz