Advertisement
ARY106_7

سكربت هاك محمد | SC

Dec 16th, 2024 (edited)
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.47 KB | None | 0 0
  1. -- Crear la GUI y los elementos principales
  2. local ScreenGui = Instance.new("ScreenGui")
  3. local MainFrame = Instance.new("Frame")
  4. local ExecuteButton = Instance.new("TextButton")
  5. local ScriptBox = Instance.new("TextBox")
  6. local CloseButton = Instance.new("TextButton")
  7. local TitleLabel = Instance.new("TextLabel")
  8. local UICorner = Instance.new("UICorner")
  9. local UIStroke = Instance.new("UIStroke")
  10. local TweenService = game:GetService("TweenService")
  11.  
  12. -- Propiedades de ScreenGui
  13. ScreenGui.Name = "FancyExecutor"
  14. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. ScreenGui.ResetOnSpawn = false
  16.  
  17. -- Propiedades iniciales de MainFrame (pequeño para la animación)
  18. MainFrame.Name = "MainFrame"
  19. MainFrame.Parent = ScreenGui
  20. MainFrame.BackgroundColor3 = Color3.fromRGB(25, 25, 25)
  21. MainFrame.Size = UDim2.new(0, 0, 0, 0)
  22. MainFrame.Position = UDim2.new(0.5, 0, 0.5, 0) -- Centramos inicialmente
  23. MainFrame.AnchorPoint = Vector2.new(0.5, 0.5)
  24. MainFrame.ClipsDescendants = true
  25. MainFrame.Active = true
  26. MainFrame.Draggable = true
  27.  
  28. -- Agregar bordes redondeados al MainFrame
  29. UICorner.Parent = MainFrame
  30. UICorner.CornerRadius = UDim.new(0, 20)
  31.  
  32. -- Agregar un trazo al MainFrame
  33. UIStroke.Parent = MainFrame
  34. UIStroke.Thickness = 2
  35. UIStroke.Color = Color3.fromRGB(105, 105, 105)
  36.  
  37. -- Propiedades de TitleLabel
  38. TitleLabel.Name = "TitleLabel"
  39. TitleLabel.Parent = MainFrame
  40. TitleLabel.BackgroundTransparency = 1
  41. TitleLabel.Position = UDim2.new(0.05, 0, 0.05, 0)
  42. TitleLabel.Size = UDim2.new(0.9, 0, 0.1, 0)
  43. TitleLabel.Font = Enum.Font.GothamBold
  44. TitleLabel.Text = "سكربت هاك محمد | SC"
  45. TitleLabel.TextColor3 = Color3.fromRGB(255, 255, 255)
  46. TitleLabel.TextSize = 24
  47. TitleLabel.TextWrapped = true
  48.  
  49. -- Propiedades de ScriptBox
  50. ScriptBox.Name = "ScriptBox"
  51. ScriptBox.Parent = MainFrame
  52. ScriptBox.BackgroundColor3 = Color3.fromRGB(35, 35, 35)
  53. ScriptBox.Position = UDim2.new(0.05, 0, 0.2, 0)
  54. ScriptBox.Size = UDim2.new(0.9, 0, 0.6, 0)
  55. ScriptBox.Font = Enum.Font.Code
  56. ScriptBox.Text = "حط سكربتك هنا :)"
  57. ScriptBox.TextColor3 = Color3.fromRGB(200, 200, 200)
  58. ScriptBox.TextSize = 14
  59. ScriptBox.TextWrapped = true
  60. ScriptBox.ClearTextOnFocus = true
  61. ScriptBox.TextXAlignment = Enum.TextXAlignment.Left
  62. ScriptBox.TextYAlignment = Enum.TextYAlignment.Top
  63.  
  64. -- Agregar bordes redondeados al ScriptBox
  65. local ScriptBoxCorner = Instance.new("UICorner", ScriptBox)
  66. ScriptBoxCorner.CornerRadius = UDim.new(0, 20)
  67.  
  68. -- Propiedades de ExecuteButton
  69. ExecuteButton.Name = "ExecuteButton"
  70. ExecuteButton.Parent = MainFrame
  71. ExecuteButton.BackgroundColor3 = Color3.fromRGB(45, 45, 45)
  72. ExecuteButton.Position = UDim2.new(0.3, 0, 0.85, 0)
  73. ExecuteButton.Size = UDim2.new(0.4, 0, 0.1, 0)
  74. ExecuteButton.Font = Enum.Font.GothamBold
  75. ExecuteButton.Text = "تشغيل"
  76. ExecuteButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  77. ExecuteButton.TextSize = 16
  78.  
  79. -- Agregar bordes redondeados al ExecuteButton
  80. local ExecuteButtonCorner = Instance.new("UICorner", ExecuteButton)
  81. ExecuteButtonCorner.CornerRadius = UDim.new(0, 20)
  82.  
  83. -- Acción al hacer clic en el botón de ejecutar
  84. ExecuteButton.MouseButton1Click:Connect(function()
  85. local scriptText = ScriptBox.Text
  86. -- Intenta ejecutar el script
  87. local success, err = pcall(function()
  88. loadstring(scriptText)()
  89. end)
  90.  
  91. -- Si ocurre un error, mostrarlo en la consola
  92. if not success then
  93. warn("Error al ejecutar el script: " .. tostring(err))
  94. end
  95. end)
  96.  
  97. -- Propiedades de CloseButton
  98. CloseButton.Name = "CloseButton"
  99. CloseButton.Parent = MainFrame
  100. CloseButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  101. CloseButton.Position = UDim2.new(0.9, -30, 0.05, 0)
  102. CloseButton.Size = UDim2.new(0, 35, 0, 35)
  103. CloseButton.Font = Enum.Font.GothamBold
  104. CloseButton.Text = "X"
  105. CloseButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  106. CloseButton.TextSize = 14
  107.  
  108. -- Agregar bordes redondeados al CloseButton
  109. local CloseButtonCorner = Instance.new("UICorner", CloseButton)
  110. CloseButtonCorner.CornerRadius = UDim.new(0, 20)
  111.  
  112. -- Acción al hacer clic en el botón de cerrar
  113. CloseButton.MouseButton1Click:Connect(function()
  114. ScreenGui:Destroy() -- Cierra la GUI eliminándola
  115. end)
  116.  
  117. -- Animación de apertura del MainFrame (desde el centro hacia todos los lados)
  118. local tweenInfo = TweenInfo.new(1.5, Enum.EasingStyle.Quint, Enum.EasingDirection.Out)
  119. local expandTween = TweenService:Create(MainFrame, tweenInfo, {
  120. Size = UDim2.new(0, 400, 0, 250),
  121. Position = UDim2.new(0.5, 0, 0.5, 0)
  122. })
  123.  
  124. expandTween:Play()
  125.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement