Advertisement
scripterhaxer

Arsenal Gui

Jun 6th, 2019
1,435
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 14.67 KB | None | 0 0
  1. -- Farewell Infortality.
  2. -- Version: 2.82
  3. -- Instances:
  4. local ZeroTwo = Instance.new("ScreenGui")
  5. local OpenFrame = Instance.new("Frame")
  6. local Open = Instance.new("TextButton")
  7. local Main = Instance.new("Frame")
  8. local BeautyA = Instance.new("Frame")
  9. local Name = Instance.new("TextLabel")
  10. local BeautyB = Instance.new("Frame")
  11. local Credits = Instance.new("TextLabel")
  12. local TixStealer = Instance.new("TextButton")
  13. local Aimbot = Instance.new("TextButton")
  14. local Close = Instance.new("TextButton")
  15. --Properties:
  16. ZeroTwo.Name = "Zero Two"
  17. ZeroTwo.Parent = game.CoreGui
  18. ZeroTwo.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  19.  
  20. OpenFrame.Name = "OpenFrame"
  21. OpenFrame.Parent = ZeroTwo
  22. OpenFrame.Active = true
  23. OpenFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  24. OpenFrame.BackgroundTransparency = 0.69999998807907
  25. OpenFrame.Position = UDim2.new(0.92817682, 0, 0.726044238, 0)
  26. OpenFrame.Size = UDim2.new(0, 91, 0, 33)
  27.  
  28. Open.Name = "Open"
  29. Open.Parent = OpenFrame
  30. Open.BackgroundColor3 = Color3.new(1, 1, 1)
  31. Open.BackgroundTransparency = 1
  32. Open.Size = UDim2.new(0, 91, 0, 33)
  33. Open.Font = Enum.Font.SourceSans
  34. Open.Text = "Open"
  35. Open.TextColor3 = Color3.new(0, 0, 0)
  36. Open.TextScaled = true
  37. Open.TextSize = 14
  38. Open.TextWrapped = true
  39. Open.MouseButton1Down:connect(function()
  40. Main.Visible = true
  41. OpenFrame.Visible = false
  42. end)
  43.  
  44. Main.Name = "Main"
  45. Main.Parent = ZeroTwo
  46. Main.Active = true
  47. Main.BackgroundColor3 = Color3.new(1, 1, 1)
  48. Main.BackgroundTransparency = 0.69999998807907
  49. Main.Position = UDim2.new(0.260457784, 0, 0.391891897, 0)
  50. Main.Size = UDim2.new(0, 242, 0, 123)
  51. Main.Draggable = true
  52.  
  53. BeautyA.Name = "BeautyA"
  54. BeautyA.Parent = Main
  55. BeautyA.BackgroundColor3 = Color3.new(0, 0, 0)
  56. BeautyA.BackgroundTransparency = 0.69999998807907
  57. BeautyA.Position = UDim2.new(0, 0, -0.317073226, 0)
  58. BeautyA.Size = UDim2.new(0, 242, 0, 33)
  59.  
  60. Name.Name = "Name"
  61. Name.Parent = BeautyA
  62. Name.BackgroundColor3 = Color3.new(1, 1, 1)
  63. Name.BackgroundTransparency = 11
  64. Name.Size = UDim2.new(0, 242, 0, 33)
  65. Name.Font = Enum.Font.SourceSans
  66. Name.Text = "Zero Two"
  67. Name.TextColor3 = Color3.new(0.333333, 1, 0)
  68. Name.TextScaled = true
  69. Name.TextSize = 14
  70. Name.TextStrokeTransparency = 15
  71. Name.TextTransparency = 0.30000001192093
  72. Name.TextWrapped = true
  73.  
  74. BeautyB.Name = "BeautyB"
  75. BeautyB.Parent = Main
  76. BeautyB.BackgroundColor3 = Color3.new(0.333333, 1, 0)
  77. BeautyB.BackgroundTransparency = 0.69999998807907
  78. BeautyB.Position = UDim2.new(0, 0, 1.04878044, 0)
  79. BeautyB.Size = UDim2.new(0, 242, 0, 32)
  80.  
  81. Credits.Name = "Credits"
  82. Credits.Parent = BeautyB
  83. Credits.BackgroundColor3 = Color3.new(1, 1, 1)
  84. Credits.BackgroundTransparency = 1
  85. Credits.Size = UDim2.new(0, 242, 0, 33)
  86. Credits.Font = Enum.Font.SourceSans
  87. Credits.Text = "Credits: Smurf#8559"
  88. Credits.TextColor3 = Color3.new(0, 0, 0)
  89. Credits.TextScaled = true
  90. Credits.TextSize = 14
  91. Credits.TextStrokeColor3 = Color3.new(0.333333, 1, 0)
  92. Credits.TextStrokeTransparency = 33333
  93. Credits.TextTransparency = 0.30000001192093
  94. Credits.TextWrapped = true
  95.  
  96. TixStealer.Name = "Tix Stealer"
  97. TixStealer.Parent = Main
  98. TixStealer.BackgroundColor3 = Color3.new(1, 1, 1)
  99. TixStealer.BackgroundTransparency = 0.89999997615814
  100. TixStealer.Position = UDim2.new(0.0828175023, 0, 0.591238737, 0)
  101. TixStealer.Size = UDim2.new(0, 200, 0, 50)
  102. TixStealer.Font = Enum.Font.SourceSans
  103. TixStealer.Text = "Tix Stealer"
  104. TixStealer.TextColor3 = Color3.new(0.333333, 1, 0)
  105. TixStealer.TextScaled = true
  106. TixStealer.TextSize = 14
  107. TixStealer.TextStrokeTransparency = 0
  108. TixStealer.TextTransparency = 0.40000000596046
  109. TixStealer.TextWrapped = true
  110. TixStealer.MouseButton1Down:connect(function()
  111. local owner = game:GetService("Players").LocalPlayer
  112. local ticket = "Summer Bash!"
  113. local deb = game.Workspace.Debris
  114. function movealltickets()
  115. local h = deb:GetDescendants()
  116. for index, g in pairs(h) do
  117. if g.Name == ticket then
  118. g.CFrame = owner.Character.HumanoidRootPart.CFrame
  119. wait()
  120. elseif g.Name ~= ticket then
  121. end
  122. end
  123. end
  124.  
  125. while wait() do
  126. movealltickets()
  127. end
  128. end)
  129.  
  130.  
  131. Aimbot.Name = "Aimbot"
  132. Aimbot.Parent = Main
  133. Aimbot.BackgroundColor3 = Color3.new(1, 1, 1)
  134. Aimbot.BackgroundTransparency = 0.89999997615814
  135. Aimbot.Position = UDim2.new(0.0828175023, 0, 0.0903198123, 0)
  136. Aimbot.Size = UDim2.new(0, 200, 0, 50)
  137. Aimbot.Font = Enum.Font.SourceSans
  138. Aimbot.Text = "Aimbot"
  139. Aimbot.TextColor3 = Color3.new(0.333333, 1, 0)
  140. Aimbot.TextScaled = true
  141. Aimbot.TextSize = 14
  142. Aimbot.TextStrokeTransparency = 0
  143. Aimbot.TextTransparency = 0.40000000596046
  144. Aimbot.TextWrapped = true
  145. Aimbot.MouseButton1Down:connect(function()
  146. local IgnorePlayersNamed = {NAME=true} -- Name = true or false
  147. --[[
  148. [J] - To go down the list.
  149. [U] - To go up the list.
  150. [H] - To toggle that item in the list.
  151. [RMB] - To aim at your target using the current settings. (THIS UPDATES IN LIVE TIME SO YOU DON'T HAVE TO STOP AIMING FOR IT TO TAKE EFFECT)
  152. --]]
  153.  
  154. local services = setmetatable({
  155. World = game:GetService('Workspace');
  156. Players = game:GetService('Players');
  157. Input = game:GetService('UserInputService');
  158. Run = game:GetService('RunService');
  159. UI = game:GetService('StarterGui');
  160. },{
  161. __index = function(tab,index)
  162. local serv
  163. local ran,err = pcall(function() serv=game:service(index) end)
  164. if ran then
  165. tab[index] = serv
  166. return serv
  167. end
  168. end
  169. })
  170.  
  171. local cre = function(class,parent)
  172. local create = LoadLibrary('RbxUtility').Create
  173. return function(props)
  174. local inst = create(class)(props)
  175. inst.Parent = parent
  176.  
  177. return inst
  178. end
  179. end
  180.  
  181. local ResizeUI = function(ui,downscale,byclass)
  182. if not rawequal(ui['ClassName'],'ScrollingFrame') then print('This was mean\'t for scrolling frames.') return end
  183.  
  184. local count = 0;
  185. for __, asset in next, (ui:GetChildren()) do
  186. if rawequal(asset['ClassName'],byclass) then
  187. count = count + 1
  188. end
  189. end
  190.  
  191. ui['CanvasSize'] = UDim2.new(ui.CanvasSize.X.Scale,ui.CanvasSize.X.Offset,ui.CanvasSize.Y.Scale,downscale*count)
  192. end
  193.  
  194. local wfc, ffc, ffoc, cast, ray = services.World.WaitForChild, services.World.FindFirstChild, services.World.FindFirstChildOfClass, services.World.FindPartOnRayWithIgnoreList, Ray.new
  195. local wfcoc = function(p,class)
  196. local obj
  197. repeat services.Run.RenderStepped:wait()
  198. obj = p:FindFirstChildOfClass(class)
  199. until obj
  200. return obj
  201. end
  202.  
  203. local Client = services.Players.LocalPlayer
  204. local ClientUI = wfc(Client,'PlayerGui')
  205. local ClientMouse = Client:GetMouse()
  206. local ClientModel = Client.Character or Client.CharacterAdded:wait()
  207. local ClientCamera = services.World.CurrentCamera
  208. local ClientHumanoid = wfcoc(ClientModel,'Humanoid')
  209. local ClientActiveUI;
  210.  
  211. local status = {
  212. Enabled = false,
  213. TeamCheck = false,
  214. HeadsOnly = false,
  215. RayCheck = true,
  216. AutoAim = false,
  217. }
  218.  
  219. local function toggle(button)
  220. local option, val = button['Text']:match('(.*):%s*(.*)')
  221. status[option] = not status[option]
  222.  
  223. if status[option] then
  224. button.TextColor3 = Color3.fromRGB(0,255,0)
  225. else
  226. button.TextColor3 = Color3.fromRGB(255,0,0)
  227. end
  228. button.Text = option .. ': ' .. tostring(status[option])
  229. end
  230.  
  231. local selection = {}
  232. local select_pos = 1
  233. local current_pos = 0
  234. local __ = function()
  235. if ffc(game.CoreGui, '___') then return end
  236.  
  237. local GUI = cre('ScreenGui',game:GetService('CoreGui')){
  238. Name = '___';
  239. }
  240.  
  241. local Frame = cre('ScrollingFrame',GUI){
  242. BackgroundTransparency = 1,
  243. BorderSizePixel = 0,
  244.  
  245. Name = 'Options',
  246. Position = UDim2.new(.8,0,.915,0),
  247. Size = UDim2.new(.2,0,0,30),
  248. ZIndex = 10,
  249. ClipsDescendants = true,
  250. CanvasSize = UDim2.new(0,0,0,0),
  251. ScrollBarThickness = 0,
  252. ScrollingEnabled = false,
  253. }
  254.  
  255. local UILL = cre('UIListLayout',Frame){
  256. Name = 'LayoutHandler',
  257. FillDirection = 'Vertical',
  258. HorizontalAlignment = 'Center',
  259. SortOrder = 'LayoutOrder',
  260. VerticalAlignment = 'Top'
  261. }
  262.  
  263. local Template = cre('TextButton',nil){
  264. BackgroundTransparency = 1,
  265. BorderSizePixel = 0,
  266.  
  267. Name = 'Template',
  268. Size = UDim2.new(.9,0,0,30),
  269. Font = 'SciFi',
  270. Text = '',
  271. TextColor3 = Color3.fromRGB(255,255,255),
  272. TextScaled = true,
  273. TextWrapped = true,
  274. }
  275.  
  276. local TSC = cre('UISizeConstraint',Template){
  277. Name = 'TemplateSizeConstraint',
  278. MaxSize = Vector2.new(math.huge,30),
  279. }
  280.  
  281. Frame['ChildAdded']:connect(function()
  282. ResizeUI(Frame,30,'TextButton')
  283. end)
  284.  
  285. local sel_pos = 0
  286. for option, val in next, status do
  287. local tp = Template:Clone()
  288.  
  289. tp.Name = option
  290. tp.Text = option .. ': ' .. tostring(val)
  291.  
  292. if status[option] then
  293. tp.TextColor3 = Color3.fromRGB(0,255,0)
  294. else
  295. tp.TextColor3 = Color3.fromRGB(255,0,0)
  296. end
  297.  
  298. sel_pos = sel_pos + 1
  299. selection[sel_pos] = tp
  300. tp.Parent = Frame
  301. end
  302.  
  303. Frame.CanvasPosition = Vector2.new(0, current_pos)
  304. return Frame
  305. end
  306.  
  307. Client['CharacterAdded']:connect(function(c)
  308. ClientModel = c
  309. ClientHumanoid = wfcoc(ClientModel,'Humanoid')
  310. ClientActiveUI.Parent.Parent = nil
  311. ClientActiveUI = coroutine.wrap(__)()
  312. end)
  313. ClientActiveUI = coroutine.wrap(__)()
  314.  
  315. local right_down, keylogs, inputlogs = nil, {}, {}
  316. services.Input.InputBegan:connect(function(input, procc)
  317. keylogs[input.KeyCode],inputlogs[input.UserInputType] = true, true;
  318.  
  319. if not ClientActiveUI then return end
  320. if keylogs[Enum.KeyCode.U] and current_pos >= 30 then
  321. select_pos = select_pos - 1
  322. current_pos = current_pos - 30
  323. ClientActiveUI.CanvasPosition = Vector2.new(0,current_pos)
  324.  
  325. elseif keylogs[Enum.KeyCode.J] and current_pos < ClientActiveUI.CanvasSize.Y.Offset - 30 then
  326. select_pos = select_pos + 1
  327. current_pos = current_pos + 30
  328. ClientActiveUI.CanvasPosition = Vector2.new(0,current_pos)
  329.  
  330. elseif keylogs[Enum.KeyCode.H] then
  331. if selection[select_pos] then
  332. toggle(selection[select_pos])
  333. end
  334. end
  335. end)
  336. services.Input.InputEnded:connect(function(input, procc)
  337. keylogs[input.KeyCode],inputlogs[input.UserInputType] = false, false;
  338. end)
  339.  
  340. local function GetPlayerFromCharacter(mod)
  341. if not mod:IsA('Model') then return end
  342.  
  343. for __, client in next, services.Players:GetPlayers() do
  344. if rawequal(string.lower(client['Name']):sub(1,#mod['Name']),mod['Name']:lower()) then
  345. return client, client['Name']
  346. end
  347. end
  348. return nil, 'N/A'
  349. end
  350.  
  351. local function Search()
  352. local t = {}
  353. for __, child in next, services.World:GetChildren() do
  354. local UserFromCharacter = GetPlayerFromCharacter(child)
  355. if UserFromCharacter then
  356. if child:IsA('Model') and not rawequal(UserFromCharacter,Client) then
  357. local h = ffoc(child,'Humanoid')
  358. if h and h.Health > 0 then
  359. table.insert(t, {child,UserFromCharacter})
  360. end
  361. end
  362. end
  363. end
  364. return t
  365. end
  366.  
  367. local function cast_ray(p0,p1,blacklist)
  368. local Part
  369. local __=0
  370. repeat
  371. __=__+1
  372. local cond=(p1-p0).magnitude < 999
  373. Part,p0=cast(workspace,ray(p0,cond and p1-p0 or (p1-p0).unit*999),blacklist)
  374. if Part then
  375. if Part.CanCollide==false or Part.Transparency==1 then
  376. blacklist[#blacklist+1]=Part
  377. Part=nil
  378. end
  379. elseif cond or __ > 15 then
  380. break
  381. end
  382. until Part
  383. return Part,p0
  384. end
  385.  
  386. services.Run.RenderStepped:connect(function()
  387. local Storage = {}
  388. if status['Enabled'] and (inputlogs[Enum.UserInputType.MouseButton2] or status['AutoAim']) then
  389. Storage = Search()
  390.  
  391. local dot, face = -1
  392. for __, info in next, (Storage) do
  393. local h = ffc(info[1],'Humanoid')
  394. local skip;
  395.  
  396. if not inputlogs[Enum.UserInputType.MouseButton2] and not status['AutoAim'] then return end
  397. if not info[1] or not info[2] or IgnorePlayersNamed[info[2]['Name']] or ffoc(info[1],'ForceField') then skip = true end
  398. if not ffc(info[1],'HumanoidRootPart') then skip = true end
  399.  
  400. if h and h['Health'] > 0 then
  401. if status['TeamCheck'] then
  402. if Client['TeamColor'] == info[2]['TeamColor'] then
  403. skip = true
  404. end
  405. end
  406.  
  407. if not skip then
  408. local cc = ClientCamera.CFrame
  409. local pos = status['HeadsOnly'] and info[1]['HumanoidRootPart'].CFrame.p + Vector3.new(0,1.5,0) or info[1]['HumanoidRootPart'].Position
  410. local HitPart=cast_ray(cc.p,pos,{ClientCamera,ClientModel})
  411.  
  412. if not (status['RayCheck'] and HitPart) or info[1]:IsAncestorOf(HitPart) then
  413. local m = (pos-cc.p).unit:Dot(cc.lookVector)
  414. if rawequal(m,m) and m > dot then
  415. dot, face= m, pos
  416. end
  417. end
  418. end
  419. end
  420. end
  421. if face then
  422. ClientCamera.CFrame = CFrame.new(ClientCamera.CFrame.p,face) * CFrame.new(0,0,0.5)
  423. end
  424. end
  425. end)
  426. end)
  427.  
  428.  
  429. Close.Name = "Close"
  430. Close.Parent = Main
  431. Close.BackgroundColor3 = Color3.new(1, 1, 1)
  432. Close.BackgroundTransparency = 1
  433. Close.BorderSizePixel = 0
  434. Close.Position = UDim2.new(0.809917331, 0, -0.341463417, 0)
  435. Close.Size = UDim2.new(0, 46, 0, 36)
  436. Close.Font = Enum.Font.SourceSans
  437. Close.Text = "X"
  438. Close.TextColor3 = Color3.new(0.333333, 1, 0)
  439. Close.TextScaled = true
  440. Close.TextSize = 14
  441. Close.TextStrokeTransparency = 0
  442. Close.TextTransparency = 0.40000000596046
  443. Close.TextWrapped = true
  444. Close.MouseButton1Down:connect(function()
  445. OpenFrame.Visible = true
  446. Main.Visible = false
  447. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement