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: Scripting help >.<

Previous Thread :: Next Thread 
HiImfar626 is not online. HiImfar626
Joined: 22 Jan 2015
Total Posts: 11
26 Sep 2017 02:46 AM
Item = game.ReplicatedStorage.Item:GetChildren()
local Item = Item[math.random(1,#Item)]:Clone()
Item.Parent = game.Players.LocalPlayer.Backpack

^^^
is my code.

I want this to happen every time a character spawns.
Is there any way to do that >_<
Report Abuse
nooneisback is not online. nooneisback
Joined: 28 Feb 2012
Total Posts: 1672
26 Sep 2017 03:36 AM
Player.CharacterAdded
Report Abuse
HiImfar626 is not online. HiImfar626
Joined: 22 Jan 2015
Total Posts: 11
30 Sep 2017 12:41 AM
How would it look like exactly.
I've tried

Item = game.ReplicatedStorage.Item:GetChildren()

game.Players.PlayerName.CharacterAdded:wait(1)
local Item = Weapons[math.random(1,#Item)]:Clone()
Item.Parent = game.Players.LocalPlayer.Backpack

but it doesnt seem to work :(
sorry >.<
Report Abuse
Kekulator is not online. Kekulator
Joined: 20 Jul 2011
Total Posts: 1833
30 Sep 2017 12:51 AM


game.Players.PlayerAdded:Connect(function(nPlr)

nPlr.CharacterAdded:Connect(function(Character)

-- feeeeed meeeeeh


end)

end)
Report Abuse
HiImfar626 is not online. HiImfar626
Joined: 22 Jan 2015
Total Posts: 11
30 Sep 2017 12:55 AM
thanks nut i realised im dumb and all i needed to do was put it in the starter pack not the starter gui XD
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