So I tried making a tweenService Gui and I got this. "Unable to cast bool to token" this is the code:
local gui = script.Parent
local MaD = gui.Frame.MaD
local FP = gui.Frame.FP
local CD = gui.Frame.CD
local menuFrame = gui.Frame
local opened = false
gui.Open.MouseButton1Click:Connect(function()
if opened == false then
gui.Open.Text = "Close"
gui.Frame:TweenSizeAndPosition(
UDim2.new(0.381, 0, 0.231, 0),
"Out",
"Sine", -- Style
false,
nil -- The line roblox gives me an error at.
)
end
end)
Are there any fixes to this problem?

1 comment
Any errors. If not try printing the scripts that dont work.