Advertisement
RobloxLuaDeveloper

MM2 EASYHUB SCRIPT [OUTDATED]

Dec 9th, 2023 (edited)
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 25.80 KB | None | 0 0
  1. -- THIS SCRIPTS IS VERY OUTDATED, THINGS IN THIS SCRIPT JUST BROKEN AND GOT PATCHED, MAY TRIGGER DETECTIONS [POTENTIAL BANS] --
  2.  
  3. -- Murder Mystery EasyHub [OpenSource]
  4. --[[
  5. Update Logs :
  6. + Fixed Some Unexpected Bugs [PlayerEsp,GunEsp,RagdollRemover]
  7. + Added Bug Reporter [May Temporary]
  8. + Rewrite all Codes for Bug Fixes
  9. + Fixed Some Bugs
  10. ]]
  11.  
  12. local StarterGui = game:GetService("StarterGui")
  13. local function Notif(title,text,time,button)
  14.     local Setting = {
  15.         Title = title,
  16.         Text = text,
  17.         Duration = time
  18.     }
  19.     if button then
  20.         Setting.Button1 = "OK"
  21.     end
  22.     StarterGui:SetCore("SendNotification",Setting)
  23. end
  24.  
  25. local Success, Error = pcall(function()
  26.  
  27. if not game:GetService("CoreGui"):FindFirstChild("Loaded") then
  28. if game.PlaceId == 142823291 then
  29.  
  30. local Players = game:GetService("Players")
  31. local LocalPlayer = Players.LocalPlayer
  32. local LocalName = LocalPlayer.Name
  33. local CoreGui = game:GetService("CoreGui")
  34. local RunService = game:GetService("RunService")
  35. local Heartbeat = RunService.Heartbeat
  36. local RS = game:GetService("ReplicatedStorage")
  37.  
  38. local Detector = Instance.new("Folder",CoreGui)
  39. Detector.Name = "Loaded"
  40.  
  41. local EspFolder = Instance.new("Folder",CoreGui)
  42. EspFolder.Name = "Object"
  43. local GunEsp = Instance.new("Folder",EspFolder)
  44. GunEsp.Name = "Gun"
  45. local PlayerEsp = Instance.new("Folder",EspFolder)
  46. PlayerEsp.Name = "Player"
  47. local NameEsp = Instance.new("Folder",PlayerEsp)
  48. NameEsp.Name = "Name"
  49. local PlayerCham = Instance.new("Folder",PlayerEsp)
  50. PlayerCham.Name = "Body"
  51.  
  52. local Transparency = 0.7
  53.  
  54. Notif("Hello"..LocalName,"Loading EasyHub.",3,false)
  55.  
  56. -- Alive Checker
  57. local Roles
  58. function IsAlive(Player)
  59.     for i, v in pairs(Roles) do
  60.         if Player.Name == i then
  61.             if not v.Killed and not v.Dead then
  62.                 return true
  63.             else
  64.                 return false
  65.             end
  66.         end
  67.     end
  68. end
  69.  
  70. local Murderer
  71. local Sheriff
  72. local Hero
  73.  
  74. -- Get Roles
  75. task.spawn(function()
  76.     while wait(1) do
  77.         local Remotes = RS:FindFirstChild("Remotes")
  78.         if Remotes then
  79.             local Extras = Remotes:FindFirstChild("Extras")
  80.             if Extras then
  81.                 Roles = Extras:FindFirstChild("GetPlayerData", true):InvokeServer()
  82.                 if Roles then
  83.                     for i, v in pairs(Roles) do
  84.                         if v.Role == "Murderer" and Players:FindFirstChild(i) and IsAlive(Players:FindFirstChild(i)) then
  85.                             Murderer = i
  86.                         elseif v.Role == "Murderer" and Players:FindFirstChild(i) and not IsAlive(Players:FindFirstChild(i)) then
  87.                             Murderer = false
  88.                         elseif v.Role == "Sheriff" and Players:FindFirstChild(i) and IsAlive(Players:FindFirstChild(i)) then
  89.                             Sheriff = i
  90.                         elseif v.Role == "Sheriff" and Players:FindFirstChild(i) and not IsAlive(Players:FindFirstChild(i)) then
  91.                             Sheriff = false
  92.                         elseif v.Role == "Hero" and Players:FindFirstChild(i) and IsAlive(Players:FindFirstChild(i)) then
  93.                             Hero = i
  94.                         elseif v.Role == "Hero" and Players:FindFirstChild(i) and not IsAlive(Players:FindFirstChild(i)) then
  95.                             Hero = false
  96.                         end
  97.                     end
  98.                 end
  99.             end
  100.         end
  101.     end
  102. end)
  103.  
  104. -- Convert
  105. local function toObject(string)
  106.     local object = game
  107.     local objectNames = string.split(string, ".")
  108.     for _, objectName in ipairs(objectNames) do
  109.         object = object:FindFirstChild(objectName)
  110.         if not object then
  111.             return nil
  112.         end
  113.     end
  114.     return object
  115. end
  116.  
  117. -- Color
  118. local function getColor(object,type)
  119.     if object == "Innocent" and type == "Solid" then
  120.         return Color3.new(0,255,0)
  121.     elseif object == "Innocent" and type == "Cham" then
  122.         return Color3.fromRGB(75, 151, 75)
  123.     elseif object == "Innocent" and type == "ESP" then
  124.         return Color3.fromRGB(75, 255, 75)
  125.     elseif object == "Sheriff" and type == "Solid" then
  126.         return Color3.new(0,0,255)
  127.     elseif object == "Sheriff" and type == "Cham" then
  128.         return Color3.fromRGB(98, 37, 209)
  129.     elseif object == "Sheriff" and type == "ESP" then
  130.         return Color3.fromRGB(75, 75, 255)
  131.     elseif object == "Murderer" and type == "Solid" then
  132.         return Color3.new(255,0,0)
  133.     elseif object == "Murderer" and type == "Cham" then
  134.         return Color3.fromRGB(196, 40, 28)
  135.     elseif object == "Murderer" and type == "ESP" then
  136.         return Color3.fromRGB(255, 40, 29)
  137.     elseif object == "Hero" and type == "Solid" then
  138.         return Color3.new(255,255,0)
  139.     elseif object == "Hero" and type == "Cham" then
  140.         return Color3.fromRGB(245, 205, 48)
  141.     elseif object == "Hero" and type == "ESP" then
  142.         return Color3.fromRGB(245, 205, 48)
  143.     elseif object == "Gun" and type == "ESP" then
  144.         return Color3.fromRGB(121, 39, 176)
  145.     elseif object == "Gun" and type == "Cham" then
  146.         return Color3.fromRGB(98, 37, 209)
  147.     elseif object == "Trap" and type == "ESP" then
  148.         return Color3.fromRGB(255, 40, 29)
  149.     elseif object == "Trap" and type == "Cham" then
  150.         return Color3.fromRGB(196, 40, 28)
  151.     end
  152. end
  153.  
  154. -- Closest Player
  155. local function CLosestPlayer()
  156.     local ClosestPlayer
  157.     local HugeDistance = math.huge
  158.     for _,Player in pairs(Players:GetPlayers()) do
  159.         if Player ~= LocalPlayer then
  160.             local Character = LocalPlayer.Character
  161.             local oCharacter = Player.Character
  162.             if Character and oCharacter then
  163.                 local Root = Character:FindFirstChild("HumanoidRootPart")
  164.                 local oRoot = oCharacter:FindFirstChild("HumanoidRootPart")
  165.                 if Root and oRoot then
  166.                     local PlayerDistance = (Root.Position - oRoot.Position).Magnitude
  167.                     if PlayerDistance < HugeDistance then
  168.                         HugeDistance = PlayerDistance
  169.                         ClosestPlayer = Player
  170.                     end
  171.                 end
  172.             end
  173.         end
  174.     end
  175.     return ClosestPlayer
  176. end
  177.  
  178. -- Player Esp
  179. local function Esp(Player)
  180.     repeat wait() until Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") and Player.Character:FindFirstChildOfClass("Humanoid")
  181.     local Character = Player.Character
  182.     if Character then
  183.         local Head = Character:FindFirstChild("Head")
  184.         if Head then
  185.                 for _,Child in pairs(NameEsp:GetChildren()) do
  186.                     if Child:IsA("Folder") and Child.Name == Player.Name then
  187.                         Child:Destroy()
  188.                     end
  189.                 end
  190.                 local NameHolder = Instance.new("Folder",NameEsp)
  191.                 NameHolder.Name = Player.Name
  192.                 local BillboardGui = Instance.new("BillboardGui",NameHolder)
  193.                 BillboardGui.Adornee = Head
  194.                 BillboardGui.Name = Head:GetFullName()
  195.                 BillboardGui.Size = UDim2.new(0, 100, 0, 150)
  196.                 BillboardGui.StudsOffset = Vector3.new(0,1,0)
  197.                 BillboardGui.AlwaysOnTop = true
  198.                 local TextLabel = Instance.new("TextLabel",BillboardGui)
  199.                 TextLabel.BackgroundTransparency = 1
  200.                 TextLabel.Position = UDim2.new(0, 0, 0, -50)
  201.                 TextLabel.Size = UDim2.new(0, 100, 0, 100)
  202.                 TextLabel.Font = Enum.Font.Gotham
  203.                 TextLabel.TextSize = 17
  204.                 TextLabel.TextColor3 = getColor("Innocent","ESP")
  205.                 TextLabel.TextStrokeTransparency = 0
  206.                 TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
  207.                 TextLabel.Text = Player.Name
  208.                 TextLabel.ZIndex = 0
  209.                 TextLabel.Name = Player.Name
  210.         end
  211.     end
  212. end
  213.  
  214. for _,Player in pairs(Players:GetPlayers()) do
  215.     if Player ~= LocalPlayer then
  216.         Esp(Player)
  217.     end
  218. end
  219.  
  220. Players.PlayerAdded:Connect(function(Player)
  221.     if Player ~= LocalPlayer then
  222.         Esp(Player)
  223.     end
  224. end)
  225.  
  226. Players.PlayerRemoving:Connect(function(Player)
  227.     if Player ~= LocalPlayer then
  228.         for _,Child in pairs(NameEsp:GetChildren()) do
  229.             if Child:IsA("Folder") and Child.Name == Player.Name then
  230.                 Child:Destroy()
  231.             end
  232.         end
  233.     end
  234. end)
  235.  
  236. Heartbeat:Connect(function()
  237.     for _,Child in pairs(NameEsp:GetChildren()) do
  238.         if Child:IsA("Folder") then
  239.             local BillboardGui = Child:FindFirstChildOfClass("BillboardGui")
  240.             if BillboardGui then
  241.                 local Object = toObject(BillboardGui.Name)
  242.                 if Object then
  243.                 BillboardGui.Adornee = Object
  244.                 end
  245.             end
  246.         end
  247.     end
  248. end)
  249.  
  250. -- Change Color
  251. Heartbeat:Connect(function()
  252.     for _, v in pairs(Players:GetPlayers()) do
  253.         if v ~= LocalPlayer then
  254.             local Folder = NameEsp:FindFirstChild(v.Name)
  255.             if Folder and Folder:IsA("Folder") then
  256.             local BillboardGui = Folder:FindFirstChildOfClass("BillboardGui")
  257.             if BillboardGui then
  258.                 local TextLabel = BillboardGui:FindFirstChild(v.Name)
  259.                 if TextLabel and TextLabel:IsA("TextLabel") then
  260.                     if v.Name == Sheriff and IsAlive(v) then
  261.                         TextLabel.TextColor3 = getColor("Sheriff","ESP")
  262.                     elseif v.Name == Murderer and IsAlive(v) then
  263.                         TextLabel.TextColor3 = getColor("Murderer","ESP")
  264.                     elseif v.Name == Hero and IsAlive(v) and Players:FindFirstChild(Sheriff) and not IsAlive(Players[Sheriff]) then
  265.                         TextLabel.TextColor3 = getColor("Hero","ESP")
  266.                     elseif v.Name == Hero and IsAlive(v) and not Players:FindFirstChild(Sheriff) then
  267.                         TextLabel.TextColor3 = getColor("Hero","ESP")
  268.                     elseif v.Name == Hero and IsAlive(v) then
  269.                         TextLabel.TextColor3 = getColor("Hero","ESP")
  270.                     elseif v.Name == Sheriff and not IsAlive(v) then
  271.                         TextLabel.TextColor3 = getColor("Innocent","ESP")
  272.                     elseif v.Name == Murderer and not IsAlive(v) then
  273.                         TextLabel.TextColor3 = getColor("Innocent","ESP")
  274.                     elseif v.Name == Hero and not IsAlive(v) then
  275.                         TextLabel.TextColor3 = getColor("Innocent","ESP")
  276.                     else
  277.                         TextLabel.TextColor3 = getColor("Innocent","ESP")
  278.                     end
  279.                 end
  280.             end
  281.         end
  282.     end
  283. end
  284. end)
  285.  
  286. -- Gun Drop Esp
  287. local function PESP(Parent,Adornee,Color3)
  288.     local a = Instance.new("BoxHandleAdornment",Parent)
  289.     a.Name = Adornee.Name.."_PESP"
  290.     a.Adornee = Adornee
  291.     a.AlwaysOnTop = true
  292.     a.ZIndex = 0
  293.     a.Size = Adornee.Size
  294.     a.Transparency = Transparency
  295.     a.Color3 = Color3
  296. end
  297.  
  298. local function NESP(Adornee,Parent,Color3,Text)
  299.     local BillboardGui = Instance.new("BillboardGui",Parent)
  300.     BillboardGui.Adornee = Adornee
  301.     BillboardGui.Name = Adornee.Name.."_NESP"
  302.     BillboardGui.Size = UDim2.new(0, 100, 0, 150)
  303.     BillboardGui.StudsOffset = Vector3.new(0,1,0)
  304.     BillboardGui.AlwaysOnTop = true
  305.     local TextLabel = Instance.new("TextLabel",BillboardGui)
  306.     TextLabel.BackgroundTransparency = 1
  307.     TextLabel.Position = UDim2.new(0, 100, 0, 100)
  308.     TextLabel.Size = UDim2.new(0, 100, 0, 100)
  309.     TextLabel.Font = Enum.Font.Gotham
  310.     TextLabel.TextSize = 17
  311.     TextLabel.TextColor3 = Color3
  312.     TextLabel.TextStrokeTransparency = 0
  313.     TextLabel.TextYAlignment = Enum.TextYAlignment.Bottom
  314.     TextLabel.Text = Text
  315.     TextLabel.ZIndex = 0
  316. end
  317.  
  318. for _,Child in pairs(workspace:GetChildren()) do
  319.     if Child.Name == "GunDrop" and Child:IsA("Part") then
  320.         PESP(GunEsp,Child,getColor("Gun","Cham"))
  321.         NESP(Child,GunEsp,getColor("Gun","ESP"),"Gun")
  322.     end
  323. end
  324.  
  325. workspace.ChildAdded:Connect(function(Child)
  326.     if Child.Name == "GunDrop" and Child:IsA("Part") then
  327.         PESP(GunEsp,Child,getColor("Gun","Cham"))
  328.         NESP(Child,GunEsp,getColor("Gun","ESP"),"Gun")
  329.     end
  330. end)
  331.  
  332. workspace.ChildRemoved:Connect(function(Child)
  333.     if Child.Name == "GunDrop" and Child:IsA("Part") then
  334.         for _,child in pairs(GunEsp:GetChildren()) do
  335.             if (child:IsA("BoxHandleAdornment") or child:IsA("BillboardGui")) and child.Adornee == Child then
  336.                 child:Destroy()
  337.             end
  338.         end
  339.     end
  340. end)
  341.  
  342. -- Player Cham
  343. local function Cham(Player)
  344.     if PlayerCham then
  345.         for _,Child in pairs(PlayerCham:GetChildren()) do
  346.             if Child:IsA("Folder") and Child.Name == Player.Name.."_CHM" then
  347.                 Child:Destroy()
  348.             end
  349.         end
  350.     end
  351.     local ChamHolder = Instance.new("Folder",PlayerCham)
  352.     ChamHolder.Name = Player.Name.."_CHM"
  353.     repeat wait() until Player.Character and Player.Character:FindFirstChild("HumanoidRootPart") and Player.Character:FindFirstChildOfClass("Humanoid")
  354.     for _,Child in pairs(Player.Character:GetChildren()) do
  355.         if Child:IsA("BasePart") and Child.Name ~= "KnifeDisplay" and Child.Name ~= "GunDisplay" then
  356.             local a = Instance.new("BoxHandleAdornment",ChamHolder)
  357.             a.Name = Child:GetFullName()
  358.             a.Adornee = Child
  359.             a.AlwaysOnTop = true
  360.             a.ZIndex = 0
  361.             a.Size = Child.Size
  362.             a.Transparency = Transparency
  363.             a.Color3 = getColor("Innocent","Cham")
  364.         end
  365.     end
  366. end
  367.  
  368. for _,Player in pairs(Players:GetPlayers()) do
  369.     if Player ~= LocalPlayer then
  370.         Cham(Player)
  371.     end
  372. end
  373.  
  374. Players.PlayerAdded:Connect(function(Player)
  375.     if Player ~= LocalPlayer then
  376.         Cham(Player)
  377.     end
  378. end)
  379.  
  380. Players.PlayerRemoving:Connect(function(Player)
  381.     if Player ~= LocalPlayer then
  382.         for _,Child in pairs(PlayerCham:GetChildren()) do
  383.             if Child:IsA("Folder") and Child.Name == Player.Name.."_CHM" then
  384.                 Child:Destroy()
  385.             end
  386.         end
  387.     end
  388. end)
  389.  
  390. Heartbeat:Connect(function()
  391.     for _,Child in pairs(PlayerCham:GetChildren()) do
  392.         if Child:IsA("Folder") then
  393.             for _,child in pairs(Child:GetChildren()) do
  394.                 if child:IsA("BoxHandleAdornment") then
  395.                     local Object = toObject(child.Name)
  396.                     if Object then
  397.                     child.Adornee = Object
  398.                     child.Size = Object.Size
  399.                     end
  400.                 end
  401.             end
  402.         end
  403.     end
  404. end)
  405.  
  406. -- Change Color
  407. Heartbeat:Connect(function()
  408.     for _, v in pairs(Players:GetPlayers()) do
  409.         if v ~= LocalPlayer and v.Character then
  410.             local ChamFolder = PlayerCham:FindFirstChild(v.Name.."_CHM")
  411.             if ChamFolder and ChamFolder:IsA("Folder") then
  412.                 for _,Cham in pairs(ChamFolder:GetChildren()) do
  413.                     if Cham:IsA("BoxHandleAdornment") then
  414.                         if v.Name == Sheriff and IsAlive(v) then
  415.                             Cham.Color3 = getColor("Sheriff","Cham")
  416.                         elseif v.Name == Murderer and IsAlive(v) then
  417.                             Cham.Color3 = getColor("Murderer","Cham")
  418.                         elseif v.Name == Hero and IsAlive(v) and game.Players:FindFirstChild(Sheriff) and not IsAlive(game.Players[Sheriff]) then
  419.                             Cham.Color3 = getColor("Hero","Cham")
  420.                         elseif v.Name == Hero and IsAlive(v) and not game.Players:FindFirstChild(Sheriff) then
  421.                             Cham.Color3 = getColor("Hero","Cham")
  422.                         elseif v.Name == Hero and IsAlive(v) then
  423.                             Cham.Color3 = getColor("Hero","Cham")
  424.                         elseif v.Name == Sheriff and not IsAlive(v) then
  425.                             Cham.Color3 = getColor("Innocent","Cham")
  426.                         elseif v.Name == Murderer and not IsAlive(v) then
  427.                             Cham.Color3 = getColor("Innocent","Cham")
  428.                         elseif v.Name == Hero and not IsAlive(v) then
  429.                             Cham.Color3 = getColor("Innocent","Cham")
  430.                         else
  431.                             Cham.Color3 = getColor("Innocent","Cham")
  432.                         end
  433.                     end
  434.                 end
  435.             end
  436.         end
  437.     end
  438. end)
  439.  
  440. -- Anti Lag
  441. Heartbeat:Connect(function()
  442.     for _,Player in pairs(Players:GetPlayers()) do
  443.         local Character = Player.Character
  444.         if Character then
  445.             local Knife = Character:FindFirstChild("KnifeDisplay")
  446.             if Knife then
  447.                 Knife:Destroy()
  448.             end
  449.             local Gun = Character:FindFirstChild("GunDisplay")
  450.             if Gun then
  451.                 Gun:Destroy()
  452.             end
  453.             local Pet = Character:FindFirstChild("Pet")
  454.             if Pet then
  455.                 Pet:Destroy()
  456.             end
  457.             for _,Child in pairs(Character:GetChildren()) do
  458.                 if Child:IsA("Tool") then
  459.                     local Handle = Tool:FindFirstChild("Handle")
  460.                     if Handle then
  461.                         local Chroma = Handle:FindFirstChild("Chroma")
  462.                         if Chroma then
  463.                             Chroma:Destroy()
  464.                         end
  465.                     end
  466.                 end
  467.             end
  468.         end
  469.     end
  470. end)
  471.  
  472. Heartbeat:Connect(function()
  473.     local Raggy = workspace:FindFirstChild("Raggy")
  474.     if Raggy and Raggy:IsA("Model") then
  475.         Raggy:Destroy()
  476.     end
  477. end)
  478.  
  479. for _,Child in pairs(workspace:GetChildren()) do
  480.     if Child:IsA("Model") or Child:IsA("Part") then
  481.         local Handle = Child:FindFirstChild("Handle")
  482.         if Handle then
  483.             local Chroma = Handle:FindFirstChild("Chroma")
  484.             if Chroma then
  485.                 Chroma:Destroy()
  486.             end
  487.         end
  488.     end
  489. end
  490.  
  491. workspace.ChildAdded:Connect(function(Child)
  492.     if Child:IsA("Model") or Child:IsA("Part") then
  493.         local Handle = Child:FindFirstChild("Handle")
  494.         if Handle then
  495.             local Chroma = Handle:FindFirstChild("Chroma")
  496.             if Chroma then
  497.                 Chroma:Destroy()
  498.             end
  499.         end
  500.     end
  501. end)
  502.  
  503. -- Remove Traps
  504. Heartbeat:Connect(function()
  505.     for _,Player in pairs(Players:GetPlayers()) do
  506.         if Player ~= LocalPlayer then
  507.             local Character = Player.Character
  508.             if Character then
  509.                 local Trap = Character:FindFirstChild("Trap")
  510.                 if Trap and Trap:IsA("Model") then
  511.                     Trap:Destroy()
  512.                 end
  513.             end
  514.         end
  515.     end
  516. end)
  517.  
  518. -- Murderer Knife Stab Reach + Speed Hack
  519. Heartbeat:Connect(function()
  520.     local Character = LocalPlayer.Character
  521.     if Character then
  522.         for _,Child in pairs(Character:GetChildren()) do
  523.             if Child:IsA("Tool") then
  524.                 local Handle = Child:FindFirstChild("Handle")
  525.                 local KnifeServer = Child:FindFirstChild("KnifeServer")
  526.                 local IsGun = Child:FindFirstChild("IsGun")
  527.                 if Handle and KnifeServer and not IsGun then
  528.                     Handle.Size = Vector3.new(10,10,10)
  529.                     Handle.Massless = true
  530.                     Handle.Anchored = false
  531.                     Handle.CanCollide = false
  532.                 end
  533.             end
  534.         end
  535.         local Humanoid = Character:FindFirstChildOfClass("Humanoid")
  536.         if Humanoid and Humanoid.WalkSpeed < 18 then
  537.             Humanoid.WalkSpeed = 18
  538.         end
  539.     end
  540. end)
  541.  
  542. -- Break Sheriff / Hero Gun
  543. task.spawn(function()
  544.     while wait() do
  545.         for _,Player in pairs(Players:GetPlayers()) do
  546.             if Player ~= LocalPlayer then
  547.                 local Character = Player.Character
  548.                 if Character then
  549.                     local Gun = Character:FindFirstChild("Gun") or Character:FindFirstChildOfClass("Tool")
  550.                     if Gun then
  551.                         local IsGun = Gun:FindFirstChild("IsGun")
  552.                         if IsGun and IsGun.Value == true then
  553.                             task.spawn(function()
  554.                                 local Success, Error = pcall(function()
  555.                                     local args = {
  556.                                         [1] = 1,
  557.                                         [2] = nil,
  558.                                         [3] = "AH"
  559.                                     }
  560.                                     local KnifeServer = Gun:FindFirstChild("KnifeServer")
  561.                                     if KnifeServer then
  562.                                         local ShootGun = KnifeServer:FindFirstChild("ShootGun")
  563.                                         if ShootGun then
  564.                                             ShootGun:InvokeServer(unpack(args))
  565.                                         end
  566.                                     end
  567.                                 end)
  568.                             end)
  569.                         end
  570.                     end
  571.                 end
  572.                 local Backpack = Player:FindFirstChildOfClass("Backpack")
  573.                 if Backpack then
  574.                     local Gun = Backpack:FindFirstChild("Gun") or Backpack:FindFirstChildOfClass("Tool")
  575.                     if Gun then
  576.                         local IsGun = Gun:FindFirstChild("IsGun")
  577.                         if IsGun and IsGun.Value == true then
  578.                             task.spawn(function()
  579.                                 local Success, Error = pcall(function()
  580.                                     local args = {
  581.                                         [1] = 1,
  582.                                         [2] = nil,
  583.                                         [3] = "AH"
  584.                                     }
  585.                                     local KnifeServer = Gun:FindFirstChild("KnifeServer")
  586.                                     if KnifeServer then
  587.                                         local ShootGun = KnifeServer:FindFirstChild("ShootGun")
  588.                                         if ShootGun then
  589.                                             ShootGun:InvokeServer(unpack(args))
  590.                                         end
  591.                                     end
  592.                                 end)
  593.                             end)
  594.                         end
  595.                     end
  596.                 end
  597.             end
  598.         end
  599.     end
  600. end)
  601.  
  602. -- Gun and Knife Silent Aim [BETA]
  603. local RawMetatable = getrawmetatable(game)
  604.     local OldNameCall = RawMetatable.__namecall
  605.     setreadonly(RawMetatable, false)
  606.    
  607.     RawMetatable.__namecall = newcclosure(function(Object, ...)
  608.        local NamecallMethod = getnamecallmethod()
  609.        local Arguments = {...}
  610.         if NamecallMethod == "InvokeServer" and tostring(Object) == "ShootGun" then
  611.         task.spawn(function()
  612.         if Arguments[2] ~= nil then
  613.             for _,Player in pairs(Players:GetPlayers()) do
  614.             if Player ~= LocalPlayer then
  615.                 if Murderer == Player.Name then
  616.                     local Character = Player.Character
  617.                     if Character then
  618.                         local Root = Character:FindFirstChild("HumanoidRootPart")
  619.                         if Root then
  620.                             local Velocity = Root.AssemblyLinearVelocity
  621.                             local Result = Root.Position + (Velocity * Vector3.new(1,0,1) * 0.1) + Vector3.new(0, Velocity.Y / 20, 0)
  622.                             local Success, Error = pcall(function()
  623.                                 Arguments[2] = Result
  624.                             end)
  625.                         end
  626.                     end
  627.                 end
  628.             end
  629.             end
  630.         end
  631.         end)
  632.         if not Success then
  633.             warn(Error)
  634.         end
  635.         elseif NamecallMethod == "FireServer" and tostring(Object) == "Throw" then
  636.         task.spawn(function()
  637.             local ClosestPlayer = ClosestPlayer()
  638.             if ClosestPlayer then
  639.                 local Character = ClosestPlayer.Character
  640.                 if Character then
  641.                     local Root = Character:FindFirstChild("HumanoidRootPart")
  642.                     if Root then
  643.                         local LpCharacter = LocalPlayer.Character
  644.                         if LpCharacter then
  645.                             local LpRoot = LpCharacter:FindFirstChild("HumanoidRootPart")
  646.                             if LpRoot then
  647.                                 local Velocity = Root.AssemblyLinearVelocity * Vector3.new(1,0,1)
  648.                                 local Magnitude = (Root.Position - LpRoot.Position).Magnitude
  649.                                 local Result = Root.Position + (Velocity * 0.5) * (Magnitude / 100)
  650.                                 local Success, Error = pcall(function()
  651.                                     Arguments[1] = CFrame.new(Result)
  652.                                     Arguments[2] = Result
  653.                                 end)
  654.                             end
  655.                         end
  656.                     end
  657.                 end
  658.             end
  659.         end)
  660.         if not Success then
  661.             warn(Error)
  662.         end
  663.         end
  664.    
  665.        return OldNameCall(Object, unpack(Arguments))
  666.     end)
  667.    
  668.     setreadonly(RawMetatable, true)
  669.  
  670. else
  671.     Notif("EasyHub","Game not Supported.",3,false)
  672.     script:Destroy()
  673. end
  674. elseif game:GetService("CoreGui"):FindFirstChild("Loaded") then
  675.     Notif("EasyHub","Script Already Loaded.",3,false)
  676.     script:Destroy()
  677. end
  678.  
  679. end)
  680.  
  681. -- Error Reporter [The Roblox Console its not working LOL]
  682. if not Success then
  683.     Notif("Error",Error,math.huge,false)
  684. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement