vendo88
|
  |
| Joined: 11 Jan 2011 |
| Total Posts: 769 |
|
|
| 21 Jun 2013 12:34 PM |
So, this script here, will only allow me to join the first team, RAA. It won't allow me to join the other two, Hostiles, and Visitors. I'm not sure what's causing the script to break. Is it that I need to remove the group ID part, I don't know. Here's the script...
local plr = game.Players.LocalPlayer repeat wait() until plr.Character local chr = plr.Character
script.Parent.dataFrame.RAA.MouseButton1Click:connect(function() if plr:IsInGroup(28356) then game.Players.LocalPlayer.TeamColor = game.Teams.RAA.TeamColor chr.Parent = workspace else return end end)
script.Parent.dataFrame.Visitors.MouseButton1Click:connect(function() if plr:IsInGroup() or plr:IsInGroup() or plr:IsInGroup() or plr:IsInGroup() or plr:IsInGroup() or plr:IsInGroup() and not plr:IsInGroup() then game.Players.LocalPlayer.TeamColor = game.Teams.Visitors.TeamColor chr.Parent = workspace else return end end)
script.Parent.dataFrame.Hostiles.MouseButton1Click:connect(function() if not plr:IsInGroup() then game.Players.LocalPlayer.TeamColor = game.Teams.Hostiles.TeamColor chr.Parent = workspace else return end end) |
|
|
| Report Abuse |
|