Advertisement
Guest User

Untitled

a guest
Nov 20th, 2018
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. local Player = game.Players.LocalPlayer
  2. local Mouse = Player:GetMouse()
  3. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  4. local UIS = game:GetService("UserInputService")
  5. local TazerEvents = ReplicatedStorage.TazerEvents
  6. local event4 = TazerEvents.event4
  7.  
  8. Mouse.Button1Down:Connect(function()
  9. if not UIS:IsKeyDown(Enum.KeyCode.LeftControl) then return end
  10. if Mouse.Target.Parent:FindFirstChild("Humanoid") then
  11. --Is a player
  12. local Character = Mouse.Target.Parent
  13.  
  14. event4:FireServer(Character.HumanoidRootPart)
  15. end
  16. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement