script.Parent.Touched:connect(function(hit)
local human = hit.Parent:FindFirstChild("Humanoid")
if human ~= nil then
print("Human Found!")
local player = game.Players:FindFirstChild(hit.Parent.Name)
if player ~= nil then
print("Player Found!")
local backpack = player:FindFirstChild("Backpack")
if backpack ~= nil then
print("Backpack Found!")
local alltools = backpack:GetChildren()
for i,v in pairs(alltools) do
if v.ClassName == "Tool" then
print("Tool Found!")
if game.Workspace:FindFirstChild(hit.Parent.Name.. "'s BikePackback") == nil then
local model = Instance.new("Model")
model.Name = hit.Parent.Name.. "'s BikePackback"
model.Parent = game.Workspace
v.Parent= model
end
end
end
end
end
end
end)
i want this script to move all the stuff that are tools to a different model in workspace when they touch the brick but this script only moves 1 tool to that model not all of them. please help. i dont want this script to move things other then tools to the model in workspace. please help me
