Hi! I'm making a GUI and i was tweening the size of a TextButton. When doing this, I encountered an error. The error was this:
Unable to cast double to token
Script 'Players.KordGamer.PlayerGUI.ScreenGUI.Frame.CreditsButton.S', Line 2.
and
Unable to cast double to token
Script 'Players.KordGamer.PlayerGUI.ScreenGUI.Frame.CreditsButton.S', Line 6.
Here is the code :
function Hover()
script.Parent:TweenSize(0.05, 200, 0.05, 50)
end
function StopHovering()
script.Parent:TweenSize(0, 200, 0, 50)
end
function Click()
--TODO: Make click function
end
script.Parent.MouseEnter:connect(Hover)
script.Parent.MouseLeave:connect(StopHovering)
Any help is appreciated. Thank you!

2 comments
Aw dang, you posted before me. By the way, the parameters after the UDim2 part is not necessary, they are already set by default
I usually like to set them myself so I know they've been set correctly, but thanks anyway.