This script so far everyones only added ends or told me to take my variables out of the for loop, Which I have done but it still fails to work, With no errors, Any Help?
Names = {"Spy","Cop","Innocent"}
Colors = {"Really red","Really blue","Really black","Earth green","Cyan","Pink"}
t = Instance.new("TextLabel")
g = Instance.new("SurfaceGui")
b = Instance.new("Part")
for i,v in pairs(game.Players:GetChildren()) do
v.Character.Head = true
v.Character.Head.b = true
v.Character.Head.b.g = true
b.Size = Vector3.new(3.8, 2.6, 0.8)
b.Position = Vector3.new(44.4, 7.54, -43.25)
b.CanCollide = false
b.Transparency = 1
t.BackgroundTransparency = 1
t.Size = Vector3.new{"0,800"},{"0,600"}
t.Font = "Legacy"
t.FontSize = "Size48"
t.Color = Colors[math.random(#Colors)]
t.Text = Names[math.random(#Names)]
if v.Character.Humanoid.Health == 0 then
v.Character.Head.b.g.t.Text = Names[math.random(#Names)]
end
end
This script is supposed to be for a murder mystery type game.

2 comments
Don't post 2 of the same questions. You should really redo the basics of scripting. You're jumping the gun.
You never set a parent.