here is my script (its local)
local player = game.Workspace.localPlayer
local repStorage = game:GetService("ReplicatedStorage")
local remote = repStorage:FindFirstChild("ButtonClick")
mouse = player:GetMouse()
local idoit = script.Parent
UI = game.StarterGui.KiKidied.tooxtbutton --idk why i named it that no judge
idoit.MouseButton1Click:Connect(function()
player.PlayerGui.UI.Enabled = true
end)

2 comments
...
Edit: Put code in a code block