✓ Accepted answer
You first of all didnt specify the easing style and the easingdirection, the easingdirection is not that important, but the easing style is, you can see all of the easing styles by going to the roblox wiki, and you cant add stuff to the table by just typing the table name and then the property, you use table.insert(tablename, value), in this case if you used that then it wouldnt work properly, and then you can just add the values in to one single line, you dont need 3 seperate lines for one piece of code.
for i, v in pairs(script.Parent:GetChildren()) do
if not v:IsA("LocalScript") then
if v:IsA("Frame") then
local tween = TweenService:Create(v, TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.In), { BackgroundTransparency = 1 })
else
local tween = TweenService:Create(v, TweenInfo.new(2, Enum.EasingStyle.Sine, Enum.EasingDirection.In), { TextTransparency = 1 })
end
end
end
1 comment
Ah. thank you, I don`t usually use tweens so this helps. Thanks again.