"How to make a part that gives tool when clicked on lua" Code Answer's
You're definitely familiar with the best coding language Lua that developers use to develop their projects and they get all their queries like "How to make a part that gives tool when clicked on lua" answered properly. Developers are finding an appropriate answer about How to make a part that gives tool when clicked on lua related to the Lua coding language. By visiting this online portal developers get answers concerning Lua codes question like How to make a part that gives tool when clicked on lua. Enter your desired code related query in the search bar and get every piece of information about Lua code related question on How to make a part that gives tool when clicked on lua.
How to make a part that gives tool when clicked on lua

local ToolNames = {"Real Knife", "Real Knife", "Real Knife"}-----put name of the tool has to be exact exact name (remove the words items but not (") keep (")Between (" ") put item name for EX: "Glock 17"
local Storage = game:GetService("ServerStorage")----Put the tool item in serverstorage (cars,hats,and clothing will not work only tools work like guns and such)
local Part = script.Parent
local ClickDetector = Part:WaitForChild("ClickDetector")
ClickDetector.MouseClick:connect(function(Player)
if Player and Player.Character then
local Backpack = Player:WaitForChild("Backpack")
for i = 1, #ToolNames do
local Tool = Storage:FindFirstChild(ToolNames[i])
if Tool then
Tool:clone().Parent = Backpack
end
end
end
end)
---------Made BY Rigby#9052 on Discord
All those coders who are working on the Lua based application and are stuck on How to make a part that gives tool when clicked on lua can get a collection of related answers to their query. Programmers need to enter their query on How to make a part that gives tool when clicked on lua related to Lua code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about How to make a part that gives tool when clicked on lua for the programmers working on Lua code while coding their module. Coders are also allowed to rectify already present answers of How to make a part that gives tool when clicked on lua while working on the Lua language code. Developers can add up suggestions if they deem fit any other answer relating to "How to make a part that gives tool when clicked on lua". Visit this developer's friendly online web community, CodeProZone, and get your queries like How to make a part that gives tool when clicked on lua resolved professionally and stay updated to the latest Lua updates.