Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

How do I tween a part transparency?

So far I have:

local ts = game:GetService("TweenService")
local ti = TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.InOut,0,false,0)
local light = script["Holy light"]
local lightproptran = {light.Transparency == 0.1}
local lightprop = ts:Create(light,ti,lightproptran)

Any help would be appreciated, I cannot seem to solve the problem at hand. :(

1 answer

✓ Accepted answer
local ts = game:GetService("TweenService")
local ti = TweenInfo.new(0.5,Enum.EasingStyle.Sine,Enum.EasingDirection.Out,0,false,0)
local light = script["Holy light"]
local lightproptran = {Transparency = 0.1}
local lightprop = ts:Create(light,ti,lightproptran)

More about TweenService

This discussion is preserved as it was. New answers, comments, and votes are closed.