Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

How do i tween a NumberSequence for a Beam?

Asked by 5 years ago

i am trying to make controllable lights with tween i made some without tween but i want to make one with it. the surfacelight and transparency works but i cant get the beam to change with it. is it possible to make the bean tween transparency?

Here's the script i made its located in a TextButton


for i,v in pairs (game.Workspace:GetChildren()) do if v.Name == (script.Parent.Parent.Parent.name1.Value) then local gui = script.Parent local ts = game:GetService("TweenService") local child1 = v.Main.LED local child2 = v.Main.LED.SurfaceLight local child3 = v.Main.LED.Beam info = TweenInfo.new(0.5)-----amount of time to tween local goal1 = {} goal1.Transparency = 0 local goal2 = {} goal2.Brightness = 1 local goal3 = {} goal3.Transparency = NumberSequence.new (0.5,1) script.Parent.MouseButton1Click:connect(function() ts:Create(child1,info,goal1):Play() ts:Create(child2,info,goal2):Play() ts:Create(child3,info,goal3):Play() end) end end
0
you cant tween a numbersequence Elixcore 1337 — 5y
0
oh doctorbut212 2 — 5y

Answer this question