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: Change team on touch script?

Previous Thread :: Next Thread 
SimulationCreation is not online. SimulationCreation
Joined: 12 Jun 2012
Total Posts: 2425
11 Aug 2015 05:11 PM
I need help. Anyone have the script?



Official MiniMod of OT | Declared on 7/12/15 3:00 PM EST
Report Abuse
SimulationCreation is not online. SimulationCreation
Joined: 12 Jun 2012
Total Posts: 2425
11 Aug 2015 05:14 PM
bump



Official MiniMod of OT | Declared on 7/12/15 3:00 PM EST
Report Abuse
AwsomanDS is not online. AwsomanDS
Joined: 29 Dec 2010
Total Posts: 234
11 Aug 2015 05:39 PM
Try this and put it into the SpawnLocation, if it doesn't work, I am not the best at scripting, sorry.

local color=script.Parent.BrickColor
script.Parent.Touched:connect(function(hit)
if ((hit~=nil) and hit:findFirstChild("TeamColor")) then
hit.TeamColor=BrickColor.new(color)
elseif ((hit.Parent~=nil) and (hit.Parent:findFirstChild("TeamColor"))) then
hit.Parent.TeamColor=BrickColor.new(color)
end
end)
Report Abuse
brados123 is not online. brados123
Joined: 24 Nov 2012
Total Posts: 2143
11 Aug 2015 08:09 PM
You can either do a script, or you can get a spawn, delete all decals etc, do what you want with it then go to the properties of the spawn and it should say allow team change on touch. If you don't like that, I have a simple script.
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