generic image
Processing...
  • Games
  • Catalog
  • Develop
  • Robux
  • Search in Players
  • Search in Games
  • Search in Catalog
  • Search in Groups
  • Search in Library
  • Log In
  • Sign Up
  • Games
  • Catalog
  • Develop
  • Robux
   
ROBLOX Forum » Game Creation and Development » Scripting Helpers
Home Search
 

Re: Team Change

Previous Thread :: Next Thread 
LordGando is not online. 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 is not online. 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
ExtraTelamon is not online. ExtraTelamon
Joined: 26 Dec 2011
Total Posts: 4629
08 Jul 2013 07:49 PM
make your problem more clear
Report Abuse
Xulp is not online. Xulp
Joined: 24 Apr 2012
Total Posts: 451
08 Jul 2013 07:49 PM
The event is MouseButton1Down not, MouseButton1Click.
Report Abuse
Azarth is not online. Azarth
Joined: 17 Aug 2012
Total Posts: 2760
08 Jul 2013 07:49 PM
Xulp, both are valid.
Report Abuse
LordGando is not online. 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 is not online. 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 is not online. 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 is not online. 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
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • About Us
  • Jobs
  • Blog
  • Parents
  • Help
  • Terms
  • Privacy

©2017 Roblox Corporation. Roblox, the Roblox logo, Robux, Bloxy, and Powering Imagination are among our registered and unregistered trademarks in the U.S. and other countries.



Progress
Starting Roblox...
Connecting to Players...
R R

Roblox is now loading. Get ready to play!

R R

You're moments away from getting into the game!

Click here for help

Check Remember my choice and click Launch Application in the dialog box above to join games faster in the future!

Gameplay sponsored by:
Loading 0% - Starting game...
Get more with Builders Club! Join Builders Club
Choose Your Avatar
I have an account
generic image