What i want to do is to detect if an object's cframe changed and then set the cframe to its original cframe.
Example script:
local Character = workspace:FindFirstChild(tostring(game:GetService("Players").LocalPlayer.Name))
local Part = Character and Character:FindFirstChild("HumanoidRootPart") or false
Part.Changed:Connect(function(prop)
if tostring(prop) == "CFrame" then
Part[prop] = CFrame.new(100,100,100) --Example cframe
end
end)
However, CFrame doesnt not work with .Changed event. What can i do?

1 comment
i only used .Changed event once or twice so i really don't know what to do