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
 

Advanced Script...

Previous Thread :: Next Thread 
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
28 Oct 2012 03:52 AM
Hello,

I was wondering if you could make a script that does not allow Team 1 to kill Team Team 2, But Team 1 can kill Team 3?

Or

RRC cannot kill allies, But they can kill raiders.

-----------------
Your Sincerely,
-EpicComputerGenuis
Owner of R.R.C
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
28 Oct 2012 04:28 AM
Wow, This forum is going so slow...
Report Abuse
Aurarus is not online. Aurarus
Joined: 22 Dec 2008
Total Posts: 4761
28 Oct 2012 05:45 AM
You'll need to modify the weapons themselves.
Report Abuse
SourceLeak is not online. SourceLeak
Joined: 10 Jun 2012
Total Posts: 841
28 Oct 2012 05:57 AM
>EpicComputerGenius
>Is requesting scripts

i beat an elephant at poker
Report Abuse
nickbricknick464 is not online. nickbricknick464
Joined: 22 Aug 2008
Total Posts: 8302
28 Oct 2012 08:39 AM
I would make a _G method that deals with deal damage and if a player should receive damage from a certain player

Then use that in all my gun scripts.
Report Abuse
nickbricknick464 is not online. nickbricknick464
Joined: 22 Aug 2008
Total Posts: 8302
28 Oct 2012 08:46 AM
_G["TeamDamage"] = function(recepiant,sender,ammount)
if ammount < 1 then
return false
end
if recepiant.ClassName ~= "Player" or sender.ClassName ~= "Player" then
return false
end

if recepiant.TeamColor ~= sender.TeamColor then
recepiant.Character.Humanoid:TakeDamage(ammount)
end
end

--^ Put that in a seperate script

Then when you wanted to damage a target with a gun you would call

_G.TeamDamage(nickbricknick464,Telamon,96)

You have to use the two peoples player objects in the parameters.
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
28 Oct 2012 08:49 AM
Uh..Or..

Just check to see if the Character that was hit is on the Owner's team..

A function isn't needed.

【MᴀssɪᴠᴇGᴍᴀɴ】 - MG inc™ Copyright 2012©
Report Abuse
MassiveGman is not online. MassiveGman
Joined: 23 Jan 2011
Total Posts: 2019
28 Oct 2012 08:51 AM
Your way would work nick, I'm just saying.

【MᴀssɪᴠᴇGᴍᴀɴ】 - MG inc™ Copyright 2012©
Report Abuse
nickbricknick464 is not online. nickbricknick464
Joined: 22 Aug 2008
Total Posts: 8302
28 Oct 2012 08:52 AM
Okay,

I just like functioning things so It would be easy to implement into say a dozen guns quickly.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
28 Oct 2012 08:55 AM
Wow, Sour is right, o.e... EpicComputerGenius can't script... Wow, not a genius huh?
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
29 Oct 2012 02:08 AM
Umm... Thanks to those of you who actually helped me.

The people that were mocking me.... P.A.T.H.E.T.I.C.
Report Abuse
CeaselessSoul is not online. CeaselessSoul
Joined: 03 Jul 2012
Total Posts: 7506
29 Oct 2012 06:14 PM
Says the wannabe.
Report Abuse
Taniss99 is not online. Taniss99
Joined: 15 Dec 2007
Total Posts: 1707
29 Oct 2012 06:16 PM
Laughing at the "EpicComputerGenius" who can't script, calling everyone "P.A.T.H.E.T.I.C" by saying simple facts.
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