Advertisement
ROBLOX_expliterkdf

roblox naval warfare script

Dec 9th, 2021 (edited)
1,713
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 0.71 KB | None | 0 0
  1. -- not made by me lmao
  2. while true do
  3. wait(0.3)
  4.  
  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.            local Event = game:GetService("ReplicatedStorage").Event
  14.            Event:FireServer(
  15.             "shootRifle",
  16.             "",
  17.            {
  18.            v.Head
  19.            }
  20.  
  21.        )
  22.        Event:FireServer(
  23.         "shootRifle",
  24.         "hit",
  25.         {
  26.            v.Humanoid
  27.  
  28.         }
  29.  
  30. )
  31. end
  32. end
  33. end
  34. end
  35. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement