eren2481

Untitled

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