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
 

how do i change the team of a player with a script

Previous Thread :: Next Thread 
theCJarmy7 is not online. theCJarmy7
Joined: 17 Jan 2015
Total Posts: 229
07 Feb 2016 10:43 PM
title says it. if you WANT to make me a script, use it with a .touch function. i dont want to use the spawns.
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Feb 2016 10:46 PM
player.TeamColor = BrickColor.new("NameOfBrickColorOfTeamHere")
Report Abuse
theCJarmy7 is not online. theCJarmy7
Joined: 17 Jan 2015
Total Posts: 229
07 Feb 2016 10:49 PM
in the output, it says:attempt to call a nil value
Report Abuse
gergy008 is not online. gergy008
Joined: 16 Mar 2008
Total Posts: 7039
07 Feb 2016 10:51 PM
You need to get the player, that wasn't a complete script.


Play today! So much fun the more people that join: http://www.roblox.com/games/2047642/NEW-Build-A-Fortune-v0-9-6-Fixes
Report Abuse
theCJarmy7 is not online. theCJarmy7
Joined: 17 Jan 2015
Total Posts: 229
07 Feb 2016 10:54 PM
i used this

function touch()
game.Players.LocalPlayer.TeamColor = BrickColor.new("Really black")
end

script.Parent.Touched:connect()
Report Abuse
cntkillme is not online. cntkillme
Joined: 07 Apr 2008
Total Posts: 44956
07 Feb 2016 10:56 PM
local function touch(hit)
local player = game.Players:GetPlayerFromCharacter(hit.Parent)
if player then player.TeamColor = BrickColor.new("Really black") end
end

script.Parent.Touched:connect(touch)
Report Abuse
theCJarmy7 is not online. theCJarmy7
Joined: 17 Jan 2015
Total Posts: 229
07 Feb 2016 10:59 PM
thank you so much
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