Advertisement
skinkillaz

Anarchy beast script

Jul 8th, 2018
1,528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 21.22 KB | None | 0 0
  1. game.Players.LocalPlayer.PlayerGui.Core.RobloxLocked = true
  2. local plr=game.Players.LocalPlayer
  3. local char = plr.Character
  4. local hum = char.Humanoid
  5.  
  6. pcall(function()
  7. plr.PlayerGui.Core:Destroy()
  8. end)
  9. hum.WalkSpeed = 100
  10. hum.JumpPower = 150
  11.  
  12.  
  13. --------------------------------------------
  14.  
  15.  
  16. local UIS = game:GetService("UserInputService")
  17.  
  18. local Player = game.Players.LocalPlayer
  19. local Mouse = Player:GetMouse()
  20.  
  21.  
  22. function GetCharacter()
  23. return game.Players.LocalPlayer.Character
  24. end
  25.  
  26. function Teleport(pos)
  27. local Char = GetCharacter()
  28. if Char then
  29. Char:MoveTo(pos)
  30. end
  31. end
  32.  
  33.  
  34.  
  35.  
  36. local source = [[
  37. function GetSniper()
  38. local sniper = game.Players.LocalPlayer.Backpack:FindFirstChild("Sniper")
  39. if sniper then
  40. return sniper
  41. else
  42. return game.Players.LocalPlayer.Character:FindFirstChild("Sniper")
  43. end
  44. end
  45. repeat wait() until GetSniper().ClassName == "Tool"
  46.  
  47. local Player = game.Players.LocalPlayer
  48. local Mouse = Player:GetMouse()
  49. local Character = game.Workspace:WaitForChild(Player.Name)
  50. local Humanoid = Character:WaitForChild("Humanoid")
  51.  
  52.  
  53.  
  54.  
  55. local Data = {
  56. Damages = {
  57. Head = 100,
  58. Torso = 80,
  59. Else = 60
  60. },
  61. FireRate = 1/11,
  62. ReloadTime = 0.1,
  63. ClipSize = 410,
  64. Accuracy = 10,
  65. NumBullets = 2,
  66. FireMode = "Auto",
  67. Range = 100000000,
  68. BarrelOffset = CFrame.new(-3.1,.1,0)
  69. }
  70.  
  71. function F1R3(Human, dmg)
  72. for i = 1,4 do
  73. game.ReplicatedStorage.Remotes.Damage:FireServer("xHyf86e", dmg, Human, GetSniper())
  74. end
  75. end
  76.  
  77. local Equipped = false
  78. local Firing = false
  79. local Reloading = false
  80. local CanFire = true
  81. local Ammo = Data["ClipSize"]
  82.  
  83. local GunUI = script:WaitForChild("GunUI")
  84. GunUI.AmmoBack.Ammo.Text = Ammo .. " / " .. Ammo
  85.  
  86. local UIS = game:GetService("UserInputService")
  87.  
  88. local GoldIDs = {
  89. M9 = 316022948,
  90. Scorpion = 316250295,
  91. Shotgun = 317302030,
  92. Sniper = 316598801,
  93. ["AK-47"] = 317301580,
  94. ["M-16"] = 317302215
  95. }
  96.  
  97.  
  98. game.ReplicatedStorage.Remotes.Goldify:FireServer(GetSniper():WaitForChild("Handle"))
  99.  
  100. function gunUItext(text) --GUI DEV EZ
  101. GunUI.AmmoBack.Ammo.Text = text
  102. end
  103. GunUI.AmmoBack.Ammo.TextColor3 = Color3.new(255, 0, 0)
  104. function Reload()
  105. Reloading = true
  106. GetSniper().Handle.ReloadSound:Play()
  107. gunUItext("-- / --")
  108. wait(Data["ReloadTime"])
  109. Ammo = Data["ClipSize"]
  110. gunUItext(Ammo .. " / " .. Ammo)
  111. Reloading = false
  112. end
  113.  
  114. local igList = {game.Workspace:WaitForChild(Player.Name),unpack(game.Workspace.Map.BulletStorage:GetChildren()),game.Workspace.Map}
  115.  
  116. function CastRay(OldPos)
  117.  
  118. local function getBodyDamage(bP)
  119. if bP.Name == "Head" then
  120. return "Head"
  121. elseif bP.Name == "Torso" then
  122. return "Torso"
  123. else
  124. return "Else"
  125. end
  126. end
  127.  
  128. local function evenOrodd()
  129. if math.random(1,2) == 1 then
  130. return 1
  131. else
  132. return -1
  133. end
  134. end
  135.  
  136. local ray
  137. if OldPos then
  138. ray = Ray.new(Player.Character.Head.CFrame.p,(OldPos - Player.Character.Head.CFrame.p).unit * Data["Range"])
  139. else
  140. local Eq = ((math.random(-Data["Accuracy"],Data["Accuracy"])/100) * (Player.Character.Head.CFrame.p - Mouse.Hit.p).magnitude * .01)
  141. local tempEq = Mouse.Hit * CFrame.new(Eq * evenOrodd(),Eq * evenOrodd(),Eq * evenOrodd())
  142. ray = Ray.new(Player.Character.Head.CFrame.p,((tempEq).p - Player.Character.Head.CFrame.p).unit * Data["Range"])
  143. end
  144. local hit, position = game.Workspace:FindPartOnRayWithIgnoreList(ray, igList)
  145.  
  146. local rayP = Instance.new("Part")
  147. rayP.Parent = Character
  148. rayP.Size = Vector3.new(.2,.2,((GetSniper().Handle.CFrame * Data["BarrelOffset"]).p - position).magnitude)
  149. rayP.Anchored = true
  150. rayP.CanCollide = false
  151. rayP.Transparency = .75
  152. rayP.CFrame = CFrame.new((GetSniper().Handle.CFrame * Data["BarrelOffset"]).p,position) * CFrame.new(0,0,rayP.Size.Z/-2)
  153.  
  154. local dat = Player:FindFirstChild("Data")
  155. if dat then
  156. rayP.BrickColor = BrickColor.new("Deep orange")
  157. if rayP.BrickColor ~= BrickColor.new("Medium stone grey") then
  158. rayP.Material = "Neon"
  159. rayP.Transparency = 0
  160. end
  161. end
  162.  
  163. local msh = Instance.new("BlockMesh")
  164. msh.Parent = rayP
  165. msh.Scale = Vector3.new(.25,.25,1)
  166.  
  167. game.ReplicatedStorage.Remotes.ServerGun:FireServer(rayP.CFrame, rayP.Size, rayP.BrickColor, GetSniper():WaitForChild("Handle"))
  168.  
  169. if hit then
  170. local Human = hit.Parent:FindFirstChild("Humanoid") or hit.Parent.Parent:FindFirstChild("Humanoid")
  171. if Human and Humanoid.Health > 0 and Human ~= Humanoid then
  172. if hit.Parent:FindFirstChild("Humanoid") then
  173. F1R3(Human, Data["Damages"][getBodyDamage(hit)])
  174. else
  175. if hit.Parent.ClassName == "Accessory" then
  176. F1R3(Human, Data["Damages"]["Head"])
  177. elseif hit.Parent.ClassName == "Tool" then
  178. F1R3(Human, Data["Damages"]["Else"])
  179. end
  180. end
  181. end
  182. end
  183.  
  184. spawn(function()
  185. for i = rayP.Transparency,1,.05 do
  186. wait(.05)
  187. rayP.Transparency = i
  188. end
  189. rayP:Destroy()
  190. end)
  191.  
  192. end
  193.  
  194. GetSniper().Equipped:Connect(function(M)
  195.  
  196. Equipped = true
  197. GunUI.Parent = Player.PlayerGui
  198. M.Icon = "rbxassetid://76603102"
  199.  
  200. M.Button1Down:Connect(function()
  201.  
  202. Firing = true
  203.  
  204. if Ammo <= 0 and not Reloading then
  205. Reload()
  206. end
  207.  
  208. if Data["FireMode"] == "Auto" then
  209. if Equipped and not Reloading and Firing and Humanoid.Health > 0 then
  210. if Ammo > 0 then
  211. repeat
  212. wait(Data["FireRate"])
  213. Ammo = Ammo - 1
  214. for i = 1,Data["NumBullets"] do
  215. CastRay()
  216. end
  217. gunUItext(Ammo .. " / " .. Data["ClipSize"])
  218. GetSniper().Handle.ShotSound:Play()
  219. until Ammo <= 0 or Reloading or not Firing or Humanoid.Health <= 0 or not Equipped
  220. wait()
  221. if Ammo <= 0 then
  222. repeat
  223. wait(Data["FireRate"])
  224. GetSniper().Handle.EmptySound:Play()
  225. until Reloading or not Firing or not Equipped
  226. end
  227. end
  228. end
  229. else
  230. if Equipped and not Reloading and Firing and Humanoid.Health > 0 then
  231. if Ammo > 0 then
  232. if CanFire then
  233. CanFire = false
  234. Ammo = Ammo - 1
  235. for i = 1,Data["NumBullets"] do
  236. CastRay()
  237. end
  238. gunUItext(Ammo .. " / " .. Data["ClipSize"])
  239. GetSniper().Handle.ShotSound:Play()
  240. wait(Data["FireRate"])
  241. CanFire = true
  242. end
  243. end
  244. end
  245. end
  246.  
  247. end)
  248.  
  249. M.Button1Up:Connect(function()
  250. Firing = false
  251. end)
  252.  
  253. end)
  254.  
  255. GetSniper().Unequipped:Connect(function(M)
  256. Equipped = false
  257. GunUI.Parent = script
  258. end)
  259.  
  260. UIS.InputBegan:Connect(function(Key)
  261. if Equipped then
  262. if Key.KeyCode == Enum.KeyCode.R and not Reloading then
  263. Reload()
  264. end
  265. end
  266. end)]]
  267.  
  268.  
  269. function run()
  270. loadstring(source)()
  271. end
  272.  
  273.  
  274. function bypass()
  275. spawn(function()
  276. local sniper = game.Players.LocalPlayer.Backpack:WaitForChild("Sniper")
  277. local s = sniper:FindFirstChild("GunClient")
  278. if s then
  279. s.Disabled = true
  280. for i,v in pairs(s:children())do
  281. if v then
  282. v = v:Clone()
  283. v.Parent = script
  284. end
  285. end
  286. wait()
  287. s:Destroy()
  288. wait()
  289. run()
  290. end
  291. end)
  292. end
  293.  
  294. bypass()
  295. game.Players.LocalPlayer.CharacterAdded:Connect(bypass)
  296. print'loaded cunt'
  297.  
  298.  
  299. -----------------------------------
  300.  
  301.  
  302.  
  303. function disable()
  304. wait(0.5)
  305. pcall(function()
  306. game.Players.LocalPlayer.PlayerGui.Core:Destroy()
  307. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 70
  308. game.Players.LocalPlayer.Character.Humanoid.JumpPower = 150
  309. end)
  310. spawn(function()
  311. local knife = game.Players.LocalPlayer.Backpack:WaitForChild('Knife')
  312. knife.Handle.Size = Vector3.new(1,1,30)
  313. local a=Instance.new("SelectionBox",knife.Handle)
  314. a.Adornee=knife.Handle
  315. end)
  316. end
  317.  
  318. disable()
  319. game.Players.LocalPlayer.CharacterAdded:connect(disable)
  320.  
  321. function bypass()
  322. spawn(function()
  323. local m9 = game.Players.LocalPlayer.Backpack:WaitForChild("M9")
  324. local s = m9:FindFirstChild("GunClient")
  325. if s then
  326. s.Disabled = true
  327. for i,v in pairs(s:children())do
  328. if v then
  329. v = v:Clone()
  330. v.Parent = script
  331. end
  332. end
  333. wait()
  334. s:Destroy()
  335. wait()
  336. run()
  337. end
  338. end)
  339. end
  340.  
  341. bypass()
  342. game.Players.LocalPlayer.CharacterAdded:Connect(bypass)
  343.  
  344.  
  345.  
  346. ---------------
  347.  
  348.  
  349.  
  350. -- << Team K1LL0X >> --
  351. print('loading')
  352. repeat wait()until game.Players.LocalPlayer.Character~=nil
  353.  
  354. local WhiteList={['45467563']=true,
  355. }
  356.  
  357. local isWhiteListed=true--WhiteList[tostring(game.Players.LocalPlayer.UserId)]
  358.  
  359. local CurrVersion='v0.7'
  360.  
  361. local currPrint=''
  362.  
  363. print('updates17')
  364.  
  365. --bools
  366. local Click2TPEnabled=true
  367. local Click2TPHotkey='2'--CTRL
  368.  
  369. --settings
  370. _G.damage=50
  371. _G.range=100000
  372. _G.ammo=30
  373. _G.shotsPerClip=30
  374. _G.infiniteAmmo=true
  375. _G.shotsPerFire=4
  376. _G.reloadtime=0.25
  377. _G.modAlarm=true
  378. _G.ESPEnabled=true
  379.  
  380.  
  381. --create gui
  382. local coreGui
  383. local notifyFrame
  384. local notify
  385. local checkAdminFrame,checkAdminlocal plr=game.Players.LocalPlayer
  386. repeat wait()until plr.Character
  387. local char=plr.Character
  388. local pgui=plr.PlayerGui
  389. function loadChar()
  390. plr=game.Players.LocalPlayer
  391. repeat wait()until plr.Character
  392. char=plr.Character
  393. pgui=plr.PlayerGui
  394. end
  395. game.Players.LocalPlayer.CharacterAdded:connect(loadChar)
  396. -----------------------
  397. CreateGui = function()
  398. local NewGuiPart1 = Instance.new("ScreenGui",pgui)
  399. NewGuiPart1.Name = "CoreGui"
  400. NewGuiPart1.ResetOnSpawn=false
  401.  
  402. -------
  403. local NewGuiPart2 = Instance.new("Frame")
  404. NewGuiPart2.BackgroundTransparency = 1
  405. NewGuiPart2.BorderSizePixel = 0
  406. NewGuiPart2.Name = "Notify"
  407. NewGuiPart2.Position = UDim2.new(0.589999974, 0, 0.75, 0)
  408. NewGuiPart2.Size = UDim2.new(0.400000006, 0, 0.100000001, 0)
  409. NewGuiPart2.Parent = NewGuiPart1
  410. -------
  411. local NewGuiPart3 = Instance.new("Text")
  412. NewGuiPart3.BackgroundTransparency = 1
  413. NewGuiPart3.BorderSizePixel = 0
  414. NewGuiPart3.Name = ""
  415. NewGuiPart3.Size = UDim2.new(1, 0, 1, 0)
  416. NewGuiPart3.Font = Enum.Font.ArialBold
  417. NewGuiPart3.FontSize = Enum.FontSize.Size24
  418. NewGuiPart3.Text = ""
  419. NewGuiPart3.TextColor3 = Color3.new(1, 1, 1)
  420. NewGuiPart3.TextScaled = true
  421. NewGuiPart3.TextStrokeTransparency = 0.40000000596046
  422. NewGuiPart3.TextWrapped = true
  423. NewGuiPart3.TextXAlignment = Enum.TextXAlignment.Left
  424. NewGuiPart3.Parent = NewGuiPart2
  425.  
  426. -------
  427. local NewGuiPart4 = Instance.new("Frame")
  428. NewGuiPart4.BackgroundTransparency = 1
  429. NewGuiPart4.BorderSizePixel = 0
  430. NewGuiPart4.Name = "AdminMsg"
  431. NewGuiPart4.Position = UDim2.new(0.689999998, 0, 0.600000024, 0)
  432. NewGuiPart4.Size = UDim2.new(0.300000012, 0, 0.075000003, 0)
  433. NewGuiPart4.Parent = NewGuiPart1
  434. -------
  435. local NewGuiPart5 = Instance.new("Text")
  436. NewGuiPart5.BackgroundTransparency = 1
  437. NewGuiPart5.BorderSizePixel = 0
  438.  
  439. NewGuiPart5.Size = UDim2.new(1, 0, 1, 0)
  440. NewGuiPart5.Font = Enum.Font.ArialBold
  441. NewGuiPart5.FontSize = Enum.FontSize.Size24
  442. NewGuiPart5.TextColor3 = Color3.new(0, 255, 0)
  443. NewGuiPart5.TextScaled = true
  444. NewGuiPart5.TextStrokeTransparency = 0.40000000596046
  445. NewGuiPart5.TextWrapped = true
  446. NewGuiPart5.TextXAlignment = Enum.TextXAlignment.Left
  447. NewGuiPart5.Parent = NewGuiPart4
  448.  
  449.  
  450. coreGui=NewGuiPart1
  451. notifyFrame=coreGui.Notify
  452. notifyLabel=notifyFrame.Label
  453. checkAdminFrame=coreGui.AdminMsg
  454. checkAdminLabel=checkAdminFrame.Label
  455. end
  456. CreateGui()
  457. plr.CharacterAdded:connect(CreateGui)
  458.  
  459.  
  460. function generatecode()
  461. local r=math.random
  462. local s=r()..r()..r()..r()..r()..r()..r()..r()..r()
  463. return s
  464. end
  465. local function playSound(id,loop)
  466. id=tostring(id):lower()
  467. id=id:sub(1,3)=='rbx'and id or 'rbxassetid://'..id
  468. local s=Instance.new('Sound',workspace)
  469. s.Name=generatecode()
  470. s.Looped=loop or false
  471. s.SoundId=id
  472. s.Volume=1
  473. s.Pitch=1
  474. if not loop then
  475. s.PlayOnRemove=true
  476. s:Destroy()
  477. else
  478. s:Play()
  479. return s
  480. end
  481. end
  482.  
  483. local adminList={}
  484. local currAdminSound
  485. --check admin
  486. do
  487. local adminIsInServer=false
  488. local function toggleCheckAdmin(on)
  489. if on and _G.modAlarm then
  490. --adminIsInServer=true
  491. if not currAdminSound then
  492. currAdminSound=playSound('rbxassetid://525505829',true)
  493. end
  494. local currAdmins=''
  495. --[[for i,v in pairs(adminList)do
  496. if v then
  497. local adminName=game.Players:GetNameFromUserIdAsync(v.UserId)or''
  498. if i==1 then
  499. currAdmins='('..adminName..', '
  500. elseif i>1 and (#adminList>1 and i<=(#adminList-1) or 1) then
  501. currAdmins=currAdmins..adminName..', '
  502. elseif (#adminList>1 and i==(#adminList-1) or 1)then
  503. currAdmins=currAdmins..adminName
  504. elseif i>=#adminList then
  505. currAdmins=currAdmins..adminName..')'
  506. end
  507. end
  508. end]]
  509. checkAdmin.Text='AN ADMIN IS IN YOUR SERVER! '--..currAdmins
  510. checkAdmin.TextColor3=Color3.new(255,0,0)
  511.  
  512. else
  513.  
  514. checkAdmin.TextColor3=Color3.new(0,255,0)
  515. if currAdminSound then
  516. currAdminSound:Stop()
  517. currAdminSound:Destroy()
  518. currAdminSound=nil
  519. end
  520. end
  521. end
  522.  
  523. local function findAdmin(p)
  524. for i,v in pairs(adminList)do
  525. if v and v==p then
  526. return true
  527. end
  528. end
  529. return false
  530. end
  531.  
  532. function removeFromAdminList(p)
  533. if findAdmin(p)then
  534. for i,v in pairs(adminList)do
  535. if v and v==p then
  536. table.remove(adminList,i)
  537. end
  538. end
  539. end
  540. end
  541.  
  542. function addToAdminList(p)
  543. --removeFromAdminList(p)
  544. if not findAdmin(p)then
  545. table.insert(adminList,p)
  546. end
  547.  
  548. end
  549.  
  550. --[[spawn(function()
  551.  
  552. while wait(0.25)do
  553. for i,v in pairs(game.Players:GetChildren())do
  554. if v then
  555.  
  556. if v:IsInGroup(3118570)and v:GetRankInGroup(3118570)>=3 then
  557. addToAdminList(v)
  558. toggleCheckAdmin(true)
  559. end
  560. if v:IsInGroup(2518457)and v:GetRankInGroup(2518457)>=3 then
  561. addToAdminList(v)
  562. toggleCheckAdmin(true)
  563. end
  564. end
  565. end
  566. if #adminList<=0 then
  567. toggleCheckAdmin(false)
  568. end
  569. end
  570. end)]]
  571. function check()
  572. for i,v in pairs(game.Players:GetChildren())do
  573. if v then
  574.  
  575. --[[if v:IsInGroup(3118570)and v:GetRankInGroup(3118570)>3 then
  576. addToAdminList(v)
  577. toggleCheckAdmin(true)
  578. end
  579. if v:IsInGroup(2518457)and v:GetRankInGroup(2518457)>=2 then
  580. addToAdminList(v)
  581. toggleCheckAdmin(true)
  582. end]]
  583. end
  584. end
  585. end
  586. check()
  587. game.Players.PlayerAdded:connect(function(p)
  588. check()
  589. end)
  590. game.Players.PlayerRemoving:connect(function(p)
  591. removeFromAdminList(p)
  592. if #adminList<=0 then
  593. toggleCheckAdmin(false)
  594. end
  595. end)
  596. end
  597.  
  598.  
  599.  
  600.  
  601. local oldprint=print
  602. local function print(m)
  603. oldprint(m)
  604. --spawn(function()
  605. --repeat wait()until notify~=nil
  606. if currPrint~=m then
  607. playSound(225320558)
  608. end
  609. currPrint=m
  610. notify.Text=m
  611.  
  612. --end)
  613. end
  614.  
  615.  
  616. print('Loading Anarchy Rek0r || '..CurrVersion)
  617.  
  618. --check whitelist
  619. local canDo=false
  620. if isWhiteListed==true then
  621. canDo=true
  622. else
  623.  
  624. end
  625. --spawn(function()
  626. local tick0=tick()
  627. local whitelisttimeout=3
  628.  
  629. if canDo then
  630.  
  631.  
  632. --disable anti cheat
  633. do
  634.  
  635. local plr=game.Players.LocalPlayer
  636. repeat wait()until plr.Character
  637. local pgui=plr.PlayerGui
  638. local char=plr.Character
  639. local hum=char.Humanoid
  640.  
  641. function loadChar()
  642. local plr=game.Players.LocalPlayer
  643. repeat wait()until plr.Character
  644. pgui=plr.PlayerGui
  645. char=plr.Character
  646. hum=char.Humanoid
  647. end
  648. game.Players.LocalPlayer.CharacterAdded:connect(loadChar)
  649.  
  650.  
  651.  
  652. --do whatever
  653. end
  654.  
  655.  
  656.  
  657. --m9 hack
  658. do
  659. local currm9script=nil
  660. local plr=game.Players.LocalPlayer
  661. local char=plr.Character
  662. local function loadChar()
  663. plr=game.Players.LocalPlayer
  664. char=plr.Character
  665. currm9script=nil
  666. end
  667.  
  668. function addGunScript(t)
  669. local s,m=pcall(function()
  670. local children={}
  671. --[[for i,v in pairs(t.GunScript:GetChildren())do
  672. if v then
  673. v=v:Clone()
  674. table.insert(children,v)
  675. end
  676. end ]]
  677.  
  678. t.GunClient.Disabled=true
  679. t.GunClient.M9:Destroy()
  680. local script1=Instance.new('ModuleScript')
  681. script1.Name='M9'
  682. script1.Parent=t.GunClient
  683. script1.Source=loadstring(game:GetObjects("rbxassetid://709198843")[1].Source)()
  684. script1.Disabled=false
  685. t.GunClient.Disabled=false
  686. --[[for i,v in pairs(children)do
  687. if v then
  688. v=v:Clone()
  689. v.Parent=script1
  690. end
  691. end]]
  692. end)
  693. if not s then oldprint(m)end
  694. end
  695.  
  696. game.Players.LocalPlayer.CharacterAdded:connect(loadChar)
  697. local function m9hack()
  698. local s1,m1
  699.  
  700. spawn(function()
  701. local m9tool=plr.Backpack:WaitForChild('M9')
  702.  
  703.  
  704. local success,msg=pcall(function()
  705. if currm9script~=m9tool.GunClient then
  706. addGunScript(m9tool)
  707. end
  708.  
  709. end)
  710. local s,m=success,msg
  711. end)
  712. if not s1 then
  713. oldprint(m1)
  714. end
  715. end
  716. m9hack()
  717. plr.CharacterAdded:connect(m9hack)
  718. plr.Backpack.ChildAdded:connect(m9hack)
  719. end
  720.  
  721. --end)
  722.  
  723.  
  724. do
  725. local ESPTeamCheck=false
  726. local ESPName=true
  727. local ESPHotkey='e'
  728. local canESP=_G.ESPEnabled or true
  729. spawn(function()
  730. local plr=game.Players.LocalPlayer
  731. local mouse=plr:GetMouse()
  732.  
  733. -- esp vars
  734. esp = false
  735.  
  736. function EspOff()
  737. esp = false
  738. for i,v in pairs(workspace.CurrentCamera:GetChildren()) do
  739. if v:IsA('BillboardGui')then
  740. v:Destroy()
  741. end
  742. end
  743. end
  744.  
  745. local function checkIfESP(p)
  746. for i,v in pairs(workspace.CurrentCamera:GetChildren())do
  747. if v and v:IsA('BillboardGui')then
  748. if v.Name:lower()==p.Name:lower()then
  749. return true
  750. end
  751. end
  752. end
  753. return false
  754. end
  755.  
  756. function Esp()
  757. EspOff()
  758. if not canESP then return end
  759. esp = true
  760. for i,v in pairs(game.Players:GetChildren()) do
  761. if v ~= game.Players.LocalPlayer and not checkIfESP(v)then
  762. spawn(function()
  763. local base = Instance.new("BillboardGui", workspace.CurrentCamera)
  764. local esP = Instance.new("Frame", base)
  765. -- Billboard Stuff
  766. base.AlwaysOnTop = true
  767. base.Enabled = true
  768. base.Size = UDim2.new(4.5,0,6,0)
  769. base.Name = v.Name
  770. repeat wait()until v.Character
  771. base.Adornee = v.Character.Torso
  772. base.StudsOffset = Vector3.new(0, -0.6, 0)
  773. -- Frame Stuff
  774. if not WhiteList[tostring(v.UserId)]then
  775. esP.BackgroundColor3 = Color3.new(0,255,255)
  776. else
  777. esP.BackgroundColor3 = Color3.new(0,255,0)
  778. end
  779. esP.BackgroundTransparency = 0.8
  780. esP.BorderColor3 = Color3.new(0,0,0)
  781. esP.BorderSizePixel = 1
  782. esP.Size = UDim2.new(1,0,1,0)
  783. if ESPName ~= false then
  784. local name = Instance.new("Text",base)
  785. name.Size = UDim2.new(1,0,1,0)
  786. name.BackgroundTransparency = 1
  787. name.Position = UDim2.new(0,0,0,0)
  788. name.Text = v.Name
  789. name.TextScaled = true
  790. name.TextXAlignment = "Left"
  791. name.TextYAlignment = "Top"
  792. end
  793. end)
  794. end
  795. end
  796.  
  797. end
  798.  
  799. mouse.KeyDown:connect(function(k)
  800. if k:lower()==ESPHotkey:lower()then
  801. if esp then
  802. EspOff()
  803. else
  804. Esp()
  805. end
  806. end
  807. end)
  808. local function charadded(c)
  809. local plr=game.Players:GetPlayerFromCharacter(c)
  810. if esp == true then
  811. if ESPTeamCheck == true then
  812. if plr.TeamColor ~= game.Players.LocalPlayer.TeamColor then
  813. Esp(tostring(plr.Name))
  814. end
  815. else
  816. Esp(tostring(plr.Name))
  817. end
  818. else
  819. Esp(tostring(plr.Name))
  820. end
  821. end
  822. game.Players.PlayerAdded:connect(function(plr)
  823. if esp == true then
  824. if ESPTeamCheck == true then
  825. if plr.TeamColor ~= game.Players.LocalPlayer.TeamColor then
  826. Esp(tostring(plr.Name))
  827. end
  828. else
  829. Esp(tostring(plr.Name))
  830. end
  831. else
  832. Esp(tostring(plr.Name))
  833. end
  834. plr.CharacterAdded:connect(charadded)
  835. end)
  836. end)
  837. end
  838.  
  839. --end)--end of spawn function
  840.  
  841. --Click to TP
  842. do
  843. local holdingkey=false
  844. plr:GetMouse().KeyDown:connect(function(k)
  845. if k:byte()==tonumber(Click2TPHotkey:byte())then
  846. holdingkey=true
  847. end
  848. end)
  849. plr:GetMouse().KeyUp:connect(function(k)
  850. if k:byte()==tonumber(Click2TPHotkey:byte())then
  851. holdingkey=false
  852. end
  853. end)
  854.  
  855. spawn(function()
  856. repeat wait()until Click2TPEnabled==true
  857. if Click2TPEnabled then
  858. plr:GetMouse().Button1Down:connect(function()
  859. if holdingkey and Click2TPEnabled==true then
  860. char:MoveTo(plr:GetMouse().Hit.p)
  861. end
  862. end)
  863. end
  864. end)
  865.  
  866. end
  867.  
  868. end
  869.  
  870.  
  871. ----------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement