MatLumber2

Untitled

Feb 5th, 2024
12
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.78 KB | None | 0 0
  1. local DiscordLib = loadstring(game:HttpGet("https://raw.githubusercontent.com/bloodball/-back-ups-for-libs/main/discord"))()
  2.  
  3. local Part = Instance.new("Part", workspace)
  4. Part.Name = "Running Part"
  5. Part.Position = Vector3.new(0, 1000, 0)
  6. Part.Anchored = true
  7. Part.CanCollide = true
  8. Part.Size = Vector3.new(5, 1, 5)
  9.  
  10. local Plr = game:GetService("Players").LocalPlayer
  11.  
  12. local vim = game:GetService("VirtualInputManager")
  13.  
  14. function GetMurderer()
  15. for i, v in game:GetService("Players"):GetChildren() do
  16. if v.Backpack:FindFirstChild"Knife" or v.Character and v.Character:FindFirstChild("Knife") then return v.Character end
  17. end
  18. return nil
  19. end
  20.  
  21. local win = DiscordLib:Window("Murder Mystery 2")
  22.  
  23. local serv = win:Server("ByteHub","http://www.roblox.com/asset/?id=6031075938")
  24. function Notify(Title, Text, ButtonText)
  25. DiscordLib:Notification(Title, Text, ButtonText)
  26. end
  27. function Seperate(Tab) Tab:Seperator() end
  28. function Channel(Name) return serv:Channel(tostring(Name)) end
  29. function Label(Tab, Text) returnTab:Label(tostring(Text)) end
  30. function TextBox(Tab, Text, Placeholder, Callback) return Tab:Textbox(tostring(Text), tostring(Placeholder), true, Callback) end
  31. function DropDown(Tab, Text, Options, Callback) return Tab:Dropdown(tostring(Text), tostring(Options), Callback) end
  32. function Toggle(Tab, Text, Default, Callback) return Tab:Toggle(tostring(Text), Default, Callback) end
  33. function Button(Tab, Text, Callback) return Tab:Button(tostring(Text), Callback) end
  34. Notify("Developer Note!", "Hey! If you would like to support the developer make sure to join our discord!", "Okay!")
  35. local Main = Channel("Main")
  36. local SayMessageRequest = game:GetService("ReplicatedStorage").DefaultChatSystemChatEvents.SayMessageRequest
  37. local G = Channel("UI")
  38. Button(Main, "Murderer & Sherrif Finder", function()
  39. local a = game:GetService("Players"):GetChildren()
  40. table.remove(a, 1)
  41. for i, v in a do
  42. if v.Backpack:FindFirstChild("Gun") or v.Character:FindFirstChild("Gun") then
  43. if CMS then SayMessageRequest:FireServer(v.DisplayName.." is sherrif.", "normalchat") else Notify("Sherrif Found!", v.DisplayName.." is sherrif", "Okay") end
  44. elseif v.Backpack:FindFirstChild("Knife") or v.Character:FindFirstChild("Knife") then
  45. if not CMS then
  46. Notify("Murderer Found!" , v.DisplayName.." is murderer.", "Okay")
  47. else
  48. SayMessageRequest:FireServer(v.DisplayName.." is murderer.", "normalchat") end
  49. end
  50. end
  51. end)
  52. Button(Main, "Kill All (Murderer Only)", function()
  53. for i, v in game:GetService("Players"):GetChildren() do
  54. if Plr.Backpack:FindFirstChild("Knife") then Plr.Backpack.Knife.Parent = Plr.Character end
  55. Plr.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  56. vim:SendMouseButtonEvent(0,0,0,true,game,false,0)
  57. task.wait()
  58. vim:SendMouseButtonEvent(0,0,0,false,game,false,0)
  59. task.wait(.75)
  60. end
  61. end)
  62. Button(Main, "Teleport To Lobby", function()
  63. Plr.Character.HumanoidRootPart.CFrame = workspace.Lobby.Spawns.Spawn.CFrame
  64. end)
  65. Button(G, "Center UI", function()
  66. game:GetService("CoreGui"):WaitForChild("Discord").MainFrame.Position = UDim2.new(.5, 0, .5, 0)
  67. game:GetService("CoreGui"):WaitForChild("Discord").MainFrame.AnchorPoint = Vector2.new(.5,0.5)
  68. end)
  69. Button(Main, "Grab Gun", function()
  70. Plr.Character.HumanoidRootPart.CFrame = workspace.GunDrop.CFrame
  71. end)
  72. Toggle(Main, "Auto Escape Murderer", false, function(state)
  73. AE = state
  74. end)
  75. Toggle(Main, "Auto Shoot Murderer", false, function(state)
  76. ASM = state
  77. end)
  78. Toggle(Main, "Auto Take Gun", false, function(state)
  79. ATG = state
  80. end)
  81. Toggle(Main, "Chat Murderer and Sherrif Finder's results", false, function(state)
  82. CMS = state
  83. end)
  84. workspace.ChildAdded:Connect(function(child)
  85. task.delay(.25, function()
  86. if child.Name == "GunDrop" and ATG then
  87. local c = Plr.Character.HumanoidRootPart.CFrame
  88. Plr.Character.HumanoidRootPart.CFrame = child.CFrame
  89. Plr.Character.HumanoidRootPart.CFrame = c
  90. end
  91. end)
  92. end)
  93. function MurdererLoop()
  94. if ASM and Plr.Character and GetMurderer() and Plr.Character:FindFirstChild("Gun") or Plr.Backpack:FindFirstChild("Gun") then
  95. if Plr.Backpack:FindFirstChild("Gun") then Plr.Backpack.Gun.Parent = Plr.Character end
  96. local Murd = GetMurderer()
  97. Plr.Character.HumanoidRootPart.CFrame = Murd.HumanoidRootPart.CFrame + Vector3.new(11, 0, 0)
  98. Plr.Character.Gun.KnifeServer.ShootGun:InvokeServer(1, Murd.HumanoidRootPart.Position, "AH")
  99. end
  100. task.wait(.5)
  101. end
  102. function SecondLoop()
  103. if GetMurderer() == Plr.Character or GetMurderer() == nil or not AE then return end
  104. if (GetMurderer().HumanoidRootPart.Position-Plr.Character.HumanoidRootPart.Position).magnitude < 11 then
  105. Plr.Character.HumanoidRootPart.CFrame = Part.CFrame + Vector3.new(0, 3, 0)
  106. end
  107. end
  108. Main2 = Channel("Freezers & Runners")
  109. Button(Main2, "Unfreeze All", function()
  110. for i, v in game:GetService("Players"):GetChildren() do
  111. if v ~= Plr and not v.Backpack:FindFirstChild("Knife") or v.Character and not v.Character:FindFirstChild("Knife") then
  112. Plr.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  113. task.wait(.75)
  114. end
  115. end
  116. end)
  117. Button(Main2, "Freeze All", function()
  118. for i, v in game:GetService("Players"):GetChildren() do
  119. if v ~= Plr and not v.Backpack:FindFirstChild("Knife") or v.Character and not v.Character:FindFirstChild("Knife") then
  120. if Plr.Backpack:FindFirstChild("Knife") then Plr.Backpack.Knife.Parent = Plr.Character end
  121. Plr.Character.HumanoidRootPart.CFrame = v.Character.HumanoidRootPart.CFrame
  122. vim:SendMouseButtonEvent(0,0,0,true,game,false,0)
  123. task.wait()
  124. vim:SendMouseButtonEvent(0,0,0,false,game,false,0)
  125. task.wait(.75)
  126. end
  127. end
  128. end)
  129. game:GetService("RunService").Heartbeat:Connect(MurdererLoop)
  130. game:GetService("RunService").Heartbeat:Connect(SecondLoop)
  131. game:GetService("CoreGui"):WaitForChild("Discord").DisplayOrder = -1
Add Comment
Please, Sign In to add comment