saltysnakeyt

Untitled

Nov 25th, 2019
131
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.87 KB | None | 0 0
  1. print("Made by Lua#0290!")
  2.  
  3. local LP = game.Players.LocalPlayer
  4. local Players = game:GetService("Players")
  5. local gsCoreGui = game.CoreGui
  6.  
  7. local function ExposeMurderer(Player)
  8. print(Player.ClassName)
  9. local AboveHead = Instance.new("BillboardGui")
  10. AboveHead.Parent = gsCoreGui
  11. if Player.ClassName == "Model" then
  12. AboveHead.Adornee = Player.Head
  13. elseif Player.ClassName == "Player" then
  14. AboveHead.Adornee = Player.Character.Head
  15. end
  16. AboveHead.Name = "rGET"..Player.Name
  17. AboveHead.Size = UDim2.new(0, 100, 0, 100)
  18. AboveHead.StudsOffset = Vector3.new(0, 1, 0)
  19. AboveHead.AlwaysOnTop = true
  20. local Info = Instance.new("TextLabel")
  21. Info.Parent = AboveHead
  22. Info.BackgroundTransparency = 1
  23. Info.Position = UDim2.new(0, 0, 0, 0)
  24. Info.Size = UDim2.new(1, 0, 0, 40)
  25. Info.TextColor3 = Color3.fromRGB(200,200,200)
  26. Info.TextStrokeTransparency = 0.5
  27. Info.TextSize = 15
  28. Info.Text = "Murderer: "..Player.Name
  29. Info.TextStrokeColor3 = Color3.fromRGB(255, 0, 0)
  30.  
  31. if Player.ClassName == "Model" then
  32. Player.Humanoid.Died:Connect(function()
  33. current = false
  34. AboveHead:Destroy()
  35. end)
  36. else
  37. Player.Character.Humanoid.Died:Connect(function()
  38. current = false
  39. AboveHead:Destroy()
  40. end)
  41. end
  42.  
  43. Players.PlayerRemoving:Connect(function(plr)
  44. if plr == Player.Name then
  45. current = false
  46. AboveHead:Destroy()
  47. end
  48. end)
  49. end
  50.  
  51. local function RevealSheriff(Player)
  52. print(Player.ClassName)
  53. local AboveHead = Instance.new("BillboardGui")
  54. AboveHead.Parent = gsCoreGui
  55. if Player.ClassName == "Model" then
  56. AboveHead.Adornee = Player.Head
  57. elseif Player.ClassName == "Player" then
  58. AboveHead.Adornee = Player.Character.Head
  59. end
  60. AboveHead.Name = "rGET"..Player.Name
  61. AboveHead.Size = UDim2.new(0, 100, 0, 100)
  62. AboveHead.StudsOffset = Vector3.new(0, 1, 0)
  63. AboveHead.AlwaysOnTop = true
  64. local Info = Instance.new("TextLabel")
  65. Info.Parent = AboveHead
  66. Info.BackgroundTransparency = 1
  67. Info.Position = UDim2.new(0, 0, 0, 0)
  68. Info.Size = UDim2.new(1, 0, 0, 40)
  69. Info.TextColor3 = Color3.fromRGB(200,200,200)
  70. Info.TextStrokeTransparency = 0.5
  71. Info.TextSize = 15
  72. Info.Text = "Sheriff: "..Player.Name
  73. Info.TextStrokeColor3 = Color3.fromRGB(0, 0, 255)
  74.  
  75. if Player.ClassName == "Model" then
  76. Player.Humanoid.Died:Connect(function()
  77. current = false
  78. AboveHead:Destroy()
  79. end)
  80. else
  81. Player.Character.Humanoid.Died:Connect(function()
  82. current = false
  83. AboveHead:Destroy()
  84. end)
  85. end
  86.  
  87. Players.PlayerRemoving:Connect(function(plr)
  88. if plr == Player.Name then
  89. current = false
  90. AboveHead:Destroy()
  91. end
  92. end)
  93. end
  94.  
  95. for i,v in pairs(game:GetDescendants()) do
  96. if v.ClassName == "Tool" then
  97. if v.Name == "Knife" then
  98. print(v.Parent.Name)
  99. if v.Parent.Name == "Backpack" then
  100. ExposeMurderer(v.Parent.Parent)
  101. else
  102. ExposeMurderer(v.Parent)
  103. end
  104. elseif v.Name == "Gun" then
  105. print(v.Parent.Name)
  106. if v.Parent.Name == "Backpack" then
  107. RevealSheriff(v.Parent.Parent)
  108. else
  109. RevealSheriff(v.Parent)
  110. end
  111. end
  112. end
  113. end
Advertisement
Add Comment
Please, Sign In to add comment