Sorry for bad english. I have a problem.
I have this in my StarterGUI->
ScreenGUI (Name: SHOP) -> Frame -> ImageLabel -> ImageButtons.
In one of my "ImageButtons" i have the " X " for close the Frame. I have insert this LocalScript inside ->
local frame = script.Parent.Parent:WaitForChild('SHOP').Frame
local toggle = false
script.Parent.MouseButton1Click:connect(function()
if toggle == false then
frame:TweenPosition(UDim2.new(0.564,-250,0.637,-200),'Out', 'Bounce', 1)
toggle = true
else
frame:TweenPosition(UDim2.new(0.5,-250,1.7,-200),'Out', 'Bounce', 1)
toggle = false
end
end)
But not work in game, if i press the "X" Nothing work. When people press the "X" i need the Frame go to this coords ->
frame:TweenPosition(UDim2.new(0.5,-250,1.7,-200),'Out', 'Bounce', 1)
Thanks

2 comments
Spiega meglio ( no che spiegi male, ma non capisco anchora il problema )
Praticamente , quando si apre lo SHOP, in alto possiede la X per chiuderlo, e non riesco a far funzionare la X che mi chiuda il Frame dello Shop