local sheriff
local murderer
local innocent = {}
local players = game.Players:GetPlayers()
murderer = players[math.random(#players)].Name
sheriff = players[math.random(#players)].Name
for i,v in pairs(players) do
if v.Name ~= sheriff and v.Name ~= murderer then
table.insert(innocent, v.Name)
end
end
print("MURDERER: "..murderer,"SHERIFF: "..sheriff, "INNOCENTS: "..table.concat(innocent,", "))
Ok, so I have tried the wiki, for about 4 hours, with no luck. This script will pick 1 murder, 1 sheriff, and the rest innocent, but I need another script within a gui needs to read this and check what role a player has, so it tells the players what role they have. Anyone have a solution

1 comment
so how would the other script check the players role?