Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

My script suddenly stop running. or it skip only this part of script. why?

Here is my script

if posTag == nil then
				print("check1")
				stretch.Size = (hand.Position - arm.Position).Magnitude
				stretch.CFrame = CFrame.new(arm.Position:Lerp(hand.Position,1/2),hand.Position)
				print("check2")
end

The result is that it print "check1" but it doesn't print "check2" and there is no error.

Why??

1 answer

if posTag == nil then
                print("check1")
                stretch.Size = (hand.Position - arm.Position).Magnitude 
wait(1)
                stretch.CFrame = CFrame.new(arm.Position:Lerp(hand.Position,1/2),hand.Position)
                print("check2")
end

Try using a wait script

4 comments

0

wait

0

You can not use "then" like this. That wrong!

0

Try using a wait command

0

Ok I found the problem. It's on line 3. Size must be vector3 but I put it a number

This discussion is preserved as it was. New answers, comments, and votes are closed.