A question about how to detect changes on CFrame

Okay. Then something like this should work:

-- Server code
local part = <your part>
local prevCFrame = part.CFrame
local detectChange = game:GetService("RunService").HeartBeat:Connect(function()
	if part.CFrame ~= prevCFrame then
		part:Destroy()
		detectChange:Disconnect() -- I have not used this before, but I think this is correct.
	end
end)
1 Like