Skip to content

Instantly share code, notes, and snippets.

local Players = game:GetService("Players")
local UIS = game:GetService("UserInputService")
local CoreGui = game:GetService("CoreGui")
repeat task.wait() until game:IsLoaded()
local player = Players.LocalPlayer
-- Remove existing GUI if present
if CoreGui:FindFirstChild("MyGui") then