Who's the Spy?
20.0k Views
91 Executions

Spy finder

Who's the Spy
progamermst
progamermstFirst script
3 years ago
Please login to perform these actions:

Spy finder is a Who's the Spy script for Roblox, uploaded to ScriptBlox on May 25, 2024.

Does it work?

No reports yet

No reports yet. Tried it? Be the first to say.

Also noticed:

Description

Writes spy/innocent above the player heads

Updates

  1. Script edited: Create script

View Raw
local Players = game:GetService("Players")

local function createLabel(character, text, textColor)
    local billboardGui = Instance.new("BillboardGui")
    billboardGui.Name = "StatusLabel"
    billboardGui.Adornee = character:FindFirstChild("Head")
    billboardGui.Size = UDim2.new(0, 100, 0, 50)
    billboardGui.StudsOffset = Vector3.new(0, 2, 0)
    billboardGui.AlwaysOnTop = true

    local textLabel = Instance.new("TextLabel")
    textLabel.Size = UDim2.new(1, 0, 1, 0)
    textLabel.BackgroundTransparency = 1
    textLabel.Text = text
    textLabel.TextColor3 = textColor
    textLabel.TextScaled = true
    textLabel.Font = Enum.Font.SourceSansBold
    textLabel.Parent = billboardGui

    billboardGui.Parent = character
end

local function checkPlayerForStatus(player)
    local boolFolder = player:FindFirstChild("boolFolder")
    if boolFolder then
        local isSpy = boolFolder:FindFirstChild("isSpy")
        if isSpy and isSpy:IsA("BoolValue") then
            if player.Character and player.Character:FindFirstChild("Head") then
                local existingLabel = player.Character:FindFirstChild("StatusLabel")
                if existingLabel then
                    existingLabel:Destroy()
                end
                if isSpy.Value then
                    createLabel(player.Character, "Spy", Color3.new(1, 0, 0))
                else
                    createLabel(player.Character, "Innocent", Color3.new(0, 1, 0))
                end
            end
        end
    end


Comments

4
Log in to join the conversation. Login
SkireScripts's profile picture
SkireScripts3 years ago(edited)

looks like its made by chat gpt lol

2
Kuroyami's profile picture
Kuroyami2 years ago(edited)

It working bro, but I need an script to know the word innocent get so I can win by guess the word please bro if you can make it, I appreciate it

1
skip_1st's profile picture
skip_1st3 years ago(edited)

how to work doesn't work pls tell how

1
Tedy's profile picture
Tedy3 years ago(edited)

@progamermst can u do a script for little world pls

1