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: Buy gun to both backpack and startergear?

Previous Thread :: Next Thread 
hugofrost is not online. hugofrost
Joined: 22 Sep 2015
Total Posts: 21
26 Oct 2017 01:24 AM
Hi, i have an npc shop where you can buy a gun but i want the player that bought the item also will spawn with. So he has bought it forever. My script: script.Parent.DialogChoiceSelected:connect(function(player, choice) if (choice == script.Parent.Choice1) then if (player.leaderstats.Credits.Value >= 900) then gun = game.Lighting["Glock18"]:clone() gun.Parent = player.Backpack ################################ = ################################ - 900 script.Parent.Choice1.ResponseDialog = "Good Bye!" else script.Parent.Choice1.ResponseDialog = "You Dont Have Credits..." end return end pls help =)
Report Abuse
iKelixCZ is not online. iKelixCZ
Joined: 31 Jan 2013
Total Posts: 114
26 Oct 2017 01:29 AM
pay ?


Report Abuse
serirus2 is not online. serirus2
Joined: 15 Sep 2012
Total Posts: 155
26 Oct 2017 03:28 AM
iKlen it's a simple script that wouldn't even take 10 mins


Hi '-'
Report Abuse
serirus2 is not online. serirus2
Joined: 15 Sep 2012
Total Posts: 155
26 Oct 2017 03:32 AM
Add this to your script just under where it says gun.Parent = player.Backpack

gun2 = game.Lighting["Glock18"]:clone()
gun2.Parent = player.StarterGear


Hi '-'
Report Abuse
hugofrost is not online. hugofrost
Joined: 22 Sep 2015
Total Posts: 21
26 Oct 2017 09:10 AM
So like this?

gun.Parent = player.Backpack
gun2 = game.Lighting["Glock18"]:clone()
gun2.Parent = player.StarterGear
Report Abuse
hugofrost is not online. hugofrost
Joined: 22 Sep 2015
Total Posts: 21
26 Oct 2017 09:14 AM
OMG i tried to fix it for hours and then you helped me! Thx so much.
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