So what happens is, my brick moves every 10 seconds and only by a little bit. It seems like it skips the FOR loop and goes right ahead instead of finishing the function. I dont know whats going on and i need help, please :)
while true do
wait(10)
if game.Workspace.MainScript.Open == true then
for i = 0, 55 do
wait()
script.Parent.CFrame = script.Parent.CFrame + Vector3.new(0, 0, 0.5)
end
end
end

1 comment
your problem seems to be line 3. Is "Open" a value type, BoolValue, i mean? If so, after MainScript.Open add .Value