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 » Scripters
Home Search
 

Re: Script help

Previous Thread :: Next Thread 
DeniedSettings is not online. DeniedSettings
Joined: 19 Apr 2016
Total Posts: 86
14 Jan 2017 12:30 PM
Does anyone have a script so that when a GUI TextButton is pressed it creates a team?
Report Abuse
Swordlust is not online. Swordlust
Joined: 05 Dec 2016
Total Posts: 476
14 Jan 2017 12:33 PM
local plr = game.Players.LocalPlayer
local button = script.Parent
local tc = "Royal purple"
local team = Instance.new("Team")
team.Name = "Purple Team"

button.MouseButton1Down:connect(function()
team.TeamColor = BrickColor.new(tc)
repeat wait() until team
plr.TeamColor = team
end)


Tips are always good | https://www.roblox.com/catalog/588125527/Tip
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripters
   
 
   
  • 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