Pls Help me Guys
CanDamage = true script.Parent.MouseButton3Click:connect(function(part) local human = part.Parent:findFirstChild("Humanoid") if human then if human.Parent.Name ~= script.Parent.Parent.Name and CanDamage == true and script.Parent.SagAnim.Value == true then CanDamage = false human:TakenDamage(20) wait(1.7) CanDamage = true end end end)
If you need to get input for the ScrollWheel (Mouse3) then you'll need to use UserInputService and UserInputType.MouseButton3. Alternatively use Freya Input and Action.BindSource
to attach a function to the third mouse button. If you're not using a GUI object, I'd instead suggest Action.BindControl
.
Locked by WideSteal321 and JesseSong
This question has been locked to preserve its current state and prevent spam and unwanted comments and answers.
Why was this question closed?