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

I need help with a Click function help please?

Asked by 6 years ago

I already have an onClick function ending in adding points to a player's leaderboard, but what kind of thing do I have to code for the clicking to only function if the player is holding a particular tool?

1 answer

Log in to vote
0
Answered by 6 years ago
Edited 6 years ago

Uhhh u just add a script IN the tool? Code:

script.Parent.Activated:connect(function()
    print("clicked")
end)

prints clicked when u click anywhere holding the tool with the script in it

0
thannks babe TwistedGabe 2 — 6y
0
Well you can use AswormeDorijan111 531 — 6y
0
np :) DanielDeJong3 158 — 6y
Ad

Answer this question