Advertisement
DarkHorse89

Murder Mystery 2 Roblox Script

Sep 20th, 2023 (edited)
18,476
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 20.40 KB | None | 0 0
  1. getgenv().ESPToggled = false;
  2. getgenv().autoFarmCoins = false;
  3.  
  4. ALLYCOLOR = {0, 255, 255}
  5. SHERIFF_COLOR = {53, 179, 18}
  6. ENEMYCOLOR = {255, 0, 0}
  7. TRANSPARENCY = 0.5
  8. HEALTHBAR_ACTIVATED = true
  9.  
  10. local library = loadstring(game:HttpGet("https://raw.githubusercontent.com/Robojini/Tuturial_UI_Library/main/UI_Template_1"))()
  11.  
  12. local window = library.CreateLib("JUICEFW Murder Mystery 2. PlaceID: "..game.PlaceId, "RJTheme3") -- Creates the window
  13.  
  14. local MainTab = window:NewTab("Main Tab")
  15. local main_menu = MainTab:NewSection("Main")
  16. local main_teleport_menu = MainTab:NewSection("Teleport")
  17. local main_scripts = MainTab:NewSection("Scripts")
  18.  
  19. local GameTab = window:NewTab("Game Tab")
  20. local game_menu = GameTab:NewSection("Main")
  21.  
  22. local TeleportTab = window:NewTab("Teleport Tab")
  23. local teleport_menu = TeleportTab:NewSection("Game Section")
  24. local teleport_players_menu = TeleportTab:NewSection("Players Section")
  25.  
  26. game_menu:NewButton("Kill All", "Kills All If You are a murderer", function ()
  27. if game.Players.LocalPlayer.Backpack:FindFirstChild("Knife") ~= nil or game.Workspace[game.Players.LocalPlayer.Name]:FindFirstChild("Knife") ~= nil then
  28. local players = game:GetService("Players")
  29. for _, player in pairs(players:GetPlayers()) do
  30. if player.Name ~= game.Players.LocalPlayer.Name then
  31. repeat wait()
  32. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame * CFrame.new(0, 0, 1)
  33. until
  34. player.Character.Humanoid.Health == 0
  35. end
  36. end
  37. else
  38. print("[ERROR] You are not murderer!!!")
  39. end
  40. end)
  41.  
  42. game_menu:NewToggle("Coins Farm", "Auto Coins Farm", function (bool)
  43. getgenv().autoFarmCoins = bool
  44. end)
  45.  
  46. teleport_menu:NewButton("TP To Lobby", "TP To Lobby", function ()
  47. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = CFrame.new(-108.5, 145, 0.6)
  48. end)
  49.  
  50. teleport_menu:NewButton("TP To Map", "TP To Map", function ()
  51. for _, part in pairs(game.Workspace:GetDescendants()) do
  52. if part.Name == "Spawns" then
  53. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = part.Spawn.CFrame
  54. break
  55. end
  56. end
  57. end)
  58.  
  59. teleport_players_menu:NewButton("TP Sheriff", "TP To Sheriff", function ()
  60. for _, player in pairs(game:GetService("Players"):GetPlayers()) do
  61. if player.Backpack:FindFirstChild("Gun") ~= nil or game.Workspace[player.Name]:FindFirstChild("Knife") ~= nil then
  62. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
  63. break
  64. end
  65. end
  66. end)
  67. teleport_players_menu:NewButton("TP Murderer", "TP To Murderer", function ()
  68. for _, player in pairs(game:GetService("Players"):GetPlayers()) do
  69. if player.Backpack:FindFirstChild("Knife") ~= nil or game.Workspace[player.Name]:FindFirstChild("Knife") ~= nil then
  70. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame
  71. break
  72. end
  73. end
  74. end)
  75.  
  76. task.spawn(function ()
  77. while true do
  78. wait(.25)
  79. if getgenv().autoFarmCoins then
  80. for _, part in pairs(game.Workspace:GetDescendants()) do
  81. if getgenv().autoFarmCoins == false then
  82. break
  83. end
  84.  
  85. if part.Name == "CoinContainer" then
  86. if part.Coin_Server:FindFirstChild("Coin") ~= nil then
  87. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = part.Coin_Server.Coin.CFrame
  88. end
  89. end
  90. end
  91. end
  92. end
  93. end)
  94.  
  95. main_menu:NewButton("ESP", "You will see all players", function()
  96. createFlex()
  97. getgenv().ESPToggled = true;
  98. end)
  99.  
  100. main_menu:NewSlider("Player speed", "Change player`s speed", 500, 0, function (s)
  101. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = s
  102. end)
  103. main_menu:NewSlider("Player Jump Power", "Change player`s Jump Power", 500, 0, function (s)
  104. game.Players.LocalPlayer.Character.Humanoid.JumpPower = s
  105. end)
  106.  
  107. speeds = 1
  108.  
  109. local speaker = game:GetService("Players").LocalPlayer
  110.  
  111. local chr = game.Players.LocalPlayer.Character
  112. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  113.  
  114. nowe = false
  115.  
  116. main_menu:NewButton("Toggle Fly", "Toggle Flying", function()
  117. if nowe == true then
  118. nowe = false
  119.  
  120. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,true)
  121. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,true)
  122. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,true)
  123. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,true)
  124. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,true)
  125. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,true)
  126. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,true)
  127. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,true)
  128. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,true)
  129. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,true)
  130. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,true)
  131. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,true)
  132. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,true)
  133. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,true)
  134. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,true)
  135. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.RunningNoPhysics)
  136. else
  137. nowe = true
  138.  
  139. for i = 1, speeds do
  140. spawn(function()
  141.  
  142. local hb = game:GetService("RunService").Heartbeat
  143.  
  144.  
  145. tpwalking = true
  146. local chr = game.Players.LocalPlayer.Character
  147. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  148. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  149. if hum.MoveDirection.Magnitude > 0 then
  150. chr:TranslateBy(hum.MoveDirection)
  151. end
  152. end
  153.  
  154. end)
  155. end
  156. game.Players.LocalPlayer.Character.Animate.Disabled = true
  157. local Char = game.Players.LocalPlayer.Character
  158. local Hum = Char:FindFirstChildOfClass("Humanoid") or Char:FindFirstChildOfClass("AnimationController")
  159.  
  160. for i,v in next, Hum:GetPlayingAnimationTracks() do
  161. v:AdjustSpeed(0)
  162. end
  163. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Climbing,false)
  164. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.FallingDown,false)
  165. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Flying,false)
  166. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Freefall,false)
  167. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.GettingUp,false)
  168. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Jumping,false)
  169. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Landed,false)
  170. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Physics,false)
  171. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.PlatformStanding,false)
  172. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Ragdoll,false)
  173. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Running,false)
  174. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.RunningNoPhysics,false)
  175. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Seated,false)
  176. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.StrafingNoPhysics,false)
  177. speaker.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Swimming,false)
  178. speaker.Character.Humanoid:ChangeState(Enum.HumanoidStateType.Swimming)
  179. end
  180.  
  181. if game:GetService("Players").LocalPlayer.Character:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R6 then
  182. local plr = game.Players.LocalPlayer
  183. local torso = plr.Character.Torso
  184. local flying = true
  185. local deb = true
  186. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  187. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  188. local maxspeed = 50
  189. local speed = 0
  190. local bg = Instance.new("BodyGyro", torso)
  191. bg.P = 9e4
  192. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  193. bg.cframe = torso.CFrame
  194. local bv = Instance.new("BodyVelocity", torso)
  195. bv.velocity = Vector3.new(0,0.1,0)
  196. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  197. if nowe == true then
  198. plr.Character.Humanoid.PlatformStand = true
  199. end
  200. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  201. game:GetService("RunService").RenderStepped:Wait()
  202.  
  203. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  204. speed = speed+.5+(speed/maxspeed)
  205. if speed > maxspeed then
  206. speed = maxspeed
  207. end
  208. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  209. speed = speed-1
  210. if speed < 0 then
  211. speed = 0
  212. end
  213. end
  214. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  215. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  216. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  217. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  218. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  219. else
  220. bv.velocity = Vector3.new(0,0,0)
  221. end
  222. -- game.Players.LocalPlayer.Character.Animate.Disabled = true
  223. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  224. end
  225. ctrl = {f = 0, b = 0, l = 0, r = 0}
  226. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  227. speed = 0
  228. bg:Destroy()
  229. bv:Destroy()
  230. plr.Character.Humanoid.PlatformStand = false
  231. game.Players.LocalPlayer.Character.Animate.Disabled = false
  232. tpwalking = false
  233. else
  234. local plr = game.Players.LocalPlayer
  235. local UpperTorso = plr.Character.UpperTorso
  236. local flying = true
  237. local deb = true
  238. local ctrl = {f = 0, b = 0, l = 0, r = 0}
  239. local lastctrl = {f = 0, b = 0, l = 0, r = 0}
  240. local maxspeed = 50
  241. local speed = 0
  242.  
  243.  
  244. local bg = Instance.new("BodyGyro", UpperTorso)
  245. bg.P = 9e4
  246. bg.maxTorque = Vector3.new(9e9, 9e9, 9e9)
  247. bg.cframe = UpperTorso.CFrame
  248. local bv = Instance.new("BodyVelocity", UpperTorso)
  249. bv.velocity = Vector3.new(0,0.1,0)
  250. bv.maxForce = Vector3.new(9e9, 9e9, 9e9)
  251. if nowe == true then
  252. plr.Character.Humanoid.PlatformStand = true
  253. end
  254. while nowe == true or game:GetService("Players").LocalPlayer.Character.Humanoid.Health == 0 do
  255. wait()
  256.  
  257. if ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0 then
  258. speed = speed+.5+(speed/maxspeed)
  259. if speed > maxspeed then
  260. speed = maxspeed
  261. end
  262. elseif not (ctrl.l + ctrl.r ~= 0 or ctrl.f + ctrl.b ~= 0) and speed ~= 0 then
  263. speed = speed-1
  264. if speed < 0 then
  265. speed = 0
  266. end
  267. end
  268. if (ctrl.l + ctrl.r) ~= 0 or (ctrl.f + ctrl.b) ~= 0 then
  269. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (ctrl.f+ctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(ctrl.l+ctrl.r,(ctrl.f+ctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  270. lastctrl = {f = ctrl.f, b = ctrl.b, l = ctrl.l, r = ctrl.r}
  271. elseif (ctrl.l + ctrl.r) == 0 and (ctrl.f + ctrl.b) == 0 and speed ~= 0 then
  272. bv.velocity = ((game.Workspace.CurrentCamera.CoordinateFrame.lookVector * (lastctrl.f+lastctrl.b)) + ((game.Workspace.CurrentCamera.CoordinateFrame * CFrame.new(lastctrl.l+lastctrl.r,(lastctrl.f+lastctrl.b)*.2,0).p) - game.Workspace.CurrentCamera.CoordinateFrame.p))*speed
  273. else
  274. bv.velocity = Vector3.new(0,0,0)
  275. end
  276.  
  277. bg.cframe = game.Workspace.CurrentCamera.CoordinateFrame * CFrame.Angles(-math.rad((ctrl.f+ctrl.b)*50*speed/maxspeed),0,0)
  278. end
  279. ctrl = {f = 0, b = 0, l = 0, r = 0}
  280. lastctrl = {f = 0, b = 0, l = 0, r = 0}
  281. speed = 0
  282. bg:Destroy()
  283. bv:Destroy()
  284. plr.Character.Humanoid.PlatformStand = false
  285. game.Players.LocalPlayer.Character.Animate.Disabled = false
  286. tpwalking = false
  287. end
  288. end)
  289.  
  290. main_menu:NewSlider("Flying speed", "Change player`s flying speed", 100, 1, function (s)
  291. speeds = s
  292. if nowe == true then
  293. tpwalking = false
  294. for i = 1, speeds do
  295. spawn(function()
  296. local hb = game:GetService("RunService").Heartbeat
  297.  
  298. tpwalking = true
  299. local chr = game.Players.LocalPlayer.Character
  300. local hum = chr and chr:FindFirstChildWhichIsA("Humanoid")
  301. while tpwalking and hb:Wait() and chr and hum and hum.Parent do
  302. if hum.MoveDirection.Magnitude > 0 then
  303. chr:TranslateBy(hum.MoveDirection)
  304. end
  305. end
  306. end)
  307. end
  308. end
  309. end)
  310.  
  311. main_teleport_menu:NewButton("Teleport 10 studs forward", "Teleports player 10 studs forward", function()
  312. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 0, -10)
  313. end)
  314.  
  315. main_teleport_menu:NewButton("Teleport 10 studs up", "Teleports player 10 studs up", function()
  316. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 10, 0)
  317. end)
  318.  
  319. main_teleport_menu:NewButton("Teleport 10 studs down", "Teleports player 10 studs down", function()
  320. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, -10, 0)
  321. end)
  322.  
  323. main_teleport_menu:NewButton("Teleport 20 studs forward", "Teleports player 20 studs forward", function()
  324. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 0, -20)
  325. end)
  326.  
  327. main_teleport_menu:NewButton("Teleport 20 studs up", "Teleports player 20 studs up", function()
  328. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 20, 0)
  329. end)
  330.  
  331. main_teleport_menu:NewButton("Teleport 20 studs down", "Teleports player 20 studs down", function()
  332. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, -20, 0)
  333. end)
  334.  
  335. main_teleport_menu:NewButton("Teleport 10 studs up and forward", "Teleports player 10 studs up and forward", function()
  336. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 10, -10)
  337. end)
  338.  
  339. main_teleport_menu:NewButton("Teleport 20 studs up and forward", "Teleports player 20 studs up and forward", function()
  340. game.Players.LocalPlayer.Character.PrimaryPart.CFrame = game.Players.LocalPlayer.Character.PrimaryPart.CFrame * CFrame.new(0, 20, -20)
  341. end)
  342.  
  343. main_scripts:NewButton("Coordinates Grabber", "Execute Coordinates Grabber Gui", function()
  344. spawn(function ()
  345. loadstring(game:HttpGet("https://pastebin.com/raw/M4TtucPi", true))()
  346. end)
  347. end)
  348.  
  349. main_scripts:NewButton("Dark Dex Stable", "Execute Dark Dex Stable", function()
  350. spawn(function ()
  351. loadstring(game:HttpGet("https://raw.githubusercontent.com/loglizzy/dex-custom-icons/main/main.lua"))()
  352. end)
  353. end)
  354.  
  355. main_scripts:NewButton("Simple Spy", "Execute Simply Spy", function()
  356. spawn(function ()
  357. loadstring(game:HttpGet("https://pastebin.com/raw/rqgZVWGw"))()
  358. end)
  359. end)
  360.  
  361. main_scripts:NewButton("BTools", "Execute BTools", function()
  362. spawn(function ()
  363. loadstring(game:HttpGet("https://pastebin.com/raw/JpEmyNa0"))()
  364. end)
  365. end)
  366.  
  367. task.spawn(function ()
  368. while true do
  369. wait()
  370. players = game:GetService("Players")
  371. if getgenv().ESPToggled then
  372. for _, people in pairs(players:GetChildren()) do
  373. wait()
  374. if people.Name ~= players.LocalPlayer.Name then
  375. if game.Workspace:FindFirstChild(people.Name) ~= nil then
  376. for _, people_part in pairs(game.Workspace[people.Name]:GetChildren()) do
  377. wait()
  378. if (people_part:IsA("Part") or people_part:IsA("MeshPart")) and people_part.Name~="HumanoidRootPart" then
  379. surface_gui = people_part:FindFirstChild("ESPSurface")
  380. if surface_gui ~= nil then
  381. for _, surface_gui in pairs(people_part:GetChildren()) do
  382. wait()
  383. if surface_gui.Name == "ESPSurface" then
  384. frame = surface_gui:FindFirstChild("Frame")
  385. if frame ~= nil then
  386. for _, part in pairs(people:GetChildren()) do
  387. wait()
  388. if part.Name == "Backpack" then
  389. if part:FindFirstChild("Gun") ~= nil or game.Workspace[people.Name]:FindFirstChild("Gun") ~= nil then
  390. frame.BackgroundColor3 = Color3.new(SHERIFF_COLOR[1], SHERIFF_COLOR[2], SHERIFF_COLOR[3])
  391. print("sheriff found")
  392. elseif part:FindFirstChild("Knife") ~= nil or game.Workspace[people.Name]:FindFirstChild("Knife") ~= nil then
  393. frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1], ENEMYCOLOR[2], ENEMYCOLOR[3])
  394. print("murderer found")
  395. else
  396. if frame.BackgroundColor3 ~= Color3.new(ALLYCOLOR[1], ALLYCOLOR[2], ALLYCOLOR[3]) then
  397. frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1], ALLYCOLOR[2], ALLYCOLOR[3])
  398. end
  399. end
  400. end
  401. end
  402. end
  403. end
  404. end
  405. end
  406. end
  407. end
  408. end
  409. end
  410. end
  411. end
  412. end
  413. end)
  414.  
  415. function createFlex()
  416. players = game:GetService("Players")
  417. faces = {"Front","Back","Bottom","Left","Right","Top"}
  418. currentPlayer = nil
  419. lplayer = players.LocalPlayer
  420.  
  421. players.PlayerAdded:Connect(function(p)
  422. currentPlayer = p
  423. p.CharacterAdded:Connect(function(character)
  424. createESP(character)
  425. end)
  426. end)
  427.  
  428. function checkPart(obj)
  429. if (obj:IsA("Part") or obj:IsA("MeshPart")) and obj.Name~="HumanoidRootPart" then
  430. return true
  431. end
  432. end
  433.  
  434. function actualESP(obj)
  435. for i=0,5 do
  436. surface = Instance.new("SurfaceGui", obj)
  437. surface.Name = "ESPSurface"
  438. surface.Face = Enum.NormalId[faces[i+1]]
  439. surface.AlwaysOnTop = true
  440. frame = Instance.new("Frame", surface)
  441. frame.Size = UDim2.new(1,0,1,0)
  442. frame.BorderSizePixel = 0
  443. frame.BackgroundTransparency = TRANSPARENCY
  444. for _, part in pairs(currentPlayer:GetChildren()) do
  445. if part.Name == "Backpack" then
  446. if part:FindFirstChild("Gun") ~= nil then
  447. frame.BackgroundColor3 = Color3.new(SHERIFF_COLOR[1], SHERIFF_COLOR[2], SHERIFF_COLOR[3])
  448. elseif part:FindFirstChild("Knife") ~= nil then
  449. frame.BackgroundColor3 = Color3.new(ENEMYCOLOR[1], ENEMYCOLOR[2], ENEMYCOLOR[3])
  450. else
  451. if frame.BackgroundColor3 ~= Color3.new(ALLYCOLOR[1], ALLYCOLOR[2], ALLYCOLOR[3]) then
  452. frame.BackgroundColor3 = Color3.new(ALLYCOLOR[1], ALLYCOLOR[2], ALLYCOLOR[3])
  453. end
  454. end
  455. end
  456. end
  457. end
  458. end
  459.  
  460. function createHealthbar(hrp)
  461. board =Instance.new("BillboardGui",hrp)
  462. board.Name = "total"
  463. board.Size = UDim2.new(1,0,1,0)
  464. board.StudsOffset = Vector3.new(3,1,0)
  465. board.AlwaysOnTop = true
  466.  
  467. bar = Instance.new("Frame",board)
  468. bar.BackgroundColor3 = Color3.new(255,0,0)
  469. bar.BorderSizePixel = 0
  470. bar.Size = UDim2.new(0.2,0,4,0)
  471. bar.Name = "total2"
  472.  
  473. health = Instance.new("Frame",bar)
  474. health.BackgroundColor3 = Color3.new(0,255,0)
  475. health.BorderSizePixel = 0
  476. health.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  477. hrp.Parent.Humanoid.Changed:Connect(function(property)
  478. hrp.total.total2.Frame.Size = UDim2.new(1,0,hrp.Parent.Humanoid.Health/100,0)
  479. end)
  480. end
  481.  
  482. function createESP(c)
  483. bugfix = c:WaitForChild("Head")
  484. for _, v in pairs(c:GetChildren()) do
  485. if checkPart(v) then
  486. actualESP(v)
  487. end
  488. end
  489. if HEALTHBAR_ACTIVATED then
  490. root_part = c:WaitForChild("HumanoidRootPart")
  491. if root_part ~= nil then
  492. createHealthbar(root_part)
  493. end
  494. end
  495. end
  496.  
  497. for _, people in pairs(players:GetChildren()) do
  498. if people ~= players.LocalPlayer then
  499. currentPlayer = people
  500. createESP(people.Character)
  501. people.CharacterAdded:Connect(function(character)
  502. createESP(character)
  503. end)
  504. end
  505. end
  506. end
Advertisement
Comments
  • Alren0110
    13 hours
    # text 0.14 KB | 0 0
    1. THIS SCRIPT IS OUTDATED HERES A NEW ONE
    2. loadstring(game:HttpGet("https://raw.githubusercontent.com/arlenwood/MM2/refs/heads/main/script.lua"))()
Add Comment
Please, Sign In to add comment
Advertisement