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
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
Cheeso135
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
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
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
|
| 05 Jul 2014 12:20 PM |
| Ok. So how do I uncheck the box? |
|
|
| Report Abuse |
|
|
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
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|
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
|
  |
| 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
|
  |
| Joined: 13 Apr 2013 |
| Total Posts: 2016 |
|
| |
|