|
| 09 Mar 2014 09:00 AM |
None of the keep tools scripts work! Can somebody find me an ACTUAL working keep tools script.
PS: If you don't know what keep tools is, it is a weapon saving script when you die. |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2014 09:17 AM |
| Use startergear. Keep tools script is old news. |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Mar 2014 09:24 AM |
| then make the shop insert the item into Backpack and StarterGear |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2014 09:35 AM |
| Is there a script for this? |
|
|
| Report Abuse |
|
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 09 Mar 2014 09:46 AM |
| Lord, paste ur shop script and i'll add it. |
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Mar 2014 11:04 AM |
print("Hello World!")
Door = script.Parent local debounce = false
function getPlayer(humanoid) local players = game.Players:children() for i = 1, #players do if players[i].Character.Humanoid == humanoid then return players[i] end end return nil end function onTouched(hit) if debounce == false then local human = hit.Parent:findFirstChild("Humanoid") if (human == nil) then return end local player = getPlayer(human) debounce = true if (player == nil) then return end local stats = player:findFirstChild("leaderstats") local sp = stats:findFirstChild("KOs") if sp == nil then return false end if (sp.Value >=2) then --Amount of how much the weapon will go for,Change "100". sp.Value = sp.Value - 2 --Put the same exact number here as you did above. print("Enough Money") game.Lighting.BambooKatana:clone().Parent = player.Backpack Door.BrickColor = BrickColor.new(21) wait(2) Door.BrickColor = BrickColor.new(37) debounce = false else debounce = false end end
end
connection = Door.Touched:connect(onTouched) |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2014 11:20 AM |
| game.Lighting.BambooKatana:clone().Parent = player.StarterGear |
|
|
| Report Abuse |
|
|
GFXdylan
|
  |
| Joined: 09 Feb 2013 |
| Total Posts: 679 |
|
|
| 09 Mar 2014 11:20 AM |
03-09-2014 09:04 AM print("Hello World!")
Door = script.Parent local debounce = false
function getPlayer(humanoid) local players = game.Players:children() for i = 1, #players do if players[i].Character.Humanoid == humanoid then return players[i] end end return nil end function onTouched(hit) if debounce == false then local human = hit.Parent:findFirstChild("Humanoid") if (human == nil) then return end local player = getPlayer(human) debounce = true if (player == nil) then return end local stats = player:findFirstChild("leaderstats") local sp = stats:findFirstChild("KOs") if sp == nil then return false end if (sp.Value >=2) then --Amount of how much the weapon will go for,Change "100". sp.Value = sp.Value - 2 --Put the same exact number here as you did above. print("Enough Money") game.Lighting.BambooKatana:clone().Parent = player.Backpack game.Lighting.BambooKatana:clone().Parent = player.StarterGear Door.BrickColor = BrickColor.new(21) wait(2) Door.BrickColor = BrickColor.new(37) debounce = false else debounce = false end end
end
connection = Door.Touched:connect(onTouched)
|
|
|
| Report Abuse |
|
|
| |
|
|
| 09 Mar 2014 11:41 AM |
How about this?
function saveWeapons(player) local bin = Instance.new("HopperBin") bin.Parent = game.Lighting bin.Name = player.Name local stuff = player.Backpack:GetChildren() for i = 1,#stuff do local name = stuff[i].Name if game.StarterPack:findFirstChild(name)==nil then stuff[i]:Clone().Parent = bin end end local char = player.Character:GetChildren() for i = 1,#char do if char[i].className == "Tool" then local name = char[i].Name if game.StarterPack:findFirstChild(name)==nil then char[i]:Clone().Parent = bin end end end end function onRespawned(player) local findBin = game.Lighting:findFirstChild(player.Name) if findBin~=nil then local stuff = findBin:GetChildren() for i = 1,#stuff do stuff[i]:Clone().Parent = player.Backpack end findBin:Remove() end player.Character.Humanoid.Died:connect(function() saveWeapons(player) end) end
function onPlayerEntered(newPlayer) newPlayer.Changed:connect(function (property) if (property == "Character") then onRespawned(newPlayer) end end) while true do if newPlayer.Character~=nil then break end wait() end newPlayer.Character.Humanoid.Died:connect(function() saveWeapons(newPlayer) end) end
game.Players.PlayerAdded:connect(onPlayerEntered) |
|
|
| Report Abuse |
|
|
|
| 09 Mar 2014 11:44 AM |
| Have you not listened to us? You don't need a save weapon script anymore. That's like 5 years old now. Just use the scripts they gave you that puts the weapons into the startergear. |
|
|
| Report Abuse |
|
|