Advertisement
Knight123654

Basic equip all gui

Jan 1st, 2020
18,061
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.83 KB | None | 1 0
  1. -- Gui to Lua
  2. -- Version: 3.1
  3.  
  4. -- Instances:
  5.  
  6. local ScreenGui = Instance.new("ScreenGui")
  7. local Equip = Instance.new("Frame")
  8. local TextButton = Instance.new("TextButton")
  9. local TextLabel = Instance.new("TextLabel")
  10. local TextLabel_2 = Instance.new("TextLabel")
  11.  
  12. --Properties:
  13.  
  14. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  15. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  16.  
  17. Equip.Name = "Equip"
  18. Equip.Parent = ScreenGui
  19. Equip.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  20. Equip.Position = UDim2.new(0.18390806, 0, 0.203389838, 0)
  21. Equip.Size = UDim2.new(0, 153, 0, 77)
  22.  
  23. TextButton.Parent = Equip
  24. TextButton.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  25. TextButton.BorderColor3 = Color3.fromRGB(255, 0, 0)
  26. TextButton.Position = UDim2.new(0, 0, 0.120661825, 0)
  27. TextButton.Size = UDim2.new(0, 153, 0, 22)
  28. TextButton.Font = Enum.Font.SourceSans
  29. TextButton.Text = "EXECUTE"
  30. TextButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  31. TextButton.TextSize = 14.000
  32.  
  33. TextLabel.Parent = Equip
  34. TextLabel.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  35. TextLabel.BorderColor3 = Color3.fromRGB(255, 0, 0)
  36. TextLabel.Position = UDim2.new(0, 0, 0.394893259, 0)
  37. TextLabel.Size = UDim2.new(0, 153, 0, 29)
  38. TextLabel.Font = Enum.Font.SourceSans
  39. TextLabel.Text = "Equip All"
  40. TextLabel.TextColor3 = Color3.fromRGB(255, 0, 0)
  41. TextLabel.TextSize = 14.000
  42.  
  43. TextLabel_2.Parent = Equip
  44. TextLabel_2.BackgroundColor3 = Color3.fromRGB(0, 0, 0)
  45. TextLabel_2.Position = UDim2.new(0, 0, 0.789786518, 0)
  46. TextLabel_2.Size = UDim2.new(0, 152, 0, 11)
  47. TextLabel_2.Font = Enum.Font.SourceSans
  48. TextLabel_2.Text = "Press Q to hide"
  49. TextLabel_2.TextColor3 = Color3.fromRGB(255, 0, 0)
  50. TextLabel_2.TextSize = 14.000
  51.  
  52. -- Scripts:
  53.  
  54. local function NROSQYD_fake_script() -- TextButton.Script
  55. local script = Instance.new('Script', TextButton)
  56.  
  57. TextButton.MouseButton1Click:Connect(function()
  58. -- Script here
  59. for _, tool in ipairs(game:GetService("Players").LocalPlayer.Backpack:GetChildren()) do
  60. if tool:IsA("Tool") then
  61. tool.Parent = game:GetService("Players").LocalPlayer.Character -- I didn't use Equip because the Equip function unequips any other tools in your character.
  62. end
  63. end
  64.  
  65. end)
  66. end
  67. coroutine.wrap(NROSQYD_fake_script)()
  68. local function XAULB_fake_script() -- Equip.Script
  69. local script = Instance.new('Script', Equip)
  70.  
  71. Equip.Active = true
  72. Equip.Draggable = true
  73. end
  74. coroutine.wrap(XAULB_fake_script)()
  75. local function VHXRM_fake_script() -- Equip.Script
  76. local script = Instance.new('Script', Equip)
  77.  
  78. function onKeyPress(inputObject, gameProcessedEvent)
  79. if inputObject.KeyCode == Enum.KeyCode.Q then
  80. if Equip.Visible == false then
  81. Equip.Visible = true
  82. else
  83. Equip.Visible = false
  84. end
  85. end
  86. end
  87.  
  88. game:GetService("UserInputService").InputBegan:connect(onKeyPress)
  89. end
  90. coroutine.wrap(VHXRM_fake_script)()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement