Advertisement
qiell

multi Gear remake

Aug 18th, 2024
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.04 KB | None | 0 0
  1. -- Create a ScreenGui
  2. local screenGui = Instance.new("ScreenGui")
  3. screenGui.Parent = game.CoreGui
  4. screenGui.ResetOnSpawn = false -- Prevents the GUI from disappearing after death
  5.  
  6. -- Create the button
  7. local equipButton = Instance.new("TextButton")
  8. equipButton.Parent = screenGui
  9. equipButton.Size = UDim2.new(0, 150, 0, 50)
  10. equipButton.Position = UDim2.new(1, -160, 0, 10) -- Top right corner
  11. equipButton.Text = "Equip & Auto-Use"
  12. equipButton.BackgroundColor3 = Color3.fromRGB(0, 0, 0) -- Button color changed to black
  13. equipButton.TextColor3 = Color3.fromRGB(255, 255, 255)
  14. equipButton.Font = Enum.Font.SourceSansBold
  15. equipButton.TextSize = 18
  16.  
  17. -- Add an outline to the button
  18. local outline = Instance.new("UIStroke")
  19. outline.Parent = equipButton
  20. outline.Thickness = 2
  21. outline.Color = Color3.fromRGB(255, 255, 255)
  22. outline.ApplyStrokeMode = Enum.ApplyStrokeMode.Border
  23.  
  24. -- Rainbow outline function
  25. local function cycleRainbow()
  26. local hue = 0
  27. while true do
  28. hue = hue + 1 / 360 -- Increment hue to change color
  29. if hue >= 1 then hue = 0 end
  30. outline.Color = Color3.fromHSV(hue, 1, 1) -- Convert hue to RGB
  31. wait(0.05) -- Adjust speed of the rainbow effect
  32. end
  33. end
  34.  
  35. -- Start the rainbow effect
  36. spawn(cycleRainbow)
  37.  
  38. -- Equip and auto-use function
  39. local function equipAndUseItems()
  40. local player = game.Players.LocalPlayer
  41. local character = player.Character or player.CharacterAdded:Wait()
  42. local backpack = player.Backpack
  43.  
  44. -- Equip and use all items in the inventory
  45. for _, tool in ipairs(backpack:GetChildren()) do
  46. if tool:IsA("Tool") then
  47. tool.Parent = character
  48. -- Simulate tool activation
  49. tool:Activate()
  50. end
  51. end
  52.  
  53. -- Use all currently equipped tools again
  54. for _, tool in ipairs(character:GetChildren()) do
  55. if tool:IsA("Tool") then
  56. -- Simulate tool activation
  57. tool:Activate()
  58. end
  59. end
  60. end
  61.  
  62. -- Button click event
  63. equipButton.MouseButton1Click:Connect(equipAndUseItems)
Tags: multi Gear!
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement