xvc200

untitled tag game

Apr 25th, 2025
3,261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.01 KB | None | 0 0
  1. --protect ui by IEnes
  2. local Players = game:GetService("Players")
  3. local RunService = game:GetService("RunService")
  4. local UserInputService = game:GetService("UserInputService")
  5. local CoreGui = game:GetService("CoreGui")
  6. local function protectGUI(gui)
  7. if syn and syn.protect_gui then
  8. syn.protect_gui(gui)
  9. elseif gethui then
  10. gui.Parent = gethui()
  11. elseif get_hidden_gui then
  12. gui.Parent = get_hidden_gui()
  13. else
  14. gui.Name = math.random(100000,999999)
  15. gui.Parent = CoreGui
  16. end
  17. end
  18.  
  19.  
  20. local hitboxSize = Vector3.new(12, 12, 12)
  21. local isExpanded = false
  22. local isSpeedBoostActive = false
  23. local isInfiniteJumpActive = false
  24. local normalSpeed = 16
  25. local boostedSpeed = normalSpeed * 6
  26.  
  27. -- Player setup
  28. local player = Players.LocalPlayer
  29. local character = player.Character or player.CharacterAdded:Wait()
  30. local humanoid = character:WaitForChild("Humanoid")
  31.  
  32. -- GUI Creation
  33. local screenGui = Instance.new("ScreenGui")
  34. screenGui.Name = "GameEnhancerGui_"..math.random(1000,9999)
  35. screenGui.ResetOnSpawn = false
  36. protectGUI(screenGui)
  37.  
  38. local frame = Instance.new("Frame")
  39. frame.Size = UDim2.new(0, 400, 0, 300)
  40. frame.Position = UDim2.new(0.5, -200, 0.5, -150)
  41. frame.BackgroundColor3 = Color3.new(0.2, 0.2, 0.2)
  42. frame.BorderSizePixel = 0
  43. frame.Parent = screenGui
  44. frame.Visible = false
  45.  
  46. -- Close Button
  47. local closeButton = Instance.new("TextButton")
  48. closeButton.Size = UDim2.new(0, 30, 0, 30)
  49. closeButton.Position = UDim2.new(1, -35, 0, 5)
  50. closeButton.Text = "X"
  51. closeButton.TextSize = 18
  52. closeButton.TextColor3 = Color3.new(1, 1, 1)
  53. closeButton.BackgroundColor3 = Color3.new(0.8, 0.2, 0.2)
  54. closeButton.Parent = frame
  55.  
  56. -- Title Label
  57. local titleLabel = Instance.new("TextLabel")
  58. titleLabel.Size = UDim2.new(1, 0, 0, 40)
  59. titleLabel.Position = UDim2.new(0, 0, 0, 10)
  60. titleLabel.Text = "Game Enhancer"
  61. titleLabel.TextSize = 28
  62. titleLabel.TextColor3 = Color3.new(1, 1, 1)
  63. titleLabel.BackgroundTransparency = 1
  64. titleLabel.Parent = frame
  65.  
  66. -- Feature Buttons
  67. local expandButton = Instance.new("TextButton")
  68. expandButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  69. expandButton.Position = UDim2.new(0.1, 0, 0.25, 0)
  70. expandButton.Text = "Expand Hitboxes: OFF"
  71. expandButton.TextSize = 18
  72. expandButton.TextColor3 = Color3.new(1, 1, 1)
  73. expandButton.BackgroundColor3 = Color3.new(0.2, 0.6, 0.8)
  74. expandButton.Parent = frame
  75.  
  76. local speedButton = Instance.new("TextButton")
  77. speedButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  78. speedButton.Position = UDim2.new(0.1, 0, 0.5, 0)
  79. speedButton.Text = "Speed Boost (6x): OFF"
  80. speedButton.TextSize = 18
  81. speedButton.TextColor3 = Color3.new(1, 1, 1)
  82. speedButton.BackgroundColor3 = Color3.new(0.2, 0.6, 0.8)
  83. speedButton.Parent = frame
  84.  
  85. local jumpButton = Instance.new("TextButton")
  86. jumpButton.Size = UDim2.new(0.8, 0, 0.2, 0)
  87. jumpButton.Position = UDim2.new(0.1, 0, 0.75, 0)
  88. jumpButton.Text = "Infinite Jump: OFF"
  89. jumpButton.TextSize = 18
  90. jumpButton.TextColor3 = Color3.new(1, 1, 1)
  91. jumpButton.BackgroundColor3 = Color3.new(0.2, 0.6, 0.8)
  92. jumpButton.Parent = frame
  93.  
  94. -- Open Button
  95. local openButton = Instance.new("TextButton")
  96. openButton.Size = UDim2.new(0, 100, 0, 30)
  97. openButton.Position = UDim2.new(0, 10, 0, 10)
  98. openButton.Text = "Open GUI"
  99. openButton.TextColor3 = Color3.new(1, 1, 1)
  100. openButton.BackgroundColor3 = Color3.new(0.2, 0.6, 0.8)
  101. openButton.Parent = screenGui
  102.  
  103. -- Functions
  104. local function expandHitboxes()
  105. for _, otherPlayer in pairs(Players:GetPlayers()) do
  106. if otherPlayer ~= player and otherPlayer.Character then
  107. local humanoidRootPart = otherPlayer.Character:FindFirstChild("HumanoidRootPart")
  108. if humanoidRootPart then
  109. local humanoid = otherPlayer.Character:FindFirstChild("Humanoid")
  110. if humanoid and humanoid.Health > 0 then
  111. humanoidRootPart.Size = isExpanded and hitboxSize or Vector3.new(2, 2, 1)
  112. humanoidRootPart.Transparency = isExpanded and 0.5 or 1
  113. humanoidRootPart.CanCollide = false
  114. else
  115. humanoidRootPart.Size = Vector3.new(2, 2, 1)
  116. humanoidRootPart.Transparency = 1
  117. end
  118. end
  119. end
  120. end
  121. end
  122.  
  123. local function toggleGui()
  124. frame.Visible = not frame.Visible
  125. end
  126.  
  127. local function toggleExpand()
  128. isExpanded = not isExpanded
  129. expandButton.Text = isExpanded and "Expand Hitboxes: ON" or "Expand Hitboxes: OFF"
  130. expandButton.BackgroundColor3 = isExpanded and Color3.new(0.8, 0.2, 0.2) or Color3.new(0.2, 0.6, 0.8)
  131. expandHitboxes()
  132. end
  133.  
  134. local function toggleSpeed()
  135. isSpeedBoostActive = not isSpeedBoostActive
  136. speedButton.Text = isSpeedBoostActive and "Speed Boost (6x): ON" or "Speed Boost (6x): OFF"
  137. speedButton.BackgroundColor3 = isSpeedBoostActive and Color3.new(0.8, 0.2, 0.2) or Color3.new(0.2, 0.6, 0.8)
  138. humanoid.WalkSpeed = isSpeedBoostActive and boostedSpeed or normalSpeed
  139. end
  140.  
  141. local function toggleInfiniteJump()
  142. isInfiniteJumpActive = not isInfiniteJumpActive
  143. jumpButton.Text = isInfiniteJumpActive and "Infinite Jump: ON" or "Infinite Jump: OFF"
  144. jumpButton.BackgroundColor3 = isInfiniteJumpActive and Color3.new(0.8, 0.2, 0.2) or Color3.new(0.2, 0.6, 0.8)
  145. end
  146.  
  147. -- Event Connections
  148. openButton.MouseButton1Click:Connect(toggleGui)
  149. closeButton.MouseButton1Click:Connect(toggleGui)
  150. expandButton.MouseButton1Click:Connect(toggleExpand)
  151. speedButton.MouseButton1Click:Connect(toggleSpeed)
  152. jumpButton.MouseButton1Click:Connect(toggleInfiniteJump)
  153.  
  154. RunService.RenderStepped:Connect(expandHitboxes)
  155.  
  156. UserInputService.JumpRequest:Connect(function()
  157. if isInfiniteJumpActive then
  158. humanoid:ChangeState(Enum.HumanoidStateType.Jumping)
  159. end
  160. end)
  161.  
  162. -- Dragging Functionality
  163. local dragging
  164. local dragInput
  165. local dragStart
  166. local startPos
  167.  
  168. local function update(input)
  169. local delta = input.Position - dragStart
  170. frame.Position = UDim2.new(
  171. startPos.X.Scale,
  172. startPos.X.Offset + delta.X,
  173. startPos.Y.Scale,
  174. startPos.Y.Offset + delta.Y
  175. )
  176. end
  177.  
  178. frame.InputBegan:Connect(function(input)
  179. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  180. dragging = true
  181. dragStart = input.Position
  182. startPos = frame.Position
  183.  
  184. input.Changed:Connect(function()
  185. if input.UserInputState == Enum.UserInputState.End then
  186. dragging = false
  187. end
  188. end)
  189. end
  190. end)
  191.  
  192. frame.InputChanged:Connect(function(input)
  193. if input.UserInputType == Enum.UserInputType.MouseMovement or input.UserInputType == Enum.UserInputType.Touch then
  194. dragInput = input
  195. end
  196. end)
  197.  
  198. UserInputService.InputChanged:Connect(function(input)
  199. if input == dragInput and dragging then
  200. update(input)
  201. end
  202. end)
  203.  
  204. -- Parent to CoreGui if available, otherwise to PlayerGui
  205. if CoreGui then
  206. screenGui.Parent = CoreGui
  207. else
  208. screenGui.Parent = player:WaitForChild("PlayerGui")
  209. end
Add Comment
Please, Sign In to add comment