Why does this script not work?

Okay so im making an animated conveyor belt with a switch. Everything works fine, except for this. When I hit the switch, i have a tween to where the beam’s texture speed will gradually go from 0 to 0.3. Why doesn’t this work?

local tweenOn = tweenservice:Create(script.Parent.Beam, TweenInfo.new(5),{ TextureSpeed = 0})
			
tweenOn:Play()

and

local tweenOff = tweenservice:Create(script.Parent.Beam, TweenInfo.new(5), {TextureSpeed = 0.3})
tweenOff:Play()

Your tween time of 5 seconds will allow further Tweens to cancel those before, which means the final outcome of the previous tween will not reach the final TextureSpeed of 0.3, since it has been cancelled.

1 Like

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.