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
 

Re: Can anyone see where I'm going wrong?

Previous Thread :: Next Thread 
Coutuex is not online. Coutuex
Joined: 07 Feb 2013
Total Posts: 33
12 Jan 2015 01:51 AM
Been working on this script for a while now and it clones what I want but it makes copies even if there is something named your name there. Anyone see what is wrong with this?

accounts = game.ServerStorage.Accounts:GetChildren()

function onSpawn(Char)
for i = 1, #accounts do
wait(1)
if (accounts[i].Name ~= Char.Name) then
b = script.Account:Clone()
b.Parent = game.ServerStorage.Accounts
b.Value = #accounts + 1
b.Name = Char.Name
end
end
end

game.Workspace.ChildAdded:connect(onSpawn)
Report Abuse
Coutuex is not online. Coutuex
Joined: 07 Feb 2013
Total Posts: 33
12 Jan 2015 01:59 AM
Bad time huh? Bumpity bump
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
12 Jan 2015 02:01 AM
You only collect the table once.
Report Abuse
Coutuex is not online. Coutuex
Joined: 07 Feb 2013
Total Posts: 33
12 Jan 2015 02:04 AM
How do I put the table in a loop to collect every spawn?
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
12 Jan 2015 02:05 AM
Take a guess -.-'
Report Abuse
Coutuex is not online. Coutuex
Joined: 07 Feb 2013
Total Posts: 33
12 Jan 2015 02:07 AM
nvm -.-'
Report Abuse
eLunate is not online. eLunate
Joined: 29 Jul 2014
Total Posts: 13268
12 Jan 2015 02:10 AM
I think it's fairly obvious where you're supposed to put it.
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