local ShopGui = game.StarterGui.ShopUI.ShopGui script.Parent.MouseButton1Click:connect(function() ShopGui:TweenPosition(UDim2.new(0.15,0,0.0023,0), 'Out', 'Sine', .7) end)
I've tried countless times modifying this but it doesn't seem to work
A few things I need to know.
Try
local Player = game:GetService('Players').LocalPlayer local UIService = Player:WaitForChild('PlayerGui') local ShopGui = UIService.ShopUI.ShopGui script.Parent.MouseButton1Click:connect(function() ShopGui:TweenPosition(UDim2.new(0.15,0,0.0023,0), 'Out', 'Sine', .7) end)
:: Run this from a Local Script.