Zyrenscripter

MM2

May 21st, 2026
17
0
Never
4
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.40 KB | None | 0 0
  1. --[=[
  2. d888b db db d888888b .d888b. db db db .d8b.
  3. 88' Y8b 88 88 `88' VP `8D 88 88 88 d8' `8b
  4. 88 88 88 88 odD' 88 88 88 88ooo88
  5. 88 ooo 88 88 88 .88' 88 88 88 88~~~88
  6. 88. ~8~ 88b d88 .88. j88. 88booo. 88b d88 88 88 @uniquadev
  7. Y888P ~Y8888P' Y888888P 888888D Y88888P ~Y8888P' YP YP CONVERTER
  8.  
  9. designed using localmaze gui creator
  10. ]=]
  11.  
  12. local LMG2L = {};
  13.  
  14. LMG2L["ScreenGui_1"] = Instance.new("ScreenGui", game:GetService("Players").LocalPlayer:WaitForChild("PlayerGui"));
  15. LMG2L["ScreenGui_1"]["ZIndexBehavior"] = Enum.ZIndexBehavior.Sibling;
  16.  
  17.  
  18. LMG2L["LocalScript_2"] = Instance.new("LocalScript", LMG2L["ScreenGui_1"]);
  19.  
  20.  
  21.  
  22. LMG2L["espbutton_3"] = Instance.new("TextButton", LMG2L["ScreenGui_1"]);
  23. LMG2L["espbutton_3"]["BorderSizePixel"] = 0;
  24. LMG2L["espbutton_3"]["TextSize"] = 14;
  25. LMG2L["espbutton_3"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  26. LMG2L["espbutton_3"]["FontFace"] = Font.new([[rbxasset://fonts/families/GothamSSm.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  27. LMG2L["espbutton_3"]["BackgroundTransparency"] = 0.4;
  28. LMG2L["espbutton_3"]["Size"] = UDim2.new(0, 178, 0, 30);
  29. LMG2L["espbutton_3"]["Text"] = [[ESP]];
  30. LMG2L["espbutton_3"]["Name"] = [[espbutton]];
  31. LMG2L["espbutton_3"]["Position"] = UDim2.new(0, 356, 0, -22);
  32.  
  33.  
  34. LMG2L["UICorner_4"] = Instance.new("UICorner", LMG2L["espbutton_3"]);
  35.  
  36.  
  37.  
  38. LMG2L["LocalScript_5"] = Instance.new("LocalScript", LMG2L["espbutton_3"]);
  39.  
  40.  
  41.  
  42. LMG2L["espbutton_6"] = Instance.new("TextButton", LMG2L["ScreenGui_1"]);
  43. LMG2L["espbutton_6"]["BorderSizePixel"] = 0;
  44. LMG2L["espbutton_6"]["TextSize"] = 14;
  45. LMG2L["espbutton_6"]["BackgroundColor3"] = Color3.fromRGB(255, 255, 255);
  46. LMG2L["espbutton_6"]["FontFace"] = Font.new([[rbxasset://fonts/families/GothamSSm.json]], Enum.FontWeight.Regular, Enum.FontStyle.Normal);
  47. LMG2L["espbutton_6"]["BackgroundTransparency"] = 0.4;
  48. LMG2L["espbutton_6"]["Size"] = UDim2.new(0, 122, 0, 30);
  49. LMG2L["espbutton_6"]["Text"] = [[Aim]];
  50. LMG2L["espbutton_6"]["Name"] = [[espbutton]];
  51. LMG2L["espbutton_6"]["Position"] = UDim2.new(0, 434, 0, 12);
  52.  
  53.  
  54. LMG2L["UICorner_7"] = Instance.new("UICorner", LMG2L["espbutton_6"]);
  55.  
  56.  
  57.  
  58. LMG2L["LocalScript_8"] = Instance.new("LocalScript", LMG2L["espbutton_6"]);
  59.  
  60.  
  61.  
  62. local function C_2()
  63. local script = LMG2L["LocalScript_2"];
  64. script.Parent.ResetOnSpawn = false
  65. end;
  66. task.spawn(C_2);
  67. local function C_5()
  68. local script = LMG2L["LocalScript_5"];
  69. -- ===== SERVICIOS =====
  70. local Players = game:GetService("Players")
  71. local RunService = game:GetService("RunService")
  72. local LocalPlayer = Players.LocalPlayer
  73. local Button = script.Parent
  74.  
  75. -- ===== COLORES =====
  76. local COLOR_DEFAULT = Color3.fromRGB(0, 255, 0) -- Verde
  77. local COLOR_GUN = Color3.fromRGB(0, 150, 255) -- Azul
  78. local COLOR_KNIFE = Color3.fromRGB(255, 0, 0) -- Rojo
  79.  
  80. local TEXT_SIZE = 13
  81. local ESP_ENABLED = false
  82. local Connections = {}
  83.  
  84. -- ===== DETECTAR COLOR =====
  85. local function getESPColor(player)
  86. -- Backpack
  87. local backpack = player:FindFirstChild("Backpack")
  88. if backpack then
  89. for _, tool in ipairs(backpack:GetChildren()) do
  90. if tool:IsA("Tool") then
  91. if tool.Name == "Knife" then return COLOR_KNIFE end
  92. if tool.Name == "Gun" then return COLOR_GUN end
  93. end
  94. end
  95. end
  96.  
  97. -- Equipado
  98. local char = player.Character
  99. if char then
  100. for _, tool in ipairs(char:GetChildren()) do
  101. if tool:IsA("Tool") then
  102. if tool.Name == "Knife" then return COLOR_KNIFE end
  103. if tool.Name == "Gun" then return COLOR_GUN end
  104. end
  105. end
  106. end
  107.  
  108. return COLOR_DEFAULT
  109. end
  110.  
  111. -- ===== CREAR ESP =====
  112. local function addESP(player)
  113. if player == LocalPlayer then return end
  114.  
  115. local function onCharacter(char)
  116. if not ESP_ENABLED then return end
  117.  
  118. -- BORRAR SI EXISTE
  119. if char:FindFirstChild("ESP_Highlight") then
  120. char.ESP_Highlight:Destroy()
  121. end
  122.  
  123. -- OUTLINE ONLY
  124. local hl = Instance.new("Highlight")
  125. hl.Name = "ESP_Highlight"
  126. hl.Adornee = char
  127. hl.FillTransparency = 1 -- SIN RELLENO
  128. hl.OutlineTransparency = 0
  129. hl.OutlineColor = getESPColor(player)
  130. hl.DepthMode = Enum.HighlightDepthMode.AlwaysOnTop
  131. hl.Parent = char
  132.  
  133. -- NOMBRE
  134. local head = char:WaitForChild("Head", 3)
  135. if not head then return end
  136.  
  137. if head:FindFirstChild("ESP_Name") then
  138. head.ESP_Name:Destroy()
  139. end
  140.  
  141. local bb = Instance.new("BillboardGui")
  142. bb.Name = "ESP_Name"
  143. bb.Adornee = head
  144. bb.Size = UDim2.new(0, 120, 0, 22)
  145. bb.StudsOffset = Vector3.new(0, 2.6, 0)
  146. bb.AlwaysOnTop = true
  147. bb.Parent = head
  148.  
  149. local txt = Instance.new("TextLabel")
  150. txt.Size = UDim2.new(1,0,1,0)
  151. txt.BackgroundTransparency = 1
  152. txt.Text = player.DisplayName
  153. txt.Font = Enum.Font.GothamMedium
  154. txt.TextSize = TEXT_SIZE
  155. txt.TextColor3 = getESPColor(player)
  156. txt.TextStrokeTransparency = 1
  157. txt.Parent = bb
  158. end
  159.  
  160. if player.Character then
  161. onCharacter(player.Character)
  162. end
  163.  
  164. Connections[player] = player.CharacterAdded:Connect(onCharacter)
  165. end
  166.  
  167. -- ===== QUITAR ESP =====
  168. local function removeESP(player)
  169. if Connections[player] then
  170. Connections[player]:Disconnect()
  171. Connections[player] = nil
  172. end
  173.  
  174. if player.Character then
  175. local char = player.Character
  176. if char:FindFirstChild("ESP_Highlight") then
  177. char.ESP_Highlight:Destroy()
  178. end
  179. local head = char:FindFirstChild("Head")
  180. if head and head:FindFirstChild("ESP_Name") then
  181. head.ESP_Name:Destroy()
  182. end
  183. end
  184. end
  185.  
  186. -- ===== ACTUALIZAR COLORES =====
  187. RunService.RenderStepped:Connect(function()
  188. if not ESP_ENABLED then return end
  189.  
  190. for _, player in ipairs(Players:GetPlayers()) do
  191. if player ~= LocalPlayer and player.Character then
  192. local hl = player.Character:FindFirstChild("ESP_Highlight")
  193. if hl then
  194. hl.OutlineColor = getESPColor(player)
  195. end
  196.  
  197. local head = player.Character:FindFirstChild("Head")
  198. if head and head:FindFirstChild("ESP_Name") then
  199. head.ESP_Name.TextLabel.TextColor3 = getESPColor(player)
  200. end
  201. end
  202. end
  203. end)
  204.  
  205. -- ===== BOTÓN ON / OFF =====
  206. Button.MouseButton1Click:Connect(function()
  207. ESP_ENABLED = not ESP_ENABLED
  208.  
  209. Button.Text = ESP_ENABLED and "ESP ON" or "ESP OFF"
  210.  
  211. for _, player in ipairs(Players:GetPlayers()) do
  212. if ESP_ENABLED then
  213. addESP(player)
  214. else
  215. removeESP(player)
  216. end
  217. end
  218. end)
  219.  
  220. -- ===== NUEVOS JUGADORES =====
  221. Players.PlayerAdded:Connect(function(player)
  222. player.CharacterAdded:Connect(function()
  223. if ESP_ENABLED then
  224. addESP(player)
  225. end
  226. end)
  227. end)
  228.  
  229. Players.PlayerRemoving:Connect(function(player)
  230. removeESP(player)
  231. end)
  232. end;
  233. task.spawn(C_5);
  234. local function C_8()
  235. local script = LMG2L["LocalScript_8"];
  236. local Players = game:GetService("Players")
  237. local RunService = game:GetService("RunService")
  238.  
  239. local player = Players.LocalPlayer
  240. local camera = workspace.CurrentCamera
  241.  
  242. local Button = script.Parent
  243. local ScreenGui = Button:FindFirstAncestorOfClass("ScreenGui")
  244.  
  245. if ScreenGui then
  246. ScreenGui.ResetOnSpawn = false
  247. end
  248.  
  249. local AIM_DISTANCE = 250
  250. local SMOOTHNESS = 0.4
  251. local PREDICTION_MULTIPLIER = 0.22
  252. local GEAR_NAME = "Knife"
  253.  
  254. local AIM_ACTIVE = false
  255.  
  256. local function hasKnife(target)
  257. if target:FindFirstChild("Backpack") and target.Backpack:FindFirstChild(GEAR_NAME) then
  258. return true
  259. end
  260.  
  261. if target.Character and target.Character:FindFirstChild(GEAR_NAME) then
  262. return true
  263. end
  264.  
  265. return false
  266. end
  267.  
  268. local function getTarget()
  269. local closest = nil
  270. local shortestDistance = AIM_DISTANCE
  271.  
  272. local myChar = player.Character
  273. if not myChar or not myChar:FindFirstChild("HumanoidRootPart") then
  274. return nil
  275. end
  276.  
  277. for _, target in pairs(Players:GetPlayers()) do
  278. if target ~= player and target.Character and target.Character:FindFirstChild("HumanoidRootPart") then
  279.  
  280. if hasKnife(target) then
  281. local distance = (target.Character.HumanoidRootPart.Position - myChar.HumanoidRootPart.Position).Magnitude
  282.  
  283. if distance < shortestDistance then
  284. shortestDistance = distance
  285. closest = target
  286. end
  287. end
  288. end
  289. end
  290.  
  291. return closest
  292. end
  293.  
  294. -- TOGGLE
  295. Button.MouseButton1Click:Connect(function()
  296. AIM_ACTIVE = not AIM_ACTIVE
  297.  
  298. if AIM_ACTIVE then
  299. Button.Text = "Aim: ON"
  300. else
  301. Button.Text = "Aim: OFF"
  302. end
  303. end)
  304.  
  305. -- AIM LOOP
  306. RunService.RenderStepped:Connect(function()
  307. if not AIM_ACTIVE then return end
  308.  
  309. local myChar = player.Character
  310. if not myChar or not myChar:FindFirstChild("HumanoidRootPart") then return end
  311.  
  312. local target = getTarget()
  313. if not target or not target.Character then return end
  314.  
  315. local hrp = target.Character:FindFirstChild("HumanoidRootPart")
  316. if not hrp then return end
  317.  
  318. local velocity = hrp.AssemblyLinearVelocity
  319. local predictedPosition = hrp.Position + (velocity * PREDICTION_MULTIPLIER)
  320.  
  321. local newCFrame = CFrame.new(camera.CFrame.Position, predictedPosition)
  322. camera.CFrame = camera.CFrame:Lerp(newCFrame, SMOOTHNESS)
  323. end)
  324. end;
  325. task.spawn(C_8);
  326.  
  327. return LMG2L["ScreenGui_1"], require;
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment