Advertisement
Guest User

ISLAND ROYALE

a guest
Feb 26th, 2020
299
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.60 KB | None | 0 0
  1. wait(0.2)
  2.  
  3. game.StarterGui:SetCore("SendNotification", {
  4. Title = "Headless Scripts [FPS]",
  5. Text = "Made by HeadlessExploits",
  6. Icon = "rbxassetid://3837426995",
  7. Duration = 23
  8. })
  9.  
  10. local a = Instance.new("ScreenGui")
  11. local b = Instance.new("Frame")
  12. local c = Instance.new("Frame")
  13. local d = Instance.new("Frame")
  14. local e = Instance.new("TextButton")
  15. local f = Instance.new("UIListLayout")
  16. local g = Instance.new("TextButton")
  17. local h = Instance.new("TextButton")
  18. local i = Instance.new("TextButton")
  19. local j = Instance.new("TextLabel")
  20. a.Parent = game.CoreGui
  21. a.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  22. b.Name = "Main"
  23. b.Parent = a
  24. b.BackgroundColor3 = Color3.new(1, 1, 1)
  25. b.BorderSizePixel = 0
  26. b.Position = UDim2.new(0, 0, 0.292329967, 0)
  27. b.Size = UDim2.new(0, 180, 0, 26)
  28. c.Parent = b
  29. c.BackgroundColor3 = Color3.new(0.262745, 0.262745, 0.262745)
  30. c.BackgroundTransparency = 0.15000000596046
  31. c.BorderSizePixel = 0
  32. c.Position = UDim2.new(0, 0, 1, 0)
  33. c.Size = UDim2.new(0, 180, 0, 123)
  34. d.Parent = c
  35. d.BackgroundColor3 = Color3.new(0.262745, 0.262745, 0.262745)
  36. d.BackgroundTransparency = 0.5
  37. d.BorderSizePixel = 0
  38. d.Position = UDim2.new(0, 0, 0.0780795366, 0)
  39. d.Size = UDim2.new(0, 180, 0, 107)
  40. e.Name = "esp"
  41. e.Parent = d
  42. e.BackgroundColor3 = Color3.new(1, 1, 1)
  43. e.BackgroundTransparency = 1
  44. e.BorderSizePixel = 0
  45. e.Position = UDim2.new(0, 0, 0.0584795177, 0)
  46. e.Size = UDim2.new(0, 180, 0, 25)
  47. e.Font = Enum.Font.SourceSansBold
  48. e.Text = "ESP"
  49. e.TextColor3 = Color3.new(1, 1, 1)
  50. e.TextScaled = true
  51. e.TextSize = 14
  52. e.TextStrokeTransparency = 0
  53. e.TextWrapped = true
  54.  
  55. e.MouseButton1Click:connect(function()
  56. ALLYCOLOR = {150, 255}
  57. ENEMYCOLOR = {0, 0, 255}
  58. TRANSPARENCY = 0.5
  59. HEALTHBAR_ACTIVATED = true
  60.  
  61. function createFlex()
  62. players = game:GetService("Players")
  63. faces = {"Front", "Back", "Bottom", "Left", "Right", "Top"}
  64. currentPlayer = nil
  65. lplayer = players.LocalPlayer
  66.  
  67. players.PlayerAdded:Connect(function(k)
  68. currentPlayer = k
  69.  
  70. k.CharacterAdded:Connect(function(l)
  71. createESP(l)
  72. end)
  73. end)
  74.  
  75. function checkPart(m)
  76. if (m:IsA("Part") or m:IsA("MeshPart")) and m.Name ~= "HumanoidRootPart" then return true end
  77. end
  78.  
  79. function actualESP(m)
  80. for n = 0, 5 do
  81. surface = Instance.new("SurfaceGui", m)
  82. surface.Face = Enum.NormalId[faces[n + 1]]
  83. surface.AlwaysOnTop = true
  84. frame = Instance.new("Frame", surface)
  85. frame.Size = UDim2.new(1, 0, 1, 0)
  86. frame.BorderSizePixel = 0
  87. frame.BackgroundTransparency = TRANSPARENCY
  88.  
  89. if currentPlayer.Team == players.LocalPlayer.Team then
  90. frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1], ALLYCOLOR[2], ALLYCOLOR[3])
  91. else
  92. frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1], ENEMYCOLOR[2], ENEMYCOLOR[3])
  93. end
  94. end
  95. end
  96.  
  97. function createHealthbar(o)
  98. board = Instance.new("BillboardGui", o)
  99. board.Name = "total"
  100. board.Size = UDim2.new(1, 0, 1, 0)
  101. board.StudsOffset = Vector3.new(3, 1, 0)
  102. board.AlwaysOnTop = true
  103. bar = Instance.new("Frame", board)
  104. bar.BackgroundColor3 = Color3.new(255, 0, 0)
  105. bar.BorderSizePixel = 0
  106. bar.Size = UDim2.new(0.2, 0, 4, 0)
  107. bar.Name = "total2"
  108. health = Instance.new("Frame", bar)
  109. health.BackgroundColor3 = Color3.new(0, 255, 0)
  110. health.BorderSizePixel = 0
  111. health.Size = UDim2.new(1, 0, o.Parent.Humanoid.Health / 100, 0)
  112.  
  113. o.Parent.Humanoid.Changed:Connect(function(p)
  114. o.total.total2.Frame.Size = UDim2.new(1, 0, o.Parent.Humanoid.Health / 100, 0)
  115. end)
  116. end
  117.  
  118. function createESP(q)
  119. bugfix = q:WaitForChild("Head")
  120.  
  121. for n, r in pairs(q:GetChildren()) do
  122. if checkPart(r) then
  123. actualESP(r)
  124. end
  125. end
  126.  
  127. if HEALTHBAR_ACTIVATED then
  128. createHealthbar(q:WaitForChild("HumanoidRootPart"))
  129. end
  130. end
  131.  
  132. for n, s in pairs(players:GetChildren()) do
  133. if s ~= players.LocalPlayer then
  134. currentPlayer = s
  135. createESP(s.Character)
  136.  
  137. s.CharacterAdded:Connect(function(l)
  138. createESP(l)
  139. end)
  140. end
  141. end
  142. end
  143.  
  144. createFlex()
  145. end)
  146.  
  147. f.Parent = d
  148. f.SortOrder = Enum.SortOrder.LayoutOrder
  149. g.Name = "aimbot"
  150. g.Parent = d
  151. g.BackgroundColor3 = Color3.new(1, 1, 1)
  152. g.BackgroundTransparency = 1
  153. g.BorderSizePixel = 0
  154. g.Position = UDim2.new(0.111111112, 0, 0.208012223, 0)
  155. g.Size = UDim2.new(0, 180, 0, 25)
  156. g.Font = Enum.Font.SourceSansBold
  157. g.Text = "AIMBOT"
  158. g.TextColor3 = Color3.new(1, 1, 1)
  159. g.TextScaled = true
  160. g.TextSize = 14
  161. g.TextStrokeTransparency = 0
  162. g.TextWrapped = true
  163.  
  164. g.MouseButton1Click:connect(function()
  165. local t = game:GetService('Players').LocalPlayer
  166. local u = workspace.CurrentCamera
  167. local v = game:GetService('Players')
  168. local w = v.LocalPlayer
  169. local x = w:GetMouse()
  170. local y = t:GetMouse()
  171. local z = v
  172.  
  173. function FindNearest(A)
  174. local B = 1000000
  175. local C = nil
  176.  
  177. for n, r in pairs(v:GetPlayers()) do
  178. if r.Character and r.Name ~= t.Name and r.Character:FindFirstChild('UpperTorso') then
  179. local D, E = u:WorldToScreenPoint(r.Character.UpperTorso.Position)
  180. local F = y.UnitRay:Distance(r.Character.UpperTorso.Position)
  181.  
  182. if F < B and E then
  183. B = F
  184. C = r
  185. end
  186. end
  187. end
  188.  
  189. return C
  190. end
  191.  
  192. x.Button2Down:Connect(function(G)
  193. targplr = FindNearest(Vector3.new(y.UnitRay.Origin, y.UnitRay.Direction))
  194. rightClick = true
  195. end)
  196.  
  197. x.Button2Up:Connect(function(G)
  198. rightClick = false
  199. end)
  200.  
  201. x.Button1Down:Connect(function(G)
  202. targplr = FindNearest(Vector3.new(y.UnitRay.Origin, y.UnitRay.Direction))
  203. end)
  204.  
  205. function AimAt(x, y)
  206. local cam = workspace:FindFirstChildOfClass("Camera") or workspace.Camera or workspace.CurrentCamera
  207. local vps = cam.ViewportSize
  208. local vpsx = vps.X
  209. local vpsy = vps.Y
  210. local screencenterx = vpsx/2
  211. local screencentery = vpsy/2
  212. local aimatx
  213. local aimaty
  214.  
  215. if x ~= 0 then
  216. if x < screencenterx then
  217. aimatx = -(screencenterx - x)
  218. aimatx = aimatx
  219. if aimatx + screencenterx > screencenterx * 2 then
  220. aimatx = 0
  221. end
  222. end
  223. if x > screencenterx then
  224. aimatx = x - screencenterx
  225. aimatx = aimatx
  226. if aimatx + screencenterx < 0 then
  227. aimatx = 0
  228. end
  229. end
  230. end
  231.  
  232. if y ~= 0 then
  233. if y > screencentery then
  234. aimaty = -(screencentery - y)
  235. aimaty = aimaty
  236. if aimaty + screencentery > screencentery * 2 then
  237. aimaty = 0
  238. end
  239. end
  240. if y < screencentery then
  241. aimaty = y - screencentery
  242. aimaty = aimaty
  243. if aimaty + screencentery < 0 then
  244. aimaty = 0
  245. end
  246. end
  247. end
  248. --aimatx = aimatx + ((game.Players.LocalPlayer.Character.HumanoidRootPart.Position - ))
  249. return aimatx, aimaty
  250. end
  251.  
  252. --[[_G.xoff = 25
  253. _G.LA = game:service'RunService'.Stepped:Connect(function()
  254. if rightClick and t.Character then
  255. if targplr.Character and targplr.Character:FindFirstChild('Head') then
  256. local cf = CFrame.new(Workspace.CurrentCamera.CFrame.Position, targplr.Character.Head.Position)
  257. local fix = CFrame.new(Workspace.CurrentCamera.CFrame.Position, cf.LookVector - Vector3.new(_G.xoff, 0, 0))
  258.  
  259. u.CFrame = fix
  260. end
  261. end
  262. end)]]--
  263. local mt = getrawmetatable(game);
  264. local oldIndex = mt.__index;
  265. local oldNamecall = mt.__namecall;
  266. if setreadonly then setreadonly(mt, false); else make_writeable(mt, true); end;
  267. local namecallMethod = getnamecallmethod or get_namecall_method;
  268. local newClose = newcclosure or function(f) return f; end;
  269.  
  270. mt.__namecall = newClose(function(...) [nonamecall]
  271. local method = namecallMethod();
  272. local args = {...};
  273.  
  274. if tostring(method) == "FindPartOnRayWithIgnoreList" and getfenv(2).script.Name == "Weapon_Handle" then
  275. local closest = targplr;
  276. if closest then
  277. local origin = args[2].Origin;
  278. closest = (closest.Character["Head"]);
  279. return oldNamecall(workspace, Ray.new(origin, (closest.Position - origin).Unit * 1000), args[3]);
  280. end;
  281. end;
  282.  
  283. return oldNamecall(...);
  284. end);
  285.  
  286. if setreadonly then setreadonly(mt, true); else make_writeable(mt, false); end;
  287.  
  288. end)
  289.  
  290. h.Name = "Speed"
  291. h.Parent = d
  292. h.BackgroundColor3 = Color3.new(1, 1, 1)
  293. h.BackgroundTransparency = 1
  294. h.BorderSizePixel = 0
  295. h.Position = UDim2.new(0, 0, 0.0584795177, 0)
  296. h.Size = UDim2.new(0, 180, 0, 25)
  297. h.Font = Enum.Font.SourceSansBold
  298. h.Text = "SPEED [x]"
  299. h.TextColor3 = Color3.new(1, 1, 1)
  300. h.TextScaled = true
  301. h.TextSize = 14
  302. h.TextStrokeTransparency = 0
  303. h.TextWrapped = true
  304.  
  305. h.MouseButton1Click:connect(function()
  306. down = false
  307. velocity = Instance.new("BodyVelocity")
  308. velocity.maxForce = Vector3.new(100000, 0, 100000)
  309. local H = 180
  310. gyro = Instance.new("BodyGyro")
  311. gyro.maxTorque = Vector3.new(100000, 0, 100000)
  312. local I = game.Players.LocalPlayer.Character.Humanoid
  313.  
  314. function onButton1Down(y)
  315. down = true
  316. velocity.Parent = game.Players.LocalPlayer.Character.UpperTorso
  317. velocity.velocity = I.MoveDirection * H
  318. gyro.Parent = game.Players.LocalPlayer.Character.UpperTorso
  319.  
  320. while down do
  321. if not down then break end
  322. velocity.velocity = I.MoveDirection * H
  323. local J = gyro.Parent.Position + (gyro.Parent.Position - workspace.CurrentCamera.CoordinateFrame.p).unit * 5
  324. gyro.cframe = CFrame.new(gyro.Parent.Position, Vector3.new(J.x, gyro.Parent.Position.y, J.z))
  325. wait(0.1)
  326. end
  327. end
  328.  
  329. function onButton1Up(y)
  330. velocity.Parent = nil
  331. gyro.Parent = nil
  332. down = false
  333. end
  334.  
  335. function onSelected(y)
  336. y.KeyDown:connect(function(K)
  337. if K:lower() == "k" then
  338. onButton1Down(y)
  339. end
  340. end)
  341.  
  342. y.KeyUp:connect(function(K)
  343. if K:lower() == "k" then
  344. onButton1Up(y)
  345. end
  346. end)
  347. end
  348.  
  349. onSelected(game.Players.LocalPlayer:GetMouse())
  350. end)
  351.  
  352. i.Name = "fly"
  353. i.Parent = d
  354. i.BackgroundColor3 = Color3.new(1, 1, 1)
  355. i.BackgroundTransparency = 1
  356. i.BorderSizePixel = 0
  357. i.Position = UDim2.new(0, 0, 0.0584795177, 0)
  358. i.Size = UDim2.new(0, 180, 0, 25)
  359. i.Font = Enum.Font.SourceSansBold
  360. i.Text = "FLY [E]"
  361. i.TextColor3 = Color3.new(1, 1, 1)
  362. i.TextScaled = true
  363. i.TextSize = 14
  364. i.TextStrokeTransparency = 0
  365. i.TextWrapped = true
  366.  
  367. i.MouseButton1Click:connect(function()
  368. repeat
  369. wait()
  370. until game.Players.LocalPlayer and game.Players.LocalPlayer.Character and game.Players.LocalPlayer.Character:findFirstChild("UpperTorso") and game.Players.LocalPlayer.Character:findFirstChild("Humanoid")
  371. local y = game.Players.LocalPlayer:GetMouse()
  372. repeat
  373. wait()
  374. until y
  375. local z = game.Players.LocalPlayer
  376. local L = z.Character.UpperTorso
  377. local M = true
  378. local N = true
  379.  
  380. local O = {
  381. f = 0,
  382. b = 0,
  383. l = 0,
  384. r = 0
  385. }
  386.  
  387. local P = {
  388. f = 0,
  389. b = 0,
  390. l = 0,
  391. r = 0
  392. }
  393.  
  394. local Q = 50
  395. local H = 0
  396.  
  397. function Fly()
  398. local R = Instance.new("BodyGyro", L)
  399. R.P = 9e4
  400. R.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  401. R.cframe = L.CFrame
  402. local S = Instance.new("BodyVelocity", L)
  403. S.velocity = Vector3.new(0, 0.1, 0)
  404. S.maxForce = Vector3.new(9e9, 9e9, 9e9)
  405. repeat
  406. wait()
  407. z.Character.Humanoid.PlatformStand = true
  408.  
  409. if O.l + O.r ~= 0 or O.f + O.b ~= 0 then
  410. H = H + .5 + H / Q
  411.  
  412. if H > Q then
  413. H = Q
  414. end
  415. elseif not (O.l + O.r ~= 0 or O.f + O.b ~= 0) and H ~= 0 then
  416. H = H - 1
  417.  
  418. if H < 0 then
  419. H = 0
  420. end
  421. end
  422.  
  423. if O.l + O.r ~= 0 or O.f + O.b ~= 0 then
  424. S.velocity = (game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (O.f + O.b) + game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(O.l + O.r, (O.f + O.b) * .2, 0).p - game.Workspace.CurrentCamera.CoordinateFrame.p) * H
  425.  
  426. P = {
  427. f = O.f,
  428. b = O.b,
  429. l = O.l,
  430. r = O.r
  431. }
  432. elseif O.l + O.r == 0 and O.f + O.b == 0 and H ~= 0 then
  433. S.velocity = (game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (P.f + P.b) + game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(P.l + P.r, (P.f + P.b) * .2, 0).p - game.Workspace.CurrentCamera.CoordinateFrame.p) * H
  434. else
  435. S.velocity = Vector3.new(0, 0.1, 0)
  436. end
  437.  
  438. R.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((O.f + O.b) * 50 * H / Q), 0, 0)
  439. until not M
  440.  
  441. O = {
  442. f = 0,
  443. b = 0,
  444. l = 0,
  445. r = 0
  446. }
  447.  
  448. P = {
  449. f = 0,
  450. b = 0,
  451. l = 0,
  452. r = 0
  453. }
  454.  
  455. H = 0
  456. R:Destroy()
  457. S:Destroy()
  458. z.Character.Humanoid.PlatformStand = false
  459. end
  460.  
  461. y.KeyDown:connect(function(G)
  462. if G:lower() == "l" then
  463. if M then
  464. M = false
  465. else
  466. M = true
  467. Fly()
  468. end
  469. elseif G:lower() == "w" then
  470. O.f = 1
  471. elseif G:lower() == "s" then
  472. O.b = -1
  473. elseif G:lower() == "a" then
  474. O.l = -1
  475. elseif G:lower() == "d" then
  476. O.r = 1
  477. end
  478. end)
  479.  
  480. y.KeyUp:connect(function(G)
  481. if G:lower() == "w" then
  482. O.f = 0
  483. elseif G:lower() == "s" then
  484. O.b = 0
  485. elseif G:lower() == "a" then
  486. O.l = 0
  487. elseif G:lower() == "d" then
  488. O.r = 0
  489. end
  490. end)
  491.  
  492. Fly()
  493. end)
  494.  
  495. j.Parent = b
  496. j.BackgroundColor3 = Color3.new(1, 1, 1)
  497. j.BackgroundTransparency = 1
  498. j.BorderSizePixel = 0
  499. j.Position = UDim2.new(0.0611111112, 0, 0, 0)
  500. j.Size = UDim2.new(0, 158, 0, 26)
  501. j.Font = Enum.Font.SourceSansBold
  502. j.Text = "Headless Scripts [FPS]"
  503. j.TextColor3 = Color3.new(1, 1, 1)
  504. j.TextScaled = true
  505. j.TextSize = 14
  506. j.TextStrokeTransparency = 0
  507. j.TextWrapped = true
  508.  
  509. function SCRIPT_XXHK66_FAKESCRIPT()
  510. local T = Instance.new('Script')
  511. T.Parent = b
  512.  
  513. repeat
  514. for U = 0, 1, .01 do
  515. T.Parent.Parent.Main.BackgroundColor3 = Color3.fromHSV(U, 1, 1)
  516. wait()
  517. end
  518.  
  519. for U = 1, 0 - .01 do
  520. T.Parent.Parent.Main.BackgroundColor3 = Color3.fromHSV(U, 1, 1)
  521. wait()
  522. end
  523. until nil
  524. end
  525.  
  526. coroutine.resume(coroutine.create(SCRIPT_XXHK66_FAKESCRIPT))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement