Advertisement
ThiagoRBLX_Alt

ROBLOX Murder Mystery OP Script [No Loadstring]

Feb 18th, 2020
3,838
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. -- This GUI was bypassed and without no loadstring by ThiagoRBLX_Alt
  2.  
  3. -- Z for Murderer and X for Sheriff, Enjoy!
  4. local er = false
  5. local Mouse = game:GetService"Players".LocalPlayer:GetMouse()
  6. local player = game.Players:GetChildren()
  7. workspace.ChildAdded:connect(function(child)
  8. if child.Name == "GunDrop" then
  9. local cb = Instance.new("BindableFunction")
  10. cb.OnInvoke = function(arg)
  11. if arg == "Get gun!" then
  12. workspace.GunDrop.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Head.Position)
  13. end
  14. end
  15. game:GetService("StarterGui"):SetCore("SendNotification",{
  16. Title = "The sheriff has died!",
  17. Text = "Grab their gun?",
  18. Duration = 5,
  19. Button1 = "Dismiss",
  20. Button2 = "Get gun!",
  21. Callback = cb
  22. })
  23. end
  24. end)
  25.  
  26. Mouse.KeyDown:Connect(function(Key)
  27. if Key == "x" then
  28. for i=1,#player do
  29. local USERID = game.Players:GetUserIdFromNameAsync(player[i].Name)
  30. local gun = player[i].Backpack:FindFirstChild("Gun")
  31. local revolver = player[i].Backpack:FindFirstChild("Revolver")
  32. if gun ~= nil or revolver ~= nil then
  33. game:GetService("StarterGui"):SetCore("SendNotification",{
  34. Title = "Sheriff",
  35. Text = "Their name is " .. player[i].Name .. "!",
  36. Icon = "https://web.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userid="..USERID,
  37. Duration = 5,
  38. Button1 = "Dismiss",
  39. })
  40. er = true
  41. elseif gun == nil and revolver == nil and i == #player then
  42. game:GetService("StarterGui"):SetCore("SendNotification",{
  43. Title = "Sheriff",
  44. Text = "No sheriff could be found!",
  45. Duration = 5,
  46. Button1 = "Dismiss",
  47. })
  48. end
  49. if er then
  50. er = false
  51. break
  52. end
  53. end
  54.  
  55. elseif Key == "z" then
  56. for i=1,#player do
  57. local USERID = game.Players:GetUserIdFromNameAsync(player[i].Name)
  58. local knife = player[i].Backpack:FindFirstChild("Knife")
  59. if knife ~= nil then
  60. game:GetService("StarterGui"):SetCore("SendNotification",{
  61. Title = "Murderer",
  62. Text = "Their name is " .. player[i].Name .. "!",
  63. Icon = "https://web.roblox.com/Thumbs/Avatar.ashx?x=100&y=100&Format=Png&userid="..USERID,
  64. Duration = 5,
  65. Button1 = "Dismiss",
  66. })
  67. er = true
  68. elseif knife == nil and i == #player then
  69. game:GetService("StarterGui"):SetCore("SendNotification",{
  70. Title = "Murderer",
  71. Text = "No murderer could be found!",
  72. Duration = 5,
  73. Button1 = "Dismiss",
  74. })
  75. end
  76. if er then
  77. er = false
  78. break
  79. end
  80. end
  81. end
  82. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement