I want the frame to reach the position (0,50,0,0) and print ok but it won't,why?
frame = script.Parent wait(1) print("Start") frame:TweenPosition(UDim2.new(0,50,0,50),"Out","Bounce",1,false) if frame.Position == UDim2.new(0,50,0,0) then print("Ok") end
Edited because I made a typo
You put 0,50,0,50 not 0,50,0,60 You put the below Now it says
frame:TweenPosition(UDim2.new(0,50,0,0),"Out","Bounce",1,false)
not
frame:TweenPosition(UDim2.new(0,50,0,60),"Out","Bounce",1,false)
If you want it to raise please ask me.
WOrking script
frame = script.Parent wait(5) print("Start") frame:TweenPosition(UDim2.new(0,50,0,50),"Out","Bounce",1,false) wait(1) if frame.Position == UDim2.new(0,50,0,50) then print("Ok") end
Put in script in a frame!!