Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- print("Made by Lua#0290!")
- local LP = game.Players.LocalPlayer
- local Players = game:GetService("Players")
- local gsCoreGui = game.CoreGui
- local function ExposeMurderer(Player)
- print(Player.ClassName)
- local AboveHead = Instance.new("BillboardGui")
- AboveHead.Parent = gsCoreGui
- if Player.ClassName == "Model" then
- AboveHead.Adornee = Player.Head
- elseif Player.ClassName == "Player" then
- AboveHead.Adornee = Player.Character.Head
- end
- AboveHead.Name = "rGET"..Player.Name
- AboveHead.Size = UDim2.new(0, 100, 0, 100)
- AboveHead.StudsOffset = Vector3.new(0, 1, 0)
- AboveHead.AlwaysOnTop = true
- local Info = Instance.new("TextLabel")
- Info.Parent = AboveHead
- Info.BackgroundTransparency = 1
- Info.Position = UDim2.new(0, 0, 0, 0)
- Info.Size = UDim2.new(1, 0, 0, 40)
- Info.TextColor3 = Color3.fromRGB(200,200,200)
- Info.TextStrokeTransparency = 0.5
- Info.TextSize = 15
- Info.Text = "Murderer: "..Player.Name
- Info.TextStrokeColor3 = Color3.fromRGB(255, 0, 0)
- if Player.ClassName == "Model" then
- Player.Humanoid.Died:Connect(function()
- current = false
- AboveHead:Destroy()
- end)
- else
- Player.Character.Humanoid.Died:Connect(function()
- current = false
- AboveHead:Destroy()
- end)
- end
- Players.PlayerRemoving:Connect(function(plr)
- if plr == Player.Name then
- current = false
- AboveHead:Destroy()
- end
- end)
- end
- local function RevealSheriff(Player)
- print(Player.ClassName)
- local AboveHead = Instance.new("BillboardGui")
- AboveHead.Parent = gsCoreGui
- if Player.ClassName == "Model" then
- AboveHead.Adornee = Player.Head
- elseif Player.ClassName == "Player" then
- AboveHead.Adornee = Player.Character.Head
- end
- AboveHead.Name = "rGET"..Player.Name
- AboveHead.Size = UDim2.new(0, 100, 0, 100)
- AboveHead.StudsOffset = Vector3.new(0, 1, 0)
- AboveHead.AlwaysOnTop = true
- local Info = Instance.new("TextLabel")
- Info.Parent = AboveHead
- Info.BackgroundTransparency = 1
- Info.Position = UDim2.new(0, 0, 0, 0)
- Info.Size = UDim2.new(1, 0, 0, 40)
- Info.TextColor3 = Color3.fromRGB(200,200,200)
- Info.TextStrokeTransparency = 0.5
- Info.TextSize = 15
- Info.Text = "Sheriff: "..Player.Name
- Info.TextStrokeColor3 = Color3.fromRGB(0, 0, 255)
- if Player.ClassName == "Model" then
- Player.Humanoid.Died:Connect(function()
- current = false
- AboveHead:Destroy()
- end)
- else
- Player.Character.Humanoid.Died:Connect(function()
- current = false
- AboveHead:Destroy()
- end)
- end
- Players.PlayerRemoving:Connect(function(plr)
- if plr == Player.Name then
- current = false
- AboveHead:Destroy()
- end
- end)
- end
- for i,v in pairs(game:GetDescendants()) do
- if v.ClassName == "Tool" then
- if v.Name == "Knife" then
- print(v.Parent.Name)
- if v.Parent.Name == "Backpack" then
- ExposeMurderer(v.Parent.Parent)
- else
- ExposeMurderer(v.Parent)
- end
- elseif v.Name == "Gun" then
- print(v.Parent.Name)
- if v.Parent.Name == "Backpack" then
- RevealSheriff(v.Parent.Parent)
- else
- RevealSheriff(v.Parent)
- end
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment