Quick actions

cmd+k|ctrl+k

Navigation

Languages

Пельмень

Snippet info

Language

Lua

Visibility

public

Author

shashlik

Created

2025-02-23T16:19:40.866618Z

Updated

2025-02-23T16:19:40.866618Z

local TweenService = game:GetService("TweenService")
local UserInputService = game:GetService("UserInputService")

local ScreenGui = Instance.new("ScreenGui")
ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")

local MainFrame = Instance.new("Frame")
MainFrame.Size = UDim2.new(0.8, 0, 0.9, 0)
MainFrame.Position = UDim2.new(0.1, 0, 0.05, 0)
MainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20)
MainFrame.BackgroundTransparency = 0.2
MainFrame.Parent = ScreenGui

local UICorner = Instance.new("UICorner")
UICorner.CornerRadius = UDim.new(0, 12)
UICorner.Parent = MainFrame

local Title = Instance.new("TextLabel")
Title.Text = "Pelmen Injector"
Title.Size = UDim2.new(0.5, 0, 0.05, 0)
Title.Position = UDim2.new(0.25, 0, 0.02, 0)
Title.TextColor3 = Color3.fromRGB(255, 255, 255)
Title.BackgroundTransparency = 1
Title.Font = Enum.Font.SourceSansBold
Title.TextSize = 16
Title.TextXAlignment = Enum.TextXAlignment.Center
Title.Parent = MainFrame

local Signature = Instance.new("TextLabel")
Signature.Text = "By C0ol_well"
Signature.Size = UDim2.new(0.2, 0, 0.05, 0)
Signature.Position = UDim2.new(0.78, 0, 0.93, 0)
Signature.TextColor3 = Color3.fromRGB(150, 150, 150)
Signature.BackgroundTransparency = 1
Signature.Font = Enum.Font.SourceSans
Signature.TextSize = 14
Signature.TextXAlignment = Enum.TextXAlignment.Right
Signature.Parent = MainFrame

local TopBar = Instance.new("Frame")
TopBar.Size = UDim2.new(1, 0, 0.05, 0)
TopBar.BackgroundTransparency = 1
TopBar.Parent = MainFrame

local CloseButton = Instance.new("TextButton")
CloseButton.Text = "✕"
CloseButton.Size = UDim2.new(0, 30, 0, 30)
CloseButton.Position = UDim2.new(1, -35, 0, 0)
CloseButton.BackgroundTransparency = 1
CloseButton.TextColor3 = Color3.fromRGB(255, 80, 80)
CloseButton.Font = Enum.Font.SourceSansBold
CloseButton.TextSize = 20
CloseButton.Parent = TopBar

local MinimizeButton = Instance.new("TextButton")
MinimizeButton.Text = "–"
MinimizeButton.Size = UDim2.new(0, 30, 0, 30)
MinimizeButton.Position = UDim2.new(1, -70, 0, 0)
MinimizeButton.BackgroundTransparency = 1
MinimizeButton.TextColor3 = Color3.fromRGB(255, 255, 255)
MinimizeButton.Font = Enum.Font.SourceSansBold
MinimizeButton.TextSize = 20
MinimizeButton.Parent = TopBar

local ScriptSidebar = Instance.new("Frame")
ScriptSidebar.Size = UDim2.new(0.5, 0, 0.85, 0)
ScriptSidebar.Position = UDim2.new(0, 0, 0.1, 0)
ScriptSidebar.BackgroundColor3 = Color3.fromRGB(30, 30, 30)
ScriptSidebar.Parent = MainFrame

local SideCodeBox = Instance.new("TextBox")
SideCodeBox.Size = UDim2.new(0.95, 0, 0.95, 0)
SideCodeBox.Position = UDim2.new(0.025, 0, 0.025, 0)
SideCodeBox.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
SideCodeBox.TextColor3 = Color3.fromRGB(220, 220, 220)
SideCodeBox.Text = "-- Write your script here..."
SideCodeBox.MultiLine = true
SideCodeBox.ClearTextOnFocus = false
SideCodeBox.Font = Enum.Font.Code
SideCodeBox.TextSize = 14
SideCodeBox.TextXAlignment = Enum.TextXAlignment.Left
SideCodeBox.TextYAlignment = Enum.TextYAlignment.Top
SideCodeBox.TextWrapped = true
SideCodeBox.Parent = ScriptSidebar

SideCodeBox.Focused:Connect(function()
    if SideCodeBox.Text == "-- Write your script here..." then
        SideCodeBox.Text = ""
    end
end)

SideCodeBox.FocusLost:Connect(function()
    if SideCodeBox.Text == "" then
        SideCodeBox.Text = "-- Write your script here..."
    end
end)

local OutputFrame = Instance.new("Frame")
OutputFrame.Size = UDim2.new(0.45, 0, 0.85, 0)
OutputFrame.Position = UDim2.new(0.51, 0, 0.1, 0)
OutputFrame.BackgroundTransparency = 1
OutputFrame.Parent = MainFrame

local OutputBox = Instance.new("TextLabel")
OutputBox.Size = UDim2.new(0.95, 0, 0.8, 0)
OutputBox.Position = UDim2.new(0.025, 0, 0.1, 0)
OutputBox.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
OutputBox.TextColor3 = Color3.fromRGB(220, 220, 220)
OutputBox.Text = "> Output:"
OutputBox.TextXAlignment = Enum.TextXAlignment.Left
OutputBox.TextYAlignment = Enum.TextYAlignment.Top
OutputBox.Font = Enum.Font.RobotoMono
OutputBox.Parent = OutputFrame

local RunButton = Instance.new("TextButton")
RunButton.Text = "▶ Execute Script"
RunButton.Size = UDim2.new(0.9, 0, 0.1, 0)
RunButton.Position = UDim2.new(0.05, 0, 0.85, 0)
RunButton.BackgroundColor3 = Color3.fromRGB(50, 150, 50)
RunButton.Font = Enum.Font.SourceSansBold
RunButton.Parent = OutputFrame

local CopyButton = Instance.new("TextButton")
CopyButton.Text = "📋 Copy Script"
CopyButton.Size = UDim2.new(0.9, 0, 0.1, 0)
CopyButton.Position = UDim2.new(0.05, 0, 0.7, 0)
CopyButton.BackgroundColor3 = Color3.fromRGB(70, 70, 200)
CopyButton.Font = Enum.Font.SourceSansBold
CopyButton.Parent = OutputFrame

local isMinimized = false
local originalSize = MainFrame.Size
local originalPosition = MainFrame.Position

MinimizeButton.MouseButton1Click:Connect(function()
    if isMinimized then
        TweenService:Create(MainFrame, TweenInfo.new(0.3), {
            Size = originalSize,
            Position = originalPosition
        }):Play()
        MinimizeButton.Text = "–"
        ScriptSidebar.Visible = true
        OutputFrame.Visible = true
        RunButton.Visible = true
        CopyButton.Visible = true
        Title.Visible = true
        Signature.Visible = true
    else
        TweenService:Create(MainFrame, TweenInfo.new(0.3), {
            Size = UDim2.new(0.3, 0, 0.1, 0),
            Position = UDim2.new(0.35, 0, 0, 0)
        }):Play()
        MinimizeButton.Text = "+"
        ScriptSidebar.Visible = false
        OutputFrame.Visible = false
        RunButton.Visible = false
        CopyButton.Visible = false
        Title.Visible = false
        Signature.Visible = false
    end
    isMinimized = not isMinimized
end)

CopyButton.MouseButton1Click:Connect(function()
    local code = SideCodeBox.Text
    if code ~= "" then
        setclipboard(code)
        OutputBox.Text = "> Script copied to clipboard!"
    else
        OutputBox.Text = "> Error: No text to copy."
    end
end)

local isDragging = false
local dragStartPos, frameStartPos

MainFrame.InputBegan:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
        isDragging = true
        dragStartPos = input.Position
        frameStartPos = MainFrame.Position
        TweenService:Create(MainFrame, TweenInfo.new(0.2), {BackgroundTransparency = 0.4}):Play()
    end
end)

UserInputService.InputChanged:Connect(function(input)
    if isDragging and (input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseMovement) then
        local delta = input.Position - dragStartPos
        MainFrame.Position = UDim2.new(
            frameStartPos.X.Scale,
            frameStartPos.X.Offset + delta.X,
            frameStartPos.Y.Scale,
            frameStartPos.Y.Offset + delta.Y
        )
    end
end)

UserInputService.InputEnded:Connect(function(input)
    if input.UserInputType == Enum.UserInputType.Touch or input.UserInputType == Enum.UserInputType.MouseButton1 then
        isDragging = false
        TweenService:Create(MainFrame, TweenInfo.new(0.2), {BackgroundTransparency = 0.2}):Play()
    end
end)

CloseButton.MouseButton1Click:Connect(function()
    ScreenGui:Destroy()
end)

RunButton.MouseButton1Click:Connect(function()
    local code = SideCodeBox.Text
    local success, result = pcall(function()
        return loadstring(code)()
    end)
    
    if success then
        OutputBox.Text = "> Success: " .. tostring(result)
    else
        OutputBox.Text = "> Error: " .. tostring(result)
    end
end)
INFO