local geez = Player.PlayerGui:WaitForChild("Price")
local Main = geez.Frame.Main
workspace.Folder.sad.ClickDetector.MouseClick:Connect(function()
Main:TweenPosition(UDim2.new(.5,0,.5,0),"Out","Quad",.2)
print("test")
end)
--other lines of code
local Main = geez:WaitForChild("Frame"):WaitForChild("Main")
also, I’m not sure why you have a nested event declaration inside of your .MouseClick event, it might be better to bring it outside of that event scope.
Sorry, I don’t know if this had anything to do with my post. If you need help with scripting please post in #help-and-feedback:scripting-support and wait patiently!