Skip to content

Instantly share code, notes, and snippets.

@DinosaurXxX
Created February 11, 2020 19:07
Show Gist options
  • Select an option

  • Save DinosaurXxX/ded9e758f664c099c572c63a0933da05 to your computer and use it in GitHub Desktop.

Select an option

Save DinosaurXxX/ded9e758f664c099c572c63a0933da05 to your computer and use it in GitHub Desktop.
local ToolName = ""
local Counter = 0
for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
if v:IsA("Tool") then
Counter = Counter + 1
ToolName = v.Name
end
end
if Counter >= 1 then
local Tool = game.Players.LocalPlayer.Character[ToolName]
Tool.Parent = game.Workspace
warn("Dropped!")
else
warn("No tool was found.")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment