Anchor all parts in your game easily

I know this is not an advanced resource, but it could come in handy once you’ve forgot to anchor all of the parts in your game.

WARNING: DO NOT USE THIS RESOURCE IF YOU HAVE PARTS IN YOUR GAME YOU WANT UNANCHORED!

Script:

task.spawn(function()
	for a,b in pairs(game:GetDescendants()) do
		if b:IsA("MeshPart") or b:IsA("BasePart") then
			if b.Anchored == false then
				b.Anchored = true
			end
		end
	end
end)

What will this do?

This will grab every single part or mesh part within the game and anchor it automatically for you. Run this in the command bar and it will work. You can put this in a script if you want, but it’s probably a better idea to put it in the command bar.

(No hate or feedback is needed, this is a simple command bar script.)

Here’s an easier method to this in 1 line:

for _,v in game:GetDescendants() do if v:IsA("BasePart") then v.Anchored = true end end

I am not gonna hate on this but this is just… and odd resource, it’s not really that beneficial you know?

3 Likes

You can also just select the workspace and click the “Anchor” button in the topbar

4 Likes

Why? All it takes is what @FloofyNezzled said.

1 Like

or go to the properties window and set the Anchored property to true

He is an alt account of an suspended user, and at his suspended account, he made a tutorial which isn’t that substantial

2 Likes