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 clone a Weapon into Starterpack??

Previous Thread :: Next Thread 
Al_Mustafa is not online. Al_Mustafa
Joined: 23 Jul 2016
Total Posts: 877
22 Jan 2017 11:41 AM
Idk, any script then post it. Rest in power, it's all about power, Squeeze two lemons together and really all you'll have is ##########
Report Abuse
Thedagz is not online. Thedagz
Joined: 10 Mar 2012
Total Posts: 798
22 Jan 2017 11:43 AM
starterpack or the player backpack?
Report Abuse
Al_Mustafa is not online. Al_Mustafa
Joined: 23 Jul 2016
Total Posts: 877
22 Jan 2017 11:50 AM
playerbackpack


Rest in power, it's all about power, Squeeze two lemons together and really all you'll have is sour.
Report Abuse
Thedagz is not online. Thedagz
Joined: 10 Mar 2012
Total Posts: 798
22 Jan 2017 11:55 AM
local Weapon = -- Put weapon here

local Player = -- Choose what player you want

Weapon:Clone().Parent = Player:FindFirstChild("Backpack")
Report Abuse
Al_Mustafa is not online. Al_Mustafa
Joined: 23 Jul 2016
Total Posts: 877
22 Jan 2017 12:09 PM
Doesn't work.


Rest in power, it's all about power, Squeeze two lemons together and really all you'll have is sour.
Report Abuse
KritikalGunzz is not online. KritikalGunzz
Joined: 10 Nov 2013
Total Posts: 1633
22 Jan 2017 12:09 PM
Where is the weapon located?
Report Abuse
Im_King is not online. Im_King
Joined: 14 May 2010
Total Posts: 2352
22 Jan 2017 12:10 PM
clone a weapon from lighting?



Sigh.. add 27,000 posts.
Report Abuse
Al_Mustafa is not online. Al_Mustafa
Joined: 23 Jul 2016
Total Posts: 877
22 Jan 2017 12:11 PM
in workspace, so I would need to put
game.Workspace.ClassicSword ?

Idk


Rest in power, it's all about power, Squeeze two lemons together and really all you'll have is sour.
Report Abuse
KritikalGunzz is not online. KritikalGunzz
Joined: 10 Nov 2013
Total Posts: 1633
22 Jan 2017 12:13 PM
Put it in ServerStorage then do


local weapon = game:GetService("ServerStorage"):WaitForChild("Weaponname")
weapon:Clone().Parent = desiredplayer.Backpack
Report Abuse
Im_King is not online. Im_King
Joined: 14 May 2010
Total Posts: 2352
22 Jan 2017 12:14 PM
local Gear = game.Workspace['GEAR NAME']:clone()
Gear.Parent = script.Parent.Parent.Parent.Parent.Parent.StarterGear
local Gear = game.Workspace['GEAR NAME']:clone()
Gear.Parent = script.Parent.Parent.Parent.Parent.Parent.Backpack
Gear.Handle.Anchored = false


Sigh.. add 27,000 posts.
Report Abuse
Al_Mustafa is not online. Al_Mustafa
Joined: 23 Jul 2016
Total Posts: 877
22 Jan 2017 12:21 PM
###### Workspace.Script:2: attempt to index field 'Parent' (a nil value) Rest in power, it's all about power, Squeeze two lemons together and really all you'll have is sour.
Report Abuse
GraphicsSettings is not online. GraphicsSettings
Joined: 12 Sep 2013
Total Posts: 2883
22 Jan 2017 12:38 PM
Store your "ClassicSword" into ReplicatedStorage or ServerStorage and clone it from there using either Script or LocalScript (script would be more less-efficient, as you need to define the player path in a more absolute way).

When cloning from ServerStorage, you will need to use a Script, since LocalScripts cannot access that.
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