I've been playing other games on roblox some of them are really good they might be Key-pressdown's and I wanted to do a tool attack so when you click with the tool it would summon a edited block then dissapear
function onClicked(mouse) local part = Instance.new('Part', game.Workspace) -- Edit the properties of the part here end function onEquipped(mouse) mouse.Button1Down:connect:(function() onClicked(mouse) end) end script.Parent.Equipped:connect(onEquipped)
This is for a Tool. Put this in a script, and put the script inside the Tool. If you want it in HopperBin form, just change 'OnEquipped' to 'Selected'. Hope this helps.
Closed as Not Constructive by evaera
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?