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?
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?
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.
1 comment
MouseClick passes the player who clicked, so in between the function() do function(player)