I made my script, the script works, but when it moves the brick, the second brick (which I used a weld plugin to weld with the first brick) doesn't move with it![EDIT2] Changed to CFrame, but now get an "Expected Vector3 got CFrame" Here is my moving script
repeat
wait(2.5)
local victim = workspace:FindFirstChild("Player")
print(victim.Torso.CFrame.X)
wait(0.0001)
repeat
wait(0.000001)
repeat
wait(0.000001)
if script.Parent.CFrame.X ~= victim.Torso.CFrame.X then
if victim.Torso.CFrame.X > script.Parent.CFrame.X then
script.Parent.CFrame = CFrame.new(script.Parent.CFrame + Vector3.new(1,0,0))
elseif victim.Torso.CFrame.X < script.Parent.CFrame.X then
script.Parent.CFrame = Vector3.new(script.Parent.CFrame - CFrame.new(1,0,0))
elseif victim.Torso.CFrame.X == script.Parent.CFrame.X then
print("found")
end
end
until script.Parent.Position.X == victim.Torso.Position.X
until 9 + 10 == 21
until 9 + 10 == 21
Please help!!! Thank you!!!

1 comment
The smallest wait() you can use is renderstepped.