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 » Scripting Helpers
Home Search
 

Re: tables and text

Previous Thread :: Next Thread 
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
02 Sep 2014 11:08 PM
tablethatgetstextinit = {}


while wait() do
script.Parent.Text = tablethatgetstextinit[#tablethatgetstextinit] ???
--loop here that adds player.Character NAMES into the table with table.insert
end
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
02 Sep 2014 11:17 PM
please help
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
02 Sep 2014 11:54 PM
dfasfsagawg
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
03 Sep 2014 12:08 AM
halp
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
03 Sep 2014 12:20 AM
save me wazap
Report Abuse
iYoshiFox is not online. iYoshiFox
Joined: 14 Apr 2012
Total Posts: 1058
03 Sep 2014 12:47 AM
local Players = {}

while wait() do
for _, v in pairs(game.Players:GetPlayers()) do
for _, a in pairs(Players) do
if v.Name ~= a.Name then
table.insert(Players, v.Name)
script.Parent.Text = v.Name
end
end
end
end
Report Abuse
lillil is not online. lillil
Joined: 02 Aug 2006
Total Posts: 2168
03 Sep 2014 01:05 AM
Players={}

game:GetService('Players').PlayerAdded:connect(function(p)
table.insert(Players,p.Name)
end)
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
03 Sep 2014 07:21 AM
so theres no way to set somethings text to contents of a table
Report Abuse
Moxiii is not online. Moxiii
Joined: 06 Mar 2012
Total Posts: 1198
03 Sep 2014 08:49 AM
script.Parent.Text=unpack(table)

i think that's it

though it might be:

script.Parent.Text=tostring(unpack(table))
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
03 Sep 2014 04:21 PM
oh yeah i forgot about that wow thanks mox :o
Report Abuse
Moxiii is not online. Moxiii
Joined: 06 Mar 2012
Total Posts: 1198
03 Sep 2014 04:47 PM
no problem c:

that's what this forum is for anyways
Report Abuse
masterblokz is not online. masterblokz
Joined: 17 Nov 2010
Total Posts: 9517
03 Sep 2014 04:50 PM
well since these guys made me think that i couldn't do it i deleted it and i have a new script please tell me if you can fix it because its not working c:





subnobl={}
while wait() do
print('runnin')
function healthclone()
if v then
e = v.Character.Health:Clone()
v.Character.Health:Destroy()
wait(7)
e.Parent = v.Character
end
end
for i, v in pairs(game.Players:GetChildren()) do
for _,a in pairs(subnobl) do
if v.Name ~= subnobl[#subnobl] then

if v.Character then
if v.Character.Humanoid then

if v.Character.Humanoid.Health <= 10 then
healthclone()
table.insert(subnobl,v.Name)
script.Parent.Text = script.Parent.Text..", "..v.Name.." is subduable/obliterable for 7 seconds!"

elseif v.Character.Humanoid.Health > 10 and v.Name == a.Name then
table.remove(subnobl, v.Name)
end end

end end
end
end
end

Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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