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: how to give a gear to everyone?

Previous Thread :: Next Thread 
EXPCT is not online. EXPCT
Joined: 02 May 2011
Total Posts: 2013
31 Mar 2015 05:45 PM
for i,v in pairs (game.Players:GetPlayers()) do
player = v
gear = v.StarterPack:FindFirstChild("Rocket")
if not gear then
game.ReplicatedStorage.Rocket:Clone(player.Starterpack)
end
end

not working
Report Abuse
EXPCT is not online. EXPCT
Joined: 02 May 2011
Total Posts: 2013
31 Mar 2015 05:46 PM
1
Report Abuse
Argelius is not online. Argelius
Joined: 19 Jul 2010
Total Posts: 4047
31 Mar 2015 05:46 PM
You have StarterPack in one place and Starterpack in another
Report Abuse
EXPCT is not online. EXPCT
Joined: 02 May 2011
Total Posts: 2013
31 Mar 2015 05:47 PM
ah
just a sec
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
31 Mar 2015 05:47 PM
Clone doesn't have arguments
Doesn't it?
Report Abuse
EXPCT is not online. EXPCT
Joined: 02 May 2011
Total Posts: 2013
31 Mar 2015 05:48 PM
for i,v in pairs (game.Players:GetPlayers()) do
player = v
gear = v.Backpack:FindFirstChild("RocketLauncher")
if not gear then
game.ReplicatedStorage.Rocket:Clone(player.Backpack)
end
end


yea it does pretty sure
Report Abuse
EXPCT is not online. EXPCT
Joined: 02 May 2011
Total Posts: 2013
31 Mar 2015 05:49 PM
still doesnt work
Report Abuse
EXPCT is not online. EXPCT
Joined: 02 May 2011
Total Posts: 2013
31 Mar 2015 05:50 PM
2
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
31 Mar 2015 05:50 PM
Just tested, it doesn't.
Report Abuse
Argelius is not online. Argelius
Joined: 19 Jul 2010
Total Posts: 4047
31 Mar 2015 05:51 PM
Clone isn't taking arguments
Report Abuse
EXPCT is not online. EXPCT
Joined: 02 May 2011
Total Posts: 2013
31 Mar 2015 05:51 PM
hmmm
how would i do it then?
Report Abuse
Argelius is not online. Argelius
Joined: 19 Jul 2010
Total Posts: 4047
31 Mar 2015 05:52 PM
model = thing:Clone()
model.Parent = workspace or whatever
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
31 Mar 2015 05:55 PM
for i,v in pairs (game.Players:GetPlayers()) do
if v.Backpack:FindFirstChild("RocketLauncher") == nil then
game.ReplicatedStorage.Rocket:Clone().Parent = v.Backpack
end
end
Report Abuse
EXPCT is not online. EXPCT
Joined: 02 May 2011
Total Posts: 2013
31 Mar 2015 05:59 PM
Still doesn't work
Report Abuse
MrJoeyJoeJoey is not online. MrJoeyJoeJoey
Joined: 20 Aug 2011
Total Posts: 20787
31 Mar 2015 06:01 PM

for i,v in pairs (game.Players:GetPlayers()) do
local rocket = v.Backpack:FindFirstChild("RocketLauncher")
if not rocket then
game.ReplicatedStorage.Rocket:Clone().Parent = v.Backpack
end
end
Report Abuse
EXPCT is not online. EXPCT
Joined: 02 May 2011
Total Posts: 2013
31 Mar 2015 06:01 PM
got it to work i think, the script was playing before the character was loaded
Report Abuse
TimeTicks is not online. TimeTicks
Joined: 27 Apr 2011
Total Posts: 27115
31 Mar 2015 06:01 PM
what does your output / script analysis say?
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