Here is the source code to my Local script in my Tool named "Test"
local Players = game:GetService("Players") local Player = Players.LocalPlayer local mouse = Player:GetMouse() local replicate = game.workspace.yello local toolz = script.Parent script.Parent.Equipped:connect(function(mouse) mouse.Button1Down:connect(function() if mouse.Target then print("The Mouse is pointing to the" .. mouse.Target.Name) if mouse.Target.Name == "Hello" then replicate:Clone() replicate.Position = game.Hello.Position toolz:Destroy() end else print("The Mouse is pointing at nothing") end end) end)
I sort of want this type of inventory system.
Closed as Not Constructive by RubenKan
This question has been closed because it is not constructive to others or the asker. Most commonly, questions that are requests with no attempt from the asker to solve their problem will fall into this category.
Why was this question closed?