Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
Does not work. I created a part, inserted that script into the part, replaced (TeamColorHere) with (Black) [Color of the team I want to switch to] and then created a neutral spawn. When I spawn neutrally, and step on the brick, it does not switch teams. |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
nothing works |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b10 |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b11 |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b12 |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
Keep on trying it….does not work. |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
b12 |
|
|
TeamName = "Red" --Name of team
--Change Nothing Below This Point--
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
--Inside the part. |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
THANK YOU! |
|
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
Wait hang on. So I have a neutral spawn and I made the team that you switch to unassignable. The change in teams is fine. But I keep spawning at the neutral spawn? How do I fix it? |
|
|
Sounds like a building problem. Go try BH. |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
It is something to do with the spawns. Is there anyway that instead of a neutral spawn, I could have a teleport to location on entering the game? |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
And just teleport there the first time and then not? |
|
|
I said try BH this is no longer a scripting problem -_- |
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
Ugh. Btw for the other post, I posted that before I came back here. So you have no ideas? |
|
|
Cheeso135Join Date: 2013-04-13 Post Count: 2016 |
ok…. |
|