I do not know what this output error "Unable to cast string to token" means? Can someone tell me what it means please, thank you.
hint = game.Workspace.MainScript.hint hint.Changed:connect(function() script.Parent.Text = hint.Value if hint.Value == "" then script.Parent:TweenPosition(UDim2.new(0, 0, -0.1, 0),"Linear",2.4, "InOut") else script.Parent:TweenPosition(UDim2.new(0, 0, 0.1, 0),"Linear", 2.4, "InOut") -- Eror is on this line. end end)
You simply messed up the arguments to TweenPosition.
bool TweenPosition ( UDim2 endPosition, EasingDirection easingDirection = Out, EasingStyle easingStyle = Quad, float time = 1, bool override = false, Function callback = nil )
It should be corrected to...
script.Parent:TweenPosition(UDim2.new(0, 0, 0.1, 0), Enum.EasingDirection.InOut, Enum.EasingStyle.Linear, 2.4)
Your error is probably from attempting to cast "InOut" to an Enum value, which is the "token".