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: whats wrong with this

Previous Thread :: Next Thread 
Josh3756 is not online. Josh3756
Joined: 11 Nov 2012
Total Posts: 1182
08 Nov 2015 04:06 PM
local GamepassGearPath = game.Lighting.Pumpkin
--local GamepassGearPath2 = game.ReplicatedStorage.GEARNAME



function respawned(char)
wait()
local player = game.Players:FindFirstChild(char.Name)
if char:FindFirstChild("Head") ~= nil then
if game:GetService("GamePassService"):PlayerHasPass(player,298970306) then
GamepassGearPath:Clone().Parent = player.Backpack
GamepassGearPath:Clone().Parent = player.StarterGear
--GamepassGearPath2:Clone().Parent = player.Backpack
--GamepassGearPath2:Clone().Parent = player.StarterGear
end
end
end
game.Workspace.ChildAdded:connect(respawned)
Report Abuse
Bebee2 is not online. Bebee2
Joined: 17 May 2009
Total Posts: 3985
08 Nov 2015 04:11 PM
Why not just do this instead?:


local GamepassGearPath = game.Lighting.Pumpkin
--local GamepassGearPath2 = game.ReplicatedStorage.GEARNAME
game.Players.PlayerAdded:connect(function(player)
player.CharacterAdded:connect(function(char)
if game:GetService("GamePassService"):PlayerHasPass(player,298970306) then
GamepassGearPath:Clone().Parent = player.Backpack
GamepassGearPath:Clone().Parent = player.StarterGear
--GamepassGearPath2:Clone().Parent = player.Backpack
--GamepassGearPath2:Clone().Parent = player.StarterGear
end
end)
end)
Report Abuse
Josh3756 is not online. Josh3756
Joined: 11 Nov 2012
Total Posts: 1182
08 Nov 2015 04:34 PM
every time i die i get 2 more
so if i die 5 times i have the item 5 times
Report Abuse
Josh3756 is not online. Josh3756
Joined: 11 Nov 2012
Total Posts: 1182
08 Nov 2015 04:37 PM
b
Report Abuse
HeyTheNamesAndrew is not online. HeyTheNamesAndrew
Joined: 22 Feb 2012
Total Posts: 186
08 Nov 2015 04:43 PM
try not putting it in starter gear, cause it seems when you die, you get it twice because it's put into both your backpack, and startergear, so you'll have it twice eternally, don't question, just try putting it only in the player's backpack



dr. fork
Report Abuse
Josh3756 is not online. Josh3756
Joined: 11 Nov 2012
Total Posts: 1182
08 Nov 2015 04:44 PM
thats not the problem
when i join the game i have 1 gear
when i die once i have 2 gear
when i die again i have 3 gear
idk
Report Abuse
HeyTheNamesAndrew is not online. HeyTheNamesAndrew
Joined: 22 Feb 2012
Total Posts: 186
08 Nov 2015 04:46 PM
try doing what bebee said, also this is seriously overly complicated, why would you make them get the gear when they die when you can just put it in their startergear



dr. fork
Report Abuse
Josh3756 is not online. Josh3756
Joined: 11 Nov 2012
Total Posts: 1182
08 Nov 2015 04:47 PM
i am trying what he said
but its not working
how would i make it put it into their starterpack with his script
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