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

How do you make a fishing pole? Very important [closed]

Asked by 10 years ago

How can you make it so once you have a tool in your hands you may click a certain brick and it will add something to you're backpack every couple seconds?

Closed as Not Constructive by User#2

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
1waffle1 2908 Trusted Badge of Merit Moderation Voter Community Moderator
10 years ago
local a=0
Tool.Selected:connect(function(mouse)
    mouse.Button1Down:connect(function()
        if mouse.Target==certainBrick and a==0 then
            a=1
            Instance.new("IntValue",Player.Backpack)
            wait(2)
            a=0
        end
    end)
end)
Ad