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

How to change an argument of TweenInfo in a script after already applied?

--example

Info = TweenInfo.new(
	5,
	Enum.EasingStyle.Bounce, --Easing style
	Enum.EasingDirection.In,
	0,
	false,
	0
)

--[[How can i change one of those arguments later on?]]

1 comment

0

You could simply use an event, in which the event triggers a change within the TweenInfo.

1 answer

✓ Accepted answer

TweenInfo is immutable. This means you cannot change the properties of the object after creation. This is the same case with Vector3s, as you cannot change the X, Y, or Z values after you make one. You will need to reconstruct another using TweenInfo.new().

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