Pastebin

Paste #31271: No description

< previous paste - next paste>

Pasted by easy

Download View as text

-- Free GUI Script for Roblox
-- This is a basic free version of the GUI

local FreeGui = {}
FreeGui.Version = "Free-1.0.0"

-- Create ScreenGui
local screenGui = Instance.new("ScreenGui")
screenGui.Name = "FreeGuiSystem"
screenGui.ResetOnSpawn = false

-- Main Frame
local mainFrame = Instance.new("Frame")
mainFrame.Name = "MainFrame"
mainFrame.Size = UDim2.new(0, 250, 0, 300)
mainFrame.Position = UDim2.new(0.5, -125, 0.5, -150)
mainFrame.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
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(35, 35, 35)
titleBar.BorderSizePixel = 0
titleBar.Parent = mainFrame

-- Title
local titleText = Instance.new("TextLabel")
titleText.Name = "TitleText"
titleText.Size = UDim2.new(1, -10, 1, 0)
titleText.Position = UDim2.new(0, 10, 0, 0)
titleText.BackgroundTransparency = 1
titleText.TextColor3 = Color3.fromRGB(255, 255, 255)
titleText.TextSize = 16
titleText.Font = Enum.Font.SourceSansBold
titleText.Text = "Free GUI"
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.BackgroundTransparency = 1
closeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
closeButton.TextSize = 16
closeButton.Font = Enum.Font.SourceSansBold
closeButton.Text = "X"
closeButton.Parent = titleBar

-- Content Frame
local contentFrame = Instance.new("Frame")
contentFrame.Name = "ContentFrame"
contentFrame.Size = UDim2.new(1, -20, 1, -40)
contentFrame.Position = UDim2.new(0, 10, 0, 35)
contentFrame.BackgroundTransparency = 1
contentFrame.Parent = mainFrame

-- Feature Buttons
local function createButton(name, text, posY)
    local button = Instance.new("TextButton")
    button.Name = name
    button.Size = UDim2.new(1, 0, 0, 30)
    button.Position = UDim2.new(0, 0, 0, posY)
    button.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
    button.BorderSizePixel = 0
    button.TextColor3 = Color3.fromRGB(255, 255, 255)
    button.TextSize = 14
    button.Font = Enum.Font.SourceSans
    button.Text = text
    button.Parent = contentFrame
    
    -- Button hover effect
    button.MouseEnter:Connect(function()
        button.BackgroundColor3 = Color3.fromRGB(70, 70, 70)
    end)
    
    button.MouseLeave:Connect(function()
        button.BackgroundColor3 = Color3.fromRGB(60, 60, 60)
    end)
    
    return button
end

local button1 = createButton("Button1", "Feature 1", 0)
local button2 = createButton("Button2", "Feature 2", 40)
local button3 = createButton("Button3", "Feature 3", 80)

-- Feature implementation
button1.MouseButton1Click:Connect(function()
    print("Free GUI: Feature 1 activated")
    -- Feature 1 functionality here
end)

button2.MouseButton1Click:Connect(function()
    print("Free GUI: Feature 2 activated")
    -- Feature 2 functionality here
end)

button3.MouseButton1Click:Connect(function()
    print("Free GUI: Feature 3 activated")
    -- Feature 3 functionality here
end)

-- Status label
local statusLabel = Instance.new("TextLabel")
statusLabel.Name = "StatusLabel"
statusLabel.Size = UDim2.new(1, 0, 0, 20)
statusLabel.Position = UDim2.new(0, 0, 1, -30)
statusLabel.BackgroundTransparency = 1
statusLabel.TextColor3 = Color3.fromRGB(200, 200, 200)
statusLabel.TextSize = 12
statusLabel.Font = Enum.Font.SourceSans
statusLabel.Text = "Free Version - Limited Features"
statusLabel.Parent = contentFrame

-- Version label
local versionLabel = Instance.new("TextLabel")
versionLabel.Name = "VersionLabel"
versionLabel.Size = UDim2.new(1, 0, 0, 20)
versionLabel.Position = UDim2.new(0, 0, 1, -10)
versionLabel.BackgroundTransparency = 1
versionLabel.TextColor3 = Color3.fromRGB(150, 150, 150)
versionLabel.TextSize = 12
versionLabel.Font = Enum.Font.SourceSans
versionLabel.Text = "v" .. FreeGui.Version
versionLabel.Parent = contentFrame

-- Close button functionality
closeButton.MouseButton1Click:Connect(function()
    screenGui:Destroy()
end)

-- Remote event to notify server this is a free GUI user
local remoteEvent = Instance.new("RemoteEvent")
remoteEvent.Name = "FreeGuiEvent"
remoteEvent.Parent = game:GetService("ReplicatedStorage")

-- Send identification to server
local function identifyToServer()
    remoteEvent:FireServer("FreeGuiUser", FreeGui.Version)
end

-- Function to load the GUI
function FreeGui:Load()
    screenGui.Parent = game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui")
    identifyToServer()
    return self
end

return FreeGui

New Paste


Do not write anything in this field if you're a human.

Go to most recent paste.