Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- -- Crear la GUI y los elementos principales
- local ScreenGui = Instance.new("ScreenGui")
- local MainFrame = Instance.new("Frame")
- local ExecuteButton = Instance.new("TextButton")
- local ScriptBox = Instance.new("TextBox")
- local CloseButton = Instance.new("TextButton")
- local TitleLabel = Instance.new("TextLabel")
- local UICorner = Instance.new("UICorner")
- local UIStroke = Instance.new("UIStroke")
- local TweenService = game:GetService("TweenService")
- -- Propiedades de ScreenGui
- ScreenGui.Name = "FancyExecutor"
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ResetOnSpawn = false
- -- Propiedades iniciales de MainFrame (pequeño para la animación)
- MainFrame.Name = "MainFrame"
- MainFrame.Parent = ScreenGui
- MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
- MainFrame.Size = UDim2.new(0, 0, 0, 0)
- MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0) -- Centramos inicialmente
- MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
- MainFrame.ClipsDescendants = true
- MainFrame.Active = true
- MainFrame.Draggable = true
- -- Agregar bordes redondeados al MainFrame
- UICorner.Parent = MainFrame
- UICorner.CornerRadius = UDim.new(0, 20)
- -- Agregar un trazo al MainFrame
- UIStroke.Parent = MainFrame
- UIStroke.Thickness = 2
- UIStroke.Color = Color3.fromRGB(105, 105, 105)
- -- Propiedades de TitleLabel
- TitleLabel.Name = "TitleLabel"
- TitleLabel.Parent = MainFrame
- TitleLabel.BackgroundTransparency = 1
- TitleLabel.Position = UDim2.new(0.05, 0, 0.05, 0)
- TitleLabel.Size = UDim2.new(0.9, 0, 0.1, 0)
- TitleLabel.Font = Enum.Font.GothamBold
- TitleLabel.Text = "سكربت هاك محمد | SC"
- TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
- TitleLabel.TextSize = 24
- TitleLabel.TextWrapped = true
- -- Propiedades de ScriptBox
- ScriptBox.Name = "ScriptBox"
- ScriptBox.Parent = MainFrame
- ScriptBox.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
- ScriptBox.Position = UDim2.new(0.05, 0, 0.2, 0)
- ScriptBox.Size = UDim2.new(0.9, 0, 0.6, 0)
- ScriptBox.Font = Enum.Font.Code
- ScriptBox.Text = "حط سكربتك هنا :)"
- ScriptBox.TextColor3 = Color3.fromRGB(200, 200, 200)
- ScriptBox.TextSize = 14
- ScriptBox.TextWrapped = true
- ScriptBox.ClearTextOnFocus = true
- ScriptBox.TextXAlignment = Enum.TextXAlignment.Left
- ScriptBox.TextYAlignment = Enum.TextYAlignment.Top
- -- Agregar bordes redondeados al ScriptBox
- local ScriptBoxCorner = Instance.new("UICorner", ScriptBox)
- ScriptBoxCorner.CornerRadius = UDim.new(0, 20)
- -- Propiedades de ExecuteButton
- ExecuteButton.Name = "ExecuteButton"
- ExecuteButton.Parent = MainFrame
- ExecuteButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
- ExecuteButton.Position = UDim2.new(0.3, 0, 0.85, 0)
- ExecuteButton.Size = UDim2.new(0.4, 0, 0.1, 0)
- ExecuteButton.Font = Enum.Font.GothamBold
- ExecuteButton.Text = "تشغيل"
- ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- ExecuteButton.TextSize = 16
- -- Agregar bordes redondeados al ExecuteButton
- local ExecuteButtonCorner = Instance.new("UICorner", ExecuteButton)
- ExecuteButtonCorner.CornerRadius = UDim.new(0, 20)
- -- Acción al hacer clic en el botón de ejecutar
- ExecuteButton.MouseButton1Click:Connect(function()
- local scriptText = ScriptBox.Text
- -- Intenta ejecutar el script
- local success, err = pcall(function()
- loadstring(scriptText)()
- end)
- -- Si ocurre un error, mostrarlo en la consola
- if not success then
- warn("Error al ejecutar el script: " .. tostring(err))
- end
- end)
- -- Propiedades de CloseButton
- CloseButton.Name = "CloseButton"
- CloseButton.Parent = MainFrame
- CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- CloseButton.Position = UDim2.new(0.9, -30, 0.05, 0)
- CloseButton.Size = UDim2.new(0, 35, 0, 35)
- CloseButton.Font = Enum.Font.GothamBold
- CloseButton.Text = "X"
- CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
- CloseButton.TextSize = 14
- -- Agregar bordes redondeados al CloseButton
- local CloseButtonCorner = Instance.new("UICorner", CloseButton)
- CloseButtonCorner.CornerRadius = UDim.new(0, 20)
- -- Acción al hacer clic en el botón de cerrar
- CloseButton.MouseButton1Click:Connect(function()
- ScreenGui:Destroy() -- Cierra la GUI eliminándola
- end)
- -- Animación de apertura del MainFrame (desde el centro hacia todos los lados)
- local tweenInfo = TweenInfo.new(1.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
- local expandTween = TweenService:Create(MainFrame, tweenInfo, {
- Size = UDim2.new(0, 400, 0, 250),
- Position = UDim2.new(0.5, 0, 0.5, 0)
- })
- expandTween:Play()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement