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

How to find who clicks a button to be able to manipulate their BodyVelocity?

script.Parent.MouseClick:Connect(function()
print("Clicked")
end)

How would I use this function to determine who clicked it and create a BodyVelocity in their LowerTorso?

1 comment

0

MouseClick passes the player who clicked, so in between the function() do function(player)

1 answer

To find the person who clicked you do:

script.Parent.MouseClick:Connect(function(player)
print("Player who clicked is" ..player)
end)

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