Ok, so I was trying to make it so when you click the button, the frame comes out of the screen smoothly by using TweenPosition.
It somehow shows an error in this simple script.
local mainround = script.Parent.Parent.Parent.Parent.MainRoundify
script.Parent.MouseButton1Click:Connect(function()
mainround:TweenPosition(
UDim2.new(-3.5, 0,0.605, 0),
1,
"In",
"Quad",
false
)
end)
Where is the script located at?
The script is located in the StarterGui inside of a Round frame
What type of script?
It is a server script, the normal script we use.
The error it shows on the output says:
Unable to cast string to token
The erroring line is Line: 4
What did you do to try and fix it?
I tried removing the other script that was inside the TextButton, tried putting it in a local script rather than a server script. I removed some code lines that was inside the script and those were:
local function ShowGui()
mainround:TweenPosition(
uDim2.new(0.501, 0,0.605, 0),
1,
"In",
"Quad",
false
)
end
Thanks so much if you answered, I'm fully patient.

2 comments
Try replacing 'In' and 'Quad' with: Enum.EasingDirection.In and Enum.EasingStyle.Quad
Also, use a LocalScript