
AsakangaHalo
Overlord
★★★★★
- Joined
- May 16, 2021
- Posts
- 9,632
she is into bestialityThis shit can't be real. She has to cheat on him somehow.
AnonyAnonymous Join Date: 2013-06-23 Post Count: 6332 | #139161657Thursday, July 03, 2014 7:13 PM CDT table = {player1 = 1, player2 = 2, player3 = 3, player4 = 4, enemy1, enemy2, enemy3, enemy4}if table[player1] < table[player2] thenprint("Player1 has defeated Player2")endIn the above example, I changed the the parenthesis into curley brackets which is the main method of creating a table, I turned each player into a variable containing the value of 1, and I removed some other unnecessary characters, I then add an if statement to check which has the greater value and if the child of table "player1" had a value lesser then child of table "player2" it would call the print function and print into the console "Player1 has defeated Player2" and then used an end to close it.If you want to implement this into the actual game, you'll probably need to use something such as a "IntValue" and from there use the .Value property, I'll link you to three guides from the Roblox Wiki to help you and maybe you'll find some use.http://wiki.roblox.com/index.php?title=Loopshttp://wiki.roblox.com/index.php?title=Function_dump/Table_manipulationhttp://wiki.roblox.com/index.php?title=Conditional_statement |