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
01 | names = { "Alpha" , "Bravo" "Rurith" } |
02 |
03 |
04 | function handout() |
05 | for i,v in pairs (game.Players:GetChildren()) do |
06 | if workspace:FindFirstChild(v.Name) then |
07 | c = BrickColor.Random() |
08 | local b = Instance.new( "BillboardGui" ,workspace [ v.Name ] .Head) |
09 | b.Size = UDim 2. new( 6 , 0 , 2 , 0 ) b.StudsOffset = Vector 3. new( 0 , 1.5 , 0 ) |
10 | local text = Instance.new( "TextLabel" ,b) text.Size = UDim 2. new( 1 , 0 , 1 , 0 ) text.Text = names [ math.random( 1 ,#names) ] |
11 | text.TextColor 3 = c.Color text.TextScaled = true text.BackgroundTransparency = 1 |
12 | for t,k in pairs (workspace [ v.Name ] :GetChildren()) do |
13 | if k:IsA( "Part" ) and k.Name ~ = "HumanoidRootPart" then |
14 | if k.Name = = "Torso" then |
15 | k.BrickColor = c |