Advertisement
AnthonyJohn14

naval warfare script

Sep 15th, 2021 (edited)
6,538
1
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 1 0
  1. while true do
  2. wait(0.3) -- don't change this
  3.  
  4. -- finding the characters
  5. for i, v in pairs(game.Workspace:GetChildren()) do
  6. if v.Name ~= game.Players.LocalPlayer.Name then
  7. if v:FindFirstChild("Humanoid") then
  8.  
  9. -- team check
  10. local victimplayers = game.Players:GetPlayerFromCharacter(v)
  11. if victimplayers.TeamColor ~= game.Players.LocalPlayer.TeamColor then
  12.  
  13. -- killing everyone
  14. local Event = game:GetService("ReplicatedStorage").Event
  15. Event:FireServer(
  16. "shootRifle",
  17. "",
  18. {
  19. v.Head
  20. }
  21.  
  22. )
  23. Event:FireServer(
  24. "shootRifle",
  25. "hit",
  26. {
  27. v.Humanoid
  28.  
  29. }
  30.  
  31. )
  32. end
  33. end
  34. end
  35. end
  36. end
  37.  
  38.  
  39.  
  40. --JOIN THE DISCORD SERVER: https://discord.gg/Qpg6qr62qM
  41.  
  42. --SUBSCRIBE TO OUR CHANNEL: https://www.youtube.com/channel/UC4H-RU4wSSPeUD6KenwN1hA
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement