Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.47 KB | None | 0 0
  1. local uis = game:GetService("UserInputService")
  2. local sg = game:GetService("StarterGui")
  3. local wp = game:GetService("Workspace")
  4. local cmr = wp.Camera
  5. local rs = game:GetService("ReplicatedStorage")
  6. local lgt = game:GetService("Lighting")
  7. local plrs = game:GetService("Players")
  8. local lplr = plrs.LocalPlayer
  9. local bp = lplr:WaitForChild("Backpack")
  10. local mouse = lplr:GetMouse()
  11.  
  12. local faces = {"Back","Bottom","Front","Left","Right","Top"}
  13. local speed = 20
  14. local nameMap = ""
  15.  
  16. function SendChat(String) -- Send a chat to the game chat
  17. game.StarterGui:SetCore("ChatMakeSystemMessage", {
  18. Text = '[OUTPUT]: ' .. String
  19. })
  20. end
  21.  
  22. function enableESPCode()
  23. for _, o in pairs(plrs:GetPlayers()) do
  24. if o.Name ~= lplr.Name then
  25. o.CharacterAdded:Connect(function(characterModel)
  26. wait(1)
  27. local bgui = Instance.new("BillboardGui",o.Character.Head)
  28. bgui.Name = ("EGUI")
  29. bgui.AlwaysOnTop = true
  30. bgui.ExtentsOffset = Vector3.new(0,3,0)
  31. bgui.Size = UDim2.new(0,200,0,50)
  32. local nam = Instance.new("TextLabel",bgui)
  33. nam.Text = o.Name
  34. nam.BackgroundTransparency = 1
  35. nam.TextSize = 14
  36. nam.Font = ("Arial")
  37. nam.TextColor3 = Color3.fromRGB(75, 151, 75)
  38. nam.Size = UDim2.new(0,200,0,50)
  39. for _, p in pairs(o.Character:GetChildren()) do
  40. if p.Name == ("Head") then
  41. for _, f in pairs(faces) do
  42. local m = Instance.new("SurfaceGui",p)
  43. m.Name = ("EGUI")
  44. m.Face = f
  45. m.Active = true
  46. m.AlwaysOnTop = true
  47. local mf = Instance.new("Frame",m)
  48. mf.Size = UDim2.new(1,0,1,0)
  49. mf.BorderSizePixel = 0
  50. mf.BackgroundTransparency = 0.5
  51. mf.BackgroundColor3 = Color3.fromRGB(75, 151, 75)
  52. o.Backpack.ChildAdded:connect(function(b)
  53. if b.Name == "Gun" or b.Name == "Revolver" then
  54. mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  55. elseif b.Name == "Knife" or b.Name == "Blade" then
  56. mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  57. end
  58. end)
  59.  
  60. o.Character.ChildAdded:connect(function(c)
  61. if c.Name == "Gun" or c.Name == "Revolver" then
  62. mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  63. elseif c.Name == "Knife" or c.Name == "Blade" then
  64. mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  65. end
  66. end)
  67. end
  68. end
  69. end
  70.  
  71. o.Backpack.ChildAdded:connect(function(b)
  72. if b.Name == "Gun" or b.Name == "Revolver" then
  73. nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  74. elseif b.Name == "Knife" or b.Name == "Blade" then
  75. nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  76. end
  77. end)
  78.  
  79. o.Character.ChildAdded:connect(function(c)
  80. if c.Name == "Gun" or c.Name == "Revolver" then
  81. nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  82. elseif c.Name == "Knife" or c.Name == "Blade" then
  83. nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  84. end
  85. end)
  86.  
  87. end)
  88. end
  89. end
  90.  
  91. plrs.PlayerAdded:Connect(function(newPlayer)
  92. if newPlayer.Name ~= lplr.Name then
  93. newPlayer.CharacterAdded:Connect(function(characterModel)
  94. wait(1)
  95. local bgui = Instance.new("BillboardGui",newPlayer.Character.Head)
  96. bgui.Name = ("EGUI")
  97. bgui.AlwaysOnTop = true
  98. bgui.ExtentsOffset = Vector3.new(0,3,0)
  99. bgui.Size = UDim2.new(0,200,0,50)
  100. local nam = Instance.new("TextLabel",bgui)
  101. nam.Text = newPlayer.Name
  102. nam.BackgroundTransparency = 1
  103. nam.TextSize = 14
  104. nam.Font = ("Arial")
  105. nam.TextColor3 = Color3.fromRGB(75, 151, 75)
  106. nam.Size = UDim2.new(0,200,0,50)
  107. for _, p in pairs(newPlayer.Character:GetChildren()) do
  108. if p.Name == ("Head") then
  109. for _, f in pairs(faces) do
  110. local m = Instance.new("SurfaceGui",p)
  111. m.Name = ("EGUI")
  112. m.Face = f
  113. m.Active = true
  114. m.AlwaysOnTop = true
  115. local mf = Instance.new("Frame",m)
  116. mf.Size = UDim2.new(1,0,1,0)
  117. mf.BorderSizePixel = 0
  118. mf.BackgroundTransparency = 0.5
  119. mf.BackgroundColor3 = Color3.fromRGB(75, 151, 75)
  120.  
  121. newPlayer.Backpack.ChildAdded:connect(function(b)
  122. if b.Name == "Gun" or b.Name == "Revolver" then
  123. mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  124. elseif b.Name == "Knife" or b.Name == "Blade" then
  125. mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  126. end
  127. end)
  128.  
  129. newPlayer.Character.ChildAdded:connect(function(c)
  130. if c.Name == "Gun" or c.Name == "Revolver" then
  131. mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  132. elseif c.Name == "Knife" or c.Name == "Blade" then
  133. mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  134. end
  135. end)
  136. end
  137. end
  138. end
  139.  
  140. newPlayer.Backpack.ChildAdded:connect(function(b)
  141. if b.Name == "Gun" or b.Name == "Revolver" then
  142. nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  143. elseif b.Name == "Knife" or b.Name == "Blade" then
  144. nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  145. end
  146. end)
  147.  
  148. newPlayer.Character.ChildAdded:connect(function(c)
  149. if c.Name == "Gun" or c.Name == "Revolver" then
  150. nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  151. elseif c.Name == "Knife" or c.Name == "Blade" then
  152. nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  153. end
  154. end)
  155. end)
  156. end
  157. end)
  158.  
  159. lplr.Character.Humanoid.WalkSpeed = speed
  160.  
  161. lplr.Character.Humanoid:GetPropertyChangedSignal("WalkSpeed"):connect(function()
  162. if lplr.Character.Humanoid.WalkSpeed ~= speed then
  163. lplr.Character.Humanoid.WalkSpeed = speed
  164. end
  165. end)
  166.  
  167. lplr.CharacterAdded:Connect(function(characterModel)
  168. wait(0.5)
  169. characterModel.Humanoid.WalkSpeed = speed
  170. characterModel.Humanoid:GetPropertyChangedSignal("WalkSpeed"):connect(function()
  171. if characterModel.Humanoid.WalkSpeed ~= speed then
  172. characterModel.Humanoid.WalkSpeed = speed
  173. end
  174. end)
  175. end)
  176.  
  177.  
  178. wp.ChildAdded:connect(function(m)
  179. if m.Name == "Bank" or tostring(m) == "BioLab" or tostring(m) == "Factory" then
  180. nameMap = m.Name
  181. print(nameMap)
  182. elseif tostring(m) == "House2" or tostring(m) == "Office3" or tostring(m) == "Office2" then
  183. nameMap = m.Name
  184. print(nameMap)
  185. elseif tostring(m) == "Workplace" or tostring(m) == "Mineshaft" or tostring(m) == "Hotel" then
  186. nameMap = m.Name
  187. print(nameMap)
  188. elseif tostring(m) == "MilBase" or tostring(m) == "PoliceStation" then
  189. nameMap = m.Name
  190. print(nameMap)
  191. elseif tostring(m) == "Hospital2" or tostring(m) == "Mansion2" or tostring(m) == "Lab2" then
  192. nameMap = m.Name
  193. print(nameMap)
  194. end
  195. end)
  196. end
  197.  
  198. enableESPCode()
  199.  
  200. function espFirst()
  201. for _, o in pairs(plrs:GetPlayers()) do
  202. if o.Name ~= lplr.Name then
  203. local bgui = Instance.new("BillboardGui",o.Character.Head)
  204. bgui.Name = ("EGUI")
  205. bgui.AlwaysOnTop = true
  206. bgui.ExtentsOffset = Vector3.new(0,3,0)
  207. bgui.Size = UDim2.new(0,200,0,50)
  208. local nam = Instance.new("TextLabel",bgui)
  209. nam.Text = o.Name
  210. nam.BackgroundTransparency = 1
  211. nam.TextSize = 14
  212. nam.Font = ("Arial")
  213. nam.TextColor3 = Color3.fromRGB(75, 151, 75)
  214. nam.Size = UDim2.new(0,200,0,50)
  215. for _, p in pairs(o.Character:GetChildren()) do
  216. if p.Name == ("Head") then
  217. for _, f in pairs(faces) do
  218. local m = Instance.new("SurfaceGui",p)
  219. m.Name = ("EGUI")
  220. m.Face = f
  221. m.Active = true
  222. m.AlwaysOnTop = true
  223. local mf = Instance.new("Frame",m)
  224. mf.Size = UDim2.new(1,0,1,0)
  225. mf.BorderSizePixel = 0
  226. mf.BackgroundTransparency = 0.5
  227. mf.BackgroundColor3 = Color3.fromRGB(75, 151, 75)
  228.  
  229. o.Backpack.ChildAdded:connect(function(b)
  230. if b.Name == "Gun" or b.Name == "Revolver" then
  231. mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  232. elseif b.Name == "Knife" or b.Name == "Blade" then
  233. mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  234. end
  235. end)
  236.  
  237. o.Character.ChildAdded:connect(function(c)
  238. if c.Name == "Gun" or c.Name == "Revolver" then
  239. mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  240. elseif c.Name == "Knife" or c.Name == "Blade" then
  241. mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  242. end
  243. end)
  244.  
  245. if o.Backpack:FindFirstChild("Gun") or o.Backpack:FindFirstChild("Revolver") or o.Character:FindFirstChild("Gun") or o.Character:FindFirstChild("Revolver") then
  246. mf.BackgroundColor3 = Color3.fromRGB(13, 105, 172)
  247. elseif o.Backpack:FindFirstChild("Knife") or o.Backpack:FindFirstChild("Blade") or o.Character:FindFirstChild("Knife") or o.Character:FindFirstChild("Blade") then
  248. mf.BackgroundColor3 = Color3.fromRGB(196, 40, 28)
  249. end
  250. end
  251. end
  252. end
  253.  
  254. o.Backpack.ChildAdded:connect(function(b)
  255. if b.Name == "Gun" or b.Name == "Revolver" then
  256. nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  257. elseif b.Name == "Knife" or b.Name == "Blade" then
  258. nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  259. end
  260. end)
  261.  
  262. o.Character.ChildAdded:connect(function(c)
  263. if c.Name == "Gun" or c.Name == "Revolver" then
  264. nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  265. elseif c.Name == "Knife" or c.Name == "Blade" then
  266. nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  267. end
  268. end)
  269.  
  270. if o.Backpack:FindFirstChild("Gun") or o.Backpack:FindFirstChild("Revolver") or o.Character:FindFirstChild("Gun") or o.Character:FindFirstChild("Revolver") then
  271. nam.TextColor3 = Color3.fromRGB(13, 105, 172)
  272. elseif o.Backpack:FindFirstChild("Knife") or o.Backpack:FindFirstChild("Blade") or o.Character:FindFirstChild("Knife") or o.Character:FindFirstChild("Blade") then
  273. nam.TextColor3 = Color3.fromRGB(196, 40, 28)
  274. end
  275. end
  276. end
  277.  
  278. for _, v in pairs(wp:GetChildren()) do
  279. if tostring(v) == "Bank" or tostring(v) == "BioLab" or tostring(v) == "Factory" then
  280. nameMap = v.Name
  281. print(nameMap)
  282. elseif tostring(v) == "House2" or tostring(v) == "Office3" or tostring(v) == "Office2" then
  283. nameMap = v.Name
  284. print(nameMap)
  285. elseif tostring(v) == "Workplace" or tostring(v) == "Mineshaft" or tostring(v) == "Hotel" then
  286. nameMap = v.Name
  287. print(nameMap)
  288. elseif tostring(v) == "MilBase" or tostring(v) == "PoliceStation" then
  289. nameMap = m.Name
  290. print(nameMap)
  291. elseif tostring(v) == "Hospital2" or tostring(v) == "Mansion2" or tostring(v) == "Lab2" then
  292. nameMap = v.Name
  293. print(nameMap)
  294. end
  295. end
  296. end
  297.  
  298. function tpCoin()
  299. if nameMap ~= "" and wp[nameMap] ~= nil then
  300. for i = 10, 1, -1 do
  301. local s = wp[nameMap]:FindFirstChild("CoinContainer")
  302. local e = lplr.Character:FindFirstChild("LowerTorso")
  303. if e and s then
  304. for i,c in pairs(s:GetChildren()) do
  305. c.CFrame = lplr.Character.LowerTorso.CFrame
  306. end
  307. end
  308. wait(0.7)
  309. end
  310. end
  311. end
  312.  
  313. function bringGun()
  314. if wp:FindFirstChild("GunDrop") then
  315. wp.GunDrop.CFrame = lplr.Character.HumanoidRootPart.CFrame + Vector3.new(2,0,0)
  316. end
  317. end
  318.  
  319. function changeWS(typeWS)
  320. if typeWS == 0 then
  321. speed = speed + 5
  322. lplr.Character.Humanoid.WalkSpeed = speed
  323. elseif typeWS == 1 then
  324. if speed >= 0 then
  325. speed = speed - 5
  326. lplr.Character.Humanoid.WalkSpeed = speed
  327. end
  328. if speed < 0 then
  329. speed = 0
  330. lplr.Character.Humanoid.WalkSpeed = speed
  331. end
  332. end
  333. end
  334.  
  335. mouse.KeyDown:connect(function(keyDown)
  336.  
  337. if keyDown == "l" then
  338. tpCoin()
  339. end
  340.  
  341. if keyDown == "k" then
  342. bringGun()
  343. end
  344.  
  345. if keyDown == "v" then
  346. changeWS(0)
  347. SendChat("Walk Speed :" .. lplr.Character.Humanoid.WalkSpeed)
  348. end
  349.  
  350. if keyDown == "b" then
  351. changeWS(1)
  352. SendChat("Walk Speed :" .. lplr.Character.Humanoid.WalkSpeed)
  353. end
  354. end)
  355.  
  356. espFirst()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement