Advertisement
scld

프라 테이져 올

Nov 12th, 2021
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  2. local Players = game:GetService("Players")
  3. local LocalPlayer = Players.LocalPlayer
  4.  
  5. local ShootEvent = ReplicatedStorage:WaitForChild("ShootEvent")
  6. local ReloadEvent = ReplicatedStorage:WaitForChild("ReloadEvent")
  7.  
  8. local Tool = LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Taser") or LocalPlayer.Character:FindFirstChild("Taser")
  9.  
  10. if not Tool then
  11. local lastPos = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame
  12. workspace.Remote.loadchar:InvokeServer("", "Bright blue")
  13. wait()
  14. game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame = lastPos
  15. end
  16. local Tool = LocalPlayer:FindFirstChild("Backpack"):FindFirstChild("Taser") or LocalPlayer.Character:FindFirstChild("Taser")
  17.  
  18. local Package = {}
  19. for i,v in pairs(Players:GetChildren()) do
  20. local torso = v.Character and v.Character:FindFirstChild("Torso")
  21. if torso and Tool then
  22. local Packet = {
  23. ["RayObject"] = Ray.new(Vector3.new(), Vector3.new()),
  24. ["Distance"] = 0,
  25. ["Cframe"] = CFrame.new(),
  26. ["Hit"] = v.Character.Torso
  27. }
  28. Package[#Package+1] = Packet
  29. end
  30. end
  31.  
  32. ShootEvent:FireServer(Package, Tool)
  33. ReloadEvent:FireServer(Tool)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement