Adding an error fixes the code

This is not clickbait, although I wish it was. Here’s me fixing my code by slapping an error on the end of it… is there some weird hangup with TweenService that I’m not aware of? Leaning towards writing my own now because of this.

Normal code, not working…

Fixed by adding an error… lol

1 Like

Can you please use


and show us the script?

rule 1: if it works do not question why

just be happy it works

Share your script so that we can assist you with identifying any potential issues.

1 Like

I’ve isolated this issue here in a simplified script, something very wrong is going on here I think…

local TS = game:GetService("TweenService")

local val ="NumberValue")
val.Value = 0

	print(num) --We should see this...

local info =,Enum.EasingStyle.Cubic,Enum.EasingDirection.InOut,-1,false,0)
TS:Create(val,info,{Value = 100}):Play()

error("Fix") --Comment out this line to break the code