Categories > Exploiting > Scripts >

Roblox murdermystery 2 (highlight chams + name esp)

Posts: 2

Threads: 1

Joined: Jun, 2023

Reputation: 0

Posted

only bug: when hero kills murderer person will still show up as hero

 

local LP = game:GetService("Players").LocalPlayer
local roles

function create()
    for i, v in pairs(game:GetService("Players"):GetPlayers()) do
        if v ~= LP and v.Character and not v.Character:FindFirstChild("Highlight") then
            local high = Instance.new("Highlight", v.Character)      
            high.OutlineColor = Color3.fromRGB(0, 0, 0)
            high.FillTransparency = 0.4
            v.Character.Highlight.Enabled = true
        end
    end
end

function update()
    for _, plr1 in pairs(game:GetService("Players"):GetPlayers()) do
        if plr1 ~= LP and plr1.Character and plr1.Character:FindFirstChild("Highlight") then
            local Highlight = plr1.Character:FindFirstChild("Highlight")
            if plr1.Name == Sheriff and IsAlive(plr1) then
                Highlight.FillColor = Color3.fromRGB(0, 0, 225)
            elseif plr1.Name == Murder and IsAlive(plr1) then
                Highlight.FillColor = Color3.fromRGB(225, 0, 0)
            elseif plr1.Name == Hero and IsAlive(plr1) then
                Highlight.FillColor = Color3.fromRGB(255, 250, 0)
            elseif IsAlive(plr1) then
                Highlight.FillColor = Color3.fromRGB(0, 255, 0)
            else
                Highlight.FillColor = Color3.fromRGB(255,255,255)
            end
        end
    end
end    

function IsAlive(plrr) 
    for i, v in pairs(roles) do
        if plrr.Name == i then
            if not v.Killed and not v.Dead then
                return true
            else
                return false
            end
        end
    end
end

game:GetService("RunService").Stepped:Connect(function()
    roles = game:GetService("ReplicatedStorage"):FindFirstChild("GetPlayerData", true):InvokeServer()
    for i, v in pairs(roles) do
        if v.Role == "Murderer" then
            Murder = i
        elseif v.Role == 'Sheriff'then
            Sheriff = i
        elseif v.Role == 'Hero'then
            Hero = i
        elseif v.Role == 'Innocent' then
            Innocent = i
        end
    end
    create()
    update()
end)

-- NameESP


local players = game:GetService("Players")
local localplr = players.LocalPlayer

local BillboardGui = Instance.new("BillboardGui")
local TextLabel = Instance.new("TextLabel")
BillboardGui.Name = "his"
BillboardGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
BillboardGui.Active = true
BillboardGui.AlwaysOnTop = true
BillboardGui.LightInfluence = 1.000
BillboardGui.Size = UDim2.new(0, 200, 0, 50)
BillboardGui.StudsOffset = BillboardGui.StudsOffset + Vector3.new(0,2.5,0)

TextLabel.Parent = BillboardGui
TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
TextLabel.BackgroundTransparency = 1.000
TextLabel.Size = UDim2.new(0, 200, 0, 50)
TextLabel.Font = Enum.Font.SourceSans
TextLabel.TextSize = 18.000
TextLabel.TextStrokeTransparency = 0

wait()

local runrun
runrun = game:GetService("RunService").Stepped:Connect(function()
    for _,plr in pairs(players:GetPlayers()) do
        if plr.Character ~= nil and plr.Character:FindFirstChild("Head") then
            if plr ~= players.LocalPlayer and plr.Character.Head:FindFirstChild("his") == nil then
                TextLabel.Text = plr.Name
                BillboardGui:Clone().Parent = plr.Character.Head
            end
            if plr ~= players.LocalPlayer then
                if plr.Character.Head:FindFirstChild("his") == nil then
                    wait(.314)
                else
                    if plr.Character or plr.CharacterAppearanceLoaded:Wait() then
                        local high1 = plr.Character:FindFirstChild("Highlight")
                        if high1 then
                            plr.Character.Head:FindFirstChild("his").TextLabel.TextColor3 = high1.FillColor            
                        else
                            wait(.314)
                        end
                    end
                end
            end
        end
    end
end)

  • 0

scripts, I love scripts

Posts: 151

Threads: 7

Joined: Feb, 2023

Reputation: 5

Replied

Vouch! Nice script, I've never seen someone detect roles without checking for a knife in their backpack, this script could have some reformatting.

 

Please use a Codeblock next time

 

Comments

V8sky 0 Reputation

Commented

Great tip, Ill see what i can do about it next time.

  • 0

Aetheron 5 Reputation

Commented

@V8sky, Goodluck, do you have discord, if so add me

 

aetheron#7096

  • 0

  • 0

https://media.discordapp.net/attachments/1134643100715855893/1138795549244539011/SiggyOnGod.png

Users viewing this thread:

( Members: 0, Guests: 1, Total: 1 )