Created
February 11, 2020 19:07
-
-
Save DinosaurXxX/ded9e758f664c099c572c63a0933da05 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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