I am trying to make a script so that when the value (parent of the Script), is true, a block of code fires. For some reason, when the value is true (I checked this by the way), the code does not fire. Also, the script is not in server storage, or any other place where a script won't run.
Here is my code:
if script.Parent.Value == true then
print("Success")
script.Parent.Parent.Parent = workspace
script.Parent.Parent.Position = Vector3.new(-70.844, 45.947, -233.831)
script.Parent.Parent.Position = Vector3.new(-0.28, 0.01, -2.68)
workspace.tele1.Position = Vector3.new(-75.923, 37.99, -223.249)
workspace.tele2.Position = Vector3.new(1368, -74.568, -53.679)
end

4 comments
By the way, the script, its parent (which is an object) and its parent (a folder) are parented to Workspace.
Can you explain what the script is supposed to do?
Its supposed to position a union a certain way.
Your if-statement is evaluated upon runtime, it's not going to yield for you. If you want to run a block of code when the condition is met, you must wrap it in a callback passed to Instance:GetPropertyChangedSignal("Value"):Connect(Callback)