Tweening Beam Width and CurveSize

How do I tween a beams Curvesize and width I tried this but it doesn’t seem to work?
How do I fix this?
Here’s the code.

local TweenService = game:GetService(“TweenService”)

local beam = script.Parent

local Info = TweenInfo.new(

5,

Enum.EasingStyle.Sine,

Enum.EasingDirection.Out,

10000,

false,

0

)

local Goals =

{

Width0 = math.random(10000,20000);

Width1 = math.random(10000,20000);

CurveSize0 = math.random(50000,80000)

}

local W0Tween = TweenService:Create(beam, Info, Goals)

Sorry for my bad scripting.

2 Likes

Add :Play() to the end of this to make it play.

4 Likes