|
| 13 Apr 2012 09:53 PM |
I need help... Is there such things? If there is, please put the script coding down here. Or a model...
- Thanks ScaryLiamb752 |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Apr 2012 01:02 AM |
| I was thinking of script like: The person who enters in the game, is in 1 team. But then the person gets changed to another team automatically. |
|
|
| Report Abuse |
|
|
shred1894
|
  |
| Joined: 30 Aug 2009 |
| Total Posts: 6515 |
|
|
| 14 Apr 2012 02:06 AM |
I have done that for some of my group places. S-1894>() |
|
|
| Report Abuse |
|
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
|
| 14 Apr 2012 03:28 AM |
game.Players.PlayerAdded:connect(function(plyr) if plyr.Name == "" then plyr.TeamColor = game.Teams[""].TeamColor end end)
etc.... |
|
|
| Report Abuse |
|
|
| |
|
|
| 14 Apr 2012 06:18 PM |
@Phellem Ok, I tried your script, It didn't really work. Could you put notes in it. To make it much easier... |
|
|
| Report Abuse |
|
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
|
| 14 Apr 2012 07:53 PM |
I didn't give you the full code... I would never do such thing.
I gave you those lines so you can fill in the blanks and modified it. |
|
|
| Report Abuse |
|
|
|
| 15 Apr 2012 05:25 AM |
| I know, I did fill it in... Still didn't work. |
|
|
| Report Abuse |
|
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
| |
|
|
| 15 Apr 2012 11:15 PM |
game.Players.PlayerAdded:connect(function(plyr) if plyr.Name == "ScaryLiamb752","Player" then plyr.TeamColor = game.Teams["ScaryLiamb752/EpicallyBoy"].TeamColor end end)
The line "plyr.TeamColor = game.Teams["ScaryLiamb752/EpicallyBoy"].TeamColor" I think is wrong :\ |
|
|
| Report Abuse |
|
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
|
| 16 Apr 2012 12:21 PM |
isAdmin = {["ScaryLiamb752"]=true,["EpicallyBoy"]=true}
game.Players.PlayerAdded:connect(function(plyr) if plyr.Name:lower() == isAdmin[player.Name]:lower() then plyr.TeamColor = game.Teams["ScaryLiamb752/EpicallyBoy"].TeamColor end end) |
|
|
| Report Abuse |
|
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
|
| 16 Apr 2012 12:22 PM |
Forgot to put the source where I got the table from:
http://wiki.roblox.com/index.php/How_To:_Admin_Commands |
|
|
| Report Abuse |
|
|
|
| 16 Apr 2012 01:40 PM |
| game.Players.Whoever.TeamColor = BrickColor.new("Bright orange") |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2012 02:45 AM |
| ScaryLiamb752 here for now, OK. Ill test it out... |
|
|
| Report Abuse |
|
|
| |
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
|
| 18 Apr 2012 10:02 PM |
It worked for me. Is there a team named "ScaryLiamb752/EpicallyBoy"?
Please learn to code... it would surely be useful. |
|
|
| Report Abuse |
|
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
|
| 18 Apr 2012 10:20 PM |
My mistake. Try this:
local isAdmin = {"ScaryLiamb752","EpicallyBoy"}
function findPlayer(name) for _, v in ipairs(isAdmin) do if v:lower() == name:lower() then return v end end end
game.Players.PlayerAdded:connect(function(plyr) local user = findPlayer(plyr.Name) if user then plyr.TeamColor = game.Teams["ScaryLiamb752/EpicallyBoy"].TeamColor end end) |
|
|
| Report Abuse |
|
|
|
| 18 Apr 2012 10:57 PM |
as thek00lkid said,
game.Players.Whoever.TeamColor = BrickColor.new("Bright orange")
or you could make it a team change gui,
script.Parent.MouseButton1Down:connect(function() game.Players.LocalPlayer.TeamColor = BrickColor.new("Bright red") end)
or some commands allow you to team change onchatted. |
|
|
| Report Abuse |
|
|
| |
|
|
| 20 Apr 2012 07:38 AM |
| make a team for every player allowed in the server and make none of them auto assignable but neutral i think |
|
|
| Report Abuse |
|
|
Phellem
|
  |
| Joined: 04 Aug 2011 |
| Total Posts: 1984 |
|
| |
|