Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
-2

How do I summon blocks like as a weapon or attack then dissapear?. [closed]

Asked by 10 years ago

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

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?

1 answer

Log in to vote
0
Answered by
Cizox 80
10 years ago
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.

Ad