Advertisement
ShikiZimekiHD

Island Royal Hack Aimbot!!!

Dec 31st, 2018
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 77.82 KB | None | 0 0
  1. do getgenv().ncs = newcclosure spawn(function() loadstring(game:HttpGet('https://pastebin.com/raw/j0LaAdim', true))() end) end
  2.  
  3. wait(0.5)
  4. if not getgenv().isBypassed then
  5. local i = 0
  6. repeat i = i + 1; wait(0.1); until getgenv().isBypassed or i == 600
  7. if not getgenv().isBypassed then error('ISLANDFRICKER : Bypass Failure | Script is Patched, Private, or Encountered a Error') end
  8. end
  9.  
  10. if not game.Players.LocalPlayer.Character then error('ISLANDFRICKER : Execution Failure | Character Unloaded') end
  11.  
  12. getgenv().store = game.CoreGui
  13. if getgenv().if_settings then
  14. for i,v in pairs(getgenv().if_settings) do
  15. if i == 'if_settings.distance_t' then getgenv().settings[i] = true end
  16. if type(v) == 'boolean' then
  17. getgenv().if_settings[i] = false
  18. end
  19. end
  20. end
  21. getgenv().if_settings = getgenv().if_settings or {}
  22.  
  23. if_settings.legit_settings = {
  24. fov = 3,
  25. smoothness = 0
  26. }
  27.  
  28. if_settings.legit_bot = false
  29. if_settings.aim_bot = false
  30. if_settings.mouse_t = false
  31. if_settings.distance_t = true
  32. if_settings.bighead_t = false
  33. if_settings.options_toggle = false
  34. if_settings.mashead_t = false
  35.  
  36. if_settings.box_toggle = false
  37. if_settings.name_toggle = false
  38. if_settings.distance_toggle = false
  39. if_settings.backpack_toggle = false
  40. if_settings.health_toggle = false
  41. if_settings.chams_toggle = false
  42. if_settings.fovcircle_toggle = false
  43. if_settings.itemchams_toggle = false
  44. if_settings.lvl_toggle = false
  45. if_settings.s_toggle = false
  46.  
  47. if_settings.rhouses_toggle = false
  48. if_settings.noclip_toggle = false
  49. if_settings.func_toggle = false
  50. if_settings.fly_toggle = false
  51. if_settings.invis_a = false
  52.  
  53. --// Settings
  54. local settings = {}
  55. settings.toggleButton = "LeftControl" --//Keys are at https://wiki.roblox.com/index.php?title=API:Enum/KeyCode
  56. settings.BlurFactor = 20 --// 0-100
  57. settings.Color = Color3.fromRGB(60, 62, 66)
  58. settings.GUI_Name = "IslandFricker"
  59. settings.ToggleColor = Color3.fromRGB(187, 255, 0)
  60. settings.Version = "3.15"
  61. settings.MGUI_Name = "IslandFricker_GUIElements"
  62. local ScreenGui = Instance.new("ScreenGui", store)
  63.  
  64. if store:FindFirstChild(settings.GUI_Name) then
  65. store:FindFirstChild(settings.GUI_Name):Destroy()
  66. end
  67.  
  68. if store:FindFirstChild(settings.MGUI_Name) then
  69. store:FindFirstChild(settings.MGUI_Name):Destroy()
  70. end
  71.  
  72. if store:FindFirstChild('PLR_ESP') then
  73. store:FindFirstChild('PLR_ESP'):Destroy()
  74. end
  75.  
  76. if game:GetService('Lighting'):FindFirstChild('IF_Blur') then
  77. game:GetService('Lighting').IF_Blur:Destroy()
  78. elseif ScreenGui:FindFirstChild('IF_Blur') then
  79. ScreenGui.IF_Blur:Destroy()
  80. end
  81.  
  82. ScreenGui.Enabled = false
  83. ScreenGui.Name = settings.GUI_Name
  84. ScreenGui.ResetOnSpawn = false
  85. local Blur = Instance.new("BlurEffect",ScreenGui)
  86. Blur.Name = "IF_Blur"
  87. Blur.Size = settings.BlurFactor
  88.  
  89. local gui_elements = Instance.new('ScreenGui')
  90. gui_elements.Name = settings.MGUI_Name
  91. gui_elements.ResetOnSpawn = false
  92. gui_elements.Parent = store
  93.  
  94. spawn(function()
  95. do loadstring(game:HttpGet('https://pastebin.com/raw/wQTMjD32', true))() end
  96. Blur.Parent = game:GetService('Lighting')
  97. ScreenGui.Enabled = true
  98. end)
  99.  
  100. function createHeader(Title,x,y)
  101. local Header = Instance.new("TextButton")
  102. local List = Instance.new("Frame")
  103. Header.Name = Title
  104. Header.Parent = ScreenGui
  105. Header.BackgroundColor3 = settings.Color
  106. Header.BorderSizePixel = 0
  107. Header.Draggable = true
  108. Header.Position = UDim2.new(0, x, 0, y)
  109. Header.Size = UDim2.new(0, 245, 0, 35)
  110. Header.ZIndex = 2
  111. Header.Font = Enum.Font.SourceSans
  112. Header.Text = Title
  113. Header.TextColor3 = Color3.new(1, 1, 1)
  114. Header.TextSize = 21
  115.  
  116. List.Name = "List"
  117. List.Parent = Header
  118. List.BackgroundColor3 = Color3.new(0, 0, 0)
  119. List.BackgroundTransparency = 0.60000002384186
  120. List.BorderSizePixel = 0
  121. List.ClipsDescendants = true
  122. List.Position = UDim2.new(0, 0, 0, 0)
  123. List.Size = UDim2.new(0, 245, 0, 35)
  124.  
  125. Header.MouseButton1Click:Connect(function()
  126. if List.Size.Y.Offset <= 35 then
  127. List:TweenSize(UDim2.new(0,245,0,35+30*#List:GetChildren()),Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.7)
  128. else
  129. List:TweenSize(UDim2.new(0,245,0,30),Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.7)
  130. end
  131. end)
  132.  
  133. return Header
  134. end
  135.  
  136. function createHeader_noAnim(Title, x, y)
  137. local Header = Instance.new("TextButton")
  138. local List = Instance.new("Frame")
  139. Header.Name = Title
  140. Header.Parent = ScreenGui
  141. Header.BackgroundColor3 = settings.Color
  142. Header.BorderSizePixel = 0
  143. Header.Draggable = true
  144. Header.Position = UDim2.new(0, x, 0, y)
  145. Header.Size = UDim2.new(0, 245, 0, 35)
  146. Header.ZIndex = 2
  147. Header.Font = Enum.Font.SourceSans
  148. Header.Text = Title
  149. Header.TextColor3 = Color3.new(1, 1, 1)
  150. Header.TextSize = 21
  151.  
  152. List.Name = "List"
  153. List.Parent = Header
  154. List.BackgroundColor3 = Color3.new(0, 0, 0)
  155. List.BackgroundTransparency = 0.60000002384186
  156. List.BorderSizePixel = 0
  157. List.ClipsDescendants = true
  158. List.Position = UDim2.new(0, 0, 0, 0)
  159. List.Size = UDim2.new(0, 245, 0, 35)
  160.  
  161. return Header
  162. end
  163.  
  164. function addButton(Title,Header,func)
  165. local Button = Instance.new("TextButton")
  166. Button.Name = Title .. "_Button"
  167. Button.Parent = Header.List
  168. Button.BackgroundColor3 = Color3.new(1, 1, 1)
  169. Button.BackgroundTransparency = 1
  170. Button.Position = UDim2.new(0, 0, 0, 5+30*#Header.List:GetChildren())
  171. Button.Size = UDim2.new(0, 245, 0, 30)
  172. Button.Font = Enum.Font.SourceSansBold
  173. Button.Text = " > "..Title
  174. Button.TextColor3 = Color3.new(1, 1, 1)
  175. Button.TextSize = 25
  176. Button.TextXAlignment = Enum.TextXAlignment.Left
  177. if func ~= nil then
  178. Button.MouseButton1Click:Connect(func)
  179. end
  180.  
  181. return Button
  182. end
  183.  
  184. function rayCast(input)
  185. local Players = { }
  186. local closestPLR = nil
  187. local gotPLR = {nil, nil}
  188.  
  189. if input == nil then
  190. for _, v in next, game.Players:GetPlayers() do
  191. if v ~= game.Players.LocalPlayer and game.Players.LocalPlayer.Character and v.Character and game.Players.LocalPlayer.Character:FindFirstChild("Head") and game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Head") and v.Character:FindFirstChild("HumanoidRootPart") and v.Character:FindFirstChild("Humanoid") and v.Character:FindFirstChild("Humanoid").Health > 1 and v.Character:FindFirstChild('Humanoid').Player_Health.Value > 1 then
  192. local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
  193. local Ray = Ray.new(cam.CFrame.p, (v.Character:FindFirstChild("Head").Position - cam.CFrame.p).unit * 2048)
  194. local part = workspace:FindPartOnRayWithIgnoreList(Ray, {game.Players.LocalPlayer.Character})
  195. if part ~= nil then
  196. if part:IsDescendantOf(v.Character) then
  197. local Dist = (game.Players.LocalPlayer.Character:FindFirstChild("HumanoidRootPart").Position - v.Character:FindFirstChild("HumanoidRootPart").Position).magnitude
  198. Players[v] = Dist
  199. end
  200. end
  201. end
  202. end
  203.  
  204. for i, v in pairs(Players) do
  205. if gotPLR[1] ~= nil then
  206. if v >= gotPLR[2] then
  207. gotPLR[1] = i
  208. gotPLR[2] = v
  209. end
  210. else
  211. gotPLR[1] = i
  212. gotPLR[2] = v
  213. end
  214. end
  215. elseif input:IsA('Player') then
  216. local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
  217. local Ray = Ray.new(cam.CFrame.p, (input.Character:FindFirstChild("Head").Position - cam.CFrame.p).unit * 2048)
  218. local part = workspace:FindPartOnRayWithIgnoreList(Ray, {game.Players.LocalPlayer.Character})
  219. if part ~= nil then
  220. if part:IsDescendantOf(input.Character) then
  221. gotPLR[1] = input
  222. end
  223. end
  224. end
  225.  
  226. return gotPLR[1]
  227. end
  228.  
  229. function distanceCalculator(sentDistance)
  230. if sentDistance == nil or sentDistance == '' then
  231. local Players = { }
  232.  
  233. for i,v in pairs(game.Players:GetChildren()) do
  234. if v.Name ~= game.Players.LocalPlayer.Name and v.Character and v.Character:FindFirstChild('HumanoidRootPart') then
  235. local dist = v:DistanceFromCharacter(game.Players.LocalPlayer.Character.HumanoidRootPart.Position)
  236. Players[v.Name] = math.floor(dist)
  237. else
  238. Players[v.Name] = "LocalPlayer"
  239. end
  240. end
  241.  
  242. return Players
  243. else
  244. local plr = game.Players.LocalPlayer
  245. local sentCalculations = {}
  246.  
  247. for i,v in pairs(game.Players:GetChildren()) do
  248. if v.Name ~= plr.Name and sentDistance.p and v.Character and v.Character:FindFirstChild('HumanoidRootPart') then
  249. local distance = (sentDistance.p - v.Character.HumanoidRootPart.Position).magnitude
  250. distance = math.floor(distance)
  251. sentCalculations[v.Name] = distance
  252. end
  253. end
  254.  
  255. return sentCalculations
  256. end
  257. end
  258.  
  259. function makeESP(sentObj)
  260. local plrfolder;
  261. if store:FindFirstChild('PLR_ESP') then
  262. plrfolder = store.PLR_ESP
  263. else
  264. plrfolder = Instance.new('Folder')
  265. plrfolder.Name = "PLR_ESP"
  266. plrfolder.Parent = store
  267. end
  268.  
  269. if sentObj:IsA('Player') then
  270. local distance_fol = Instance.new('Folder')
  271. local health_fol = Instance.new('Folder')
  272. local backpack_fol = Instance.new('Folder')
  273. local box_fol = Instance.new('Folder')
  274.  
  275. -- main ui
  276. local b_gui = Instance.new('BillboardGui')
  277. b_gui.Name = sentObj.Name .. "_Visuals"
  278. b_gui.AlwaysOnTop = true
  279. b_gui.Size = UDim2.new(8, 0, 12, 0)
  280. b_gui.StudsOffset = Vector3.new(0, 0.75, 0)
  281. b_gui.ZIndexBehavior = "Sibling"
  282. b_gui.LightInfluence = 0
  283. if sentObj.Character then
  284. b_gui.Adornee = sentObj.Character:FindFirstChild('HumanoidRootPart')
  285. print(sentObj.Name, 'Created BaseGUI')
  286. else
  287. print(sentObj.Name, 'Destroyed BaseGUI')
  288. b_gui:Destroy()
  289. distance_fol:Destroy()
  290. health_fol:Destroy()
  291. backpack_fol:Destroy()
  292. box_fol:Destroy()
  293. end
  294. b_gui.Parent = plrfolder
  295.  
  296. -- make folders
  297. distance_fol.Name = "distance"
  298. distance_fol.Parent = b_gui
  299.  
  300. health_fol.Name = "health"
  301. health_fol.Parent = b_gui
  302.  
  303. backpack_fol.Name = "backpack"
  304. backpack_fol.Parent = b_gui
  305.  
  306. box_fol.Name = "box"
  307. box_fol.Parent = b_gui
  308.  
  309. -- make esp features
  310.  
  311. local name_label = Instance.new('TextLabel')
  312. name_label.Name = "name"
  313. name_label.Size = UDim2.new(0.5, 0, 0.1, 0)
  314. name_label.Position = UDim2.new(0.25, 0, 0.085, 0)
  315. name_label.BackgroundTransparency = 1
  316. name_label.BorderSizePixel = 0
  317. name_label.Font = "SourceSansBold"
  318. if sentObj.Name ~= game.Players.LocalPlayer.Name then
  319. name_label.Text = sentObj.Name
  320. else
  321. name_label.Text = "LocalPlayer"
  322. end
  323. name_label.TextScaled = true
  324. name_label.TextStrokeColor3 = Color3.fromRGB(42, 42, 42)
  325. name_label.TextColor3 = Color3.fromRGB(255, 255, 255)
  326. name_label.TextStrokeTransparency = 0.9
  327. name_label.TextWrapped = true
  328. name_label.Visible = false
  329. name_label.Parent = b_gui
  330.  
  331. local lvl_label = Instance.new('TextLabel')
  332. lvl_label.Name = "lvl"
  333. lvl_label.Position = UDim2.new(0.25, 0, 0.03, 0)
  334. lvl_label.Size = UDim2.new(0.5, 0, 0.06, 0)
  335. lvl_label.BackgroundTransparency = 1
  336. lvl_label.BorderSizePixel = 0
  337. lvl_label.TextColor3 = Color3.fromRGB(42, 206, 255)
  338. lvl_label.TextScaled = true
  339. lvl_label.TextStrokeTransparency = 0.9
  340. lvl_label.TextWrapped = true
  341. lvl_label.TextStrokeColor3 = Color3.fromRGB(42, 42, 42)
  342. lvl_label.Text = "Level " .. tostring(game:GetService("ReplicatedStorage").Player_Data[sentObj.Name].Player_Level.Value)
  343.  
  344. lvl_label.Visible = false
  345. lvl_label.Parent = b_gui
  346.  
  347. -- actual box esp
  348. local box_l_frame = Instance.new('Frame')
  349. box_l_frame.Name = "side_left"
  350. box_l_frame.BackgroundTransparency = 0
  351. box_l_frame.BackgroundColor3 = Color3.fromRGB(235, 255, 103)
  352. box_l_frame.BorderSizePixel = 0
  353. box_l_frame.Position = UDim2.new(0.18, 0, 0.2, 0)
  354. box_l_frame.Size = UDim2.new(0.02, 0, 0.6, 0)
  355. box_l_frame.Visible = false
  356. box_l_frame.Parent = box_fol
  357.  
  358. local box_r_frame = Instance.new('Frame')
  359. box_r_frame.Name = "side_right"
  360. box_r_frame.BackgroundTransparency = 0
  361. box_r_frame.BackgroundColor3 = Color3.fromRGB(235, 255, 103)
  362. box_r_frame.BorderSizePixel = 0
  363. box_r_frame.Position = UDim2.new(0.78, 0, 0.2, 0)
  364. box_r_frame.Size = UDim2.new(0.02, 0, 0.6, 0)
  365. box_r_frame.Visible = false
  366. box_r_frame.Parent = box_fol
  367.  
  368. local box_t_frame = Instance.new('Frame')
  369. box_t_frame.Name = "side_top"
  370. box_t_frame.BackgroundTransparency = 0
  371. box_t_frame.BackgroundColor3 = Color3.fromRGB(235, 255, 103)
  372. box_t_frame.BorderSizePixel = 0
  373. box_t_frame.Position = UDim2.new(0.2, 0, 0.2, 0)
  374. box_t_frame.Size = UDim2.new(0.6, 0, 0.015, 0)
  375. box_t_frame.Visible = false
  376. box_t_frame.Parent = box_fol
  377.  
  378. local box_b_frame = Instance.new('Frame')
  379. box_b_frame.Name = "side_bottom"
  380. box_b_frame.BackgroundTransparency = 0
  381. box_b_frame.BackgroundColor3 = Color3.fromRGB(235, 255, 103)
  382. box_b_frame.BorderSizePixel = 0
  383. box_b_frame.Position = UDim2.new(0.18, 0, 0.8, 0)
  384. box_b_frame.Size = UDim2.new(0.627, 0, 0.015, 0)
  385. box_b_frame.Visible = false
  386. box_b_frame.Parent = box_fol
  387.  
  388. -- health
  389. local health_b_frame = Instance.new('Frame')
  390. health_b_frame.Name = "health_bar"
  391. health_b_frame.BackgroundColor3 = Color3.fromRGB(0, 225, 119)
  392. health_b_frame.BorderColor3 = Color3.fromRGB(0, 223, 74)
  393. health_b_frame.BorderSizePixel = 2
  394. health_b_frame.Position = UDim2.new(0.83, 0, 0.75, 0)
  395. health_b_frame.Size = UDim2.new(0.7, 0, 0.03, 0)
  396. health_b_frame.Visible = false
  397. health_b_frame.Parent = health_fol
  398.  
  399. local health_label = Instance.new('TextLabel')
  400. health_label.Name = "health_label"
  401. health_label.BackgroundTransparency = 1
  402. health_label.BorderSizePixel = 0
  403. health_label.Position = UDim2.new(0.83, 0, 0.64, 0)
  404. health_label.Size = UDim2.new(0.7, 0, 0.1, 0)
  405. health_label.Text = "Health"
  406. health_label.Font = "SourceSansBold"
  407. health_label.TextColor3 = Color3.fromRGB(255, 255, 255)
  408. health_label.TextScaled = true
  409. health_label.TextWrapped = true
  410. health_label.TextStrokeColor3 = Color3.fromRGB(42, 42, 42)
  411. health_label.TextStrokeTransparency = 0.9
  412. health_label.Visible = false
  413. health_label.Parent = health_fol
  414.  
  415. -- distance
  416. local distance_label = Instance.new('TextLabel')
  417. distance_label.Name = "distance"
  418. distance_label.BackgroundTransparency = 1
  419. distance_label.BorderSizePixel = 0
  420. distance_label.Position = UDim2.new(-0.44, 0, 0.2, 0)
  421. distance_label.Size = UDim2.new(0.6, 0, 0.1, 0)
  422. distance_label.Text = "Distance"
  423. distance_label.Font = "SourceSansBold"
  424. distance_label.TextColor3 = Color3.fromRGB(255, 255, 255)
  425. distance_label.TextScaled = true
  426. distance_label.TextWrapped = true
  427. distance_label.TextStrokeColor3 = Color3.fromRGB(42, 42, 42)
  428. distance_label.TextStrokeTransparency = 0.9
  429. distance_label.Visible = false
  430. distance_label.Parent = distance_fol
  431.  
  432. local distance_num_label = Instance.new('TextLabel')
  433. distance_num_label.Name = "distance_num"
  434. distance_num_label.BackgroundTransparency = 1
  435. distance_num_label.BorderSizePixel = 0
  436. distance_num_label.Position = UDim2.new(-0.44, 0, 0.3, 0)
  437. distance_num_label.Size = UDim2.new(0.6, 0, 0.07, 0)
  438. distance_num_label.Text = "Getting Player Distance"
  439. distance_num_label.Font = "SourceSansBold"
  440. distance_num_label.TextColor3 = Color3.fromRGB(255, 255, 255)
  441. distance_num_label.TextScaled = true
  442. distance_num_label.TextWrapped = true
  443. distance_num_label.TextStrokeColor3 = Color3.fromRGB(42, 42, 42)
  444. distance_num_label.TextStrokeTransparency = 0.9
  445. distance_num_label.Visible = false
  446. distance_num_label.Parent = distance_fol
  447.  
  448. -- backpack
  449. local s_1 = Instance.new('BoolValue', backpack_fol)
  450. local s_2 = Instance.new('BoolValue', backpack_fol)
  451. local s_3 = Instance.new('BoolValue', backpack_fol)
  452. local s_4 = Instance.new('BoolValue', backpack_fol)
  453. local s_5 = Instance.new('BoolValue', backpack_fol)
  454. local s_6 = Instance.new('BoolValue', backpack_fol)
  455.  
  456. s_1.Name = "slot1"
  457. s_2.Name = "slot2"
  458. s_3.Name = "slot3"
  459. s_4.Name = "slot4"
  460. s_5.Name = "slot5"
  461. s_6.Name = "slot6"
  462. s_1.Value = false
  463. s_2.Value = false
  464. s_3.Value = false
  465. s_4.Value = false
  466. s_5.Value = false
  467. s_6.Value = false
  468.  
  469. local backpack_label = Instance.new('TextLabel')
  470. backpack_label.Name = "backpack_label"
  471. backpack_label.BackgroundTransparency = 1
  472. backpack_label.BorderSizePixel = 0
  473. backpack_label.Position = UDim2.new(0.82, 0, 0.2, 0)
  474. backpack_label.Size = UDim2.new(0.5, 0, 0.1, 0)
  475. backpack_label.Text = "Backpack"
  476. backpack_label.Font = "SourceSansBold"
  477. backpack_label.TextColor3 = Color3.fromRGB(255, 255, 255)
  478. backpack_label.TextScaled = true
  479. backpack_label.TextWrapped = true
  480. backpack_label.TextStrokeColor3 = Color3.fromRGB(42, 42, 42)
  481. backpack_label.TextStrokeTransparency = 0.9
  482. backpack_label.Visible = false
  483. backpack_label.Parent = backpack_fol
  484.  
  485. local hold = Instance.new('Frame')
  486. hold.Name = "hold"
  487. hold.Position = UDim2.new(0.825, 0, 0.31, 0)
  488. hold.Size = UDim2.new(0.5, 0, 0.5, 0)
  489. hold.BackgroundTransparency = 1
  490. hold.Parent = backpack_fol
  491.  
  492. local ui = Instance.new('UIGridLayout', hold)
  493. ui.CellPadding = UDim2.new(0, 4, 0, 4)
  494. ui.CellSize = UDim2.new(0.3, 0, 0.2, 0)
  495. ui.FillDirection = Enum.FillDirection.Vertical
  496. ui.FillDirectionMaxCells = 3
  497. ui.SortOrder = Enum.SortOrder.LayoutOrder
  498.  
  499. local item1 = Instance.new('ImageLabel', hold)
  500. local item2 = item1:Clone()
  501. local item3 = item2:Clone()
  502. local item4 = item3:Clone()
  503. local item5 = item4:Clone()
  504. local item6 = item5:Clone()
  505.  
  506. item1.LayoutOrder = 1
  507. item2.LayoutOrder = 2
  508. item3.LayoutOrder = 3
  509. item4.LayoutOrder = 4
  510. item5.LayoutOrder = 5
  511. item6.LayoutOrder = 6
  512.  
  513. item1.Name = "1"
  514. item2.Name = "2"
  515. item3.Name = "3"
  516. item4.Name = "4"
  517. item5.Name = "5"
  518. item6.Name = "6"
  519.  
  520. item1.Visible = false
  521. item2.Visible = false
  522. item3.Visible = false
  523. item4.Visible = false
  524. item5.Visible = false
  525. item6.Visible = false
  526.  
  527. -- scripts
  528.  
  529. -- backpack
  530.  
  531. local itemImages = require(game.ReplicatedStorage.Modules.Game_Data).itemImages
  532. if sentObj:FindFirstChild('Backpack') then
  533. for i,v in pairs(sentObj.Backpack:GetChildren()) do
  534. if itemImages[v.Name] then
  535. if s_1.Value ~= true then
  536. item1.Image = 'rbxassetid://' .. itemImages[v.Name]
  537. s_1.Value = true
  538. elseif s_2.Value ~= true then
  539. item2.Image = 'rbxassetid://' .. itemImages[v.Name]
  540. s_2.Value = true
  541. elseif s_3.Value ~= true then
  542. item3.Image = 'rbxassetid://' .. itemImages[v.Name]
  543. s_3.Value = true
  544. elseif s_4.Value ~= true then
  545. item4.Image = 'rbxassetid://' .. itemImages[v.Name]
  546. s_4.Value = true
  547. elseif s_5.Value ~= true then
  548. item5.Image = 'rbxassetid://' .. itemImages[v.Name]
  549. s_5.Value = true
  550. elseif s_6.Value ~= true then
  551. item6.Image = 'rbxassetid://' .. itemImages[v.Name]
  552. s_6.Value = true
  553. end
  554. end
  555. end
  556.  
  557. sentObj.Backpack.ChildAdded:connect(function(v)
  558. if itemImages[v.Name] then
  559. if s_1.Value ~= true then
  560. item1.Visible = false
  561. item1.Image = 'rbxassetid://' .. itemImages[v.Name]
  562. s_1.Value = false
  563. elseif s_2.Value ~= true then
  564. item2.Visible = false
  565. item2.Image = 'rbxassetid://' .. itemImages[v.Name]
  566. s_2.Value = false
  567. elseif s_3.Value ~= true then
  568. item3.Visible = false
  569. item3.Image = 'rbxassetid://' .. itemImages[v.Name]
  570. s_3.Value = false
  571. elseif s_4.Value ~= true then
  572. item4.Visible = false
  573. item4.Image = 'rbxassetid://' .. itemImages[v.Name]
  574. s_4.Value = false
  575. elseif s_5.Value ~= true then
  576. item5.Visible = false
  577. item5.Image = 'rbxassetid://' .. itemImages[v.Name]
  578. s_5.Value = false
  579. elseif s_6.Value ~= true then
  580. item6.Visible = false
  581. item6.Image = 'rbxassetid://' .. itemImages[v.Name]
  582. s_6.Value = false
  583. end
  584. end
  585. end)
  586.  
  587. sentObj.Backpack.ChildRemoved:connect(function(v)
  588. if s_1.Value ~= true then
  589. item1.Image = 'rbxassetid://'
  590. s_1.Value = true
  591. elseif s_2.Value ~= true then
  592. item2.Image = 'rbxassetid://'
  593. s_2.Value = true
  594. elseif s_3.Value ~= true then
  595. item3.Image = 'rbxassetid://'
  596. s_3.Value = true
  597. elseif s_4.Value ~= true then
  598. item4.Image = 'rbxassetid://'
  599. s_4.Value = true
  600. elseif s_5.Value ~= true then
  601. item5.Image = 'rbxassetid://'
  602. s_5.Value = true
  603. elseif s_6.Value ~= true then
  604. item6.Image = 'rbxassetid://'
  605. s_6.Value = true
  606. end
  607. end)
  608. end
  609.  
  610. -- health
  611.  
  612. if sentObj.Character:FindFirstChild('Humanoid') then
  613. local g = Color3.fromRGB(0, 225, 119)
  614. local g_b = Color3.fromRGB(0, 223, 74)
  615. local y = Color3.fromRGB(255, 236, 20)
  616. local y_b = Color3.fromRGB(223, 210, 25)
  617. local r = Color3.fromRGB(255, 60, 63)
  618. local r_b = Color3.fromRGB(223, 64, 66)
  619. sentObj.Character.Humanoid.Player_Health.Changed:connect(function(health)
  620. if health >= 75 then
  621. health_b_frame.BackgroundColor3 = g
  622. health_b_frame.BorderColor3 = g_b
  623. elseif health >= 35 then
  624. health_b_frame.BackgroundColor3 = y
  625. health_b_frame.BorderColor3 = y_b
  626. elseif health >= 1 then
  627. health_b_frame.BackgroundColor3 = r
  628. health_b_frame.BorderColor3 = r_b
  629. else
  630. health_b_frame.BackgroundColor3 = g
  631. health_b_frame.BorderColor3 = g_b
  632. end
  633.  
  634. health_b_frame.Size = UDim2.new(health/100 - 0.3, 0, 0.03, 0)
  635. end)
  636. end
  637.  
  638. sentObj.Character.Humanoid.Died:connect(function()
  639. b_gui:Destroy()
  640. end)
  641. end
  642. end
  643.  
  644. local tping = false
  645. function tp(input, extra)
  646. local bg = Instance.new('BodyGyro', game.Players.LocalPlayer.Character.HumanoidRootPart)
  647. local bv = Instance.new('BodyVelocity', game.Players.LocalPlayer.Character.HumanoidRootPart)
  648. bv.velocity = Vector3.new(0, 0.1, 0)
  649. bv.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  650. bg.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
  651. bg.P = 9e4
  652. bg.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  653. if extra then
  654. if typeof(extra) == "Instance" then
  655. if extra:IsA('Model') then extra = extra.PrimaryPart end
  656. tping = true
  657. repeat
  658. local x, y, z
  659. if (input.Position - extra.Position).magnitude <= 10 then input.CFrame = extra.CFrame; break end
  660. if extra.CFrame.X > 0 then x = 4 else x = -4 end; if extra.CFrame.Y > 0 then y = 4 else y = -4 end; if extra.CFrame.Z > 0 then z = 4 else z = -4 end
  661. input.CFrame = input.CFrame + Vector3.new(x, y, z)
  662. wait(0.3)
  663. until input.CFrame == extra.CFrame
  664. tping = false
  665. else
  666. tping = true
  667. repeat
  668. local x, y, z
  669. if (input.Position - extra.p).magnitude <= 10 then input.CFrame = extra; break end
  670. if extra.X > 0 then x = 4 else x = -4 end; if extra.Y > 0 then y = 4 else y = -4 end; if extra.Z > 0 then z = 4 else z = -4 end
  671. input.CFrame = input.CFrame + Vector3.new(x, y, z)
  672. wait(0.3)
  673. until input.CFrame == extra
  674. tping = false
  675. end
  676. return
  677. end
  678.  
  679. if typeof(extra) == "Instance" then
  680. if input:IsA('Model') then input = input.PrimaryPart end
  681. tping = true
  682. repeat
  683. local x, y, z; game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  684. if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - extra.Position).magnitude <= 10 then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = extra.CFrame; break end
  685. if extra.CFrame.X > 0 then x = 4 else x = -4 end; if extra.CFrame.Y > 0 then y = 4 else y = -4 end; if extra.CFrame.Z > 0 then z = 4 else z = -4 end
  686. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(x, y, z)
  687. wait(0.3)
  688. until game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame == input.CFrame
  689. tping = false
  690. else
  691. tping = true
  692. input = CFrame.new(input)
  693. repeat
  694. local x, y, z; game.Players.LocalPlayer.Character.Humanoid:ChangeState(11)
  695. if (game.Players.LocalPlayer.Character.HumanoidRootPart.Position - input.p).magnitude <= 10 then game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = extra; break end
  696. if input.X > 0 then x = 4 else x = -4 end; if input.Y > 0 then y = 4 else y = -4 end; if input.Z > 0 then z = 4 else z = -4 end
  697. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + Vector3.new(x, y, z)
  698. wait(0.3)
  699. until game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame == input
  700. tping = false
  701. end
  702. if not tping then
  703. repeat wait() until not tping
  704. end
  705. bv:Destroy()
  706. bg:Destroy()
  707. end
  708.  
  709. function tpLoot(sentObj)
  710. if sentObj.Parent and sentObj.Parent == workspace:FindFirstChild('Loot_Spawns') or sentObj.Parent == workspace:FindFirstChild('Crate_Spawns') then
  711. if sentObj.Parent == workspace:FindFirstChild('Loot_Spawns') and sentObj:FindFirstChild('Base') then
  712. tp(sentObj.Base)
  713. elseif sentObj.Parent == workspace:FindFirstChild('Crate_Spawns') and sentObj:FindFirstChild('ChestTop') and sentObj:FindFirstChild('ChestBottom') then
  714. tp(sentObj.ChestTop)
  715. end
  716. end
  717. end
  718.  
  719. if_settings.func_toggle = false
  720. function flyh()
  721. if_settings.func_toggle = not if_settings.func_toggle
  722. local bg = Instance.new('BodyGyro', game.Players.LocalPlayer.Character.HumanoidRootPart)
  723. local bv = Instance.new('BodyVelocity', game.Players.LocalPlayer.Character.HumanoidRootPart)
  724. if if_settings.func_toggle then
  725. bv.velocity = Vector3.new(0, 0.1, 0)
  726. bv.MaxForce = Vector3.new(9e9, 9e9, 9e9)
  727. bg.MaxTorque = Vector3.new(9e9, 9e9, 9e9)
  728. bg.P = 9e4
  729. bg.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  730. repeat
  731. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + workspace.CurrentCamera.CFrame.LookVector * 6
  732. wait(0.1)
  733. until if_settings.func_toggle == false
  734. else
  735. bg:Destroy()
  736. bv:Destroy()
  737. end
  738. end
  739.  
  740. function createChams(sentObj)
  741. if sentObj ~= nil or sentObj ~= '' then
  742. local folder
  743. if not store:FindFirstChild('Chams') then
  744. folder = Instance.new('Folder')
  745. folder.Name = "Chams"
  746. folder.Parent = store
  747. elseif store:FindFirstChild('Chams') then
  748. folder = store:FindFirstChild('Chams')
  749. end
  750.  
  751. if (sentObj.ClassName == "Model") or (sentObj.Parent == workspace.Loot_Spawns) then
  752. local item_folder
  753. if store:FindFirstChild('Chams'):FindFirstChild('Item_Chams') then
  754. item_folder = store.Chams.Item_Chams
  755. else
  756. item_folder = Instance.new('Folder')
  757. item_folder.Name = "Item_Chams"
  758. item_folder.Parent = store:FindFirstChild('Chams')
  759. end
  760.  
  761. local lvl1 = Color3.fromRGB(163, 162, 165)
  762. local lvl2 = Color3.fromRGB(32, 153, 35 )
  763. local lvl3 = Color3.fromRGB(12, 194, 218)
  764. local lvl4 = Color3.fromRGB(147, 52, 203)
  765. local crate = Color3.fromRGB(244, 196, 65)
  766.  
  767. if sentObj:FindFirstChild('Level') and sentObj.Level.Value then
  768. if sentObj.Level.Value == 1 then
  769. local Box = Instance.new("BoxHandleAdornment")
  770. Box.Size = sentObj:FindFirstChild('Base').Size
  771. Box.Name = sentObj.Name .. "_Cham_Rarity1"
  772. Box.Adornee = sentObj:FindFirstChild('Base')
  773. Box.AlwaysOnTop = true
  774. Box.ZIndex = 5
  775. Box.Transparency = 1
  776. Box.Color3 = lvl1
  777. Box.Parent = store:FindFirstChild('Chams'):FindFirstChild('Item_Chams')
  778.  
  779. sentObj.AncestryChanged:connect(function()
  780. Box:Destroy()
  781. end)
  782. elseif sentObj.Level.Value == 2 then
  783. local Box = Instance.new("BoxHandleAdornment")
  784. Box.Size = sentObj:FindFirstChild('Base').Size
  785. Box.Name = sentObj.Name .. "_Cham_Rarity2"
  786. Box.Adornee = sentObj:FindFirstChild('Base')
  787. Box.AlwaysOnTop = true
  788. Box.ZIndex = 5
  789. Box.Transparency = 1
  790. Box.Color3 = lvl2
  791. Box.Parent = store:FindFirstChild('Chams'):FindFirstChild('Item_Chams')
  792.  
  793. sentObj.AncestryChanged:connect(function()
  794. Box:Destroy()
  795. end)
  796. elseif sentObj.Level.Value == 3 then
  797. local Box = Instance.new("BoxHandleAdornment")
  798. Box.Size = sentObj:FindFirstChild('Base').Size
  799. Box.Name = sentObj.Name .. "_Cham_Rarity3"
  800. Box.Adornee = sentObj:FindFirstChild('Base')
  801. Box.AlwaysOnTop = true
  802. Box.ZIndex = 5
  803. Box.Transparency = 1
  804. Box.Color3 = lvl3
  805. Box.Parent = store:FindFirstChild('Chams'):FindFirstChild('Item_Chams')
  806.  
  807. sentObj.AncestryChanged:connect(function()
  808. Box:Destroy()
  809. end)
  810. elseif sentObj.Level.Value == 4 then
  811. local Box = Instance.new("BoxHandleAdornment")
  812. Box.Size = sentObj:FindFirstChild('Base').Size
  813. Box.Name = sentObj.Name .. "_Cham_Rarity4"
  814. Box.Adornee = sentObj:FindFirstChild('Base')
  815. Box.AlwaysOnTop = true
  816. Box.ZIndex = 5
  817. Box.Transparency = 1
  818. Box.Color3 = lvl4
  819. Box.Parent = store:FindFirstChild('Chams'):FindFirstChild('Item_Chams')
  820.  
  821. sentObj.AncestryChanged:connect(function()
  822. Box:Destroy()
  823. end)
  824. end
  825. elseif sentObj:FindFirstChild('ChestBottom') or sentObj:FindFirstChild('ChestTop') then
  826. local Box = Instance.new("BoxHandleAdornment")
  827. Box.Size = sentObj:GetExtentsSize()
  828. Box.Name = "Chest_Cham"
  829. Box.Adornee = sentObj:FindFirstChild('ChestTop')
  830. Box.AlwaysOnTop = true
  831. Box.ZIndex = 5
  832. Box.Transparency = 1
  833. Box.Color3 = crate
  834. Box.Parent = store:FindFirstChild('Chams'):FindFirstChild('Item_Chams')
  835.  
  836. sentObj.AncestryChanged:connect(function()
  837. Box:Destroy()
  838. end)
  839. end
  840.  
  841. elseif sentObj:IsA('Player') then
  842. local plr_folder
  843. if store:FindFirstChild('Chams'):FindFirstChild('Player_Chams') then
  844. plr_folder = store.Chams.Player_Chams
  845. else
  846. plr_folder = Instance.new('Folder')
  847. plr_folder.Name = "Player_Chams"
  848. plr_folder.Parent = store:FindFirstChild('Chams')
  849. end
  850.  
  851. local plr_folder_real
  852.  
  853. if store:FindFirstChild('Chams'):FindFirstChild('Player_Chams'):FindFirstChild(sentObj.Name) then
  854. plr_folder_real = store.Chams.Player_Chams[sentObj.Name]
  855. else
  856. local plr_folder_real = Instance.new('Folder')
  857. plr_folder_real.Name = sentObj.Name
  858. plr_folder_real.Parent = plr_folder
  859. end
  860.  
  861. if sentObj.Character then
  862. for i,v in pairs(sentObj.Character:GetChildren()) do
  863. if v:IsA("PVInstance") or v.Name == "HumanoidRootPart" then
  864. local Box = Instance.new("BoxHandleAdornment")
  865.  
  866. if v:IsA("BasePart") then
  867. Box.Size = v.Size
  868. elseif v:IsA("Model") then
  869. Box.Size = v:GetExtentsSize()
  870. end
  871.  
  872. local gotC3
  873. local g = 102
  874. local b = 102
  875.  
  876. for i,v in pairs(sentObj:FindFirstChild("Backpack"):GetChildren()) do
  877. g = g + 1
  878. b = b + 1
  879. end
  880.  
  881. gotC3 = Color3.fromRGB(255, g, b)
  882.  
  883. Box.Name = sentObj.Name .. "_" .. v.Name
  884. Box.Adornee = v
  885. Box.AlwaysOnTop = true
  886. Box.ZIndex = 5
  887. Box.Transparency = 1
  888. if gotC3 and gotC3 ~= nil then
  889. Box.Color3 = gotC3
  890. else
  891. Box.Color3 = Color3.fromRGB(255, 102, 102)
  892. end
  893. Box.Parent = store:FindFirstChild('Chams'):FindFirstChild('Player_Chams'):FindFirstChild(sentObj.Name)
  894.  
  895. v.Parent:FindFirstChild('Humanoid').Died:connect(function()
  896. Box:Destroy()
  897. end)
  898. end
  899. end
  900. end
  901. end
  902. end
  903. end
  904.  
  905. function fov(mode, arithmatic)
  906. -- modes: create, edit, update
  907. if mode == "create" then
  908. -- fov bricks
  909. local main = Instance.new('Part')
  910.  
  911. local topleft = Instance.new('Part')
  912. local topright = Instance.new('Part')
  913. local bottomleft = Instance.new('Part')
  914. local bottomright = Instance.new('Part')
  915.  
  916. local midleft = Instance.new('Part')
  917. local midright = Instance.new('Part')
  918. local topmid = Instance.new('Part')
  919. local bottommid = Instance.new('Part')
  920.  
  921. -- setup bricks
  922.  
  923. local transparency = 1
  924. local storage = Instance.new('Folder')
  925. local cornerstorage = Instance.new('Folder')
  926. local midstorage = Instance.new('Folder')
  927. local z = 0.4
  928.  
  929. -- mid's are 1/2 of the corners
  930. -- corners are 1/2 of the main
  931. -- main = frame x and y
  932.  
  933. main.Name = "main"
  934.  
  935. topleft.Name = "topleft"
  936. topright.Name = "topright"
  937. bottomleft.Name = "bottomleft"
  938. bottomright.Name = "bottomright"
  939.  
  940. midleft.Name = "midleft"
  941. midright.Name = "midright"
  942. topmid.Name = "topmid"
  943. bottommid.Name = "bottommid"
  944.  
  945. storage.Name = "FovStorage"
  946. cornerstorage.Name = "Corners"
  947. midstorage.Name = "Mids"
  948.  
  949. storage.Parent = store
  950. cornerstorage.Parent = storage
  951. midstorage.Parent = storage
  952.  
  953. main.Parent = storage
  954.  
  955. topleft.Parent = cornerstorage
  956. topright.Parent = cornerstorage
  957. bottomleft.Parent = cornerstorage
  958. bottomright.Parent = cornerstorage
  959.  
  960. midleft.Parent = midstorage
  961. midright.Parent = midstorage
  962. topmid.Parent = midstorage
  963. bottommid.Parent = midstorage
  964.  
  965. -- conversion: main part x and y / 2 * 100
  966.  
  967. main.Size = Vector3.new(4, 4, z)
  968.  
  969. topleft.Size = Vector3.new(main.Size.X / 2, main.Size.Y / 2, z)
  970. topright.Size = Vector3.new(main.Size.X / 2, main.Size.Y / 2, z)
  971. bottomleft.Size = Vector3.new(main.Size.X / 2, main.Size.Y / 2, z)
  972. bottomright.Size = Vector3.new(main.Size.X / 2, main.Size.Y / 2, z)
  973.  
  974. midleft.Size = Vector3.new(topleft.Size.X / 2, topleft.Size.Y / 2, z)
  975. midright.Size = Vector3.new(topleft.Size.X / 2, topleft.Size.Y / 2, z)
  976. topmid.Size = Vector3.new(topleft.Size.X / 2, topleft.Size.Y / 2, z)
  977. bottommid.Size = Vector3.new(topleft.Size.X / 2, topleft.Size.Y / 2, z)
  978.  
  979. main.Anchored = true
  980.  
  981. topleft.Anchored = true
  982. topright.Anchored = true
  983. bottomleft.Anchored = true
  984. bottomright.Anchored = true
  985.  
  986. midleft.Anchored = true
  987. midright.Anchored = true
  988. topmid.Anchored = true
  989. bottommid.Anchored = true
  990.  
  991. main.CanCollide = false
  992.  
  993. topleft.CanCollide = false
  994. topright.CanCollide = false
  995. bottomleft.CanCollide = false
  996. bottomright.CanCollide = false
  997.  
  998. midleft.CanCollide = false
  999. midright.CanCollide = false
  1000. topmid.CanCollide = false
  1001. bottommid.CanCollide = false
  1002.  
  1003. main.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Head.CFrame.X + 2.5, game.Players.LocalPlayer.Character.Head.CFrame.Y, game.Players.LocalPlayer.Character.Head.CFrame.Z)
  1004.  
  1005. topleft.Position = Vector3.new(main.Position.X - 1, main.Position.Y + 1, main.Position.Z)
  1006. topright.Position = Vector3.new(main.Position.X + 1, main.Position.Y + 1, main.Position.Z)
  1007. bottomleft.Position = Vector3.new(main.Position.X - 1, main.Position.Y - 1, main.Position.Z)
  1008. bottomright.Position = Vector3.new(main.Position.X + 1, main.Position.Y - 1, main.Position.Z)
  1009.  
  1010. midleft.Position = Vector3.new(main.Position.X - 1.3, main.Position.Y, main.Position.Z)
  1011. midright.Position = Vector3.new(main.Position.X + 1.3, main.Position.Y, main.Position.Z)
  1012. topmid.Position = Vector3.new(main.Position.X, main.Position.Y + 1.3, main.Position.Z)
  1013. bottommid.Position = Vector3.new(main.Position.X, main.Position.Y - 1.3, main.Position.Z)
  1014.  
  1015. main.Rotation = Vector3.new(0, game.Players.LocalPlayer.Character.Head.Rotation.Y, game.Players.LocalPlayer.Character.Head.Rotation.Z)
  1016.  
  1017. topleft.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1018. topright.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1019. bottomleft.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1020. bottomright.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1021.  
  1022. midleft.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1023. midright.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1024. topmid.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1025. bottommid.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1026.  
  1027. -- fov frame
  1028. local frame = Instance.new('Frame')
  1029.  
  1030. frame.Size = UDim2.new(0, main.Size.X / 2 * 100, 0, main.Size.Y / 2 * 100)
  1031. frame.Name = "FOV_Circle"
  1032. frame.Position = UDim2.new(0.5, -100, 0.5, -100)
  1033. frame.Visible = false
  1034. frame.ZIndex = 9
  1035. frame.BackgroundColor3 = Color3.fromRGB(61, 61, 61)
  1036. frame.BackgroundTransparency = 0.25
  1037. frame.BorderSizePixel = 6
  1038. frame.BorderColor3 = Color3.fromRGB(54, 54, 54)
  1039. frame.Parent = store:FindFirstChild(settings.MGUI_Name)
  1040. elseif mode == "edit" and tostring(arithmatic) then
  1041. local folder = store:FindFirstChild('FovStorage')
  1042. if folder then folder = store.FovStorage end
  1043. local corners = folder.Corners
  1044. local mids = folder.Mids
  1045. local frame = store:FindFirstChild(settings.MGUI_Name):FindFirstChild('FOV_Circle')
  1046. if frame then frame = store[settings.MGUI_Name].FOV_Circle end
  1047. local z = 0.4
  1048.  
  1049. local main = folder.main
  1050. local topleft = corners.topleft
  1051. local topright = corners.topright
  1052. local bottomleft = corners.bottomleft
  1053. local bottomright = corners.bottomright
  1054. local midleft = mids.midleft
  1055. local midright = mids.midright
  1056. local topmid = mids.topmid
  1057. local bottommid = mids.bottommid
  1058.  
  1059. if arithmatic == "+" then
  1060. main.Size = Vector3.new(main.Size.X + 0.5, main.Size.Y + 0.5, z)
  1061.  
  1062. topleft.Size = Vector3.new(topleft.Size.X + 0.5, topleft.Size.Y + 0.5, z)
  1063. topright.Size = Vector3.new(topright.Size.X + 0.5, topright.Size.Y + 0.5, z)
  1064. bottomleft.Size = Vector3.new(bottomleft.Size.X + 0.5, bottomleft.Size.Y + 0.5, z)
  1065. bottomright.Size = Vector3.new(bottomright.Size.X + 0.5, bottomright.Size.Y + 0.5, z)
  1066.  
  1067. midleft.Size = Vector3.new(midleft.Size.X + 0.5, midleft.Size.Y + 0.5, z)
  1068. midright.Size = Vector3.new(midright.Size.X + 0.5, midright.Size.Y + 0.5, z)
  1069. topmid.Size = Vector3.new(topmid.Size.X + 0.5, topmid.Size.Y + 0.5, z)
  1070. bottommid.Size = Vector3.new(bottommid.Size.X + 0.5, bottommid.Size.Y + 0.5, z)
  1071.  
  1072. frame.Size = UDim2.new(0, main.Size.X / 2 * 100, 0, main.Size.Y / 2 * 100)
  1073. frame.Position = frame.Position - UDim2.new(0, 12, 0, 12)
  1074. elseif arithmatic == "-" then
  1075. main.Size = Vector3.new(main.Size.X - 0.5, main.Size.Y - 0.5, z)
  1076.  
  1077. topleft.Size = Vector3.new(topleft.Size.X - 0.5, topleft.Size.Y - 0.5, z)
  1078. topright.Size = Vector3.new(topright.Size.X - 0.5, topright.Size.Y - 0.5, z)
  1079. bottomleft.Size = Vector3.new(bottomleft.Size.X - 0.5, bottomleft.Size.Y - 0.5, z)
  1080. bottomright.Size = Vector3.new(bottomright.Size.X - 0.5, bottomright.Size.Y - 0.5, z)
  1081.  
  1082. midleft.Size = Vector3.new(midleft.Size.X - 0.5, midleft.Size.Y - 0.5, z)
  1083. midright.Size = Vector3.new(midright.Size.X - 0.5, midright.Size.Y - 0.5, z)
  1084. topmid.Size = Vector3.new(topmid.Size.X - 0.5, topmid.Size.Y - 0.5, z)
  1085. bottommid.Size = Vector3.new(bottommid.Size.X - 0.5, bottommid.Size.Y - 0.5, z)
  1086.  
  1087. frame.Size = UDim2.new(0, main.Size.X / 2 * 100, 0, main.Size.Y / 2 * 100)
  1088. frame.Position = frame.Position + UDim2.new(0, 12, 0, 12)
  1089. end
  1090. elseif mode == "update" then
  1091. local folder = store:FindFirstChild('FovStorage')
  1092. if folder then folder = store.FovStorage end
  1093. local corners = folder.Corners
  1094. local mids = folder.Mids
  1095.  
  1096. local main = folder.main
  1097. local topleft = corners.topleft
  1098. local topright = corners.topright
  1099. local bottomleft = corners.bottomleft
  1100. local bottomright = corners.bottomright
  1101. local midleft = mids.midleft
  1102. local midright = mids.midright
  1103. local topmid = mids.topmid
  1104. local bottommid = mids.bottommid
  1105.  
  1106. main.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Head.CFrame.X + 2.5, game.Players.LocalPlayer.Character.Head.CFrame.Y, game.Players.LocalPlayer.Character.Head.CFrame.Z)
  1107.  
  1108. topleft.CFrame = CFrame.new(main.CFrame.X - 1, main.CFrame.Y + 1, main.CFrame.Z)
  1109. topright.CFrame = CFrame.new(main.CFrame.X + 1, main.CFrame.Y + 1, main.CFrame.Z)
  1110. bottomleft.CFrame = CFrame.new(main.CFrame.X - 1, main.CFrame.Y - 1, main.CFrame.Z)
  1111. bottomright.CFrame = CFrame.new(main.CFrame.X + 1, main.CFrame.Y - 1, main.CFrame.Z)
  1112.  
  1113. midleft.CFrame = CFrame.new(main.CFrame.X - 1.3, main.CFrame.Y, main.CFrame.Z)
  1114. midright.CFrame = CFrame.new(main.CFrame.X + 1.3, main.CFrame.Y, main.CFrame.Z)
  1115. topmid.CFrame = CFrame.new(main.CFrame.X, main.CFrame.Y + 1.3, main.CFrame.Z)
  1116. bottommid.CFrame = CFrame.new(main.CFrame.X, main.CFrame.Y - 1.3, main.CFrame.Z)
  1117.  
  1118. main.Rotation = Vector3.new(0, game.Players.LocalPlayer.Character.Head.Rotation.Y, game.Players.LocalPlayer.Character.Head.Rotation.Z)
  1119.  
  1120. topleft.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1121. topright.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1122. bottomleft.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1123. bottomright.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1124.  
  1125. midleft.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1126. midright.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1127. topmid.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1128. bottommid.Rotation = Vector3.new(0, main.Rotation.Y, main.Rotation.Z)
  1129.  
  1130. local mouse = game.Players.LocalPlayer:GetMouse()
  1131. local distanceCalculations = distanceCalculator(mouse.Hit)
  1132. local closestToMouse = 0
  1133.  
  1134. table.sort(distanceCalculations)
  1135. local num = false
  1136. for i,v in pairs(distanceCalculations) do
  1137. if not num or v < num then
  1138. closestToMouse = i;
  1139. num = v;
  1140. end
  1141. end
  1142. num = false
  1143.  
  1144. if closestToMouse then
  1145. local mouse = game.Players.LocalPlayer:GetMouse()
  1146. local ignore = {game.Players.LocalPlayer.Character, game.Players.LocalPlayer.Character.Head, main, topleft, topright, bottomleft, bottomright, midleft, midright, topmid, bottommid}
  1147.  
  1148. local rmain = Ray.new(main.Position, (main.Position - Vector3.new(0, 0, 99990) - main.Position).unit * 2048)
  1149. local rtopleft = Ray.new(topleft.Position, (topleft.Position - Vector3.new(0, 0, 99990) - topleft.Position).unit * 2048)
  1150. local rtopright = Ray.new(topright.Position, (topright.Position - Vector3.new(0, 0, 99990) - topright.Position).unit * 2048)
  1151. local rbottomleft = Ray.new(bottomleft.Position, (bottomleft.Position - Vector3.new(0, 0, 99990) - bottomleft.Position).unit * 2048)
  1152. local rbottomright = Ray.new(bottomright.Position, (bottomright.Position - Vector3.new(0, 0, 99990) - bottomright.Position).unit * 2048)
  1153. local rmidleft = Ray.new(midleft.Position, (midleft.Position - Vector3.new(0, 0, 99990) - midleft.Position).unit * 2048)
  1154. local rmidright = Ray.new(midright.Position, (midright.Position - Vector3.new(0, 0, 99990) - midright.Position).unit * 2048)
  1155. local rtopmid = Ray.new(topmid.Position, (topmid.Position - Vector3.new(0, 0, 99990) - topmid.Position).unit * 2048)
  1156. local rbottommid = Ray.new(bottommid.Position, (bottommid.Position - Vector3.new(0, 0, 99990) - bottommid.Position).unit * 2048)
  1157.  
  1158. local rayArray = {
  1159. [main] = workspace:FindPartOnRayWithIgnoreList(rmain, ignore),
  1160. [topleft] = workspace:FindPartOnRayWithIgnoreList(rtopleft, ignore),
  1161. [topright] = workspace:FindPartOnRayWithIgnoreList(rtopright, ignore),
  1162. [bottomleft] = workspace:FindPartOnRayWithIgnoreList(rbottomleft, ignore),
  1163. [bottomright] = workspace:FindPartOnRayWithIgnoreList(rbottomright, ignore),
  1164. [midleft] = workspace:FindPartOnRayWithIgnoreList(rmidleft, ignore),
  1165. [midright] = workspace:FindPartOnRayWithIgnoreList(rmidright, ignore),
  1166. [topmid] = workspace:FindPartOnRayWithIgnoreList(rtopmid, ignore),
  1167. [bottommid] = workspace:FindPartOnRayWithIgnoreList(rbottommid, ignore)
  1168. }
  1169.  
  1170. return rayArray
  1171. end
  1172. end
  1173. end
  1174.  
  1175. local move = mousemoverel or Input.MoveMouse
  1176.  
  1177. function AimAt(x, y)
  1178. local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
  1179. local vps = cam.ViewportSize
  1180. local vpsx = vps.X
  1181. local vpsy = vps.Y
  1182. local screencenterx = vpsx/2
  1183. local screencentery = vpsy/2
  1184. local aimatx
  1185. local aimaty
  1186.  
  1187. if x ~= 0 then
  1188. if x > screencenterx then
  1189. aimatx = -(screencenterx - x)
  1190. aimatx = aimatx
  1191. if aimatx + screencenterx > screencenterx * 2 then
  1192. aimatx = 0
  1193. end
  1194. end
  1195. if x < screencenterx then
  1196. aimatx = x - screencenterx
  1197. aimatx = aimatx
  1198. if aimatx + screencenterx < 0 then
  1199. aimatx = 0
  1200. end
  1201. end
  1202. end
  1203.  
  1204. if y ~= 0 then
  1205. if y > screencentery then
  1206. aimaty = -(screencentery - y)
  1207. aimaty = aimaty
  1208. if aimaty + screencentery > screencentery * 2 then
  1209. aimaty = 0
  1210. end
  1211. end
  1212. if y < screencentery then
  1213. aimaty = y - screencentery
  1214. aimaty = aimaty
  1215. if aimaty + screencentery < 0 then
  1216. aimaty = 0
  1217. end
  1218. end
  1219. end
  1220. return aimatx, aimaty
  1221. end
  1222.  
  1223. function legitbot(mode)
  1224. if mode == "distance" and rayCast() and rayCast() ~= nil and rayCast().Name and rayCast().Character then
  1225. local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
  1226.  
  1227. if move then
  1228. for i=5, 0.1 do
  1229. local sp = cam:WorldToScreenPoint(rayCast().Character.Head.Position / i)
  1230. local x, y = AimAt(sp.X + -25, sp.Y + 32)
  1231. move(x, y)
  1232. end
  1233. return
  1234. end
  1235.  
  1236. cam.CameraType = Enum.CameraType.Scriptable
  1237. cam:Interpolate(cam.CFrame, rayCast().Character:FindFirstChild('Head').CFrame, if_settings.legit_settings.smoothness / (if_settings.legit_settings.smoothness * 5))
  1238.  
  1239. wait()
  1240. cam.CameraType = Enum.CameraType.Custom
  1241. elseif mode == "mouse" then
  1242. local mouse = game.Players.LocalPlayer:GetMouse()
  1243. local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
  1244. local distanceCalculations = distanceCalculator(mouse.Hit)
  1245. local closestToMouse = 0
  1246.  
  1247. table.sort(distanceCalculations)
  1248. local num = false
  1249. for i,v in pairs(distanceCalculations) do
  1250. if not num or v < num then
  1251. closestToMouse = i;
  1252. num = v;
  1253. end
  1254. end
  1255. num = false
  1256. if closestToMouse and game.Players:FindFirstChild(closestToMouse) and game.Players[closestToMouse].Character and game.Players[closestToMouse].Character:FindFirstChild('Head') then
  1257. if rayCast() and not closestToMouse == rayCast().Name then closestToMouse = rayCast().Name end
  1258. if move then
  1259. for i=5, 0.1 do
  1260. local sp = cam:WorldToScreenPoint(game.Players:FindFirstChild(closestToMouse).Character.Head.Position / i)
  1261. local x, y = AimAt(sp.X + -25, sp.Y + 32)
  1262. move(x, y)
  1263. end
  1264. return
  1265. end
  1266.  
  1267. cam.CameraType = Enum.CameraType.Scriptable
  1268. cam:Interpolate(cam.CFrame, game.Players:FindFirstChild(closestToMouse).Character:FindFirstChild('Head').CFrame, if_settings.legit_settings.smoothness / (if_settings.legit_settings.smoothness * 5))
  1269.  
  1270. wait()
  1271. cam.CameraType = Enum.CameraType.Custom
  1272. end
  1273. end
  1274. end
  1275.  
  1276. function aimLock(mode)
  1277. if mode == "distance" and rayCast() ~= nil and rayCast():IsA('Player') then
  1278. local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
  1279.  
  1280. if move then
  1281. local sp = cam:WorldToScreenPoint(rayCast().Character.Head.Position)
  1282. local x, y = AimAt(sp.X + -25, sp.Y + 32)
  1283. move(x, y)
  1284. return
  1285. end
  1286.  
  1287. cam.CameraType = Enum.CameraType.Scriptable
  1288. cam:Interpolate(cam.CFrame, rayCast().Character:FindFirstChild('Head').CFrame, 1/30)
  1289.  
  1290. wait()
  1291. cam.CameraType = Enum.CameraType.Custom
  1292. elseif mode == "mouse" then
  1293. local mouse = game.Players.LocalPlayer:GetMouse()
  1294. local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
  1295. local distanceCalculations = distanceCalculator(mouse.Hit)
  1296. local closestToMouse = 0
  1297.  
  1298. table.sort(distanceCalculations)
  1299. local num = false
  1300. for i,v in pairs(distanceCalculations) do
  1301. if not num or v < num then
  1302. closestToMouse = i;
  1303. num = v;
  1304. end
  1305. end
  1306.  
  1307. if closestToMouse and game.Players:FindFirstChild(closestToMouse) and game.Players[closestToMouse].Character and game.Players[closestToMouse].Character:FindFirstChild('Head') then
  1308. if move then
  1309. local sp = cam:WorldToScreenPoint(game.Players:FindFirstChild(closestToMouse).Character.Head.Position)
  1310. local x, y = AimAt(sp.X + -25, sp.Y + 32)
  1311. move(x, y)
  1312. return
  1313. end
  1314.  
  1315. cam.CameraType = Enum.CameraType.Scriptable
  1316. cam:Interpolate(cam.CFrame, game.Players:FindFirstChild(closestToMouse).Character:FindFirstChild('Head').CFrame, 1/30)
  1317.  
  1318. wait()
  1319. cam.CameraType = Enum.CameraType.Custom
  1320. end
  1321. num = false
  1322. end
  1323. end
  1324.  
  1325. function esp_check(args)
  1326. -- in general check
  1327.  
  1328. if args and tostring(args) == "items" then
  1329. if not store.Chams:FindFirstChild('Item_Chams') then
  1330. for i,v in pairs(workspace.Loot_Spawns:GetChildren()) do
  1331. createChams(v)
  1332. end
  1333.  
  1334. for i,v in pairs(workspace.Crate_Spawns:GetChildren()) do
  1335. createChams(v)
  1336. end
  1337. return true
  1338. else
  1339. return true
  1340. end
  1341. end
  1342.  
  1343. if not store:FindFirstChild('PLR_ESP') or (store:FindFirstChild('PLR_ESP') and not #store.PLR_ESP:GetChildren() == #game:GetService('Players'):GetPlayers()) then
  1344. for i,v in pairs(game:GetService('Players'):GetPlayers()) do
  1345. if v.Character and (not store:FindFirstChild('PLR_ESP') or store:FindFirstChild('PLR_ESP') and not store.PLR_ESP:FindFirstChild(v.Name .. '_Visuals')) then
  1346. createChams(v)
  1347. makeESP(v)
  1348. end
  1349. end
  1350. return true
  1351. else
  1352. return true
  1353. end
  1354. end
  1355.  
  1356. local aim_options = createHeader_noAnim("Options", 10, 258)
  1357. aim_options.Visible = false
  1358. aim_options.ZIndex = 5
  1359. local list = aim_options.List
  1360. list.Size = UDim2.new(0, 238, 0, 35)
  1361.  
  1362. local fov_frame = Instance.new('Frame')
  1363. local smooth_frame = Instance.new('Frame')
  1364. local distance_m = Instance.new('TextButton')
  1365. local mouse_m = Instance.new('TextButton')
  1366. local smooth_box = Instance.new('TextBox')
  1367. local fov_plus = Instance.new('TextButton')
  1368. local fov_minus = Instance.new('TextButton')
  1369. local smooth_label = Instance.new('TextButton')
  1370. local fov_label = Instance.new('TextButton')
  1371.  
  1372. fov_frame.Name = "fov_frame"
  1373. fov_frame.BackgroundColor3 = Color3.fromRGB(60, 62, 66)
  1374. fov_frame.BorderSizePixel = 0
  1375. fov_frame.Position = UDim2.new(0.029, 0, 0.669, 0)
  1376. fov_frame.Size = UDim2.new(0, 230, 0, 96)
  1377. fov_frame.ZIndex = 2
  1378. fov_frame.Parent = list
  1379.  
  1380. smooth_frame.Name = "smooth_frame"
  1381. smooth_frame.BackgroundColor3 = Color3.fromRGB(60, 62, 66)
  1382. smooth_frame.BorderSizePixel = 0
  1383. smooth_frame.Position = UDim2.new(0.029, 0, 0.338, 0)
  1384. smooth_frame.Size = UDim2.new(0, 230, 0, 99)
  1385. smooth_frame.ZIndex = 2
  1386. smooth_frame.Parent = list
  1387.  
  1388. distance_m.BackgroundTransparency = 1
  1389. distance_m.AutoButtonColor = false
  1390. distance_m.Name = "Distance_Button"
  1391. distance_m.Position = UDim2.new(0, 0, 0, 35)
  1392. distance_m.Size = UDim2.new(0, 245, 0, 30)
  1393. distance_m.Font = "SourceSansBold"
  1394. distance_m.Text = '> Distance'
  1395. distance_m.TextColor3 = settings.ToggleColor
  1396. distance_m.TextScaled = false
  1397. distance_m.TextSize = 25
  1398. distance_m.TextStrokeTransparency = 1
  1399. distance_m.Parent = list
  1400.  
  1401. mouse_m.Name = "Mouse_Button"
  1402. mouse_m.BackgroundTransparency = 1
  1403. mouse_m.AutoButtonColor = false
  1404. mouse_m.Position = UDim2.new(0, 0, 0, 65)
  1405. mouse_m.Size = UDim2.new(0, 245, 0, 30)
  1406. mouse_m.Font = "SourceSansBold"
  1407. mouse_m.Text = '> Mouse'
  1408. mouse_m.TextColor3 = Color3.fromRGB(255, 255, 255)
  1409. mouse_m.TextScaled = false
  1410. mouse_m.TextSize = 25
  1411. mouse_m.TextStrokeTransparency = 1
  1412. mouse_m.Parent = list
  1413.  
  1414. smooth_box.Name = "smoothness_amount"
  1415. smooth_box.BackgroundColor3 = Color3.fromRGB(52, 54, 58)
  1416. smooth_box.BorderSizePixel = 0
  1417. smooth_box.Position = UDim2.new(0.09, 0, 0.479, 0)
  1418. smooth_box.Size = UDim2.new(0, 200, 0, 46)
  1419. smooth_box.Text = '0'
  1420. smooth_box.Font = "SourceSansBold"
  1421. smooth_box.TextColor3 = Color3.fromRGB(255, 255, 255)
  1422. smooth_box.TextScaled = true
  1423. smooth_box.TextWrapped = true
  1424. smooth_box.TextStrokeTransparency = 1
  1425. smooth_box.ZIndex = 3
  1426. smooth_box.Parent = list
  1427.  
  1428. fov_plus.Name = "fov_plus"
  1429. fov_plus.BackgroundColor3 = Color3.fromRGB(60, 62, 66)
  1430. fov_plus.BorderSizePixel = 0
  1431. fov_plus.Position = UDim2.new(0.722, 0, 0.694, 0)
  1432. fov_plus.Size = UDim2.new(0, 51, 0, 80)
  1433. fov_plus.Text = '+'
  1434. fov_plus.Font = "SourceSansBold"
  1435. fov_plus.TextColor3 = Color3.fromRGB(255, 255, 255)
  1436. fov_plus.TextScaled = true
  1437. fov_plus.TextWrapped = true
  1438. fov_plus.TextStrokeTransparency = 1
  1439. fov_plus.ZIndex = 3
  1440. fov_plus.Parent = list
  1441.  
  1442. fov_minus.Name = "fov_minus"
  1443. fov_minus.BackgroundColor3 = Color3.fromRGB(60, 62, 66)
  1444. fov_minus.BorderSizePixel = 0
  1445. fov_minus.Position = UDim2.new(0.486, 0, 0.694, 0)
  1446. fov_minus.Size = UDim2.new(0, 51, 0, 80)
  1447. fov_minus.Text = '-'
  1448. fov_minus.Font = "SourceSansBold"
  1449. fov_minus.TextColor3 = Color3.fromRGB(255, 255, 255)
  1450. fov_minus.TextScaled = true
  1451. fov_minus.TextWrapped = true
  1452. fov_minus.TextStrokeTransparency = 1
  1453. fov_minus.ZIndex = 3
  1454. fov_minus.Parent = list
  1455.  
  1456. smooth_label.Name = "smooth_label"
  1457. smooth_label.BackgroundTransparency = 1
  1458. smooth_label.Position = UDim2.new(0.045, 0, 0.322, 0)
  1459. smooth_label.Size = UDim2.new(0, 222, 0, 51)
  1460. smooth_label.ZIndex = 3
  1461. smooth_label.Font = "SourceSansLight"
  1462. smooth_label.Text = "Smoothness"
  1463. smooth_label.TextColor3 = Color3.fromRGB(255, 255, 255)
  1464. smooth_label.TextScaled = true
  1465. smooth_label.TextWrapped = true
  1466. smooth_label.TextStrokeTransparency = 1
  1467. smooth_label.Parent = list
  1468.  
  1469. fov_label.Name = "fov_label"
  1470. fov_label.BackgroundTransparency = 1
  1471. fov_label.Position = UDim2.new(0.094, 0, 0.741, 0)
  1472. fov_label.Size = UDim2.new(0, 96, 0, 50)
  1473. fov_label.ZIndex = 3
  1474. fov_label.Font = "SourceSansLight"
  1475. fov_label.Text = "FOV"
  1476. fov_label.TextColor3 = Color3.fromRGB(255, 255, 255)
  1477. fov_label.TextScaled = true
  1478. fov_label.TextWrapped = true
  1479. fov_label.TextStrokeTransparency = 1
  1480. fov_label.Parent = list
  1481.  
  1482. if store:FindFirstChild('FovStorage') then else
  1483. fov("create")
  1484. end
  1485. local mouse = game.Players.LocalPlayer:GetMouse()
  1486.  
  1487. --//Now a short Explanation on how to add a Header!
  1488. --[[
  1489. Let's say that we want to create a header, in which there is a button that prints out Hello
  1490. and one that prints out Bye. In order to add another Header we use createHeader (Title, ScreenPosition X, ScreenPositon Y )
  1491. E.G. local Prints = createHeader("Prints",10,100). Why the variable, you might ask. Well createHeader returns the Header that
  1492. it creates, which will be required to add a button. Now on to creating a button:
  1493. We'll use addButton (Title,Header, function). Lets create the button that prints Hello
  1494. In short: addButton("Hello", Prints, function() print"hello" end) . See how we use Prints again!
  1495. Now let us add the one that prints Bye: addButton("Bye", Prints, function() print"bye" end).
  1496. You can just put any script in the function.
  1497. We just can keep on adding Buttons with this.
  1498. Now open it and have fun!
  1499.  
  1500. [Note for somewhat advanced scripters:] The function is optional!
  1501. addButton returns the button that it creates and it can be edited and scripted.
  1502. Useful for advanced stuff
  1503.  
  1504. --]]
  1505.  
  1506. -- Name + Version Label
  1507.  
  1508. local Frame = Instance.new("Frame", ScreenGui)
  1509. Frame.BackgroundTransparency = 1
  1510. Frame.Position = UDim2.new(0, 2, 0, 2)
  1511. Frame.Size = UDim2.new(0, 380, 0, 80)
  1512. local TextLabel = Instance.new("TextLabel", Frame)
  1513. TextLabel.Name = "GUI_Name"
  1514. TextLabel.BackgroundTransparency = 1
  1515. TextLabel.Font = "SourceSansLight"
  1516. TextLabel.Text = settings.GUI_Name
  1517. TextLabel.TextSize = 48
  1518. TextLabel.TextColor3 = settings.Color
  1519. TextLabel.TextStrokeTransparency = 0.75
  1520. TextLabel.Position = UDim2.new(0, 10, 0, 0)
  1521. TextLabel.Size = UDim2.new(0, 210, 0, 60)
  1522. local TextLabel_2 = Instance.new("TextLabel", Frame)
  1523. TextLabel_2.Name = "GUI_Version"
  1524. TextLabel_2.BackgroundTransparency = 1
  1525. TextLabel_2.Font = "SourceSansLight"
  1526. TextLabel_2.Text = "v" .. settings.Version
  1527. TextLabel_2.TextSize = 24
  1528. TextLabel_2.TextColor3 = Color3.fromRGB(128, 128, 128)
  1529. TextLabel_2.TextStrokeTransparency = 0.75
  1530. TextLabel_2.Position = UDim2.new(0, 220, 0, 10)
  1531. TextLabel_2.Size = UDim2.new(0, 50, 0, 50)
  1532.  
  1533. -- aim_options section haha
  1534. local aimbot = createHeader("Aimbot",10,65)
  1535.  
  1536. local l_bot = addButton("Legitbot", aimbot)
  1537. local a_bot = addButton("Aimlock", aimbot)
  1538. local o_scales = addButton("Options [AIMBOT]", aimbot)
  1539. local bighead = addButton("Bighead", aimbot)
  1540. local mashead = addButton("Massive Head", aimbot)
  1541.  
  1542. -- visuals section (renamed from esp lol)
  1543.  
  1544. local visuals = createHeader("Visuals", 265, 65)
  1545.  
  1546. local box_esp = addButton("Box", visuals)
  1547. local name_esp = addButton("Name", visuals)
  1548. local distance_esp = addButton("Distance", visuals)
  1549. local backpack = addButton("Backpack", visuals)
  1550. local lvl_esp = addButton("Level", visuals)
  1551. local health = addButton("Health", visuals)
  1552. local chams = addButton("Player Chams", visuals)
  1553. local fov_circle = addButton("FOV Circle", visuals)
  1554. local item_chams = addButton("Item Chams", visuals)
  1555. local reset = addButton("Reset ESP", visuals)
  1556.  
  1557. -- misc section
  1558.  
  1559. local misc = createHeader("Misc", 520, 65)
  1560.  
  1561. local r_houses = addButton("Remove Buildings", misc)
  1562. local noclip = addButton("Noclip", misc)
  1563. local tp_loot = addButton("TP To Loot", misc)
  1564. local s_mode = addButton("Stream Mode", misc)
  1565. --local gwin = addButton("Guaranteed Win", misc)
  1566. --local fly = addButton("Fly Hacks", misc)
  1567. local invis = addButton("Invisibility", misc)
  1568.  
  1569. -- teleport section
  1570. local tps = createHeader("Teleports", 775, 65)
  1571.  
  1572. local locations = {
  1573. CC = function() tp(Vector3.new(2339.269, 149.162, -1705.783)) end,
  1574. DD = function() tp(Vector3.new(-1488.969, 76.66, -126.069)) end,
  1575. FreakyF = function() tp(Vector3.new(133.037, 144.058, -2244.885)) end,
  1576. HorrifiedH = function() tp(Vector3.new(763.611, 166.863, 1450.335)) end,
  1577. HiddenH = function() tp(Vector3.new(-1322.731, 121.312, -2293.659)) end,
  1578. LilL = function() tp(Vector3.new(-242.223, 106.826, -145.312)) end,
  1579. LonelyL = function() tp(Vector3.new(2049.817, 189.828, 1908.058)) end,
  1580. MM = function() tp(Vector3.new(-2041.523, 243.027, 1295.134)) end,
  1581. NN = function() tp(Vector3.new(2689.767, 204.932, 892.649)) end,
  1582. OO = function() tp(Vector3.new(-2533.73, 149.464, 2374.52)) end,
  1583. PP = function() tp(Vector3.new(-2435.575, 169.256, -439.33)) end,
  1584. SS = function() tp(Vector3.new(-459.601, 309.16, 642.006)) end,
  1585. TeaserT = function() tp(Vector3.new(-1986.823, 172.663, -1867.608)) end,
  1586. TinyT = function() tp(Vector3.new(484.176, 171.149, 2248.187)) end,
  1587. TopsyT = function() tp(Vector3.new(786.716, 212.958, -1014.743)) end,
  1588. VV = function() tp(Vector3.new(1518.284, 529.282, 1436.449)) end,
  1589. WW = function() tp(Vector3.new(-649.505, 168.216, 2230.685)) end
  1590. }
  1591.  
  1592. local buttons = {
  1593. CC = addButton("Crummy City", tps),
  1594. DD = addButton("Dirty Depot", tps),
  1595. FreakyF = addButton("Freaky Fields", tps),
  1596. HorrifiedH = addButton("Happy Hillside", tps),
  1597. HiddenH = addButton("Hidden Haven", tps),
  1598. LilL = addButton("Lil' Lake", tps),
  1599. LonelyL = addButton("Lonely Land", tps),
  1600. MM = addButton("Mini Mountain", tps),
  1601. NN = addButton("Neat Neighborhood", tps),
  1602. OO = addButton("Outer Oasis", tps),
  1603. PP = addButton("Pleasent Place", tps),
  1604. SS = addButton("Sad Settlement", tps),
  1605. TeaserT = addButton("Teaser Town", tps),
  1606. TinyT = addButton("Tiny Town", tps),
  1607. TopsyT = addButton("Topsy Towers", tps),
  1608. VV = addButton("Volatile Volcano", tps),
  1609. WW = addButton("Wonky Willows", tps)
  1610. }
  1611.  
  1612. for i,v in pairs(buttons) do
  1613. buttons[i] = v
  1614. v.MouseButton1Down:connect(function()
  1615. if not tping then
  1616. v.TextColor3 = settings.ToggleColor
  1617. locations[tostring(i) or i.Name]()
  1618. v.TextColor3 = Color3.fromRGB(255, 255, 255)
  1619. else
  1620. v.TextColor3 = Color3.fromRGB(255, 76, 76)
  1621. wait(0.2)
  1622. v.TextColor3 = Color3.fromRGB(255, 255, 255)
  1623. end
  1624. end)
  1625. end
  1626.  
  1627. local gwin_t = false
  1628. local savedpos
  1629. local inst = Instance.new('Part', workspace)
  1630. inst.Size = Vector3.new(100000, 1, 100000)
  1631. inst.Name = ":^)"
  1632.  
  1633. invis.MouseButton1Down:connect(function()
  1634. invis.TextColor3 = settings.ToggleColor
  1635. if not if_settings.invis_a then
  1636. loadstring(game:HttpGet('https://pastebin.com/raw/p3dgegEY', true))()
  1637. end
  1638. end)
  1639.  
  1640. --[[
  1641. fly.MouseButton1Down:connect(function()
  1642. if_settings.fly_toggle = not if_settings.fly_toggle
  1643. if if_settings.fly_toggle == true then
  1644. fly.TextColor3 = settings.ToggleColor
  1645. elseif not if_settings.fly_toggle and if_settings.func_toggle then
  1646. fly.TextColor3 = Color3.fromRGB(255 ,255, 255)
  1647. flyh()
  1648. end
  1649. end)]]
  1650.  
  1651. --[[
  1652. gwin.MouseButton1Down:connect(function()
  1653. gwin_t = not gwin_t
  1654. if gwin_t then
  1655. gwin.TextColor3 = settings.ToggleColor
  1656. savedpos = game.Players.LocalPlayer.Character.HumanoidRootPart.Position
  1657. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(Vector3.new(workspace.Field.Position.X, 500000100, workspace.Field.Position.Z))
  1658. inst.Position = game.Players.LocalPlayer.Character.HumanoidRootPart.Position - Vector3.new(0, 30, 0)
  1659.  
  1660. workspace.Field:GetPropertyChangedSignal('Position'):Connect(function()
  1661. tp(inst, workspace.Field.Position)
  1662. tp(workspace.Field.Position)
  1663. end)
  1664. end
  1665. end)]]
  1666.  
  1667. s_mode.MouseButton1Down:connect(function()
  1668. if_settings.s_toggle = not if_settings.s_toggle
  1669. if if_settings.s_toggle == true then
  1670. s_mode.TextColor3 = settings.ToggleColor
  1671. if esp_check() then
  1672. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  1673. if v:FindFirstChild('name') and v.Name ~= game.Players.LocalPlayer.Name then
  1674. v.name.Visible = false
  1675. end
  1676. end
  1677. else
  1678. warn('esp broke lol')
  1679. end
  1680. else
  1681. s_mode.TextColor3 = Color3.fromRGB(255, 255, 255)
  1682. if esp_check() then
  1683. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  1684. if v:FindFirstChild('name') then
  1685. v.name.Visible = true
  1686. end
  1687. end
  1688. else
  1689. warn('esp broke lol')
  1690. end
  1691. end
  1692. end)
  1693.  
  1694. lvl_esp.MouseButton1Down:connect(function()
  1695. if_settings.lvl_toggle = not if_settings.lvl_toggle
  1696. if if_settings.lvl_toggle == true then
  1697. lvl_esp.TextColor3 = settings.ToggleColor
  1698. if esp_check() then
  1699. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  1700. if v:FindFirstChild('lvl') then
  1701. v.lvl.Visible = false
  1702. end
  1703. end
  1704. else
  1705. warn('esp broke lol')
  1706. end
  1707. else
  1708. lvl_esp.TextColor3 = Color3.fromRGB(255, 255, 255)
  1709. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  1710. if v:FindFirstChild('lvl') then
  1711. v.lvl.Visible = false
  1712. end
  1713. end
  1714. end
  1715. end)
  1716.  
  1717. bighead.MouseButton1Down:connect(function()
  1718. if_settings.bighead_t = not if_settings.bighead_t
  1719.  
  1720. if if_settings.bighead_t == true then
  1721. bighead.TextColor3 = settings.ToggleColor
  1722. wait(0.1)
  1723. for i,v in pairs(game.Players:GetPlayers()) do
  1724. if v.Name ~= game.Players.LocalPlayer.Name and v.Character:FindFirstChild('Humanoid') and v.Character.Humanoid:FindFirstChild('HeadScale') then
  1725. v.Character.Humanoid.HeadScale.Value = 8
  1726. elseif v.Character:FindFirstChild('Humanoid') and not v.Character.Humanoid:FindFirstChild('HeadScale') then
  1727. local new = Instance.new('NumberValue', v.Character.Humanoid)
  1728. new.Name = "HeadScale"
  1729. new.Value = 8
  1730. end
  1731. end
  1732. else
  1733. bighead.TextColor3 = Color3.fromRGB(255, 255, 255)
  1734. for i,v in pairs(game.Players:GetPlayers()) do
  1735. if v.Name ~= game.Players.LocalPlayer.Name and v.Character:FindFirstChild('Humanoid') and v.Character.Humanoid:FindFirstChild('HeadScale') then
  1736. v.Character.Humanoid.HeadScale.Value = 1
  1737. elseif v.Character:FindFirstChild('Humanoid') and not v.Character.Humanoid:FindFirstChild('HeadScale') then
  1738. local new = Instance.new('NumberValue', v.Character.Humanoid)
  1739. new.Name = "HeadScale"
  1740. new.Value = 1
  1741. end
  1742. end
  1743. end
  1744. end)
  1745.  
  1746. mashead.MouseButton1Down:connect(function()
  1747. if_settings.mashead_t = not if_settings.mashead_t
  1748.  
  1749. if if_settings.mashead_t == true then
  1750. mashead.TextColor3 = settings.ToggleColor
  1751. wait(0.1)
  1752. for i,v in pairs(game.Players:GetPlayers()) do
  1753. if v.Name ~= game.Players.LocalPlayer.Name and v.Character:FindFirstChild('Humanoid') and v.Character.Humanoid:FindFirstChild('HeadScale') then
  1754. v.Character.Humanoid.HeadScale.Value = 15
  1755. elseif v.Character:FindFirstChild('Humanoid') and not v.Character.Humanoid:FindFirstChild('HeadScale') then
  1756. local new = Instance.new('NumberValue', v.Character.Humanoid)
  1757. new.Name = "HeadScale"
  1758. new.Value = 15
  1759. end
  1760. end
  1761. else
  1762. mashead.TextColor3 = Color3.fromRGB(255, 255, 255)
  1763. for i,v in pairs(game.Players:GetPlayers()) do
  1764. if v.Name ~= game.Players.LocalPlayer.Name and v.Character:FindFirstChild('Humanoid') and v.Character.Humanoid:FindFirstChild('HeadScale') then
  1765. v.Character.Humanoid.HeadScale.Value = 1
  1766. elseif v.Character:FindFirstChild('Humanoid') and not v.Character.Humanoid:FindFirstChild('HeadScale') then
  1767. local new = Instance.new('NumberValue', v.Character.Humanoid)
  1768. new.Name = "HeadScale"
  1769. new.Value = 1
  1770. end
  1771. end
  1772. end
  1773. end)
  1774.  
  1775. distance_m.MouseButton1Down:connect(function()
  1776. if if_settings.distance_t == true then
  1777. distance_m.TextColor3 = Color3.fromRGB(255, 255, 255)
  1778. mouse_m.TextColor3 = settings.ToggleColor
  1779. if_settings.mouse_t = true
  1780. if_settings.distance_t = false
  1781. else
  1782. distance_m.TextColor3 = settings.ToggleColor
  1783. mouse_m.TextColor3 = Color3.fromRGB(255, 255, 255)
  1784. if_settings.mouse_t = false
  1785. if_settings.distance_t = true
  1786. end
  1787. end)
  1788.  
  1789. mouse_m.MouseButton1Down:connect(function()
  1790. if if_settings.mouse_t == true then
  1791. mouse_m.TextColor3 = Color3.fromRGB(255, 255, 255)
  1792. distance_m.TextColor3 = settings.ToggleColor
  1793. if_settings.mouse_t = false
  1794. if_settings.distance_t = true
  1795. else
  1796. mouse_m.TextColor3 = settings.ToggleColor
  1797. distance_m.TextColor3 = Color3.fromRGB(255, 255, 255)
  1798. if_settings.mouse_t = true
  1799. if_settings.distance_t = false
  1800. end
  1801. end)
  1802.  
  1803. fov_plus.MouseButton1Down:connect(function()
  1804. fov_plus.TextColor3 = settings.ToggleColor
  1805. fov("edit", '+')
  1806. if_settings.legit_settings.fov = if_settings.legit_settings.fov + 0.5
  1807. print(tostring(if_settings.legit_settings.fov))
  1808. wait(0.2)
  1809. fov_plus.TextColor3 = Color3.fromRGB(255, 255, 255)
  1810. end)
  1811.  
  1812. fov_minus.MouseButton1Down:connect(function()
  1813. fov_minus.TextColor3 = settings.ToggleColor
  1814. fov("edit", '-')
  1815. if_settings.legit_settings.fov = if_settings.legit_settings.fov - 0.5
  1816. print(tostring(if_settings.legit_settings.fov))
  1817. wait(0.2)
  1818. fov_minus.TextColor3 = Color3.fromRGB(255, 255, 255)
  1819. end)
  1820.  
  1821. smooth_box:GetPropertyChangedSignal("Text"):Connect(function()
  1822. smooth_box.Text = smooth_box.Text:gsub("%D+", "")
  1823. if smooth_box.Text ~= nil or smooth_box.Text ~= '' then
  1824. if_settings.legit_settings.smoothness = tonumber(smooth_box.Text)
  1825. end
  1826. end)
  1827.  
  1828. aim_options.MouseButton1Down:connect(function()
  1829. if list.Size.Y.Offset <= 35 then
  1830. list:TweenSize(UDim2.new(0,245,0,317),Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.7)
  1831. else
  1832. list:TweenSize(UDim2.new(0,245,0,30),Enum.EasingDirection.Out,Enum.EasingStyle.Quint,0.7)
  1833. end
  1834. end)
  1835.  
  1836. l_bot.MouseButton1Down:connect(function()
  1837. if_settings.legit_bot = not if_settings.legit_bot
  1838. if if_settings.legit_bot == true then
  1839. a_bot.TextColor3 = Color3.fromRGB(255, 255, 255)
  1840. l_bot.TextColor3 = settings.ToggleColor
  1841. else
  1842. if_settings.legit_bot = false
  1843. if_settings.aim_bot = false
  1844. a_bot.TextColor3 = Color3.fromRGB(255, 255, 255)
  1845. l_bot.TextColor3 = Color3.fromRGB(255, 255, 255)
  1846. end
  1847. end)
  1848.  
  1849. a_bot.MouseButton1Down:connect(function()
  1850. if_settings.aim_bot = not if_settings.aim_bot
  1851. if if_settings.aim_bot == true then
  1852. l_bot.TextColor3 = Color3.fromRGB(255, 255, 255)
  1853. a_bot.TextColor3 = settings.ToggleColor
  1854. else
  1855. if_settings.legit_bot = false
  1856. if_settings.aim_bot = false
  1857. l_bot.TextColor3 = Color3.fromRGB(255, 255, 255)
  1858. a_bot.TextColor3 = Color3.fromRGB(255, 255, 255)
  1859. end
  1860. end)
  1861.  
  1862. o_scales.MouseButton1Down:connect(function()
  1863. if_settings.options_toggle = not if_settings.options_toggle
  1864. if if_settings.options_toggle == true then
  1865. o_scales.TextColor3 = settings.ToggleColor
  1866. aim_options.Visible = true
  1867. else
  1868. o_scales.TextColor3 = Color3.fromRGB(255, 255, 255)
  1869. aim_options.Visible = false
  1870. end
  1871. end)
  1872.  
  1873. reset.MouseButton1Down:connect(function()
  1874. reset.TextColor3 = settings.ToggleColor
  1875. if store:FindFirstChild('ESP') then
  1876. store.ESP:Destroy()
  1877. end
  1878.  
  1879. if store:FindFirstChild('PLR_ESP') then
  1880. store.PLR_ESP:Destroy()
  1881. end
  1882.  
  1883. if store:FindFirstChild('Chams') then
  1884. store.Chams:Destroy()
  1885. end
  1886.  
  1887. local array = {}
  1888. for i,v in pairs(ScreenGui:GetChildren()) do
  1889. if v.ClassName == "TextButton" and v.Name == "Visuals" then
  1890. if v:FindFirstChild('List') then
  1891. for l,o in pairs(v.List:GetChildren()) do
  1892. if o.ClassName == "TextButton" then
  1893. array[#array + 1] = o
  1894. end
  1895. end
  1896. end
  1897. end
  1898. end
  1899.  
  1900. for i,v in pairs(array) do
  1901. v.TextColor3 = Color3.fromRGB(255, 255, 255)
  1902. end
  1903.  
  1904. if_settings.itemchams_toggle = false
  1905. if_settings.chams_toggle = false
  1906. if_settings.distance_toggle = false
  1907. if_settings.health_toggle = false
  1908. if_settings.name_toggle = false
  1909. if_settings.backpack_toggle = false
  1910. if_settings.fovcircle_toggle = false
  1911. if_settings.box_toggle = false
  1912.  
  1913. wait(0.2)
  1914. reset.TextColor3 = Color3.fromRGB(255, 255, 255)
  1915. end)
  1916.  
  1917. item_chams.MouseButton1Down:connect(function()
  1918. if_settings.itemchams_toggle = not if_settings.itemchams_toggle
  1919.  
  1920. if if_settings.itemchams_toggle == true then
  1921. item_chams.TextColor3 = settings.ToggleColor
  1922. if esp_check("items") then
  1923. for i,v in pairs(store.Chams.Item_Chams:GetChildren()) do
  1924. v.Transparency = 0.35
  1925. end
  1926. else
  1927. warn('esp broke somehow lol')
  1928. end
  1929. else
  1930. item_chams.TextColor3 = Color3.fromRGB(255, 255, 255)
  1931.  
  1932. if esp_check("items") then
  1933. for i,v in pairs(store.Chams.Item_Chams:GetChildren()) do
  1934. v.Transparency = 1
  1935. end
  1936. else
  1937. warn('esp broke somehow lol')
  1938. end
  1939. end
  1940. end)
  1941.  
  1942. fov_circle.MouseButton1Down:connect(function()
  1943. if_settings.fovcircle_toggle = not if_settings.fovcircle_toggle
  1944. if if_settings.fovcircle_toggle == true then
  1945. fov_circle.TextColor3 = settings.ToggleColor
  1946. store[settings.MGUI_Name].FOV_Circle.Visible = true
  1947. else
  1948. fov_circle.TextColor3 = Color3.fromRGB(255, 255, 255)
  1949. store[settings.MGUI_Name].FOV_Circle.Visible = false
  1950. end
  1951. end)
  1952.  
  1953. chams.MouseButton1Down:connect(function()
  1954. if_settings.chams_toggle = not if_settings.chams_toggle
  1955. if if_settings.chams_toggle == true then
  1956. chams.TextColor3 = settings.ToggleColor
  1957. if esp_check() then
  1958. for i,v in pairs(store:FindFirstChild('Chams'):FindFirstChild('Player_Chams'):GetChildren()) do
  1959. for x,c in pairs(v:GetChildren()) do
  1960. c.Transparency = 0.35
  1961. end
  1962. end
  1963. else
  1964. warn('esp broke somehow lol')
  1965. end
  1966. else
  1967. chams.TextColor3 = Color3.fromRGB(255, 255, 255)
  1968. for i,v in pairs(store.Chams.Player_Chams:GetChildren()) do
  1969. for x,c in pairs(v:GetChildren()) do
  1970. c.Transparency = 1
  1971. end
  1972. end
  1973. end
  1974. end)
  1975.  
  1976. health.MouseButton1Down:connect(function()
  1977. if_settings.health_toggle = not if_settings.health_toggle
  1978. if if_settings.health_toggle == true then
  1979. health.TextColor3 = settings.ToggleColor
  1980. if esp_check() then
  1981. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  1982. for x,c in pairs(v:FindFirstChild('health'):GetChildren()) do
  1983. c.Visible = true
  1984. end
  1985. end
  1986. else
  1987. warn('esp broke somehow lol')
  1988. end
  1989. else
  1990. health.TextColor3 = Color3.fromRGB(255, 255, 255)
  1991. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  1992. for x,c in pairs(v:FindFirstChild('health'):GetChildren()) do
  1993. c.Visible = false
  1994. end
  1995. end
  1996. end
  1997. end)
  1998.  
  1999. backpack.MouseButton1Down:connect(function()
  2000. if_settings.backpack_toggle = not if_settings.backpack_toggle
  2001. if if_settings.backpack_toggle == true then
  2002. backpack.TextColor3 = settings.ToggleColor
  2003. if esp_check() then
  2004. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  2005. for x,c in pairs(v:FindFirstChild('backpack'):GetChildren()) do
  2006. if not c:IsA('BoolValue') then
  2007. c.Visible = true
  2008. end
  2009. end
  2010. end
  2011. else
  2012. warn('esp broke somehow lol')
  2013. end
  2014. else
  2015. backpack.TextColor3 = Color3.fromRGB(255, 255, 255)
  2016. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  2017. for x,c in pairs(v:FindFirstChild('backpack'):GetChildren()) do
  2018. if not c:IsA('BoolValue') then
  2019. c.Visible = false
  2020. end
  2021. end
  2022. end
  2023. end
  2024. end)
  2025.  
  2026. distance_esp.MouseButton1Down:connect(function()
  2027. if_settings.distance_toggle = not if_settings.distance_toggle
  2028. if if_settings.distance_toggle == true then
  2029. distance_esp.TextColor3 = settings.ToggleColor
  2030. if esp_check() then
  2031. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  2032. for x,c in pairs(v:FindFirstChild('distance'):GetChildren()) do
  2033. c.Visible = true
  2034. end
  2035. end
  2036. else
  2037. warn('esp broke somehow lol')
  2038. end
  2039. else
  2040. distance_esp.TextColor3 = Color3.fromRGB(255, 255, 255)
  2041. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  2042. for x,c in pairs(v:FindFirstChild('distance'):GetChildren()) do
  2043. c.Visible = false
  2044. end
  2045. end
  2046. end
  2047. end)
  2048.  
  2049. name_esp.MouseButton1Down:connect(function()
  2050. if_settings.name_toggle = not if_settings.name_toggle
  2051. if if_settings.name_toggle == true then
  2052. name_esp.TextColor3 = settings.ToggleColor
  2053. if esp_check() then
  2054. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  2055. v:FindFirstChild('name').Visible = true
  2056. end
  2057. else
  2058. warn('esp broke somehow lol')
  2059. end
  2060. else
  2061. name_esp.TextColor3 = Color3.fromRGB(255, 255, 255)
  2062. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  2063. v:FindFirstChild('name').Visible = false
  2064. end
  2065. end
  2066. end)
  2067.  
  2068. box_esp.MouseButton1Down:connect(function()
  2069. if_settings.box_toggle = not if_settings.box_toggle
  2070. if if_settings.box_toggle == true then
  2071. box_esp.TextColor3 = settings.ToggleColor
  2072. if esp_check() then
  2073. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  2074. for x,c in pairs(v:FindFirstChild('box'):GetChildren()) do
  2075. c.Visible = true
  2076. end
  2077. end
  2078. else
  2079. warn('esp broke somehow lol')
  2080. end
  2081. else
  2082. box_esp.TextColor3 = Color3.fromRGB(255, 255, 255)
  2083. for i,v in pairs(store:FindFirstChild('PLR_ESP'):GetChildren()) do
  2084. for x,c in pairs(v:FindFirstChild('box'):GetChildren()) do
  2085. c.Visible = false
  2086. end
  2087. end
  2088. end
  2089. end)
  2090.  
  2091. tp_loot.MouseButton1Down:connect(function()
  2092. tp_loot.TextColor3 = settings.ToggleColor
  2093. if workspace:FindFirstChild('Crate_Spawns') and workspace:FindFirstChild('Loot_Spawns') then
  2094. math.randomseed(tick())
  2095.  
  2096. local random_crate = math.random(1, #workspace:FindFirstChild('Crate_Spawns'):GetChildren())
  2097.  
  2098. tpLoot(workspace:FindFirstChild('Crate_Spawns'):GetChildren()[random_crate])
  2099. end
  2100. wait(0.2)
  2101. tp_loot.TextColor3 = Color3.fromRGB(255, 255, 255)
  2102. end)
  2103.  
  2104. noclip.MouseButton1Down:connect(function()
  2105. if_settings.noclip_toggle = not if_settings.noclip_toggle
  2106. if if_settings.noclip_toggle == true then
  2107. noclip.TextColor3 = settings.ToggleColor
  2108. if workspace:FindFirstChild('Map_Objects') then
  2109. local objs = workspace.Map_Objects
  2110.  
  2111. for i,v in pairs(objs:GetChildren()) do
  2112. if v.ClassName ~= "Model" then
  2113. v.Transparency = 0.25
  2114. v.CanCollide = false
  2115. elseif v.ClassName == "Model" then
  2116. for x,c in pairs(v:GetChildren()) do
  2117. if c.Transparency and c.CanCollide then
  2118. c.Transparency = 0.25
  2119. c.CanCollide = false
  2120. end
  2121. end
  2122. end
  2123. end
  2124. end
  2125. else
  2126. noclip.TextColor3 = Color3.fromRGB(255, 255, 255)
  2127. if workspace:FindFirstChild('Map_Objects') then
  2128. local objs = workspace.Map_Objects
  2129.  
  2130. for i,v in pairs(objs:GetChildren()) do
  2131. if v.ClassName ~= "Model" then
  2132. v.Transparency = 0
  2133. v.CanCollide = true
  2134. elseif v.ClassName == "Model" then
  2135. for x,c in pairs(v:GetChildren()) do
  2136. if c.Transparency and c.CanCollide then
  2137. c.Transparency = 0
  2138. c.CanCollide = true
  2139. end
  2140. end
  2141. end
  2142. end
  2143. end
  2144. end
  2145. end)
  2146.  
  2147. r_houses.MouseButton1Down:connect(function()
  2148. rhouseif_settings.s_toggle = not rhouseif_settings.s_toggle
  2149. if rhouseif_settings.s_toggle == true then
  2150. r_houses.TextColor3 = settings.ToggleColor
  2151. if workspace:FindFirstChild('Map_Objects') then
  2152. local objs = workspace.Map_Objects
  2153.  
  2154. for i,v in pairs(objs:GetChildren()) do
  2155. if v.ClassName ~= "Model" then
  2156. v.Transparency = 1
  2157. v.CanCollide = false
  2158. elseif v.ClassName == "Model" then
  2159. for x,c in pairs(v:GetChildren()) do
  2160. if c.Transparency and c.CanCollide then
  2161. c.Transparency = 1
  2162. c.CanCollide = false
  2163. end
  2164. end
  2165. end
  2166. end
  2167. end
  2168. else
  2169. r_houses.TextColor3 = Color3.fromRGB(255, 255, 255)
  2170. if workspace:FindFirstChild('Map_Objects') then
  2171. local objs = workspace.Map_Objects
  2172.  
  2173. for i,v in pairs(objs:GetChildren()) do
  2174. if v.ClassName ~= "Model" then
  2175. v.Transparency = 0
  2176. v.CanCollide = true
  2177. elseif v.ClassName == "Model" then
  2178. for x,c in pairs(v:GetChildren()) do
  2179. if c.Transparency and c.CanCollide then
  2180. c.Transparency = 0
  2181. c.CanCollide = true
  2182. end
  2183. end
  2184. end
  2185. end
  2186. end
  2187. end
  2188. end)
  2189.  
  2190. function getMode()
  2191. if if_settings.distance_t then
  2192. return "distance"
  2193. elseif if_settings.mouse_t then
  2194. return "mouse"
  2195. else
  2196. return
  2197. end
  2198. end
  2199.  
  2200. local hold = false
  2201. mouse.Button2Down:connect(function()
  2202. hold = true
  2203. while hold == true and wait(0.05) do
  2204. if if_settings.legit_bot then
  2205. -- is legitbot
  2206. print('legitbot', getMode())
  2207. fov("update")
  2208.  
  2209. if #fov("update") > 0 or fov("update") then
  2210. for i,v in pairs(fov("update")) do
  2211. if (v.ClassName == "Part" and game.Players:FindFirstChild(v.Parent.Name)) or (game.Players:FindFirstChild(v.Name)) or (v.ClassName == "Player") or (v.Parent:FindFirstChild('Humanoid')) then
  2212. legitbot(getMode())
  2213. end
  2214. end
  2215. end
  2216. elseif if_settings.aim_bot then
  2217. -- is aimbot
  2218. print('aimlock', getMode())
  2219. aimLock(getMode())
  2220. end
  2221. end
  2222. end)
  2223.  
  2224. mouse.Button2Up:connect(function()
  2225. hold = false
  2226. local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
  2227. cam.CameraType = Enum.CameraType.Custom
  2228. end)
  2229.  
  2230. game:GetService("UserInputService").InputBegan:Connect(function(key)
  2231. if key.KeyCode == Enum.KeyCode[settings.toggleButton] then
  2232. ScreenGui.Enabled = not ScreenGui.Enabled
  2233. if ScreenGui.Enabled then
  2234. Blur.Parent = game.Lighting
  2235. else
  2236. Blur.Parent = ScreenGui
  2237. end
  2238. --elseif key.KeyCode == Enum.KeyCode.F and if_settings.fly_toggle == true then
  2239. --flyh()
  2240. end
  2241. end)
  2242.  
  2243. while wait() do
  2244. if #game.Players:GetChildren() == 1 then break; end
  2245. if esp_check() then
  2246. for i,v in pairs(game.Players:GetChildren()) do
  2247. if not store.PLR_ESP:FindFirstChild(v.Name .. '_Visuals') then return end
  2248. local distance_num_label = store.PLR_ESP[v.Name .. "_Visuals"].distance.distance_num
  2249. if distanceCalculator()[v.Name] and v.Name ~= game.Players.LocalPlayer.Name then
  2250. distance_num_label.Text = tostring(distanceCalculator()[v.Name])
  2251. else
  2252. distance_num_label.Text = "0"
  2253. end
  2254. end
  2255. else
  2256. warn('esp broke lol')
  2257. end
  2258. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement