Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

I need help with a Click function help please?

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

✓ Accepted answer

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

3 comments

0

thannks babe

0

Well you can use

0

np :)

This discussion is preserved as it was. New answers, comments, and votes are closed.