Advertisement
puilt9y

puilt9y combat war script

Aug 10th, 2022
874
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 39.86 KB | None | 0 0
  1. --script at puilt9y
  2. --reported reach already
  3. local library = {}
  4. local windowCount = 0
  5. local sizes = {}
  6. local listOffset = {}
  7. local windows = {}
  8. local pastSliders = {}
  9. local dropdowns = {}
  10. local dropdownSizes = {}
  11. local destroyed
  12.  
  13. local colorPickers = {}
  14.  
  15. if game.CoreGui:FindFirstChild('TurtleUiLib') then
  16. game.CoreGui:FindFirstChild('TurtleUiLib'):Destroy()
  17. destroyed = true
  18. end
  19.  
  20. function Lerp(a, b, c)
  21. return a + ((b - a) * c)
  22. end
  23.  
  24. local players = game:service('Players');
  25. local player = players.LocalPlayer;
  26. local mouse = player:GetMouse();
  27. local run = game:service('RunService');
  28. local stepped = run.Stepped;
  29. function Dragify(obj)
  30. spawn(function()
  31. local minitial;
  32. local initial;
  33. local isdragging;
  34. obj.InputBegan:Connect(function(input)
  35. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  36. isdragging = true;
  37. minitial = input.Position;
  38. initial = obj.Position;
  39. local con;
  40. con = stepped:Connect(function()
  41. if isdragging then
  42. local delta = Vector3.new(mouse.X, mouse.Y, 0) - minitial;
  43. obj.Position = UDim2.new(initial.X.Scale, initial.X.Offset + delta.X, initial.Y.Scale, initial.Y.Offset + delta.Y);
  44. else
  45. con:Disconnect();
  46. end;
  47. end);
  48. input.Changed:Connect(function()
  49. if input.UserInputState == Enum.UserInputState.End then
  50. isdragging = false;
  51. end;
  52. end);
  53. end;
  54. end);
  55. end)
  56. end
  57.  
  58. -- Instances:
  59.  
  60. local function protect_gui(obj)
  61. if destroyed then
  62. obj.Parent = game.CoreGui
  63. return
  64. end
  65. if syn and syn.protect_gui then
  66. syn.protect_gui(obj)
  67. obj.Parent = game.CoreGui
  68. elseif PROTOSMASHER_LOADED then
  69. obj.Parent = get_hidden_gui()
  70. else
  71. obj.Parent = game.CoreGui
  72. end
  73. end
  74. local TurtleUiLib = Instance.new("ScreenGui")
  75.  
  76. TurtleUiLib.Name = "TurtleUiLib"
  77.  
  78. protect_gui(TurtleUiLib)
  79.  
  80. local xOffset = 20
  81.  
  82. local uis = game:GetService("UserInputService")
  83.  
  84. local keybindConnection
  85.  
  86. function library:Destroy()
  87. TurtleUiLib:Destroy()
  88. if keybindConnection then
  89. keybindConnection:Disconnect()
  90. end
  91. end
  92. function library:Hide()
  93. TurtleUiLib.Enabled = not TurtleUiLib.Enabled
  94. end
  95.  
  96. function library:Keybind(key)
  97. if keybindConnection then keybindConnection:Disconnect() end
  98.  
  99. keybindConnection = uis.InputBegan:Connect(function(input, gp)
  100. if not gp and input.KeyCode == Enum.KeyCode[key] then
  101. TurtleUiLib.Enabled = not TurtleUiLib.Enabled
  102. end
  103. end)
  104. end
  105.  
  106. function library:Window(name)
  107. windowCount = windowCount + 1
  108. local winCount = windowCount
  109. local zindex = winCount * 7
  110. local UiWindow = Instance.new("Frame")
  111.  
  112. UiWindow.Name = "UiWindow"
  113. UiWindow.Parent = TurtleUiLib
  114. UiWindow.BackgroundColor3 = Color3.fromRGB(0, 151, 230)
  115. UiWindow.BorderColor3 = Color3.fromRGB(0, 151, 230)
  116. UiWindow.Position = UDim2.new(0, xOffset, 0, 20)
  117. UiWindow.Size = UDim2.new(0, 207, 0, 33)
  118. UiWindow.ZIndex = 4 + zindex
  119. UiWindow.Active = true
  120. Dragify(UiWindow)
  121.  
  122. xOffset = xOffset + 230
  123.  
  124. local Header = Instance.new("Frame")
  125. Header.Name = "Header"
  126. Header.Parent = UiWindow
  127. Header.BackgroundColor3 = Color3.fromRGB(0, 168, 255)
  128. Header.BorderColor3 = Color3.fromRGB(0, 168, 255)
  129. Header.Position = UDim2.new(0, 0, -0.0202544238, 0)
  130. Header.Size = UDim2.new(0, 207, 0, 26)
  131. Header.ZIndex = 5 + zindex
  132.  
  133. local HeaderText = Instance.new("TextLabel")
  134. HeaderText.Name = "HeaderText"
  135. HeaderText.Parent = Header
  136. HeaderText.BackgroundColor3 = Color3.fromRGB(40, 40, 40)
  137. HeaderText.BackgroundTransparency = 1.000
  138. HeaderText.Position = UDim2.new(0, 0, -0.0020698905, 0)
  139. HeaderText.Size = UDim2.new(0, 206, 0, 33)
  140. HeaderText.ZIndex = 6 + zindex
  141. HeaderText.Font = Enum.Font.SourceSans
  142. HeaderText.Text = name or "Window"
  143. HeaderText.TextColor3 = Color3.fromRGB(47, 54, 64)
  144. HeaderText.TextSize = 17.000
  145.  
  146. local Minimise = Instance.new("TextButton")
  147. local Window = Instance.new("Frame")
  148. Minimise.Name = "Minimise"
  149. Minimise.Parent = Header
  150. Minimise.BackgroundColor3 = Color3.fromRGB(0, 168, 255)
  151. Minimise.BorderColor3 = Color3.fromRGB(0, 168, 255)
  152. Minimise.Position = UDim2.new(0, 185, 0, 2)
  153. Minimise.Size = UDim2.new(0, 22, 0, 22)
  154. Minimise.ZIndex = 7 + zindex
  155. Minimise.Font = Enum.Font.SourceSansLight
  156. Minimise.Text = "_"
  157. Minimise.TextColor3 = Color3.fromRGB(0, 0, 0)
  158. Minimise.TextSize = 20.000
  159. Minimise.MouseButton1Up:connect(function()
  160. Window.Visible = not Window.Visible
  161. if Window.Visible then
  162. Minimise.Text = "_"
  163. else
  164. Minimise.Text = "+"
  165. end
  166. end)
  167.  
  168. Window.Name = "Window"
  169. Window.Parent = Header
  170. Window.BackgroundColor3 = Color3.fromRGB(47, 54, 64)
  171. Window.BorderColor3 = Color3.fromRGB(47, 54, 64)
  172. Window.Position = UDim2.new(0, 0, 0, 0)
  173. Window.Size = UDim2.new(0, 207, 0, 33)
  174. Window.ZIndex = 1 + zindex
  175.  
  176. local functions = {}
  177. sizes[winCount] = 33
  178. listOffset[winCount] = 10
  179. function functions:Button(name, callback)
  180. local name = name or "Button"
  181. local callback = callback or function() end
  182.  
  183. sizes[winCount] = sizes[winCount] + 32
  184. Window.Size = UDim2.new(0, 207, 0, sizes[winCount] + 10)
  185.  
  186. local Button = Instance.new("TextButton")
  187. listOffset[winCount] = listOffset[winCount] + 32
  188. Button.Name = "Button"
  189. Button.Parent = Window
  190. Button.BackgroundColor3 = Color3.fromRGB(53, 59, 72)
  191. Button.BorderColor3 = Color3.fromRGB(113, 128, 147)
  192. Button.Position = UDim2.new(0, 12, 0, listOffset[winCount])
  193. Button.Size = UDim2.new(0, 182, 0, 26)
  194. Button.ZIndex = 2 + zindex
  195. Button.Selected = true
  196. Button.Font = Enum.Font.SourceSans
  197. Button.TextColor3 = Color3.fromRGB(245, 246, 250)
  198. Button.TextSize = 16.000
  199. Button.TextStrokeTransparency = 123.000
  200. Button.TextWrapped = true
  201. Button.Text = name
  202. Button.MouseButton1Down:Connect(callback)
  203.  
  204. pastSliders[winCount] = false
  205. end
  206. function functions:Label(text, color)
  207. local color = color or Color3.fromRGB(220, 221, 225)
  208.  
  209. sizes[winCount] = sizes[winCount] + 32
  210. Window.Size = UDim2.new(0, 207, 0, sizes[winCount] + 10)
  211.  
  212. listOffset[winCount] = listOffset[winCount] + 32
  213. local Label = Instance.new("TextLabel")
  214. Label.Name = "Label"
  215. Label.Parent = Window
  216. Label.BackgroundColor3 = Color3.fromRGB(220, 221, 225)
  217. Label.BackgroundTransparency = 1.000
  218. Label.BorderColor3 = Color3.fromRGB(27, 42, 53)
  219. Label.Position = UDim2.new(0, 0, 0, listOffset[winCount])
  220. Label.Size = UDim2.new(0, 206, 0, 29)
  221. Label.Font = Enum.Font.SourceSans
  222. Label.Text = text or "Label"
  223. Label.TextSize = 16.000
  224. Label.ZIndex = 2 + zindex
  225.  
  226. if type(color) == "boolean" and color then
  227. spawn(function()
  228. while wait() do
  229. local hue = tick() % 5 / 5
  230. Label.TextColor3 = Color3.fromHSV(hue, 1, 1)
  231. end
  232. end)
  233. else
  234. Label.TextColor3 = color
  235. end
  236. pastSliders[winCount] = false
  237.  
  238. return Label
  239. end
  240. function functions:Toggle(text, on, callback)
  241. local callback = callback or function() end
  242.  
  243. sizes[winCount] = sizes[winCount] + 32
  244. Window.Size = UDim2.new(0, 207, 0, sizes[winCount] + 10)
  245.  
  246. listOffset[winCount] = listOffset[winCount] + 32
  247.  
  248. local ToggleDescription = Instance.new("TextLabel")
  249. local ToggleButton = Instance.new("TextButton")
  250. local ToggleFiller = Instance.new("Frame")
  251.  
  252. ToggleDescription.Name = "ToggleDescription"
  253. ToggleDescription.Parent = Window
  254. ToggleDescription.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  255. ToggleDescription.BackgroundTransparency = 1.000
  256. ToggleDescription.Position = UDim2.new(0, 14, 0, listOffset[winCount])
  257. ToggleDescription.Size = UDim2.new(0, 131, 0, 26)
  258. ToggleDescription.Font = Enum.Font.SourceSans
  259. ToggleDescription.Text = text or "Toggle"
  260. ToggleDescription.TextColor3 = Color3.fromRGB(245, 246, 250)
  261. ToggleDescription.TextSize = 16.000
  262. ToggleDescription.TextWrapped = true
  263. ToggleDescription.TextXAlignment = Enum.TextXAlignment.Left
  264. ToggleDescription.ZIndex = 2 + zindex
  265.  
  266. ToggleButton.Name = "ToggleButton"
  267. ToggleButton.Parent = ToggleDescription
  268. ToggleButton.BackgroundColor3 = Color3.fromRGB(47, 54, 64)
  269. ToggleButton.BorderColor3 = Color3.fromRGB(113, 128, 147)
  270. ToggleButton.Position = UDim2.new(1.2061069, 0, 0.0769230798, 0)
  271. ToggleButton.Size = UDim2.new(0, 22, 0, 22)
  272. ToggleButton.Font = Enum.Font.SourceSans
  273. ToggleButton.Text = ""
  274. ToggleButton.TextColor3 = Color3.fromRGB(0, 0, 0)
  275. ToggleButton.TextSize = 14.000
  276. ToggleButton.ZIndex = 2 + zindex
  277. ToggleButton.MouseButton1Up:Connect(function()
  278. ToggleFiller.Visible = not ToggleFiller.Visible
  279. callback(ToggleFiller.Visible)
  280. end)
  281.  
  282. ToggleFiller.Name = "ToggleFiller"
  283. ToggleFiller.Parent = ToggleButton
  284. ToggleFiller.BackgroundColor3 = Color3.fromRGB(68, 189, 50)
  285. ToggleFiller.BorderColor3 = Color3.fromRGB(47, 54, 64)
  286. ToggleFiller.Position = UDim2.new(0, 5, 0, 5)
  287. ToggleFiller.Size = UDim2.new(0, 12, 0, 12)
  288. ToggleFiller.Visible = on
  289. ToggleFiller.ZIndex = 2 + zindex
  290. pastSliders[winCount] = false
  291. end
  292. function functions:Box(text, callback)
  293. local callback = callback or function() end
  294.  
  295. sizes[winCount] = sizes[winCount] + 32
  296. Window.Size = UDim2.new(0, 207, 0, sizes[winCount] + 10)
  297.  
  298. listOffset[winCount] = listOffset[winCount] + 32
  299. local TextBox = Instance.new("TextBox")
  300. local BoxDescription = Instance.new("TextLabel")
  301. TextBox.Parent = Window
  302. TextBox.BackgroundColor3 = Color3.fromRGB(53, 59, 72)
  303. TextBox.BorderColor3 = Color3.fromRGB(113, 128, 147)
  304. TextBox.Position = UDim2.new(0, 99, 0, listOffset[winCount])
  305. TextBox.Size = UDim2.new(0, 95, 0, 26)
  306. TextBox.Font = Enum.Font.SourceSans
  307. TextBox.PlaceholderColor3 = Color3.fromRGB(220, 221, 225)
  308. TextBox.PlaceholderText = "..."
  309. TextBox.Text = ""
  310. TextBox.TextColor3 = Color3.fromRGB(245, 246, 250)
  311. TextBox.TextSize = 16.000
  312. TextBox.TextStrokeColor3 = Color3.fromRGB(245, 246, 250)
  313. TextBox.ZIndex = 2 + zindex
  314. TextBox:GetPropertyChangedSignal('Text'):connect(function()
  315. callback(TextBox.Text, false)
  316. end)
  317. TextBox.FocusLost:Connect(function()
  318. callback(TextBox.Text, true)
  319. end)
  320.  
  321. BoxDescription.Name = "BoxDescription"
  322. BoxDescription.Parent = TextBox
  323. BoxDescription.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  324. BoxDescription.BackgroundTransparency = 1.000
  325. BoxDescription.Position = UDim2.new(-0.894736826, 0, 0, 0)
  326. BoxDescription.Size = UDim2.new(0, 75, 0, 26)
  327. BoxDescription.Font = Enum.Font.SourceSans
  328. BoxDescription.Text = text or "Box"
  329. BoxDescription.TextColor3 = Color3.fromRGB(245, 246, 250)
  330. BoxDescription.TextSize = 16.000
  331. BoxDescription.TextXAlignment = Enum.TextXAlignment.Left
  332. BoxDescription.ZIndex = 2 + zindex
  333. pastSliders[winCount] = false
  334. end
  335. function functions:Slider(text, min, max, default, callback)
  336. local text = text or "Slider"
  337. local min = min or 1
  338. local max = max or 100
  339. local default = default or max/2
  340. local callback = callback or function() end
  341. local offset = 70
  342. if default > max then
  343. default = max
  344. elseif default < min then
  345. default = min
  346. end
  347.  
  348. if pastSliders[winCount] then
  349. offset = 60
  350. end
  351.  
  352. sizes[winCount] = sizes[winCount] + offset
  353. Window.Size = UDim2.new(0, 207, 0, sizes[winCount] + 10)
  354.  
  355. listOffset[winCount] = listOffset[winCount] + offset
  356.  
  357. local Slider = Instance.new("Frame")
  358. local SliderButton = Instance.new("Frame")
  359. local Description = Instance.new("TextLabel")
  360. local SilderFiller = Instance.new("Frame")
  361. local Current = Instance.new("TextLabel")
  362. local Min = Instance.new("TextLabel")
  363. local Max = Instance.new("TextLabel")
  364.  
  365. function SliderMovement(input)
  366. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  367. isdragging = true;
  368. minitial = input.Position.X;
  369. initial = SliderButton.Position.X.Offset;
  370. local delta1 = SliderButton.AbsolutePosition.X - initial
  371. local con;
  372. con = stepped:Connect(function()
  373. if isdragging then
  374. local xOffset = mouse.X - delta1 - 3
  375. if xOffset > 175 then
  376. xOffset = 175
  377. elseif xOffset< 0 then
  378. xOffset = 0
  379. end
  380. SliderButton.Position = UDim2.new(0, xOffset , -1.33333337, 0);
  381. SilderFiller.Size = UDim2.new(0, xOffset, 0, 6)
  382. local value = Lerp(min, max, SliderButton.Position.X.Offset/(Slider.Size.X.Offset-5))
  383. Current.Text = tostring(math.round(value))
  384. else
  385. con:Disconnect();
  386. end;
  387. end);
  388. input.Changed:Connect(function()
  389. if input.UserInputState == Enum.UserInputState.End then
  390. isdragging = false;
  391. end;
  392. end);
  393. end;
  394. end
  395. function SliderEnd(input)
  396. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  397. local value = Lerp(min, max, SliderButton.Position.X.Offset/(Slider.Size.X.Offset-5))
  398. callback(math.round(value))
  399. end
  400. end
  401.  
  402. Slider.Name = "Slider"
  403. Slider.Parent = Window
  404. Slider.BackgroundColor3 = Color3.fromRGB(47, 54, 64)
  405. Slider.BorderColor3 = Color3.fromRGB(113, 128, 147)
  406. Slider.Position = UDim2.new(0, 13, 0, listOffset[winCount])
  407. Slider.Size = UDim2.new(0, 180, 0, 6)
  408. Slider.ZIndex = 2 + zindex
  409. Slider.InputBegan:Connect(SliderMovement)
  410. Slider.InputEnded:Connect(SliderEnd)
  411.  
  412. SliderButton.Position = UDim2.new(0, (Slider.Size.X.Offset - 5) * ((default - min)/(max-min)), -1.333337, 0)
  413. SliderButton.Name = "SliderButton"
  414. SliderButton.Parent = Slider
  415. SliderButton.BackgroundColor3 = Color3.fromRGB(53, 59, 72)
  416. SliderButton.BorderColor3 = Color3.fromRGB(113, 128, 147)
  417. SliderButton.Size = UDim2.new(0, 6, 0, 22)
  418. SliderButton.ZIndex = 3 + zindex
  419. SliderButton.InputBegan:Connect(SliderMovement)
  420. SliderButton.InputEnded:Connect(SliderEnd)
  421.  
  422. Current.Name = "Current"
  423. Current.Parent = SliderButton
  424. Current.BackgroundTransparency = 1.000
  425. Current.Position = UDim2.new(0, 3, 0, 22 )
  426. Current.Size = UDim2.new(0, 0, 0, 18)
  427. Current.Font = Enum.Font.SourceSans
  428. Current.Text = tostring(default)
  429. Current.TextColor3 = Color3.fromRGB(220, 221, 225)
  430. Current.TextSize = 14.000
  431. Current.ZIndex = 2 + zindex
  432.  
  433. Description.Name = "Description"
  434. Description.Parent = Slider
  435. Description.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  436. Description.BackgroundTransparency = 1.000
  437. Description.Position = UDim2.new(0, -10, 0, -35)
  438. Description.Size = UDim2.new(0, 200, 0, 21)
  439. Description.Font = Enum.Font.SourceSans
  440. Description.Text = text
  441. Description.TextColor3 = Color3.fromRGB(245, 246, 250)
  442. Description.TextSize = 16.000
  443. Description.ZIndex = 2 + zindex
  444.  
  445. SilderFiller.Name = "SilderFiller"
  446. SilderFiller.Parent = Slider
  447. SilderFiller.BackgroundColor3 = Color3.fromRGB(76, 209, 55)
  448. SilderFiller.BorderColor3 = Color3.fromRGB(47, 54, 64)
  449. SilderFiller.Size = UDim2.new(0, (Slider.Size.X.Offset - 5) * ((default - min)/(max-min)), 0, 6)
  450. SilderFiller.ZIndex = 2 + zindex
  451. SilderFiller.BorderMode = Enum.BorderMode.Inset
  452.  
  453. Min.Name = "Min"
  454. Min.Parent = Slider
  455. Min.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  456. Min.BackgroundTransparency = 1.000
  457. Min.Position = UDim2.new(-0.00555555569, 0, -7.33333397, 0)
  458. Min.Size = UDim2.new(0, 77, 0, 50)
  459. Min.Font = Enum.Font.SourceSans
  460. Min.Text = tostring(min)
  461. Min.TextColor3 = Color3.fromRGB(220, 221, 225)
  462. Min.TextSize = 14.000
  463. Min.TextXAlignment = Enum.TextXAlignment.Left
  464. Min.ZIndex = 2 + zindex
  465.  
  466. Max.Name = "Max"
  467. Max.Parent = Slider
  468. Max.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  469. Max.BackgroundTransparency = 1.000
  470. Max.Position = UDim2.new(0.577777743, 0, -7.33333397, 0)
  471. Max.Size = UDim2.new(0, 77, 0, 50)
  472. Max.Font = Enum.Font.SourceSans
  473. Max.Text = tostring(max)
  474. Max.TextColor3 = Color3.fromRGB(220, 221, 225)
  475. Max.TextSize = 14.000
  476. Max.TextXAlignment = Enum.TextXAlignment.Right
  477. Max.ZIndex = 2 + zindex
  478. pastSliders[winCount] = true
  479.  
  480. local slider = {}
  481. function slider:SetValue(value)
  482. value = math.clamp(value, min, max)
  483. local xOffset = (value-min)/max * (Slider.Size.X.Offset)
  484. SliderButton.Position = UDim2.new(0, xOffset , -1.33333337, 0);
  485. SilderFiller.Size = UDim2.new(0, xOffset, 0, 6)
  486. Current.Text = tostring(math.round(value))
  487. end
  488. return slider
  489. end
  490. function functions:Dropdown(text, buttons, callback, selective)
  491. local text = text or "Dropdown"
  492. local buttons = buttons or {}
  493. local callback = callback or function() end
  494.  
  495. local Dropdown = Instance.new("TextButton")
  496. local DownSign = Instance.new("TextLabel")
  497. local DropdownFrame = Instance.new("ScrollingFrame")
  498.  
  499. sizes[winCount] = sizes[winCount] + 32
  500. Window.Size = UDim2.new(0, 207, 0, sizes[winCount] + 10)
  501.  
  502. listOffset[winCount] = listOffset[winCount] + 32
  503.  
  504. Dropdown.Name = "Dropdown"
  505. Dropdown.Parent = Window
  506. Dropdown.BackgroundColor3 = Color3.fromRGB(53, 59, 72)
  507. Dropdown.BorderColor3 = Color3.fromRGB(113, 128, 147)
  508. Dropdown.Position = UDim2.new(0, 12, 0, listOffset[winCount])
  509. Dropdown.Size = UDim2.new(0, 182, 0, 26)
  510. Dropdown.Selected = true
  511. Dropdown.Font = Enum.Font.SourceSans
  512. Dropdown.Text = tostring(text)
  513. Dropdown.TextColor3 = Color3.fromRGB(245, 246, 250)
  514. Dropdown.TextSize = 16.000
  515. Dropdown.TextStrokeTransparency = 123.000
  516. Dropdown.TextWrapped = true
  517. Dropdown.ZIndex = 3 + zindex
  518. Dropdown.MouseButton1Up:Connect(function()
  519. for i, v in pairs(dropdowns) do
  520. if v ~= DropdownFrame then
  521. v.Visible = false
  522. DownSign.Rotation = 0
  523. end
  524. end
  525. if DropdownFrame.Visible then
  526. DownSign.Rotation = 0
  527. else
  528. DownSign.Rotation = 180
  529. end
  530. DropdownFrame.Visible = not DropdownFrame.Visible
  531. end)
  532.  
  533. DownSign.Name = "DownSign"
  534. DownSign.Parent = Dropdown
  535. DownSign.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  536. DownSign.BackgroundTransparency = 1.000
  537. DownSign.Position = UDim2.new(0, 155, 0, 2)
  538. DownSign.Size = UDim2.new(0, 27, 0, 22)
  539. DownSign.Font = Enum.Font.SourceSans
  540. DownSign.Text = "^"
  541. DownSign.TextColor3 = Color3.fromRGB(220, 221, 225)
  542. DownSign.TextSize = 20.000
  543. DownSign.ZIndex = 4 + zindex
  544. DownSign.TextYAlignment = Enum.TextYAlignment.Bottom
  545.  
  546. DropdownFrame.Name = "DropdownFrame"
  547. DropdownFrame.Parent = Dropdown
  548. DropdownFrame.Active = true
  549. DropdownFrame.BackgroundColor3 = Color3.fromRGB(53, 59, 72)
  550. DropdownFrame.BorderColor3 = Color3.fromRGB(53, 59, 72)
  551. DropdownFrame.Position = UDim2.new(0, 0, 0, 28)
  552. DropdownFrame.Size = UDim2.new(0, 182, 0, 0)
  553. DropdownFrame.Visible = false
  554. DropdownFrame.CanvasSize = UDim2.new(0, 0, 0, 0)
  555. DropdownFrame.ScrollBarThickness = 4
  556. DropdownFrame.VerticalScrollBarPosition = Enum.VerticalScrollBarPosition.Left
  557. DropdownFrame.ZIndex = 5 + zindex
  558. DropdownFrame.ScrollingDirection = Enum.ScrollingDirection.Y
  559. DropdownFrame.ScrollBarImageColor3 = Color3.fromRGB(220, 221, 225)
  560. table.insert(dropdowns, DropdownFrame)
  561. local dropFunctions = {}
  562. local canvasSize = 0
  563. function dropFunctions:Button(name)
  564. local name = name or ""
  565. local Button_2 = Instance.new("TextButton")
  566. Button_2.Name = "Button"
  567. Button_2.Parent = DropdownFrame
  568. Button_2.BackgroundColor3 = Color3.fromRGB(53, 59, 72)
  569. Button_2.BorderColor3 = Color3.fromRGB(113, 128, 147)
  570. Button_2.Position = UDim2.new(0, 6, 0, canvasSize + 1)
  571. Button_2.Size = UDim2.new(0, 170, 0, 26)
  572. Button_2.Selected = true
  573. Button_2.Font = Enum.Font.SourceSans
  574. Button_2.TextColor3 = Color3.fromRGB(245, 246, 250)
  575. Button_2.TextSize = 16.000
  576. Button_2.TextStrokeTransparency = 123.000
  577. Button_2.ZIndex = 6 + zindex
  578. Button_2.Text = name
  579. Button_2.TextWrapped = true
  580. canvasSize = canvasSize + 27
  581. DropdownFrame.CanvasSize = UDim2.new(0, 182, 0, canvasSize + 1)
  582. if #DropdownFrame:GetChildren() < 8 then
  583. DropdownFrame.Size = UDim2.new(0, 182, 0, DropdownFrame.Size.Y.Offset + 27)
  584. end
  585. Button_2.MouseButton1Up:Connect(function()
  586. callback(name)
  587. DropdownFrame.Visible = false
  588. if selective then
  589. Dropdown.Text = name
  590. end
  591. end)
  592. end
  593. function dropFunctions:Remove(name)
  594. local foundIt
  595. for i, v in pairs(DropdownFrame:GetChildren()) do
  596. if foundIt then
  597. canvasSize = canvasSize - 27
  598. v.Position = UDim2.new(0, 6, 0, v.Position.Y.Offset - 27)
  599. DropdownFrame.CanvasSize = UDim2.new(0, 182, 0, canvasSize + 1)
  600. end
  601. if v.Text == name then
  602. foundIt = true
  603. v:Destroy()
  604. if #DropdownFrame:GetChildren() < 8 then
  605. DropdownFrame.Size = UDim2.new(0, 182, 0, DropdownFrame.Size.Y.Offset - 27)
  606. end
  607. end
  608. end
  609. if not foundIt then
  610. warn("The button you tried to remove didn't exist!")
  611. end
  612. end
  613.  
  614. for i,v in pairs(buttons) do
  615. dropFunctions:Button(v)
  616. end
  617.  
  618. return dropFunctions
  619. end
  620. function functions:ColorPicker(name, default, callback)
  621. local callback = callback or function() end
  622.  
  623. local ColorPicker = Instance.new("TextButton")
  624. local PickerCorner = Instance.new("UICorner")
  625. local PickerDescription = Instance.new("TextLabel")
  626. local ColorPickerFrame = Instance.new("Frame")
  627. local ToggleRGB = Instance.new("TextButton")
  628. local ToggleFiller_2 = Instance.new("Frame")
  629. local TextLabel = Instance.new("TextLabel")
  630. local ClosePicker = Instance.new("TextButton")
  631. local Canvas = Instance.new("Frame")
  632. local CanvasGradient = Instance.new("UIGradient")
  633. local Cursor = Instance.new("ImageLabel")
  634. local Color = Instance.new("Frame")
  635. local ColorGradient = Instance.new("UIGradient")
  636. local ColorSlider = Instance.new("Frame")
  637. local Title = Instance.new("TextLabel")
  638. local UICorner = Instance.new("UICorner")
  639. local ColorCorner = Instance.new("UICorner")
  640. local BlackOverlay = Instance.new("ImageLabel")
  641.  
  642. sizes[winCount] = sizes[winCount] + 32
  643. Window.Size = UDim2.new(0, 207, 0, sizes[winCount] + 10)
  644.  
  645. listOffset[winCount] = listOffset[winCount] + 32
  646.  
  647. ColorPicker.Name = "ColorPicker"
  648. ColorPicker.Parent = Window
  649. ColorPicker.Position = UDim2.new(0, 137, 0, listOffset[winCount])
  650. ColorPicker.Size = UDim2.new(0, 57, 0, 26)
  651. ColorPicker.Font = Enum.Font.SourceSans
  652. ColorPicker.Text = ""
  653. ColorPicker.TextColor3 = Color3.fromRGB(0, 0, 0)
  654. ColorPicker.TextSize = 14.000
  655. ColorPicker.ZIndex = 2 + zindex
  656. ColorPicker.MouseButton1Up:Connect(function()
  657. for i, v in pairs(colorPickers) do
  658. v.Visible = false
  659. end
  660. ColorPickerFrame.Visible = not ColorPickerFrame.Visible
  661. end)
  662.  
  663. PickerCorner.Parent = ColorPicker
  664. PickerCorner.Name = "PickerCorner"
  665. PickerCorner.CornerRadius = UDim.new(0,2)
  666.  
  667. PickerDescription.Name = "PickerDescription"
  668. PickerDescription.Parent = ColorPicker
  669. PickerDescription.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  670. PickerDescription.BackgroundTransparency = 1.000
  671. PickerDescription.Position = UDim2.new(-2.15789509, 0, 0, 0)
  672. PickerDescription.Size = UDim2.new(0, 116, 0, 26)
  673. PickerDescription.Font = Enum.Font.SourceSans
  674. PickerDescription.Text = name or "Color picker"
  675. PickerDescription.TextColor3 = Color3.fromRGB(245, 246, 250)
  676. PickerDescription.TextSize = 16.000
  677. PickerDescription.TextXAlignment = Enum.TextXAlignment.Left
  678. PickerDescription.ZIndex = 2 + zindex
  679.  
  680. ColorPickerFrame.Name = "ColorPickerFrame"
  681. ColorPickerFrame.Parent = ColorPicker
  682. ColorPickerFrame.BackgroundColor3 = Color3.fromRGB(47, 54, 64)
  683. ColorPickerFrame.BorderColor3 = Color3.fromRGB(47, 54, 64)
  684. ColorPickerFrame.Position = UDim2.new(1.40350854, 0, -2.84615374, 0)
  685. ColorPickerFrame.Size = UDim2.new(0, 158, 0, 155)
  686. ColorPickerFrame.ZIndex = 3 + zindex
  687. ColorPickerFrame.Visible = false
  688.  
  689. ToggleRGB.Name = "ToggleRGB"
  690. ToggleRGB.Parent = ColorPickerFrame
  691. ToggleRGB.BackgroundColor3 = Color3.fromRGB(47, 54, 64)
  692. ToggleRGB.BorderColor3 = Color3.fromRGB(113, 128, 147)
  693. ToggleRGB.Position = UDim2.new(0, 125, 0, 127)
  694. ToggleRGB.Size = UDim2.new(0, 22, 0, 22)
  695. ToggleRGB.Font = Enum.Font.SourceSans
  696. ToggleRGB.Text = ""
  697. ToggleRGB.TextColor3 = Color3.fromRGB(0, 0, 0)
  698. ToggleRGB.TextSize = 14.000
  699. ToggleRGB.ZIndex = 4 + zindex
  700.  
  701. ToggleFiller_2.Name = "ToggleFiller"
  702. ToggleFiller_2.Parent = ToggleRGB
  703. ToggleFiller_2.BackgroundColor3 = Color3.fromRGB(76, 209, 55)
  704. ToggleFiller_2.BorderColor3 = Color3.fromRGB(47, 54, 64)
  705. ToggleFiller_2.Position = UDim2.new(0, 5, 0, 5)
  706. ToggleFiller_2.Size = UDim2.new(0, 12, 0, 12)
  707. ToggleFiller_2.ZIndex = 4 + zindex
  708. ToggleFiller_2.Visible = false
  709.  
  710. TextLabel.Parent = ToggleRGB
  711. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  712. TextLabel.BackgroundTransparency = 1.000
  713. TextLabel.Position = UDim2.new(-5.13636351, 0, 0, 0)
  714. TextLabel.Size = UDim2.new(0, 106, 0, 22)
  715. TextLabel.Font = Enum.Font.SourceSans
  716. TextLabel.Text = "Rainbow"
  717. TextLabel.TextColor3 = Color3.fromRGB(245, 246, 250)
  718. TextLabel.TextSize = 16.000
  719. TextLabel.TextXAlignment = Enum.TextXAlignment.Left
  720. TextLabel.ZIndex = 4 + zindex
  721.  
  722. ClosePicker.Name = "ClosePicker"
  723. ClosePicker.Parent = ColorPickerFrame
  724. ClosePicker.BackgroundColor3 = Color3.fromRGB(47, 54, 64)
  725. ClosePicker.BorderColor3 = Color3.fromRGB(47, 54, 64)
  726. ClosePicker.Position = UDim2.new(0, 132, 0, 5)
  727. ClosePicker.Size = UDim2.new(0, 21, 0, 21)
  728. ClosePicker.Font = Enum.Font.SourceSans
  729. ClosePicker.Text = "X"
  730. ClosePicker.TextColor3 = Color3.fromRGB(245, 246, 250)
  731. ClosePicker.TextSize = 18.000
  732. ClosePicker.ZIndex = 4 + zindex
  733. ClosePicker.MouseButton1Down:Connect(function()
  734. ColorPickerFrame.Visible = not ColorPickerFrame.Visible
  735. end)
  736.  
  737. CanvasGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 255, 255))}
  738. CanvasGradient.Name = "CanvasGradient"
  739. CanvasGradient.Parent = Canvas
  740.  
  741. BlackOverlay.Name = "BlackOverlay"
  742. BlackOverlay.Parent = Canvas
  743. BlackOverlay.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  744. BlackOverlay.BackgroundTransparency = 1.000
  745. BlackOverlay.Size = UDim2.new(1, 0, 1, 0)
  746. BlackOverlay.Image = "rbxassetid://5107152095"
  747. BlackOverlay.ZIndex = 5 + zindex
  748.  
  749. UICorner.Parent = Canvas
  750. UICorner.Name = "UICorner"
  751. UICorner.CornerRadius = UDim.new(0,2)
  752.  
  753. Cursor.Name = "Cursor"
  754. Cursor.Parent = Canvas
  755. Cursor.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  756. Cursor.BackgroundTransparency = 1.000
  757. Cursor.Size = UDim2.new(0, 8, 0, 8)
  758. Cursor.Image = "rbxassetid://5100115962"
  759. Cursor.ZIndex = 5 + zindex
  760.  
  761. local draggingColor = false
  762. local hue = 0
  763. local sat = 1
  764. local brightness = 1
  765.  
  766. local con
  767.  
  768. ToggleRGB.MouseButton1Down:Connect(function()
  769. ToggleFiller_2.Visible = not ToggleFiller_2.Visible
  770. if ToggleFiller_2.Visible then
  771. con = stepped:Connect(function()
  772. if ToggleFiller_2.Visible then
  773. local hue2 = tick() % 5 / 5
  774. color3 = Color3.fromHSV(hue2, 1, 1)
  775. callback(color3, true)
  776. ColorPicker.BackgroundColor3 = color3
  777. else
  778. con:Disconnect()
  779. end
  780. end)
  781. end
  782. end)
  783.  
  784. if default and type(default) == "boolean" then
  785. ToggleFiller_2.Visible = true
  786. if ToggleFiller_2.Visible then
  787. con = stepped:Connect(function()
  788. if ToggleFiller_2.Visible then
  789. local hue2 = tick() % 5 / 5
  790. color3 = Color3.fromHSV(hue2, 1, 1)
  791. callback(color3)
  792. ColorPicker.BackgroundColor3 = color3
  793. else
  794. con:Disconnect()
  795. end
  796. end)
  797. end
  798. else
  799. ColorPicker.BackgroundColor3 = default or Color3.fromRGB(0, 168, 255)
  800. end
  801.  
  802. Canvas.Name = "Canvas"
  803. Canvas.Parent = ColorPickerFrame
  804. Canvas.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  805. Canvas.Position = UDim2.new(0, 5, 0, 34)
  806. Canvas.Size = UDim2.new(0, 148, 0, 64)
  807. Canvas.ZIndex = 4 + zindex
  808. local canvasSize, canvasPosition = Canvas.AbsoluteSize, Canvas.AbsolutePosition
  809. Canvas.InputBegan:Connect(function(input)
  810. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  811. local initial = Vector2.new(Cursor.Position.X.Offset, Cursor.Position.Y.Offset)
  812. local delta = Cursor.AbsolutePosition - initial
  813. local con;
  814. local isdragging = true
  815.  
  816. con = stepped:Connect(function()
  817. if isdragging then
  818. local delta2 = Vector2.new(mouse.X, mouse.Y) - delta
  819. local x = math.clamp(delta2.X, 2, Canvas.Size.X.Offset - 2)
  820. local y = math.clamp(delta2.Y, 2, Canvas.Size.Y.Offset - 2)
  821.  
  822. sat = 1 - math.clamp((mouse.X - canvasPosition.X) / canvasSize.X, 0, 1)
  823. brightness = 1 - math.clamp((mouse.Y - canvasPosition.Y) / canvasSize.Y, 0, 1)
  824.  
  825. color3 = Color3.fromHSV(hue, sat, brightness)
  826.  
  827. Cursor.Position = UDim2.fromOffset(x - 4, y - 4)
  828. ColorPicker.BackgroundColor3 = color3
  829. callback(color3)
  830. else
  831. con:Disconnect();
  832. end;
  833. end);
  834. input.Changed:Connect(function()
  835. if input.UserInputState == Enum.UserInputState.End then
  836. isdragging = false;
  837. end;
  838. end);
  839. end;
  840. end);
  841.  
  842. Color.Name = "Color"
  843. Color.Parent = ColorPickerFrame
  844. Color.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  845. Color.Position = UDim2.new(0, 5, 0, 105)
  846. Color.Size = UDim2.new(0, 148, 0, 14)
  847. Color.BorderMode = Enum.BorderMode.Inset
  848. Color.ZIndex = 4 + zindex
  849. Color.InputBegan:Connect(function(input)
  850. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  851. draggingColor = true
  852. local initial2 = ColorSlider.Position.X.Offset;
  853. local delta1 = ColorSlider.AbsolutePosition.X - initial2
  854. local con
  855. con = stepped:Connect(function()
  856. if draggingColor then
  857. -- gets the position of the mouse on the color thing and divides it by its size, whcih will give u the hue
  858. local colorPosition, colorSize = Color.AbsolutePosition, Color.AbsoluteSize
  859. hue = 1 - math.clamp(1 - ((mouse.X - colorPosition.X) / colorSize.X), 0, 1)
  860. CanvasGradient.Color = ColorSequence.new{ColorSequenceKeypoint.new(0.00, Color3.fromHSV(hue, 1, 1)), ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 255, 255))}
  861.  
  862. local xOffset = math.clamp(mouse.X - delta1, 0, Color.Size.X.Offset - 3)
  863. ColorSlider.Position = UDim2.new(0, xOffset, 0, 0);
  864.  
  865. color3 = Color3.fromHSV(hue, sat, brightness)
  866. ColorPicker.BackgroundColor3 = color3
  867. callback(color3)
  868. else
  869. con:Disconnect()
  870. end
  871. end)
  872. end
  873. end)
  874. Color.InputEnded:Connect(function(input)
  875. if input.UserInputType == Enum.UserInputType.MouseButton1 or input.UserInputType == Enum.UserInputType.Touch then
  876. draggingColor = false
  877. end
  878. end)
  879. ColorGradient.Color = ColorSequence.new({
  880. ColorSequenceKeypoint.new(0.00, Color3.fromRGB(255, 0, 0)),
  881. ColorSequenceKeypoint.new(0.17, Color3.fromRGB(255, 255, 0)),
  882. ColorSequenceKeypoint.new(0.33, Color3.fromRGB(0, 255, 0)),
  883. ColorSequenceKeypoint.new(0.50, Color3.fromRGB(0, 255, 255)),
  884. ColorSequenceKeypoint.new(0.66, Color3.fromRGB(0, 0, 255)),
  885. ColorSequenceKeypoint.new(0.82, Color3.fromRGB(255, 0, 255)),
  886. ColorSequenceKeypoint.new(1.00, Color3.fromRGB(255, 0, 0))
  887. })
  888. ColorGradient.Name = "ColorGradient"
  889. ColorGradient.Parent = Color
  890.  
  891. ColorCorner.Parent = Color
  892. ColorCorner.Name = "ColorCorner"
  893. ColorCorner.CornerRadius = UDim.new(0,2)
  894.  
  895. ColorSlider.Name = "ColorSlider"
  896. ColorSlider.Parent = Color
  897. ColorSlider.BackgroundColor3 = Color3.fromRGB(245, 246, 250)
  898. ColorSlider.BorderColor3 = Color3.fromRGB(245, 246, 250)
  899. ColorSlider.Size = UDim2.new(0, 2, 0, 14)
  900. ColorSlider.ZIndex = 5 + zindex
  901.  
  902. Title.Name = "Title"
  903. Title.Parent = ColorPickerFrame
  904. Title.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  905. Title.BackgroundTransparency = 1.000
  906. Title.Position = UDim2.new(0, 10, 0, 5)
  907. Title.Size = UDim2.new(0, 118, 0, 21)
  908. Title.Font = Enum.Font.SourceSans
  909. Title.Text = name or "Color picker"
  910. Title.TextColor3 = Color3.fromRGB(245, 246, 250)
  911. Title.TextSize = 16.000
  912. Title.TextXAlignment = Enum.TextXAlignment.Left
  913. Title.ZIndex = 4 + zindex
  914.  
  915. table.insert(colorPickers, ColorPickerFrame)
  916.  
  917. local colorFuncs = {}
  918. function colorFuncs:UpdateColorPicker(color)
  919. if type(color) == "userdata" then
  920. ToggleFiller_2.Visible = false
  921. ColorPicker.BackgroundColor3 = color
  922. elseif color and type(color) == "boolean" and not con then
  923. ToggleFiller_2.Visible = true
  924. con = stepped:Connect(function()
  925. if ToggleFiller_2.Visible then
  926. local hue2 = tick() % 5 / 5
  927. color3 = Color3.fromHSV(hue2, 1, 1)
  928. callback(color3)
  929. ColorPicker.BackgroundColor3 = color3
  930. else
  931. con:Disconnect()
  932. end
  933. end)
  934. end
  935. end
  936. return colorFuncs
  937. end
  938.  
  939. return functions
  940. end
  941.  
  942. for _, tbl in ipairs(getgc(true)) do
  943. if typeof(tbl) == "table" and rawget(tbl, "Remote") then
  944. tbl.Remote.Name = tbl.Name
  945. end
  946. end
  947. local local_player = game:GetService("Players").LocalPlayer
  948. local kick_hook; kick_hook = hookmetamethod(game, "__namecall", newcclosure(function(...)
  949. local args = {...}
  950. local self = args[1]
  951. local namecall_method = getnamecallmethod()
  952. if not checkcaller() and self == local_player and namecall_method == "Kick" then
  953. return
  954. end
  955. return kick_hook(...)
  956. end))
  957.  
  958. local Movement = library:Window("Movement")
  959. local Melee = library:Window("Melee")
  960. local Credits = library:Window("Credits")
  961.  
  962. local function keydown(key)
  963. return game:GetService("UserInputService"):IsKeyDown(key)
  964. end
  965.  
  966. local function GetClosest()
  967. local Character = game.Players.LocalPlayer.Character
  968. local HumanoidRootPart = Character and Character:FindFirstChild("HumanoidRootPart")
  969. if not (Character or HumanoidRootPart) then return end
  970.  
  971. local TargetDistance = math.huge
  972. local Target
  973.  
  974. for i,v in ipairs(game.Players:GetPlayers()) do
  975. if v ~= game.Players.LocalPlayer and v.Character and v.Character:FindFirstChild("HumanoidRootPart") then
  976. local TargetHRP = v.Character.HumanoidRootPart
  977. local mag = (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - TargetHRP.Position).magnitude
  978. if mag < TargetDistance then
  979. TargetDistance = mag
  980. Target = v
  981. end
  982. end
  983. end
  984.  
  985. return Target
  986. end
  987.  
  988.  
  989. local function SecureSetProperty(Instance,Property,Value)
  990. for i,v in pairs(getconnections(Instance:GetPropertyChangedSignal(Property))) do
  991. v:Disable()
  992. end
  993. for i,v in pairs(getconnections(Instance.Changed)) do
  994. v:Disable()
  995. end
  996. if not Instance:FindFirstChild(Property) then
  997. Instance[Property] = Value
  998. return Instance:GetPropertyChangedSignal(Property):Connect(function()
  999. Instance[Property] = Value
  1000. end)
  1001. end
  1002. end
  1003.  
  1004. local function SpoofProperty(Instance,Property,Value)
  1005. local OldIndex
  1006. OldIndex = hookmetamethod(game, "__index", newcclosure(function(Self, Key)
  1007. if not checkcaller() and Self == Instance and Key == Property then
  1008. return Value
  1009. end
  1010. return OldIndex(Self, Key)
  1011. end))
  1012. end
  1013.  
  1014. local Flying = false
  1015. Movement:Toggle("Fly", false, function(bool)
  1016. Flying = bool
  1017. if bool == false then return end
  1018. while Flying do
  1019. local move = game.Players.LocalPlayer.Character.Humanoid.MoveDirection * 16 * 4
  1020. if keydown(Enum.KeyCode.Space) then
  1021. game.Players.LocalPlayer.Character.Humanoid.RootPart.Velocity = Vector3.new(0,55,0) + move
  1022. elseif keydown(Enum.KeyCode.C) then
  1023. game.Players.LocalPlayer.Character.Humanoid.RootPart.Velocity = Vector3.new(0,-55,0) + move
  1024. else
  1025. game.Players.LocalPlayer.Character.Humanoid.RootPart.Velocity = Vector3.new(0,2,0) + move
  1026. end
  1027. game:GetService("RunService").Heartbeat:wait()
  1028. end
  1029. end)
  1030.  
  1031. local Reaching = false
  1032. Melee:Toggle("Reach", false, function(bool)
  1033. Reaching = bool
  1034. if bool == false then return end
  1035. local character = game.Players.LocalPlayer.Character
  1036. local torso = character.Torso
  1037. local rightarm = character["Right Arm"]
  1038. local rightshoulder = torso["Right Shoulder"]
  1039. if rightshoulder and rightshoulder.Enabled == true then
  1040. local rightshoulderclone = rightshoulder:Clone()
  1041. rightshoulderclone.Enabled = false
  1042. rightshoulder:Destroy()
  1043. rightshoulderclone.Parent = torso
  1044. end
  1045.  
  1046. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetDescendants()) do
  1047. if v:IsA("BasePart") then
  1048. v.Massless = true
  1049. end
  1050. end
  1051. if rightarm:FindFirstChild("RagdollBallSocket") then
  1052. rightarm.RagdollBallSocket.Enabled = false
  1053. end
  1054. while Reaching do
  1055. sethiddenproperty(rightarm,"AssemblyLinearVelocity",Vector3.new(100,100,100))
  1056. rightarm.Velocity = Vector3.new(100,100,100)
  1057. if torso:FindFirstChild("Right Shoulder") then
  1058. local rightarm = character["Right Arm"]
  1059. local rightshoulder = torso["Right Shoulder"]
  1060.  
  1061. local rightshoulderclone = rightshoulder:Clone()
  1062. rightshoulderclone.Enabled = false
  1063. rightshoulder:Destroy()
  1064. rightshoulderclone.Parent = torso
  1065. end
  1066.  
  1067. local target = GetClosest()
  1068. if target.Character:FindFirstChild("Head") and (character.Head.Position - target.Character.Head.Position).magnitude < 100 then
  1069. rightarm.CFrame = GetClosest().Character.Head.CFrame * CFrame.new(math.random(-0,0),0,0)
  1070. elseif character:FindFirstChild("Head") then
  1071. rightarm.CFrame = character.Head.CFrame * CFrame.new(math.random(-0,0),0,0)
  1072. end
  1073. game:GetService("RunService").Heartbeat:wait()
  1074. end
  1075. end)
  1076.  
  1077. local Killaura = false
  1078. Melee:Toggle("Kill Aura",false,function(bool)
  1079. Killaura = bool
  1080. if bool == false then return end
  1081. while Killaura do
  1082. for i = 1,3 do
  1083. local target = GetClosest().Character
  1084. local character = game.Players.LocalPlayer.Character
  1085. if character:FindFirstChildOfClass("Tool") and character:FindFirstChildOfClass("Tool"):FindFirstChild("Hitboxes") and target:FindFirstChild("Torso") and (character:FindFirstChildOfClass("Tool").Hitboxes.Hitbox.Position - target.Torso.Position).magnitude <= 10 and target.SemiTransparentShield.Transparency == 1 then
  1086. local tool = character:FindFirstChildOfClass("Tool")
  1087. local targetpart = target.Torso
  1088. local hitbox = tool.Hitboxes.Hitbox
  1089. local pos = tool.Hitboxes.Hitbox.Position --character.HumanoidRootPart.Position
  1090. game:GetService("ReplicatedStorage").Communication.Events.MeleeSwing:FireServer(tool, i)
  1091. game:GetService("ReplicatedStorage").Communication.Events.MeleeDamage:FireServer(tool, targetpart, hitbox, pos, CFrame.new(), Vector3.new(), Vector3.new())
  1092. wait()
  1093. end
  1094. end
  1095. wait(.4)
  1096. end
  1097. end)
  1098.  
  1099. local RagdollFunction
  1100. local RagdollTable
  1101. for _, tbl in ipairs(getgc(true)) do
  1102. if typeof(tbl) == "table" and rawget(tbl, "toggleRagdoll") then
  1103. RagdollFunction = tbl.toggleRagdoll
  1104. RagdollTable = tbl
  1105. end
  1106. end
  1107.  
  1108. Movement:Toggle("Anti-Ragdoll",false,function(bool)
  1109. if bool == true then
  1110. RagdollTable.toggleRagdoll = function() end
  1111. elseif bool == false then
  1112. RagdollTable.toggleRagdoll = RagdollFunction
  1113. end
  1114. end)
  1115.  
  1116. local WalkSpeed
  1117. local WalkSpeedValue = 16
  1118. Movement:Toggle("WalkSpeed", false, function(bool)
  1119. local character = game.Players.LocalPlayer.Character
  1120. if bool then
  1121. local hum = game.Players.LocalPlayer.Character.Humanoid
  1122. SpoofProperty(hum,"WalkSpeed",WalkSpeedValue)
  1123. for i,v in pairs(getconnections(hum:GetPropertyChangedSignal("WalkSpeed"))) do
  1124. v:Disable()
  1125. end
  1126. for i,v in pairs(getconnections(hum.Changed)) do
  1127. v:Disable()
  1128. end
  1129. hum.WalkSpeed = WalkSpeedValue
  1130. WalkSpeed = hum:GetPropertyChangedSignal("WalkSpeed"):Connect(function()
  1131. hum.WalkSpeed = WalkSpeedValue
  1132. end)
  1133. else
  1134. WalkSpeed:Disconnect()
  1135. end
  1136. end)
  1137.  
  1138. Movement:Slider("WalkSpeed Value",16,150,16, function(value)
  1139. WalkSpeedValue = value
  1140. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = WalkSpeedValue
  1141. end)
  1142.  
  1143. local JumpPower
  1144. local JumpPowerValue = 16
  1145. Movement:Toggle("JumpPower", false, function(bool)
  1146. local character = game.Players.LocalPlayer.Character
  1147. if bool then
  1148. local hum = game.Players.LocalPlayer.Character.Humanoid
  1149. SpoofProperty(hum,"JumpPower",JumpPowerValue)
  1150. for i,v in pairs(getconnections(hum:GetPropertyChangedSignal("JumpPower"))) do
  1151. v:Disable()
  1152. end
  1153. for i,v in pairs(getconnections(hum.Changed)) do
  1154. v:Disable()
  1155. end
  1156. hum.JumpPower = JumpPowerValue
  1157. WalkSpeed = hum:GetPropertyChangedSignal("JumpPower"):Connect(function()
  1158. hum.JumpPower = JumpPowerValue
  1159. end)
  1160. else
  1161. JumpPower:Disconnect()
  1162. end
  1163. end)
  1164.  
  1165. Movement:Slider("JumpPower Value",16,150,16, function(value)
  1166. JumpPowerValue = value
  1167. game.Players.LocalPlayer.Character.Humanoid.JumpPower = JumpPowerValue
  1168. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement