local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local UserInputService = game:GetService("UserInputService") local player = Players.LocalPlayer local playerGui = player:WaitForChild("PlayerGui") -- ==================== LOADING SCREEN ==================== local screenGui = Instance.new("ScreenGui") screenGui.IgnoreGuiInset = true screenGui.ResetOnSpawn = false screenGui.Parent = playerGui local redFrame = Instance.new("Frame") redFrame.Size = UDim2.new(1,0,1,0) redFrame.BackgroundColor3 = Color3.fromRGB(180,0,0) redFrame.BackgroundTransparency = 1 redFrame.BorderSizePixel = 0 redFrame.Parent = screenGui local text1 = Instance.new("TextLabel") text1.Size = UDim2.new(0.6,0,0.15,0) text1.Position = UDim2.new(0.5,0,0.45,0) text1.AnchorPoint = Vector2.new(0.5,0.5) text1.BackgroundTransparency = 1 text1.TextScaled = true text1.TextColor3 = Color3.new(1,1,1) text1.Text = "Welcome! loading gui, please wait.." text1.Font = Enum.Font.GothamBold text1.TextTransparency = 1 text1.Parent = screenGui local text2 = Instance.new("TextLabel") text2.Size = UDim2.new(0.8,0,0.15,0) text2.Position = UDim2.new(0.5,0,0.55,0) text2.AnchorPoint = Vector2.new(0.5,0.5) text2.BackgroundTransparency = 1 text2.TextScaled = true text2.TextColor3 = Color3.new(1,1,1) text2.Text = "Welcome to [gui name]. Enjoy the script :d (the script is made by team codek1, no one else!!)" text2.Font = Enum.Font.GothamBold text2.TextTransparency = 1 text2.Parent = screenGui -- Animation tweens local fadeIn = TweenInfo.new(0.5, Enum.EasingStyle.Linear) local fadeOutLong = TweenInfo.new(2, Enum.EasingStyle.Linear) local fadeOutFinal = TweenInfo.new(4, Enum.EasingStyle.Linear) TweenService:Create(redFrame, fadeIn, {BackgroundTransparency = 0}):Play() task.wait(1.5) TweenService:Create(text1, fadeIn, {TextTransparency = 0}):Play() task.wait(8) TweenService:Create(text1, fadeOutLong, {TextTransparency = 1}):Play() task.wait(2.5) TweenService:Create(text2, fadeIn, {TextTransparency = 0}):Play() task.wait(3) TweenService:Create(redFrame, fadeOutFinal, {BackgroundTransparency = 1}):Play() TweenService:Create(text1, fadeOutFinal, {TextTransparency = 1}):Play() TweenService:Create(text2, fadeOutFinal, {TextTransparency = 1}):Play() task.wait(4) screenGui:Destroy() -- ==================== SMALLER EXECUTOR GUI (Top Center) ==================== local executorGui = Instance.new("ScreenGui") executorGui.Name = "Codek1Executor" executorGui.ResetOnSpawn = false executorGui.Parent = playerGui -- Main Frame - Reduced size local mainFrame = Instance.new("Frame") mainFrame.Size = UDim2.new(0, 420, 0, 280) -- Smaller: 420x280 (was 500x350) mainFrame.Position = UDim2.new(0.5, -210, 0, 20) -- Centered horizontally, 20px from top mainFrame.AnchorPoint = Vector2.new(0.5, 0) mainFrame.BackgroundColor3 = Color3.fromRGB(20, 20, 20) mainFrame.BorderColor3 = Color3.fromRGB(200, 0, 0) mainFrame.BorderSizePixel = 3 mainFrame.Parent = executorGui -- Title Bar local titleBar = Instance.new("Frame") titleBar.Size = UDim2.new(1, 0, 0, 35) -- Slightly shorter titleBar.BackgroundColor3 = Color3.fromRGB(150, 0, 0) titleBar.BorderSizePixel = 0 titleBar.Parent = mainFrame local titleText = Instance.new("TextLabel") titleText.Size = UDim2.new(1, -80, 1, 0) titleText.Position = UDim2.new(0, 10, 0, 0) titleText.BackgroundTransparency = 1 titleText.Text = "Codek1 Executor" titleText.TextColor3 = Color3.new(1,1,1) titleText.TextXAlignment = Enum.TextXAlignment.Left titleText.Font = Enum.Font.GothamBold titleText.TextSize = 18 -- Slightly smaller text titleText.Parent = titleBar -- Close Button local closeButton = Instance.new("TextButton") closeButton.Size = UDim2.new(0, 28, 0, 28) closeButton.Position = UDim2.new(1, -33, 0, 4) closeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) closeButton.Text = "X" closeButton.TextColor3 = Color3.new(1,1,1) closeButton.Font = Enum.Font.GothamBold closeButton.TextSize = 16 closeButton.Parent = titleBar closeButton.MouseButton1Click:Connect(function() executorGui:Destroy() end) -- Script Box - Adjusted to fit smaller frame local scriptBox = Instance.new("TextBox") scriptBox.Size = UDim2.new(1, -20, 1, -90) -- Leaves room for buttons scriptBox.Position = UDim2.new(0, 10, 0, 45) scriptBox.BackgroundColor3 = Color3.fromRGB(10, 10, 10) scriptBox.BorderColor3 = Color3.fromRGB(100, 0, 0) scriptBox.BorderSizePixel = 2 scriptBox.ClearTextOnFocus = false scriptBox.MultiLine = true scriptBox.Text = "" scriptBox.PlaceholderText = "Enter your script here..." scriptBox.PlaceholderColor3 = Color3.fromRGB(100, 100, 100) scriptBox.TextColor3 = Color3.new(1,1,1) scriptBox.TextXAlignment = Enum.TextXAlignment.Left scriptBox.TextYAlignment = Enum.TextYAlignment.Top scriptBox.Font = Enum.Font.Code scriptBox.TextSize = 14 -- Smaller font for better fit scriptBox.Parent = mainFrame -- Execute Button local executeButton = Instance.new("TextButton") executeButton.Size = UDim2.new(0, 100, 0, 35) executeButton.Position = UDim2.new(0, 10, 1, -45) executeButton.BackgroundColor3 = Color3.fromRGB(200, 0, 0) executeButton.Text = "Execute" executeButton.TextColor3 = Color3.new(1,1,1) executeButton.Font = Enum.Font.GothamBold executeButton.TextSize = 16 executeButton.Parent = mainFrame -- Clear Button local clearButton = Instance.new("TextButton") clearButton.Size = UDim2.new(0, 100, 0, 35) clearButton.Position = UDim2.new(0, 120, 1, -45) clearButton.BackgroundColor3 = Color3.fromRGB(50, 50, 50) clearButton.Text = "Clear" clearButton.TextColor3 = Color3.new(1,1,1) clearButton.Font = Enum.Font.GothamBold clearButton.TextSize = 16 clearButton.Parent = mainFrame clearButton.MouseButton1Click:Connect(function() scriptBox.Text = "" end) -- Execute functionality executeButton.MouseButton1Click:Connect(function() local code = scriptBox.Text if code ~= "" then local func, err = loadstring(code) if func then func() else warn("Script error: " .. err) end end end) -- Draggable (using title bar) local dragging = false local dragInput local dragStart local startPos local function updateInput(input) local delta = input.Position - dragStart mainFrame.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y) end titleBar.InputBegan:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then dragging = true dragStart = input.Position startPos = mainFrame.Position input.Changed:Connect(function() if input.UserInputState == Enum.UserInputState.End then dragging = false end end) end end) titleBar.InputChanged:Connect(function(input) if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then dragInput = input end end) UserInputService.InputChanged:Connect(function(input) if dragging and (input == dragInput) then updateInput(input) end end) print("Codek1 Executor loaded! Smaller size, positioned at the top.")