Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- local UserInputService = game:GetService("UserInputService")
- local mouse = game:GetService("Players").LocalPlayer:GetMouse()
- local function began(i, is)
- if i.UserInputType == Enum.UserInputType.MouseButton1 then
- if mouse.Target and mouse.Target.Parent.Name ~= "Boss" then
- local w = mouse.Target.Parent:FindFirstChild("Humanoid")
- if w then
- repeat
- wait()
- until w.Health ~= w.MaxHealth
- w.Health = 0
- end
- end
- end
- end
- UserInputService.InputBegan:Connect(began)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement