It is around --// Prevent Duplicate of Gui
local gui = script.Parent
local mFrame = gui:WaitForChild("mFrame")
local classFrame = mFrame:WaitForChild("classFrame")
local lastFrame = mFrame:WaitForChild("lastFrame")
local startFrame = mFrame:WaitForChild("startFrame")
script:WaitForChild("uid").Value = game:GetService("HttpService"):GenerateGUID()
local plr = game:GetService("Players").LocalPlayer
--// Prevent Duplicate of Gui
for i,v in pairs(plr.PlayerGui:GetChildren()) do
if v:IsA("ScreenGui") then
if v:FindFirstChild("scHandler") then
if v.scHandler.uid.Value ~= script:WaitForChild("uid").Value then
v:Remove()
end
end
end
end
--// Button Detections
mFrame:WaitForChild("closeBtn").MouseButton1Down:Connect(function()
gui:Remove()
end)
