Here is my code:
script.Parent.inv.MouseButton1Click:connect(function()
local inventory = script.Parent.Parent.inventory
inventory.Visible = true
inventory:TweenPosition(UDim2.new(0.01, 0, 0.1, 0), "Out", "Bounce", 1.2)
end)
That part works, but this part doesnt:
script.Parent.close.MouseButton1Click:connect(function()
script.Parent:TweenPosition(UDim2.new(0, -100,0.098, 0),"Out", "Elastic", 1.2)
script.Parent.Visible = false
end)
The position i set for the frame is 0, -100,0.098,0 btw. pls help!

2 comments
thanks
Accept answers!