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: Player Battle Teleportation.

Previous Thread :: Next Thread 
jackson2041 is not online. jackson2041
Joined: 09 May 2009
Total Posts: 470
01 May 2012 11:27 PM
So say you join the game, at a fighting game, And there is a script that teleports two humanoids into a room that is able to be watched by each and every player? I just need a simple suggestion about writing a script like this. I am not asking you to give me a script. Thank you.
Report Abuse
Varlund is not online. Varlund
Joined: 25 Nov 2011
Total Posts: 219
01 May 2012 11:51 PM
Random people?

players = game.Players:GetChildren();
if #players > 1 then
repeat
player1 = players[math.random(1, #players)];
player2 = players[math.random(1, #players)];
until player1.Name ~= player2.Name and player1 ~= nil and player2 ~= nil

print(player1.Name .. " VS " .. player2.Name);
else
print "Wut, not enough players!?";
end
Report Abuse
Varlund is not online. Varlund
Joined: 25 Nov 2011
Total Posts: 219
01 May 2012 11:55 PM
Typed a little too fast - Also add a wait() into that repeat loop, just in-case.


Also after the players are selected get their characters and Move them to the new positions.
Report Abuse
jackson2041 is not online. jackson2041
Joined: 09 May 2009
Total Posts: 470
02 May 2012 12:01 AM
Yes but i don't want specific people teleported, just people that are a the game.
Report Abuse
Varlund is not online. Varlund
Joined: 25 Nov 2011
Total Posts: 219
02 May 2012 12:09 AM
Then use that script and apply it to players in the game. Derpa derp. :D
Report Abuse
jackson2041 is not online. jackson2041
Joined: 09 May 2009
Total Posts: 470
02 May 2012 12:31 AM
I know but i want the people to be randomly picked, not me choosing.
Report Abuse
Varlund is not online. Varlund
Joined: 25 Nov 2011
Total Posts: 219
02 May 2012 12:46 AM
I am no longer going to reply since you aren't the brightest LED in the flashlight.
Report Abuse
jackson2041 is not online. jackson2041
Joined: 09 May 2009
Total Posts: 470
02 May 2012 01:26 AM
Varlund I didn't like you little smart remark you made infront of everybody on froums. You have no clue about my education or how inteligent i am. I don't find it correct for you to be that way towards me, so please keep the careless comments to your self. I am a starter scripter and maybe if you want me to understand explain it better.
Report Abuse
ozza is not online. ozza
Joined: 11 Oct 2007
Total Posts: 726
02 May 2012 01:34 AM
He explained it perfectly, along with giving you a script; which in every way complied to your needs. Now if you are too ignorant or dumb to understand that, then he was right. It doesn't matter if you're a starter scripter, we shouldn't even be giving you scripts. You should consider yourself lucky. Maybe you should test the script before you say it isn't what you need. OR, you could learn more about scripting before requesting something this high above your talents. Now, if you can't understand why this thread is over, then for one, Varlund was right, and two, you should leave this sub-forum. Now, get it?
Report Abuse
jackson2041 is not online. jackson2041
Joined: 09 May 2009
Total Posts: 470
02 May 2012 01:49 AM
Ozza i am not trying to be rude in any way but this is me and his conversation. I am awear that he gave me correct instruction, but I simply didn't understand the whole concept so he undermined my intelligence with a smart comment. It may have been a joke but it was not funny to me. Also I didnt ask him to give me scripts be just commented out of the blue trying to give me scripts. I just asked for a suggestion. Sorry for an argument I just think that comment was very uncalled for and you should understand that. Anyway thank you for the help.
Report Abuse
jackson2041 is not online. jackson2041
Joined: 09 May 2009
Total Posts: 470
02 May 2012 02:07 AM
Also the statement you made saying "we" shouldn't give you scripts is just plain ignorant. I was only talking to him and it looks like this forum
Appealed to you somehow. All I was trying to do is ascertain a scripting subject when he had to make
Smart comments and he could have just heard me
Out. I didnt fully understand. Also ozza
This forum will be closed when I want it to. I am the one who created the thread.
Report Abuse
vlekje513 is not online. vlekje513
Joined: 28 Dec 2010
Total Posts: 9057
02 May 2012 03:09 AM
Long forum, You have no clue about my education or how inteligent i am *Sigh Sigh*

jk...
Report Abuse
Varlund is not online. Varlund
Joined: 25 Nov 2011
Total Posts: 219
02 May 2012 07:35 PM
Bro.. bro.. Shaddup.
Report Abuse
88dragon6 is not online. 88dragon6
Joined: 23 Aug 2010
Total Posts: 3242
02 May 2012 08:11 PM
Entertaining.
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