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: Which script does this?

Previous Thread :: Next Thread 
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
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
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:30 PM
;p
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:31 PM
bump
Report Abuse
Azureous is not online. 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 is not online. 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 is not online. 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
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:37 PM
didn't work @wub
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:38 PM
bump'd
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:39 PM
bumpy
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:40 PM
bumper
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:41 PM
bumpi
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:43 PM
bumps
Report Abuse
wubbzy301 is not online. 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
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:45 PM
Didn't work, still.
Report Abuse
xSIXx is not online. xSIXx
Joined: 06 Aug 2010
Total Posts: 9202
04 Jan 2014 09:45 PM
stop bumping.

make the script yourself.
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:46 PM
Can't.
Report Abuse
wubbzy301 is not online. 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
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:49 PM
:l
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
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 is not online. Azureous
Joined: 29 Jan 2012
Total Posts: 25287
04 Jan 2014 09:53 PM
put:

a[i].TeamColor == ColorHere
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
04 Jan 2014 09:53 PM
That was simple...
Report Abuse
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
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 is not online. Azureous
Joined: 29 Jan 2012
Total Posts: 25287
04 Jan 2014 09:56 PM
tool = game.Lighting['ToolName']
Report Abuse
wubbzy301 is not online. 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
IcyForever is not online. IcyForever
Joined: 27 Dec 2013
Total Posts: 696
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
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