Assistance with Tweening Error

  1. What do you want to achieve?
    I am trying to tween a beams transparency and color.

  2. What is the issue?
    It keeps giving an error saying “TweenService:Create property named ‘Transparency’ on object ‘light’ is not a data type that can be tweened”

  3. What solutions have you tried so far?
    I looked through developer forum and found nothing helpful.

	ts:Create(v.Head.Beam.light, TweenInfo.new(1, Enum.EasingStyle.Linear), {Transparency = NumberSequence.new(0)}):Play()
	ts:Create(v.Head.Beam.light, TweenInfo.new(1, Enum.EasingStyle.Linear), {Color = ColorSequence.new(Color3.fromRGB(179, 0, 255))}):Play()

Correct me if I am wrong but I’m pretty sure your out of luck. Within the error it states that the property ‘Transparency’ cannot be tweened.

I see. Really weird why beam properties cannot be tweened.

Because it uses NumberSequence which cannot be tweened. Pretty sure NumberSequence is there in the first place to allow you to animate the transparency either way.

Unfortunately, the transparency property of a Beam is a number sequence, so you can’t tween it. You can try making a custom function to tween number sequences though.

There is a way to tween NumberSequences - by using NumberValues. I explained it in detail here:

1 Like