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: Anti-Tk

Previous Thread :: Next Thread 
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 07:27 PM
Okay, so I'm trying to make an anti-team kill script that doesn't kill anyone.
But my script just kills people.. How do I make it where the script doesn't kill anyone, it just makes it where if someone on your team gets shot, nothing happens?

Here's my script:
function OnTouch(hit) if hit.Parent ~= nil then if game.Players:FindFirstChild(hit.Parent.Name) ~= nil then opponent = game.Players:FindFirstChild(hit.Parent.Name) if opponent.TeamColor ~= script.Parent.creator.Value.TeamColor then tagHumanoid(hit.Parent.Humanoid) hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage untagHumanoid(hit.Parent.Humanoid) end end end script.Parent.Parent = nil end script.Parent.Touched:connect(OnTouch)
Report Abuse
crome60 is not online. crome60
Joined: 22 Nov 2008
Total Posts: 15266
18 Sep 2013 07:28 PM
"hit.Parent.Humanoid.Health = hit.Parent.Humanoid.Health - damage "

remove that kk
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 07:29 PM
Thanks not Mean Joe lol
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 07:30 PM
Now nobody can get hurt, not even non-teamates.
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 07:31 PM
Shut up and stop acting like you helped Cntkill
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 07:32 PM
You're stupid, get out.
I explained why what he said isn't going to do what you want stupid.
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 07:51 PM
No you didn't but go on since your a genius tell me how to do it then. Don't say learn script because I bet you don't know how.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 07:53 PM
Learn to script.
I don't know how to script, I never scripted anything in my life.
Can you help me learn, I would be very grateful.

All I know is that when I use free models, they never work!!! why!?
Report Abuse
crome60 is not online. crome60
Joined: 22 Nov 2008
Total Posts: 15266
18 Sep 2013 07:54 PM
If he didn't know how to script, then he wouldn't be here now wouldn't he?
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 08:01 PM
:O Owned XD
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 08:02 PM
Only smart people understand sarcasm, and that guy was talking to you, loge.

So you just dissed yourself, congratulations.
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 08:05 PM
Cnt whatever you say.

Crome it is not working mind showing the script to me in edited format ill paste you what i did in a minute
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 08:08 PM
and cnt your so super duper smart how about you stop hating and start helping? If crome's answer was wrong show me and tell me why.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 08:09 PM
I would of helped you, until you acted stupid, stupid
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 08:09 PM
No you just don't know it do you lol.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 08:11 PM
No you just don't know how to think lol
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 08:13 PM
See the only thing you have is good grammar lol.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 08:15 PM
See the only thing you have is stupidness lol.
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 08:16 PM
No I have common sense just poor grammar.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 08:17 PM
No you don't have common sense, just poor grammar.
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 08:18 PM
Hmm did you hear something no just a fly that farted in the wind okay {^.^}
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 08:19 PM
Oh god I think it's 7 years old.
Why did I waste time arguing with a little boy...
Report Abuse
logepal1 is not online. logepal1
Joined: 26 Apr 2010
Total Posts: 305
18 Sep 2013 08:20 PM
Why did you post at all if your not going to help in a help more speficily if i named everything you can get banned your flamming in a forum thread and not at alll helping because you have no idea how to.
Report Abuse
HannoBarca is not online. HannoBarca
Joined: 20 Aug 2012
Total Posts: 509
18 Sep 2013 08:21 PM
Dude. He did help. He said that it will not hurt anyone, even enemies. You need to calm down and man up, maybe take some grammar lessons and spelling lessons as well.

Oh, and some other things he helped you with:
- Learn what sarcasm is.
- Teach you how dumb you are.
- Teach you to shut up.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
18 Sep 2013 08:22 PM
I can't get banned, stupid, you are the one breaking the rules by spamming stupid.
And I do know how to help, but you denied it so I don't want to help you kid.
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