Removed Posting

Article content removed by author.

Why do you want to manipulate the transparency value? Either way you could manipulate the transparency and brightness values at the same time without tween. If you do want to use tween then you could just add brightness to the table with transparency.

{Transparency = 1, Brightness = x}

You could make a variable named x or something like that and set it as math.random, then apply that to the transparency and brightness values.

local TweenService = game:GetService("TweenService")
local Part = script.Parent
local x = math.random() --you can set the max and minimum if you want to but im not doing that

local tweenInfo = TweenInfo.new(5, Enum.EasingStyle.Linear)

local Tween = TweenService:Create(Part, tweenInfo , {Transparency = x, Brightnes = x})
Tween:Play()

Im pretty sure this would work.

2 Likes

try this:

local light = script.Parent -- put light/lamp here

while wait(0.5) do
	if math.random(1, 10) == 1 then-- bigger the number less chance or slower flickering.
		light.Enabled = true
	else
		light.Enabled = false
	end
end