No problem, just put that into the Connect function and change = progress for your eight beams to = ns.
i couldnt even comprehend it char limit
i somehow managed to find my own solution using numbervalues, now time for some tedious editing
There is a slight typo in that code, all you need to do is remove "numberSequence = " from the code.
I wouldn’t say it’s always better to do it this way. It’s often a lot simpler to just use the normal tween behavior. If you have multiple objects like the OP does it can definitely be more neat to do it this way (only a tween and instance to clean up).
The transparency property of the beam is a number sequence. To tween it you need to tween to a number sequence value.
Here is an example based on your code:
local beam = workspace.CoreLasers.CoreLaser1.Cone.Attachment.Beam
local goalTransparency = NumberSequence.new(1)
local tweenInfo = TweenInfo.new(0.3)
local tween = game.TweenService:Create(beam, tweenInfo, goalTransparency)
-- Play the tween etc.
tl;dr:
Instead of setting the goal to a number, number
, set the goal to NumberSequence.new(number)
managed to apply this into an infinite loop that follows a number changing the transparency
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.