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 » Scripting Helpers
Home Search
 

Re: Save Weapons on Death

Previous Thread :: Next Thread 
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
27 Sep 2012 02:49 PM
I would like someone to find/make me a "Working", Keep tools on death, I have looked through over 25+ models, Yet they remove my tools, Could someone get one that they tested?

Thanks,

Epic
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
27 Sep 2012 02:50 PM
StarterGear might be what you're looking for.
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
27 Sep 2012 02:51 PM
What do you mean, I have 2 tools for starter pack, But I mean:

Say you buy a gun from a Gui shop, Then you keep it even if you die, The same thing Vortex Security have.
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
27 Sep 2012 02:52 PM
A player has a

Backpack
StarterGear <-- Put tools there
PlayerGui
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
27 Sep 2012 02:53 PM
Put all the tools from the Lighting/Shop into the StarterGear?

-Epic
Report Abuse
XxChopSlaperxX is not online. XxChopSlaperxX
Joined: 09 Nov 2010
Total Posts: 3112
27 Sep 2012 02:55 PM
The tools bought from a player.

StarterPack:

Tool(s) that ALL players start with.

StarterGear:

Tool(s) that spawn with a person
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
27 Sep 2012 02:56 PM
When you say spawn, What do you mean?

Sorry Im being annoying :P
Report Abuse
Robert00001 is not online. Robert00001
Joined: 15 May 2010
Total Posts: 7965
27 Sep 2012 02:56 PM
Parent the item to the StarterGear

~ ROBERT00001 ~
~(ಠωಠ)~
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
27 Sep 2012 02:58 PM
How? :P
Report Abuse
Robert00001 is not online. Robert00001
Joined: 15 May 2010
Total Posts: 7965
27 Sep 2012 03:17 PM
What's the script that buys the item and inserts it into your backpack?
I can modify it so the item will persist after death

~ ROBERT00001 ~
~(ಠωಠ)~
Report Abuse
EpicComputerGenuis is not online. EpicComputerGenuis
Joined: 16 Mar 2012
Total Posts: 985
27 Sep 2012 11:41 PM
Well here is a section of it:

script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.Choice1) then
if (player.leaderstats.Credits.Value >= 500) then
gun = game.Lighting["M1911"]:clone()
gun.Parent = player.Backpack
player.leaderstats.Credits.Value = player.leaderstats.Credits.Value - 500
script.Parent.Choice1.ResponseDialog = "Have a nice day!"
else
script.Parent.Choice1.ResponseDialog = "You don't have enough credits!"
end
return
end
Report Abuse
thedeathmaster01 is not online. thedeathmaster01
Joined: 14 Mar 2010
Total Posts: 6331
28 Sep 2012 12:24 AM
script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.Choice1) then
if (player.leaderstats.Credits.Value >= 500) then
gun = game.Lighting["M1911"]:clone()
gun.Parent = player.StarterGear
player.leaderstats.Credits.Value = player.leaderstats.Credits.Value - 500
script.Parent.Choice1.ResponseDialog = "Have a nice day!"
else
script.Parent.Choice1.ResponseDialog = "You don't have enough credits!"
end
return
end
Report Abuse
shred1894 is not online. shred1894
Joined: 30 Aug 2009
Total Posts: 6515
28 Sep 2012 02:34 AM
You might want the person to have the gun when they buy it too...


script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.Choice1) then
if (player.leaderstats.Credits.Value >= 500) then
gun = game.Lighting["M1911"]:clone()
gun:Clone().Parent = player.Backpack
gun.Parent = player.StarterGear
player.leaderstats.Credits.Value = player.leaderstats.Credits.Value - 500
script.Parent.Choice1.ResponseDialog = "Have a nice day!"
else
script.Parent.Choice1.ResponseDialog = "You don't have enough credits!"
end
return
end


S-1894>(Supreme_Commander_of_Advanced_Zero)
Report Abuse
zoidberg656 is not online. zoidberg656
Joined: 05 Nov 2010
Total Posts: 32
06 Jul 2014 01:42 PM
This helped me and my dialog giver.

script.Parent.DialogChoiceSelected:connect(function(player, choice)
if (choice == script.Parent.Choice1) then
-- if (player.Backpack:findFirstChild("Pistol")==nil) then
pistol = game.Lighting["Pistol"]:clone()
pistol.Parent = player.StarterGear
-- end
end
end)

This script only puts it in the StarterGear, but you can edit it to also give you one in the Backpack.
Report Abuse
Previous Thread :: Next Thread 
Page 1 of 1
 
 
ROBLOX Forum » Game Creation and Development » Scripting Helpers
   
 
   
  • 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