GUI doesn't work when it is placed in a playerAdded function, I am using tween, and I am not seeing what I usually see with tweening GUIs.
local onOff = script.Parent
local canShop
local shopFrame = script.Parent.Parent.MainFrame
local easingStyle = Enum.EasingStyle.Quad
shopFrame.Position = UDim2.new(1.1,0,0.319,0)
onOff.MouseButton1Click:Connect(function()
if canShop then
canShop = false
shopFrame:TweenPosition(
UDim2.new(0.854, 0, 0.319, 0),
Enum.EasingDirection.Out,
easingStyle,
0.8
)
else
canShop = true
shopFrame:TweenPosition(
UDim2.new(1.1, 0, 0.319, 0),
Enum.EasingDirection.Out,
easingStyle,
0.5
)
end
end)
Thanks for the Help!
