|
| 24 Jul 2014 05:22 PM |
| Does anyone have a previously made script that worked for them? |
|
|
| Report Abuse |
|
|
| |
|
| |
|
|
| 24 Jul 2014 05:30 PM |
| Yeah, like it will change weapons every time a new map is loaded. |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2014 05:36 PM |
| anyone have any tips they could give me on how to make one myself at least..? |
|
|
| Report Abuse |
|
|
dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
|
| 24 Jul 2014 05:44 PM |
Not really sure what your getting at but Ill assume you have a premade map script. Put some weapons in Replicated storage or something and use the :Clone() Command to put different weapons in your starter gear. To remove all weapons in the startergear for all players, do this:
Local players = game.Players:GetChildren()
For i = 1, #players do Local gear = players[i].StarterGear:GetChildren() For i = 1, #gear do --if gear[i].ClassName=="Tool" or gear[i].ClassName=="Hopperbin" then -- optional gear[i]:Destroy() --end end end |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2014 05:48 PM |
| like for every map loaded, i want new weapons |
|
|
| Report Abuse |
|
|
dansk
|
  |
| Joined: 24 Dec 2008 |
| Total Posts: 548 |
|
|
| 24 Jul 2014 05:58 PM |
Put weapons in some type of storage like lighting or replicated storage. Use the last post I did to clear players startergear(gear they start with) do
local player = game.Players:GetChildren()
For i = 1, #player do local t = game.(wherever you placed your tool).Tool:clone() T.Parent = player[i].StarterGear End End |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2014 07:24 PM |
what im trying to do is if i say ":Load Bricktops" is will give me RCL guns but if I say ":Load wARCBricktops" it will give me wARC guns
how do i do this |
|
|
| Report Abuse |
|
|
| |
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 24 Jul 2014 07:52 PM |
| Probably make a Configuration object in each map named "StarterPack" and when that map loads, clone all from in there to each player's backpack or whatever |
|
|
| Report Abuse |
|
|
|
| 24 Jul 2014 08:07 PM |
here is what i have
tplac = {"Backpack","StarterGear"} for _,v in pairs(game.Players:GetPlayers()) do removeTools(v) for key,val in pairs(tools) do if string.lower(key) == string.lower(CurrentSim) then for _,tool in pairs(val) do if game.Lighting:FindFirstChild(tool) then local t = game.Lighting:FindFirstChild(tool) for i = 1,#tplac do t:Clone().Parent = v[tplac[i]] wait() end end end end end end end
function removeTools(Player) for _,backpacktools in pairs(Player.Backpack:GetChildren()) do backpacktools:Destroy() end for _,startertool in pairs(Player.StarterGear:GetChildren()) do startertool:Destroy() end end |
|
|
| Report Abuse |
|
|