LordGando
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 6723 |
|
|
| 08 Jul 2013 07:44 PM |
function Click(mouse) if script.Parent.Parent.Parent.Parent.Parent:IsInGroup(Ill put ID later) then script.Parent.Parent.Parent.Parent.Parent.TeamColor = BrickColor.new("Ill do this later") end end
script.Parent.MouseButton1Click:connect(Click)
How do I make it so, when you click the team colour (TEAM) will show up on the team leaderboard thing.
Also, how do I name the team instead of the colour |
|
|
| Report Abuse |
|
|
LordGando
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 6723 |
|
|
| 08 Jul 2013 07:46 PM |
Help
-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk |
|
|
| Report Abuse |
|
|
|
| 08 Jul 2013 07:49 PM |
| make your problem more clear |
|
|
| Report Abuse |
|
|
Xulp
|
  |
| Joined: 24 Apr 2012 |
| Total Posts: 451 |
|
|
| 08 Jul 2013 07:49 PM |
| The event is MouseButton1Down not, MouseButton1Click. |
|
|
| Report Abuse |
|
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
| |
|
LordGando
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 6723 |
|
|
| 08 Jul 2013 07:51 PM |
Okay, you know how there is team things on the side. Like Blue Team and Red Team. Well, I want it so if some one clicks one of the teams and is in the team it makes a team called Coolio and joins the team if the team is not made yet
-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk |
|
|
| Report Abuse |
|
|
LordGando
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 6723 |
|
|
| 08 Jul 2013 07:53 PM |
Help
-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk |
|
|
| Report Abuse |
|
|
Azarth
|
  |
| Joined: 17 Aug 2012 |
| Total Posts: 2760 |
|
|
| 08 Jul 2013 07:58 PM |
I don't see anywhere, where a person creates their own team.
--Put in a local script
local p = game.Players.LocalPlayer -- go back to script.Parent & and a regular script if you need to use :LoadCharacter()
findTeam = function(teamC) for i,v in pairs(game.Teams:GetChildren()) do if v.Name:lower() == teamC:lower() then return v.TeamColor end end end
function Click(mouse) --if p:IsInGroup(00000000) then --uncomment when you have the group num team = findTeam("The blue devils") p.TeamColor = BrickColor.new(tostring(team)) --end end
script.Parent.MouseButton1Click:connect(Click) |
|
|
| Report Abuse |
|
|
LordGando
|
  |
| Joined: 05 Jul 2011 |
| Total Posts: 6723 |
|
|
| 08 Jul 2013 08:01 PM |
So, when a person joins and goes on The Blue. A blue team (With name Teamc) will pop up on the screen (on the leaderboard thing) and the person will be in it.
-LᴏʀᴅGᴀɴᴅᴏ - Cows make milk, I drink milk |
|
|
| Report Abuse |
|
|