local function Unanchor()
	for _, i in pairs (game.Workspace.Car.Wheels:GetChildren()) do
		if i:IsA("Part") then
			i.Anchored = false
		end
	end
end

game.Workspace.Test.Touched:Connect(function(hit)
	Unanchor()
end)

4 comments

2

try if i:IsA("BasePart") instead of if i:IsA("Part")

0

Thanks it worked!

0

Idk how to put the question as answerd

0

Try game.Workspace.Test.Touched:Connect(function(hit) 10 Anchor = False