I've made a script that is supposed to identify the brick's position, and I don't know how to make it work properly. Here's what I have come up with so far.
tim = 0 while wait(1) do if script.parent.Value.Value == Vector3(0, 0, 0) then print("done, it took ".. tim .." seconds") else tim = tim + 1 end end
while true do script.Parent.Value.Value = script.Parent.Position wait(0.01) end
That's the script to update the value, but i don't think you really need that,to update the value you need a loop and this loop runs 100 times in a second, So why you hadn't just used if script.Parent.Position == Vector3.new(0, 0, 0) then
in line 3?
here is the thing you can do with your script :
local tim = 0 while wait(1) do if script.Parent.Position == Vector3.new(0, 0, 0) then print("done, it took ".. tim .." seconds") else tim = tim + 1 end end