-- Free GUI Script -- This is a basic GUI for general use local FreeGui = {} FreeGui.Version = "1.0.0" FreeGui.Name = "Free GUI" -- Create a unique identifier for this GUI FreeGui.GuiId = "FreeGui_" .. game:GetService("HttpService"):GenerateGUID(false) -- Function to create the main GUI function FreeGui:CreateMainGui() local ScreenGui = Instance.new("ScreenGui") ScreenGui.Name = "FreeGuiMain" ScreenGui.ResetOnSpawn = false -- Add a unique attribute to identify this as the free GUI ScreenGui:SetAttribute("GuiType", "Free") ScreenGui:SetAttribute("GuiId", self.GuiId) -- Main Frame local MainFrame = Instance.new("Frame") MainFrame.Name = "MainFrame" MainFrame.Size = UDim2.new(0, 300, 0, 200) MainFrame.Position = UDim2.new(0.5, -150, 0.5, -100) MainFrame.BackgroundColor3 = Color3.fromRGB(40, 40, 40) MainFrame.BorderSizePixel = 0 MainFrame.Active = true MainFrame.Draggable = true MainFrame.Parent = ScreenGui -- Title Bar local TitleBar = Instance.new("Frame") TitleBar.Name = "TitleBar" TitleBar.Size = UDim2.new(1, 0, 0, 30) TitleBar.BackgroundColor3 = Color3.fromRGB(30, 30, 30) TitleBar.BorderSizePixel = 0 TitleBar.Parent = MainFrame -- Title Text local TitleText = Instance.new("TextLabel") TitleText.Name = "TitleText" TitleText.Size = UDim2.new(1, -30, 1, 0) TitleText.Position = UDim2.new(0, 10, 0, 0) TitleText.BackgroundTransparency = 1 TitleText.Text = self.Name .. " (Free Version)" TitleText.TextColor3 = Color3.fromRGB(255, 255, 255) TitleText.TextSize = 16 TitleText.Font = Enum.Font.SourceSansBold TitleText.TextXAlignment = Enum.TextXAlignment.Left TitleText.Parent = TitleBar -- Close Button local CloseButton = Instance.new("TextButton") CloseButton.Name = "CloseButton" CloseButton.Size = UDim2.new(0, 30, 0, 30) CloseButton.Position = UDim2.new(1, -30, 0, 0) CloseButton.BackgroundColor3 = Color3.fromRGB(180, 0, 0) CloseButton.BorderSizePixel = 0 CloseButton.Text = "X" CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255) CloseButton.TextSize = 18 CloseButton.Font = Enum.Font.SourceSansBold CloseButton.Parent = TitleBar -- Content Frame local ContentFrame = Instance.new("Frame") ContentFrame.Name = "ContentFrame" ContentFrame.Size = UDim2.new(1, 0, 1, -30) ContentFrame.Position = UDim2.new(0, 0, 0, 30) ContentFrame.BackgroundColor3 = Color3.fromRGB(50, 50, 50) ContentFrame.BorderSizePixel = 0 ContentFrame.Parent = MainFrame -- Add some feature buttons local features = {"Speed", "Jump", "ESP", "Teleport"} for i, feature in ipairs(features) do local button = Instance.new("TextButton") button.Name = feature .. "Button" button.Size = UDim2.new(0.8, 0, 0, 30) button.Position = UDim2.new(0.1, 0, 0, 20 + (i-1) * 40) button.BackgroundColor3 = Color3.fromRGB(60, 60, 60) button.BorderColor3 = Color3.fromRGB(100, 100, 100) button.Text = feature button.TextColor3 = Color3.fromRGB(255, 255, 255) button.TextSize = 16 button.Font = Enum.Font.SourceSans button.Parent = ContentFrame -- Example function for the button button.MouseButton1Click:Connect(function() print("Free GUI: " .. feature .. " feature activated") -- Implementation would go here end) end -- Close button functionality CloseButton.MouseButton1Click:Connect(function() ScreenGui:Destroy() end) -- Return the GUI return ScreenGui end -- Function to initialize the GUI function FreeGui:Init() local player = game:GetService("Players").LocalPlayer if player then local gui = self:CreateMainGui() gui.Parent = player.PlayerGui -- Let the server know this player is using the free GUI -- This is what the premium GUI will detect local remoteEvent = game:GetService("ReplicatedStorage"):FindFirstChild("GuiTypeEvent") if remoteEvent then remoteEvent:FireServer("Free", self.GuiId) end print("Free GUI initialized for " .. player.Name) end end -- Execute FreeGui:Init() return FreeGui