Advertisement
ExluZive

Untitled

Jan 9th, 2025 (edited)
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.72 KB | None | 0 0
  1. local Players = game:GetService("Players")
  2. local UserInputService = game:GetService("UserInputService")
  3. local RunService = game:GetService("RunService")
  4. local Teams = game:GetService("Teams")
  5.  
  6. local player = Players.LocalPlayer
  7. local hitboxSize = 5
  8. local hitboxTransparency = 0.5
  9. local affectPlayers = true
  10. local affectNPCs = false
  11. local checkTeam = false
  12. local updateInterval = 0.5
  13. local lastUpdate = 0
  14.  
  15. local screenGui = Instance.new("ScreenGui")
  16. screenGui.Parent = game.CoreGui
  17.  
  18. local function addUICorner(instance, radius)
  19. local corner = Instance.new("UICorner")
  20. corner.CornerRadius = UDim.new(0, radius)
  21. corner.Parent = instance
  22. end
  23.  
  24. local function addUIStroke(instance, thickness, color)
  25. local stroke = Instance.new("UIStroke")
  26. stroke.Thickness = thickness
  27. stroke.Color = color
  28. stroke.Parent = instance
  29. end
  30.  
  31. local button = Instance.new("TextButton")
  32. button.Size = UDim2.new(0, 120, 0, 40)
  33. button.Position = UDim2.new(0.8, 0, 0.1, 0)
  34. button.Text = "Abrir Menú"
  35. button.TextColor3 = Color3.new(1, 1, 1)
  36. button.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  37. button.BackgroundTransparency = 0.25
  38. button.Font = Enum.Font.GothamSemibold
  39. button.TextSize = 14
  40. button.Parent = screenGui
  41. addUICorner(button, 8)
  42. addUIStroke(button, 2, Color3.new(1, 1, 1))
  43.  
  44. local menu = Instance.new("Frame")
  45. menu.Size = UDim2.new(0, 300, 0, 300)
  46. menu.Position = UDim2.new(0.5, -150, 0.5, -150)
  47. menu.BackgroundColor3 = Color3.new(0.1, 0.1, 0.1)
  48. menu.BackgroundTransparency = 0.25
  49. menu.Visible = false
  50. menu.Parent = screenGui
  51. addUICorner(menu, 0)
  52. addUIStroke(menu, 2, Color3.new(1, 1, 1))
  53.  
  54. local title = Instance.new("TextLabel")
  55. title.Size = UDim2.new(1, 0, 0, 30)
  56. title.Position = UDim2.new(0, 0, 0, 5)
  57. title.Text = "Configuración de Hitbox"
  58. title.TextColor3 = Color3.new(1, 1, 1)
  59. title.BackgroundTransparency = 1
  60. title.Font = Enum.Font.GothamBold
  61. title.TextSize = 16
  62. title.Parent = menu
  63.  
  64. local function createStyledTextBox(parent, position, defaultText)
  65. local textBox = Instance.new("TextBox")
  66. textBox.Size = UDim2.new(0.8, 0, 0, 25)
  67. textBox.Position = position
  68. textBox.Text = defaultText
  69. textBox.TextColor3 = Color3.new(1, 1, 1)
  70. textBox.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  71. textBox.BackgroundTransparency = 0.5
  72. textBox.Font = Enum.Font.Gotham
  73. textBox.TextSize = 14
  74. textBox.Parent = parent
  75. addUICorner(textBox, 4)
  76. addUIStroke(textBox, 1, Color3.new(1, 1, 1))
  77. return textBox
  78. end
  79.  
  80. local function createStyledButton(parent, position, text)
  81. local button = Instance.new("TextButton")
  82. button.Size = UDim2.new(0.4, -10, 0, 25)
  83. button.Position = position
  84. button.Text = text
  85. button.TextColor3 = Color3.new(1, 1, 1)
  86. button.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  87. button.BackgroundTransparency = 0.5
  88. button.Font = Enum.Font.GothamSemibold
  89. button.TextSize = 12
  90. button.Parent = parent
  91. addUICorner(button, 4)
  92. addUIStroke(button, 1, Color3.new(1, 1, 1))
  93. return button
  94. end
  95.  
  96. local hitboxInput = createStyledTextBox(menu, UDim2.new(0.1, 0, 0, 45), tostring(hitboxSize))
  97. local transparencySlider = createStyledTextBox(menu, UDim2.new(0.1, 0, 0, 85), tostring(hitboxTransparency))
  98. local playersOnly = createStyledButton(menu, UDim2.new(0.05, 0, 0, 125), "Solo Jugadores")
  99. local npcsOnly = createStyledButton(menu, UDim2.new(0.55, 0, 0, 125), "Solo NPCs")
  100. local bothButton = createStyledButton(menu, UDim2.new(0.3, 0, 0, 165), "Ambos")
  101. local checkTeamButton = createStyledButton(menu, UDim2.new(0.3, 0, 0, 205), "Revisar Equipo: OFF")
  102.  
  103. local function makeDraggable(obj)
  104. local dragging, dragInput, dragStart, startPos
  105.  
  106. obj.InputBegan:Connect(function(input)
  107. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  108. dragging = true
  109. dragStart = input.Position
  110. startPos = obj.Position
  111.  
  112. input.Changed:Connect(function()
  113. if input.UserInputState == Enum.UserInputState.End then
  114. dragging = false
  115. end
  116. end)
  117. end
  118. end)
  119.  
  120. obj.InputChanged:Connect(function(input)
  121. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  122. dragInput = input
  123. end
  124. end)
  125.  
  126. UserInputService.InputChanged:Connect(function(input)
  127. if input == dragInput and dragging then
  128. local delta = input.Position - dragStart
  129. obj.Position = UDim2.new(startPos.X.Scale, startPos.X.Offset + delta.X, startPos.Y.Scale, startPos.Y.Offset + delta.Y)
  130. end
  131. end)
  132. end
  133.  
  134. makeDraggable(button)
  135. makeDraggable(menu)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement