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: Give player a tool when game starts

Previous Thread :: Next Thread 
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
26 Feb 2014 10:07 PM
How would I do this?
Sorry for nubbiness...
I also need it to switched a players team to "Humans" witch is Bright Red. And give them the linked sword that is in lighting.
Report Abuse
call23re is not online. call23re
Joined: 11 Nov 2010
Total Posts: 9070
26 Feb 2014 10:08 PM
Clone the tool and put it in the players character after the round starts.



-"The wise never quote."
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
26 Feb 2014 10:15 PM
How would I do this? And switch the team color?

player.TeamColor = "Bright Red" --???
sc = sword:clone()
sc.Parent = player.Backpack --???
These won't work! I can tell you that without running it.
Report Abuse
vintus12 is not online. vintus12
Joined: 16 Aug 2009
Total Posts: 39
26 Feb 2014 10:18 PM
The only way I know how to do this, is to go on Roblox studio, edit mode.

Then paste the tool you want the player to start with in the 'StarterPack' folder

If need be, you can search for a model of 'Parachute tool' for example and just drag it into the 'StarterPack'

I hope that makes sense
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
26 Feb 2014 10:23 PM
I'm talking like. Having you only get tools whne you are transfered to a certian team.
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 10:24 PM
Put it in starterpack,doesn't require scripting..
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 10:27 PM
If on a certain team?
--localscript :3
StarterGui
-LocalScript
Lighting
-Tool

plr = game.Players.LocalPlayer
wait(2.5)
while wait() do
if plr.TeamColor == BrickColor.new("Really red") and not plr.Backpack:findFirstChild("Tool") then
T = game.Lighting.Tool:clone()
T.Parent = plr.Backpack
end
end
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
26 Feb 2014 10:33 PM
What you are saying is put this in a localscript in StarterGui?
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 10:34 PM
Yes exactly :D
Report Abuse
IAmThe0nly0ne is not online. IAmThe0nly0ne
Joined: 01 Feb 2014
Total Posts: 770
26 Feb 2014 10:37 PM
Okay, is it safe to Re-Name "Tool" to "Sword"?
Report Abuse
islandmaker2012 is not online. islandmaker2012
Joined: 07 Nov 2012
Total Posts: 9327
26 Feb 2014 10:41 PM
Yes,change everywhere it says "Tool" to the tools name
Example
Lighting
-RocketLauncher
U would then change "Tool" to "RocketLauncher"
That sorta thing :)
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