Advertisement
xdTrippy

Island Royale Aimbot

Jun 6th, 2019
20,854
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.69 KB | None | 0 0
  1. -- by Killerof9ods hacks
  2. -- Version: none
  3. -- Instances:
  4. local fuckingrobloxexploit = Instance.new("ScreenGui")
  5. local MainGUI = Instance.new("Frame")
  6. local TopFrame = Instance.new("TextButton")
  7. local StartHackButton = Instance.new("TextButton")
  8. local Bykillerof9ods = Instance.new("TextLabel")
  9. local E = Instance.new("TextLabel")
  10. local b = Instance.new("TextLabel")
  11. local b = Instance.new("TextLabel")
  12. --Properties:
  13. fuckingrobloxexploit.Name = "fucking roblox exploit"
  14. fuckingrobloxexploit.Parent = game.CoreGui
  15.  
  16. MainGUI.Draggable = true
  17. MainGUI.Name = "MainGUI"
  18. MainGUI.Parent = fuckingrobloxexploit
  19. MainGUI.BackgroundColor3 = Color3.new(1, 1, 1)
  20. MainGUI.Position = UDim2.new(0.0647198334, 0, 0.358722359, 0)
  21. MainGUI.Size = UDim2.new(0, 216, 0, 229)
  22.  
  23. TopFrame.Name = "Top Frame"
  24. TopFrame.Parent = MainGUI
  25. TopFrame.BackgroundColor3 = Color3.new(1, 1, 1)
  26. TopFrame.BorderSizePixel = 2
  27. TopFrame.Selectable = false
  28. TopFrame.Size = UDim2.new(0, 216, 0, 50)
  29. TopFrame.Font = Enum.Font.SourceSans
  30. TopFrame.Text = "fucking aimbot niggers"
  31. TopFrame.TextColor3 = Color3.new(0, 0, 0)
  32. TopFrame.TextSize = 14
  33.  
  34. StartHackButton.Name = "Start Hack Button"
  35. StartHackButton.Parent = TopFrame
  36. StartHackButton.BackgroundColor3 = Color3.new(1, 1, 1)
  37. StartHackButton.BorderSizePixel = 2
  38. StartHackButton.Position = UDim2.new(0, 0, 2.94000006, 0)
  39. StartHackButton.Size = UDim2.new(0, 216, 0, 50)
  40. StartHackButton.Font = Enum.Font.SourceSans
  41. StartHackButton.Text = "Start Hack"
  42. StartHackButton.TextColor3 = Color3.new(0, 0, 0)
  43. StartHackButton.TextSize = 14
  44.  
  45.  
  46. --[[
  47. No gui on screen during gameplay~!
  48. E - Aimlock
  49. L - Auto ESP
  50. T - Force Update ESP
  51. O - Ignore team mates
  52. k - aimatpart
  53. u - raycast
  54. j - destroy builds
  55. you can edit what ctrls
  56. ]]--
  57.  
  58. local plrs = game:GetService("Players")
  59. local presskeytoaim = true; local aimkey = "e"
  60. local raycast = false
  61.  
  62. local espupdatetime = 5; autoesp = false
  63.  
  64.  
  65.  
  66. local lockaim = true; local lockangle = 5
  67.  
  68.  
  69.  
  70. --function findwat(folder, what)
  71. -- for i, smth in pairs(folder:GetChildren()) do
  72. -- if string.find(string.lower(tostring(smth)), string.lower(what)) then
  73. -- return smth
  74. -- end
  75. -- end
  76. --end
  77. --
  78. --local plrs = findwat(game, "Players")
  79.  
  80.  
  81.  
  82.  
  83. local Gui = Instance.new("ScreenGui")
  84. local Move = Instance.new("Frame")
  85. local Main = Instance.new("Frame")
  86. local EspStatus = Instance.new("TextLabel")
  87. local st1 = Instance.new("TextLabel")
  88. local st1_2 = Instance.new("TextLabel")
  89. local st1_3 = Instance.new("TextLabel")
  90. local Name = Instance.new("TextLabel")
  91. -- Scripts:
  92.  
  93.  
  94. local plrsforaim = {}
  95.  
  96. local lplr = game:GetService("Players").LocalPlayer
  97. Move.Draggable = true
  98. Gui.ResetOnSpawn = false
  99. Gui.Name = "Chat"
  100. Gui.DisplayOrder = 999
  101.  
  102. Gui.Parent = plrs.LocalPlayer.PlayerGui
  103.  
  104.  
  105. f = {}
  106. local espforlder
  107.  
  108. f.addesp = function()
  109. --print("ESP ran")
  110. if espforlder then
  111. else
  112. espforlder = Instance.new("Folder")
  113. espforlder.Parent = game.Workspace.CurrentCamera
  114. end
  115. for i, v in pairs(espforlder:GetChildren()) do
  116. v:Destroy()
  117. end
  118. for _, plr in pairs(plrs:GetChildren()) do
  119. if plr.Character and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name then
  120. if TeamBased == true then
  121. if plr.Team.Name ~= plrs.LocalPlayer.Team.Name then
  122. local e = espforlder:FindFirstChild(plr.Name)
  123. if not e then
  124. --print("Added esp for team based")
  125. local bill = Instance.new("BillboardGui", espforlder)
  126. bill.Name = plr.Name
  127. bill.AlwaysOnTop = true
  128. bill.Size = UDim2.new(1,0,1,0)
  129. bill.Adornee = plr.Character.Head
  130. local Frame = Instance.new('Frame',bill)
  131. Frame.Active = true
  132. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  133. Frame.BackgroundTransparency = 0
  134. Frame.BorderSizePixel = 0
  135. Frame.AnchorPoint = Vector2.new(.5, .5)
  136. Frame.Position = UDim2.new (0.5,0,0.5,0)
  137. Frame.Size = UDim2.new (1,0,1,0)
  138. Frame.Rotation = 0
  139. plr.Character.Humanoid.Died:Connect(function()
  140. bill:Destroy()
  141. end)
  142. end
  143. end
  144. else
  145. local e = espforlder:FindFirstChild(plr.Name)
  146. if not e then
  147. --print("Added esp")
  148. local bill = Instance.new("BillboardGui", espforlder)
  149. bill.Name = plr.Name
  150. bill.AlwaysOnTop = true
  151. bill.Size = UDim2.new(1,0,1,0)
  152. bill.Adornee = plr.Character.Head
  153. local Frame = Instance.new('Frame',bill)
  154. Frame.Active = true
  155. Frame.BackgroundColor3 = Color3.new(0/255,255/255,0/255)
  156. Frame.BackgroundTransparency = 0
  157. Frame.BorderSizePixel = 0
  158. Frame.AnchorPoint = Vector2.new(.5, .5)
  159. Frame.Position = UDim2.new (0.5,0,0.5,0)
  160. Frame.Size = UDim2.new (1,0,1,0)
  161. Frame.Rotation = 0
  162. plr.Character.Humanoid.Died:Connect(function()
  163. bill:Destroy()
  164. end)
  165. end
  166. end
  167.  
  168.  
  169. end
  170. end
  171. end
  172. local cam = game.Workspace.CurrentCamera
  173.  
  174. local mouse = lplr:GetMouse()
  175. local switch = false
  176. local key = "k"
  177. local aimatpart = nil
  178. mouse.KeyDown:Connect(function(a)
  179. if a == "" then
  180. print("ESP LOADED - killerof9ods")
  181. f.addesp()
  182. elseif a == "u" then
  183. if raycast == true then
  184. raycast = false
  185. else
  186. raycast = true
  187. end
  188. elseif a == "" then
  189. if autoesp == false then
  190. autoesp = true
  191. else
  192. autoesp = false
  193. end
  194. end
  195. if a == "j" then
  196. if mouse.Target then
  197. mouse.Target:Destroy()
  198. end
  199. end
  200. if a == key then
  201. if switch == false then
  202. switch = true
  203. else
  204. switch = false
  205. if aimatpart ~= nil then
  206. aimatpart = nil
  207. end
  208. end
  209. elseif a == teambasedswitch then
  210. if TeamBased == true then
  211. TeamBased = false
  212. teambasedstatus.Text = tostring(TeamBased)
  213. else
  214. TeamBased = true
  215. teambasedstatus.Text = tostring(TeamBased)
  216. end
  217. elseif a == aimkey then
  218. if not aimatpart then
  219. local maxangle = math.rad(20)
  220. for i, plr in pairs(plrs:GetChildren()) do
  221. if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  222. if TeamBased == true then
  223. if plr.Team.Name ~= lplr.Team.Name then
  224. local an = checkfov(plr.Character.Head)
  225. if an < maxangle then
  226. maxangle = an
  227. aimatpart = plr.Character.Head
  228. end
  229. end
  230. else
  231. local an = checkfov(plr.Character.Head)
  232. if an < maxangle then
  233. maxangle = an
  234. aimatpart = plr.Character.Head
  235. end
  236. print(plr)
  237. end
  238. plr.Character.Humanoid.Died:Connect(function()
  239. if aimatpart.Parent == plr.Character or aimatpart == nil then
  240. aimatpart = nil
  241. end
  242. end)
  243. end
  244. end
  245. else
  246. aimatpart = nil
  247. end
  248. end
  249. end)
  250.  
  251. function getfovxyz (p0, p1, deg)
  252. local x1, y1, z1 = p0:ToOrientation()
  253. local cf = CFrame.new(p0.p, p1.p)
  254. local x2, y2, z2 = cf:ToOrientation()
  255. --local d = math.deg
  256. if deg then
  257. --return Vector3.new(d(x1-x2), d(y1-y2), d(z1-z2))
  258. else
  259. return Vector3.new((x1-x2), (y1-y2), (z1-z2))
  260. end
  261. end
  262.  
  263. function getaimbotplrs()
  264. plrsforaim = {}
  265. for i, plr in pairs(plrs:GetChildren()) do
  266. if plr.Character and plr.Character.Humanoid and plr.Character.Humanoid.Health > 0 and plr.Name ~= lplr.Name and plr.Character.Head then
  267.  
  268. if TeamBased == true then
  269. if plr.Team.Name ~= lplr.Team.Name then
  270. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  271. local r = Ray.new(cf, cf.LookVector * 10000)
  272. local ign = {}
  273. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  274. if v:IsA("BasePart") then
  275. table.insert(ign , v)
  276. end
  277. end
  278. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  279. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  280. table.insert(plrsforaim, obj)
  281. end
  282. end
  283. else
  284. local cf = CFrame.new(game.Workspace.CurrentCamera.CFrame.p, plr.Character.Head.CFrame.p)
  285. local r = Ray.new(cf, cf.LookVector * 10000)
  286. local ign = {}
  287. for i, v in pairs(plrs.LocalPlayer.Character:GetChildren()) do
  288. if v:IsA("BasePart") then
  289. table.insert(ign , v)
  290. end
  291. end
  292. local obj = game.Workspace:FindPartOnRayWithIgnoreList(r, ign)
  293. if obj.Parent == plr.Character and obj.Parent ~= lplr.Character then
  294. table.insert(plrsforaim, obj)
  295. end
  296. end
  297.  
  298.  
  299. end
  300. end
  301. end
  302.  
  303. function aimat(part)
  304. cam.CFrame = CFrame.new(cam.CFrame.p, part.CFrame.p)
  305. end
  306. function checkfov (part)
  307. local fov = getfovxyz(game.Workspace.CurrentCamera.CFrame, part.CFrame)
  308. local angle = math.abs(fov.X) + math.abs(fov.Y)
  309. return angle
  310. end
  311.  
  312. game:GetService("RunService").RenderStepped:Connect(function()
  313. if aimatpart then
  314. aimat(aimatpart)
  315. if aimatpart.Parent == plrs.LocalPlayer.Character then
  316. aimatpart = nil
  317. end
  318. end
  319.  
  320.  
  321. -- if switch == true then
  322. -- local maxangle = 99999
  323. --
  324. -- --print("Loop")
  325. -- if true and raycast == false then
  326. -- for i, plr in pairs(plrs:GetChildren()) do
  327. -- if plr.Name ~= lplr.Name and plr.Character and plr.Character.Head and plr.Character.Humanoid and plr.Character.Humanoid.Health > 1 then
  328. -- if TeamBased then
  329. -- if plr.Team.Name ~= lplr.Team.Name or plr.Team.TeamColor ~= lplr.Team.TeamColor then
  330. -- local an = checkfov(plr.Character.Head)
  331. -- if an < maxangle then
  332. -- maxangle = an
  333. -- aimatpart = plr.Character.Head
  334. -- if an < lockangle then
  335. -- break
  336. -- end
  337. -- end
  338. -- end
  339. -- else
  340. -- local an = checkfov(plr.Character.Head)
  341. -- if an < maxangle then
  342. -- maxangle = an
  343. -- aimatpart = plr.Character.Head
  344. -- if an < lockangle then
  345. -- break
  346. -- end
  347. -- end
  348. -- end
  349. --
  350. --
  351. --
  352. --
  353. -- end
  354. -- end
  355. -- elseif raycast == true then
  356. --
  357. -- end
  358.  
  359. if raycast == true and switch == false and not aimatpart then
  360. getaimbotplrs()
  361. aimatpart = nil
  362. local maxangle = 999
  363. for i, v in ipairs(plrsforaim) do
  364. if v.Parent ~= lplr.Character then
  365. local an = checkfov(v)
  366. if an < maxangle and v ~= lplr.Character.Head then
  367. maxangle = an
  368. aimatpart = v
  369. print(v:GetFullName())
  370. v.Parent.Humanoid.Died:connect(function()
  371. aimatpart = nil
  372. end)
  373. end
  374. end
  375. end
  376.  
  377. end
  378. end)
  379. delay(0, function()
  380. while wait(espupdatetime) do
  381. if autoesp == true then
  382. pcall(function()
  383. f.addesp()
  384. end)
  385. end
  386. end
  387. end)
  388. warn("loaded")
  389.  
  390.  
  391. Bykillerof9ods.Name = "killerof9ods"
  392. Bykillerof9ods.Parent = TopFrame
  393. Bykillerof9ods.BackgroundColor3 = Color3.new(1, 1, 1)
  394. Bykillerof9ods.BorderSizePixel = 0
  395. Bykillerof9ods.Position = UDim2.new(0.0370370373, 0, 4.12000036, 0)
  396. Bykillerof9ods.Size = UDim2.new(0, 200, 0, 13)
  397. Bykillerof9ods.Font = Enum.Font.SourceSans
  398. Bykillerof9ods.Text = "This GUI Is Made By kille of 9ods"
  399. Bykillerof9ods.TextColor3 = Color3.new(0, 0, 0)
  400. Bykillerof9ods.TextSize = 14
  401.  
  402. E.Name = "E"
  403. E.Parent = MainGUI
  404. E.BackgroundColor3 = Color3.new(1, 1, 1)
  405. E.BorderSizePixel = 0
  406. E.Position = UDim2.new(0.0370370373, 0, 0.253275096, 0)
  407. E.Size = UDim2.new(0, 200, 0, 20)
  408. E.Font = Enum.Font.SourceSans
  409. E.Text = "Press E To Lock Onto A Person"
  410. E.TextColor3 = Color3.new(0, 0, 0)
  411. E.TextSize = 14
  412.  
  413. T.Name = ""
  414. T.Parent = MainGUI
  415. T.BackgroundColor3 = Color3.new(1, 1, 1)
  416. T.BorderSizePixel = 0
  417. T.Position = UDim2.new(0.0370370373, 0, 0.379912645, 0)
  418. T.Size = UDim2.new(0, 200, 0, 20)
  419. T.Font = Enum.Font.SourceSans
  420. T.Text = "Press For ESP"
  421. T.TextColor3 = Color3.new(0, 0, 0)
  422. T.TextSize = 14
  423.  
  424. L.Name = ""
  425. L.Parent = MainGUI
  426. L.BackgroundColor3 = Color3.new(1, 1, 1)
  427. L.BorderSizePixel = 0
  428. L.Position = UDim2.new(0.0370370373, 0, 0.493449748, 0)
  429. L.Size = UDim2.new(0, 200, 0, 20)
  430. L.Font = Enum.Font.SourceSans
  431. L.Text = "Press For ESP Loop"
  432. L.TextColor3 = Color3.new(0, 0, 0)
  433. L.TextSize = 14
  434. -- Scripts:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement