Now what's wrong with this?
if Debounce == false then
Debounce = true
local insert = game:service("InsertService"):loadAsset(Identification)
local checkTheInsertedObject = insert:getChildren()
for el = 1,#checkTheInsertedObject do
if checkTheInsertedObject[el].className ~= "Tool" then
print("not allowed on this location.")
checkTheInsertedObject[el]:remove()
elseif checkTheInsertedObject[el].className == "Tool" then
print("allowed on this location.")
repeat wait() game.Workspace.el.CFrame = game.Workspace.el.CFrame - Vector3.new(0,.2,0) until game.Workspace.el.CFrame >= CFrame.new(-28,5.1,-91)
insert.Parent = game.Workspace
local checkintool = checkTheInsertedObject[el]:getChildren()
for i = 1,#checkintool do
if checkintool[i].className == "Part" and checkintool[i].Name == "Handle" then
checkintool[i].CFrame = CFrame.new(-29.5, 1+checkintool[i].Size.y/2, -94.5)
end
end
wait(.5)
repeat wait() game.Workspace.el.CFrame = game.Workspace.el.CFrame - Vector3.new(0,.25,0) until game.Workspace.el.CFrame <= CFrame.new(-28,13.1,-91)
end
end
Identification = ""
Debounce = false
end
end |