I am trying to make a script that changes the position of an object to another object.
local CloseLeft = workspace:FindFirstChild("CloseLeft")
local OpenLeft = workspace:FindFirstChild("OpenLeft")
CloseLeft.Touched:Connect(function(part)
wait(1)
CloseLeft.Position = OpenLeft.Position
end)

3 comments
Are you using a module?
Well, I do not. Probably an external plugin. But, it still doesn't work. It doesn't send any errors but it doesn't work. The script is placed inside the workspace.
There's nothing wrong with this script in particular. Please check what module is throwing an error. If you're saying this script is not inside a module, then it can't be this script that's actually throwing an error.