Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

why wont my tool show up in localplayers Backpack?

the problem is that it shows up in the inventory but if i go to the players backpack in explorer the item wont be there. im trying to set the parent of the tool to the backpack but i cant define that tool.

****~~~~~~~~~~~~~~~~~

****



r = game.Players.LocalPlayer
wall2 = game.ReplicatedStorage.Wall2:Clone()
test = true
chi = wall2:GetChildren()



game.Players.LocalPlayer.Backpack.Wall.Activated:connect(function()
print("hey bro")	
if test == false then return end	
test = false	
	
wall2.Parent = game.Workspace	
	
local scr = script["touch"]:Clone()
scr.Parent = wall2
scr.Disabled = false


for i = 1,20 do	
wall2.Size = wall2.Size + Vector3.new(3,4,3)
wait(0.1)

if chi:IsA("ParticleEmitter") then

chi.Size = chi.Size + Vector3.new(0.5,0.5,0.5)

end
end



end)





another script:

repeat wait() until game.Players.LocalPlayer.Character
repeat wait() until game.Players.LocalPlayer.Character.Humanoid

script.Parent.Activated:connect(function()
	
	print("2")
	game.StarterPack.Spear.Enabled = true
	script.Parent.Equpeed.Disabled = false
	script.Parent.lugia.Disabled = false
	script.Parent.unequipped.Disabled = false
game.ReplicatedStorage.Wall.Parent = game.Players.LocalPlayer["Backpack"]
game.Players.LocalPlayer["Backpack"].Wall.LocalScript.Disabled = false	
	
	
	
	
	
	
	
end)




1 answer

adminlist = {"Name of who you want", "Other guys u want to have the tool"}--Put the names of the people you want to get the tools in here

tools = {}
for a,b in ipairs(game.Lighting.MovesetYouWant:GetChildren()) do -- Make a model, name it what you want in Lightning folder and put the tools in there, then simply replace MovesetYouWant with the name of your moveset
if b.className == "Tool" or b.className == "HopperBin" then
table.insert(tools,b:clone())
end end 
game.Players.ChildAdded:connect(function(guy)
if guy.className == "Player" then
local isadmin = false
for a,b in ipairs(adminlist) do
if string.lower(b) == string.lower(guy.Name) then
isadmin = true
end end
if isadmin == false then return end
guy.Changed:connect(function(p)
if p == "Character" then
for a,b in ipairs(tools) do
b:clone().Parent = guy.Backpack
end end end)
end end)

If you have other questions, then just ask me.

This discussion is preserved as it was. New answers, comments, and votes are closed.