I’m sure the title is self explanatory. Here’s an example of what I’m talking about:
function Tween(GUI,Property)
game:GetService("TweenService"):Create(GUI,TweenInfo.new(1,"Linear","InOut"),{Property = 0})
end
Tween(script.Parent,"BackgroundTransparency")
As you can see, I’m wanting the BackgroundTransparency
of script.Parent
to be tweened. How can I accomplish this by sending the GUI object with it’s property to a function where there it will be tweened? Thanks in advance.