This errors, I can’t call a variable anything else that holds tweeninfo, other than “TweenInfo”?
local TweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) -- Tween info for the size change
local TweenInfoReturn = TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) -- Tween info for the size change
local TweenInfo = TweenInfo.new(0.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) -- Tween info for the size change
local TweenInfoReturn = TweenInfo.new(1.5, Enum.EasingStyle.Sine, Enum.EasingDirection.Out) -- Tween info for the size change
Sometimes something as simple as a line down can fix it
'new' is not a valid member of TweenInfo - Client - control:204
Stack Begin - Studio
21:08:33.443 Script 'Workspace.matt1020304050.control', Line 204 - Studio - control:204
21:08:33.443 Stack End - Studio
This is because you assign TweenInfo.new(...) to the word TweenInfo on the first line and on the second line,
the script treats the word TweenInfo, as if it is the variable you previously created and not as the reserved word you meant it to be. So the value of the second variable turns out to be TweenInfo.new(...).new(...) which will obviously error. By renaming the first variable to something other than TweenInfo, the reserved word keeps its meaning.