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

How do I tween a part transparency?

Asked by 4 years ago

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

Log in to vote
0
Answered by
exobyteXL 290 Moderation Voter
4 years ago
Edited 4 years ago
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

Ad

Answer this question