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 » Club Houses » Let's Make a Deal
Home Search
 

Re: lmad scripters where r u

Previous Thread :: Next Thread 
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
31 Aug 2014 09:58 PM
im making a basketball game & i want to have every players name organized

so i have a model named players
& inside it is 8 stringvalues, named player1, player2, etc

i want it to change the value of them to the player's name

so player1 is mrpotatoman123

player2 is wakaflockaflame

etc

i realized this wouldnt work, itd rename more than just 1 player value

function PlayerEntered(newplayer)
plist = game.Workspace.players

if plist.Player1.Value == "none" then
plist.Player1.Value = newplayer.Name
end
end
if plist.Player2.Value == "none" then
plist.Player2.Value = newplayer.Name
end

game.Players.ChildAdded:connect(PlayerEntered)


wat do
Report Abuse
Qaeo is online. Qaeo
Joined: 27 Jan 2009
Total Posts: 29238
31 Aug 2014 10:00 PM
print helo world
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
31 Aug 2014 10:03 PM
nvm i got it debounce is love debounce is life

poker123456789 owes me 40k robux & theraptradingguest scammed vetrius
Report Abuse
DADREW is not online. DADREW
Joined: 07 Oct 2007
Total Posts: 1203
31 Aug 2014 10:03 PM
Why not just use a table / global table?

one script:
_G.players = {}

another script

wait()
game.Players.PlayerAdded:connect(function(player)
if (#_G.players > 8) then
table.insert(_G.players, player.Name)
--stuff
else
print'8 players'
end
end)


|| Karmavore || Add 70k posts || R$79 ||
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
31 Aug 2014 10:07 PM
idk wat table/global tables r lol

but i got the script done

poker123456789 owes me 40k robux & theraptradingguest scammed vetrius
Report Abuse
DADREW is not online. DADREW
Joined: 07 Oct 2007
Total Posts: 1203
31 Aug 2014 10:11 PM
this_is_a_table = {"here's a thing in a table", "sometimes used for admin commands", " or ban lists"}

_G.global_table = {"this is a global table", "they can be accessed through other scripts"}


|| Karmavore || Add 70k posts || R$79 ||
Report Abuse
TheOtherSheep is not online. TheOtherSheep
Joined: 27 Jun 2014
Total Posts: 2274
31 Aug 2014 10:11 PM
yes basketball game
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
31 Aug 2014 10:13 PM
bruh tables sound cool

ima start using those

poker123456789 owes me 40k robux & theraptradingguest scammed vetrius
Report Abuse
DADREW is not online. DADREW
Joined: 07 Oct 2007
Total Posts: 1203
31 Aug 2014 10:14 PM
yeah man tables r da best

heresAsentence = {"I", "love", "tables", "!"}
table.concat(heresAsentence, ' ')

>I love tables !


|| Karmavore || Add 70k posts || R$79 ||
Report Abuse
verbalAKspray is not online. verbalAKspray
Joined: 09 Jul 2014
Total Posts: 23685
31 Aug 2014 10:17 PM
amen

poker123456789 owes me 40k robux & theraptradingguest scammed vetrius
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Club Houses » Let's Make a Deal
   
 
   
  • 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