Here is my script
1 | if posTag = = nil then |
2 | print ( "check1" ) |
3 | stretch.Size = (hand.Position - arm.Position).Magnitude |
4 | stretch.CFrame = CFrame.new(arm.Position:Lerp(hand.Position, 1 / 2 ),hand.Position) |
5 | print ( "check2" ) |
6 | end |
The result is that it print "check1" but it doesn't print "check2" and there is no error.
Why??
1 | if posTag = = nil then |
2 | print ( "check1" ) |
3 | stretch.Size = (hand.Position - arm.Position).Magnitude |
4 | wait( 1 ) |
5 | stretch.CFrame = CFrame.new(arm.Position:Lerp(hand.Position, 1 / 2 ),hand.Position) |
6 | print ( "check2" ) |
7 | end |
Try using a wait script