For some reason Surface GUI is not working I have a Imagebutton for a frame to open and close but when I try and click the button it's not highlighting with the black mouse arrow so I don't know what is wrong here's the script I'm using,
local List = script.Parent.Parent.List
local OpenClose = script.Parent
local bounce = false
script.Parent.MouseButton1Click:connect(function()
if bounce == false then
List:TweenSizeAndPosition(UDim2.new(0,500,0,300),UDim2.new(0,150,0,250),"Out","Back",1)
OpenClose:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Back", 1)
wait(1)
bounce = true
elseif bounce == true then
List:TweenSizeAndPosition(UDim2.new(0,0,0,0),UDim2.new(0,150,0,250),"Out","Back",1)
OpenClose:TweenPosition(UDim2.new(0, 0, 0, 0), "Out", "Back", 1)
wait(1)
bounce = false
end
end)

2 comments
So where would I put this in the script above to make it function?
Sorry complete noob when comes to scripting...