Broken script. No detection

You can write your topic however you want, but you need to answer these questions:

  1. What do you want to achieve? Every part in one part collapsing

  2. What is the issue? no detection

  3. What solutions have you tried so far? none

After that, you should include more details if you have any. Try to make your topic as descriptive as possible, so that it’s easier for people to help you!
Why does it not work

print("Yes load")
local found = false


local v = workspace.Ring
local part = workspace.Ring
while wait() do
	print"oofa"
	print(found)
	local region = Region3.new(v.Position - (v.Size/2), v.Position + (v.Size/2))
	local FoundParts = workspace:FindPartsInRegion3WithWhiteList(region, script.Parent:GetDescendants())
    print(#FoundParts)
	if #FoundParts > 0 then
		found = true
		for i, v in pairs(FoundParts) do
			if v:IsA("Part") then
				v.Anchored = false
				end
			end
	end
end

Please do not ask people to write entire scripts or design entire systems for you. If you can’t answer the three questions above, you should probably pick a different category.

You have said print with out ( and )

print"oofa"

Do

print("oofa")

Still no. Only a few parts work

Can you show your output? Go to View tab and click Output if it isn’t in your screen already.
It will show errors if there is one.

1 Like

What is the output of print(#FoundParts) ?

If there isn’t any error shown in output then it must be that u r not using parts but using other variation like meshpart or such. Try:

if v:IsA("BaseParts") then --Instead of "v:IsA("Parts")"

I assuming you are trying to dectect parts because you are looking for a part Ring.
"\_(.-.)_/"

im making every part inside ring collapse