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 » Building Helpers
Home Search
 

Re: Team Choosing System Help

Previous Thread :: Next Thread 
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 08:20 AM
So. I was directed here from Scripting Helpers. I basically have two teams. (So far) One neutral and auto assignable, and the other an actual team and not auto assignable. I have a brick that kills on touch and changes your team to the non-neutral team. So that is all fine and I am on the other team. When I spawn again, I spawn at the neutral spawn. How do I get it so that after the team change is successful, I begin to spawn at the new team's spawn? Sorry for the paragraph lol
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 08:25 AM
b1
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 08:29 AM
b2
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 08:31 AM
b3
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
05 Jul 2014 09:11 AM
I know this is is BH, but post your script in the kill brick.
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 11:34 AM
k.

I have two: (One kill script and the other thing)

TeamName = "Night's Watch"


local team = game:GetService("Teams"):FindFirstChild(TeamName)
if team then
script.Parent.Touched:connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
plr.TeamColor = team.TeamColor
end
end)
end

And the kill script:

script.Parent.Touched:connect(function(hit)
if not hit.Parent:findFirstChild("Humanoid") then return end
hit.Parent.Humanoid.Health = 0
end)
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 11:48 AM
b4
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
05 Jul 2014 12:10 PM
The player is still neutral.

http://wiki.roblox.com/index.php?title=Neutral_(Property)
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 12:20 PM
Ok. So how do I uncheck the box?
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 12:59 PM
how do I uncheck it? Which property in the spawn do I change?
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 01:05 PM
b5
Report Abuse
EgoMoose is not online. EgoMoose
Joined: 04 Feb 2009
Total Posts: 2896
05 Jul 2014 01:09 PM
TeamName = "Night's Watch"


local team = game:GetService("Teams"):FindFirstChild(TeamName)
if team then
script.Parent.Touched:connect(function(hit)
local plr = game.Players:GetPlayerFromCharacter(hit.Parent)
if plr then
plr.Neutral = false
plr.TeamColor = team.TeamColor
end
end)
end
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
05 Jul 2014 04:52 PM
Wait hang on. Sometimes I spawn at the neutral place, and other times I spawn at my actual teams' spawn? How do I get it so I only spawn where my team is supposed to?
Report Abuse
Cheeso135 is not online. Cheeso135
Joined: 13 Apr 2013
Total Posts: 2016
06 Jul 2014 03:10 AM
b1
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Building 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