generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripters
Home Search
 

list only showing name of me

Previous Thread :: Next Thread 
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
08 Feb 2015 07:06 AM
there's 4 players but when the functions are called, there's 4 labels but they only show my name

local tab = {}

createlist = function()
local orgf = Instance.new("Frame",script.Parent)
local gap = orgf.Size.Y.Scale
orgf.Position = UDim2.new(0, 0, 0 - script.Parent.TextLabel.Position.Y.Scale/10 + gap, 0)
local cur = 0
for i = 1, #tab do
cur = cur + 1
gap = gap + 0.05
local f = Instance.new("TextLabel",script.Parent)
f.Size = UDim2.new(0.7, 0, 0.05, 0)
f.Position = orgf.Position + UDim2.new(0,0, orgf.Position.Y.Scale + gap, 0)
f.BorderSizePixel = 0
f.BackgroundColor3 = Color3.new(2/255,4/255,5/255)
f.BackgroundTransparency = 0.7
f.Name = tab[cur]
f.FontSize = "Size12"
f.Font = "Legacy"
f.TextXAlignment = "Left"
f.Text = tab[cur]
end
orgf:Destroy()
end

_G.firstcheck = function()
wait(2)
for _, v in pairs(game.Players:GetPlayers()) do
local vgui = v.PlayerGui
if vgui.Alive.Value == true then
table.insert(tab, 1, v.Name)
print(tab)
createlist()
end
end
end

_G.cleanlist = function()
for _, cleanl in pairs(script.Parent:GetChildren()) do
for _, cleantab in pairs(tab) do
table.remove(tab, 1)
print(unpack(tab))
end
if cleanl.Name ~= "TextLabel" and cleanl:IsA("TextLabel") then
cleanl:Destroy()
end
end
end

_G.plrdied = function(whodied)
local label = script.Parent:FindFirstChild(whodied)
if label then
label.BackgroundColor3 = Color3.new(255,0,0)
local ltext = label.Text
label.Text = ltext.." =DEAD="
end
end
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
09 Feb 2015 10:25 AM
b1


Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
10 Feb 2015 10:42 AM
b1
Report Abuse
Badfitz100 is not online. Badfitz100
Joined: 03 Nov 2010
Total Posts: 12591
11 Feb 2015 11:51 AM
b
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image