How to hide UI Frame like BedWars

Thank you so much!!! It worked! This is my final code:

Mouse.Button1Up:Connect(function()
	print(PlayerGui:GetGuiObjectsAtPosition(Mouse.X,Mouse.Y))
	if #PlayerGui:GetGuiObjectsAtPosition(Mouse.X,Mouse.Y) == 0 then
		CloseAdvertiseFrame()
	end
end)

I changed my code to when player doesn’t click anything → exit Frame
Thank you @kingerman88 and @BIGM_7 (especially you)!

2 Likes

I just tried replectaing your problem but couldn’t get the same response

1 Like

Hmm Interesting… I’ll try it again later. I gtg. Thank you btw.

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.