|
| 04 Jan 2014 09:28 PM |
| All players on a specific team receive a tool, but not permanently, so when they respawn they dont have it anymore |
|
|
| Report Abuse |
|
|
| |
|
| |
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
|
| 04 Jan 2014 09:32 PM |
--Generic For Loop --Check TeamColor Property --:Clone() method --Parent it to their BackPack |
|
|
| Report Abuse |
|
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 04 Jan 2014 09:32 PM |
| a script which you need to make does that. |
|
|
| Report Abuse |
|
|
wubbzy301
|
  |
| Joined: 15 May 2010 |
| Total Posts: 1188 |
|
|
| 04 Jan 2014 09:32 PM |
tool = Instance.new("Tool") ColorHere = BrickColor.new() a = game.Players:GetChildren() for i=1,#a do if a[i].TeamColor = ColorHere then tool:Clone().Parent = a[i].Backpack end end
|
|
|
| Report Abuse |
|
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
wubbzy301
|
  |
| Joined: 15 May 2010 |
| Total Posts: 1188 |
|
|
| 04 Jan 2014 09:43 PM |
@IcyForever Why you wont change this: ColorHere = BrickColor.new()
Here's the example: ColorHere = BrickColor.new("White") |
|
|
| Report Abuse |
|
|
| |
|
xSIXx
|
  |
| Joined: 06 Aug 2010 |
| Total Posts: 9202 |
|
|
| 04 Jan 2014 09:45 PM |
stop bumping.
make the script yourself. |
|
|
| Report Abuse |
|
|
| |
|
wubbzy301
|
  |
| Joined: 15 May 2010 |
| Total Posts: 1188 |
|
|
| 04 Jan 2014 09:48 PM |
@IcyForever Select the Team Instance, then choose the color into white, Then change: BrickColor.new() into BrickColor.new("White") Make sure you on the White team. The tool will spawn into your backpack.
If doesn't work, put the script into workspace If doesn't work, give me a error output |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Jan 2014 09:52 PM |
if a[i].TeamColor = ColorHere then
a red line is shown below this line and says "then expected near =" |
|
|
| Report Abuse |
|
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
|
| 04 Jan 2014 09:53 PM |
put:
a[i].TeamColor == ColorHere |
|
|
| Report Abuse |
|
|
| |
|
|
| 04 Jan 2014 09:55 PM |
im kinda confused by this part of the script though :
tool = Instance.new("Tool") ColorHere = BrickColor.new("Bright Red") a = game.Players:GetChildren() for i=1,#a do if a[i].TeamColor == ColorHere then tool:Clone().Parent = a[i].Backpack
the tool isn't specified i don't understand |
|
|
| Report Abuse |
|
|
Azureous
|
  |
| Joined: 29 Jan 2012 |
| Total Posts: 25287 |
|
|
| 04 Jan 2014 09:56 PM |
| tool = game.Lighting['ToolName'] |
|
|
| Report Abuse |
|
|
wubbzy301
|
  |
| Joined: 15 May 2010 |
| Total Posts: 1188 |
|
|
| 04 Jan 2014 09:59 PM |
I getting confused now. Do a free model that is a tool then place into the workspace, then change this: tool = game.Workspace.AnyTool |
|
|
| Report Abuse |
|
|
|
| 04 Jan 2014 09:59 PM |
where do I put that part .-. the tool is in lighting, but in the script, where do i put that part? |
|
|
| Report Abuse |
|
|