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

How do i make it that whenever someone left click they punch? [closed]

Asked by 6 years ago

if you have a code or a script of it can you put it into the answer box?

1
oof. You can only ask for help if you made an attempt and others will try to hopefully find a solution for you. People won't like it if you ask for the whole script itself. Refer to the forums section where you can ask for these kind of things possibly paid for by robux. Formidable_Beast 197 — 6y
0
Yes, I will post my code in the answer box "print("DO IT YOURSELF")" greatneil80 2647 — 6y

Closed as Not Constructive by ee0w, User#24403, Gey4Jesus69, User#23365, LostPast, and User#9949

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 6 years ago

Alright, you have to create the punching script, but detecting a click is easy.

local player = game.Players.LocalPlayer
mouse = player:GetMouse()
mouse.Button1Down:Connect(function()
      print("Your punch script here.")
end)

This is not a request site, you have to detail what you tried, what has worked etc.

Ad