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: Sorry Blockoo, One More Thing :P

Previous Thread :: Next Thread 
TheFluffyTaco45 is not online. TheFluffyTaco45
Joined: 11 Nov 2011
Total Posts: 340
20 Jan 2012 10:18 PM
How could you make it so when you killed someone, you gained points...
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
20 Jan 2012 10:20 PM
I have the answer, but I'm not miz...
oh well

~Would you like some butter with that latetoast?
Report Abuse
TheFluffyTaco45 is not online. TheFluffyTaco45
Joined: 11 Nov 2011
Total Posts: 340
20 Jan 2012 10:20 PM
thare, title change FTW
Report Abuse
blockoo is not online. blockoo
Joined: 08 Nov 2007
Total Posts: 17202
20 Jan 2012 10:33 PM
:D
Well, it depends on what weapons you're using. Usually how people do this is making "creator tags" - ObjectValues that are put into the character. Let me explain a little:

Person1 shoots Person2 with a gun. When the gun shoots, it puts an ObjectValue (or creator tag) into the bullet with a value of the person who fired, being Person1. When the bullet collides with Person2, the creator tag gets cloned into Person2's humanoid. That creator tag remains there until Person2 gets shot again. It removes all previous creator tags and puts in a new one.

Anyway, when Person2 dies, a game script checks the creator tag in Person2's humanoid. It sees that the killer is Person1, and awards Person1 with kills or points, whichever you prefer.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
20 Jan 2012 11:37 PM
Wow! I so would of answered this if I was here now !
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
20 Jan 2012 11:39 PM
too bad you weren't...
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
20 Jan 2012 11:40 PM
Too bad I took your dog and clipped it to a mans toenipples HA HA HA HHA

YOUR TOO LATE FOR NEWNIPPPPLES HA HA HA HA HA
Report Abuse
MrgamesNwatch is not online. MrgamesNwatch
Joined: 02 Feb 2009
Total Posts: 7729
20 Jan 2012 11:41 PM
.... uh, what???

~I've been to nil and back.
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
20 Jan 2012 11:41 PM
took bad I didn't have a dog in the first place... *OH SNAP*
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
20 Jan 2012 11:41 PM
too*
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
20 Jan 2012 11:44 PM
@blockoo

Nonononononono! Actually, that method of doing it is what ROBLOX's join script uses to count KOs on the website (you know, it shows your KOs and your WOs on the website, in your stats, on your profile. That's what I'm talking about). However, it doesn't need to be named 'creator'.

Here's a leaderboard that works exactly the same way as ROBLOX's official KOs/Wipeouts system: http://www.roblox.com/Kills-Deaths-Leaderboard-item?id=68109227

By looking at the code, you'll understand how it works.

When a player dies, you look in the humanoid for an objectvalue. You search the first one whose value is a Player. And you give a KO to that player. Then, you break the loop, as only one player can get a KO when a player dies.

That's how ROBLOX does it. Check the join script for more information.
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
20 Jan 2012 11:46 PM
@jul, I <3 it when people show that things dont need to be in a special format just because roblox does it that way :3
Report Abuse
JulienDethurens is not online. JulienDethurens
Joined: 11 Jun 2009
Total Posts: 11046
20 Jan 2012 11:48 PM
Actually, I'd suppose that, if you made a war game, you'd want the KOs to transfer on the website, as that's also part of what your users want (they want to get KOs on the website!).

Therefore, considering ROBLOX's system is the only way to get them KOs on the website, either you use ROBLOX's system too, either you use both ROBLOX's system and another system, meaning you'd use two systems at once.

Personally, I think the first way, using a single system: ROBLOX's system, is the most logical.
Report Abuse
miz656 is not online. miz656
Joined: 19 Jul 2010
Total Posts: 15336
20 Jan 2012 11:56 PM
@blue

Aren't youadog? You do remind meofassluuttt

OHHHHHHHHHHHHHH :P
Report Abuse
blueymaddog is not online. blueymaddog
Joined: 23 Sep 2009
Total Posts: 5459
20 Jan 2012 11:58 PM
nope, im a maddog :P theres a difference trolololololololol
Report Abuse
mizissick666 is not online. mizissick666
Joined: 22 Dec 2011
Total Posts: 6
21 Jan 2012 12:01 AM
:P

I got banned from this XD
Report Abuse
ElectricAxel is not online. ElectricAxel
Joined: 15 May 2009
Total Posts: 16239
21 Jan 2012 12:08 AM
It was time you would. I wish my moral values teacher would know english. -.-
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