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)
--//Variables plr = game.Players.LocalPlayer repeat wait() until plr.Character -- makes sure everything loads first plrGui = plr.PlayerGui.Note Frame = plrGui.Frame Tb = Frame.Close --//Script Tb.MouseButton1Click:connect(function() Frame:Destroy() end)
The line i added at the annotation mark makes sure everything loads, it works in studio because it loads instantly but in server scripts load before actual server stuff so latency issues emerge. I added it so it waits till the server loads the character.