Hello. I am writing some scripts and while editing TweenPosition I had an error.
CODE:
local Inventory = script.Parent.Parent
local CloseInventory = script.Parent
CloseInventory.MouseButton1Click:Connect(function()
Inventory:TweenPosition(
UDim2.new(0.459, 0,1, 1),
"OutIn",
"Sine",
3,
true,
nil
)
end)
ERRORS:
Unable to cast string to token
Error happens on line 5

1 comment
you have to type the full Enum.EasingStyleblablablabla.OutIn not just the name, also without quotes