This script is in a LocalScript and when I click on a TextButton then Frame does not get removed. This script only works in Studio and not in the real game.
--//Variables
plr = game.Players.LocalPlayer
plrGui = plr.PlayerGui.Note
Frame = plrGui.Frame
Tb = Frame.Close
--//Script
Tb.MouseButton1Click:connect(function()
Frame:Destroy()
end)
