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
|
  |
| Joined: 31 Jan 2013 |
| Total Posts: 114 |
|
| |
|
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
|
  |
| 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
|
  |
| 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
|
  |
| 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 |
|
|