Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

random name per round? read desc

Asked by 11 years ago

how do i do make people have differnt names like gordan jake jack something like that per round like murder mystery thanks for reading guys :D

1 answer

Log in to vote
5
Answered by
Rurith 10
11 years ago
01names = {"Alpha","Bravo""Rurith"}
02 
03 
04function handout()
05for i,v in pairs(game.Players:GetChildren()) do
06if workspace:FindFirstChild(v.Name) then
07c = BrickColor.Random()
08local b = Instance.new("BillboardGui",workspace[v.Name].Head)
09b.Size =UDim2.new(6,0,2,0) b.StudsOffset = Vector3.new(0,1.5,0)
10local text = Instance.new("TextLabel",b) text.Size = UDim2.new(1,0,1,0) text.Text = names[math.random(1,#names)]
11text.TextColor3 = c.Color text.TextScaled = true text.BackgroundTransparency = 1
12for t,k in pairs(workspace[v.Name]:GetChildren()) do
13if k:IsA("Part") and k.Name ~= "HumanoidRootPart" then
14if k.Name == "Torso" then
15k.BrickColor =  c
View all 38 lines...
0
THANK YOU DUDE THE BEST GUY EVER UP THERE ABOVE MY COMMET THANkS imcoollikecool 8 — 11y
0
Your welcome Rurith 10 — 11y
Ad

Answer this question