RIGHTISFUN

Untitled

Aug 24th, 2025
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 3.45 KB | None | 0 0
  1. task.wait()
  2. local tool = script.Parent
  3. local char = nil
  4. local player = nil
  5. local deb = false
  6.  
  7. function checkfamily(me, targ)
  8.     local father = me:WaitForChild("Father").Value
  9.     local grandparent = me:WaitForChild("Grandparent").Value
  10.     local father2 = targ:WaitForChild("Father").Value
  11.     local grandparent2 = targ:WaitForChild("Grandparent").Value
  12.     local uniqueFamily = me:WaitForChild("UniqueFamily").Value
  13.     local uniqueFamily2 = targ:WaitForChild("UniqueFamily").Value
  14.  
  15.     if father == father2 and father ~= "" then
  16.         return true
  17.     elseif father == uniqueFamily2 and father ~= "" then
  18.         return true
  19.     elseif father2 == uniqueFamily and father2 ~= "" then
  20.         return true
  21.     elseif grandparent == grandparent2 and grandparent ~= "" then
  22.         return true
  23.     elseif grandparent2 == uniqueFamily and grandparent2 ~= "" then
  24.         return true
  25.     elseif grandparent == uniqueFamily2 and grandparent ~= "" then
  26.         return true
  27.     elseif grandparent == father2 and grandparent ~= "" then
  28.         return true
  29.     elseif grandparent2 == father and grandparent2 ~= "" then
  30.         return true
  31.     else
  32.         return false
  33.     end
  34. end
  35.  
  36. local name = game.PlaceId == 4971785899 and "Test Place" or "Main Game"
  37.  
  38. tool.Equipped:Connect(function()
  39.     char = tool.Parent
  40.     player = game.Players:GetPlayerFromCharacter(char)
  41.     local playerData = game.ServerStorage.PlayerData:FindFirstChild(player.Name)
  42.     if playerData then
  43.         local rankValue = playerData:FindFirstChild("Rank")
  44.         if rankValue then
  45.             local rankToNumber = require(game.ServerStorage.Modules.RankToNumber)
  46.             local rankNumber = rankToNumber[rankValue.Value]
  47.  
  48.             if not rankNumber or rankNumber <= 8 then
  49.                 return
  50.             end
  51.         end
  52.     end
  53. end)
  54.  
  55. local tween = game:GetService("TweenService")
  56.  
  57. tool.Activated:Connect(function()
  58.  
  59.     if deb then
  60.         return
  61.     end
  62.  
  63.  
  64.     deb = true
  65.  
  66.     spawn(function()
  67.         wait(3)
  68.         deb = false
  69.     end)
  70.    
  71.     local play = game.Players:GetPlayerFromCharacter(char)
  72.  
  73.     if play then
  74.  
  75.         local playdata = game.ServerStorage.PlayerData:FindFirstChild(play.Name)
  76.  
  77.         if playdata.Clan.Value ~= "Uchiha" then
  78.             return
  79.         end
  80.  
  81.         if playdata.Tomoe.Value < 1 then
  82.             return
  83.         end
  84.  
  85.         local targ = game.ReplicatedStorage.Remotes.GetTargetByMouse:InvokeClient(game.Players:GetPlayerFromCharacter(char))
  86.  
  87.         if targ == nil then
  88.             return
  89.         end
  90.  
  91.         if (targ.HumanoidRootPart.Position - char.HumanoidRootPart.CFrame.p).magnitude > 15 then return end
  92.  
  93.         local eplay = game.Players:GetPlayerFromCharacter(targ)
  94.  
  95.         if eplay and game.CollectionService:HasTag(targ, "Knocked") then
  96.             local enemydata = game.ServerStorage.PlayerData:FindFirstChild(eplay.Name)
  97.  
  98.             local rankToNumber = require(game.ServerStorage.Modules.RankToNumber)
  99.             local enemyRankValue = enemydata:FindFirstChild("Rank")
  100.             if enemyRankValue then
  101.                 local enemyRankNumber = rankToNumber[enemyRankValue.Value]
  102.                 if not enemyRankNumber or enemyRankNumber <= 8 then
  103.                     return
  104.                 end
  105.             else
  106.                 return
  107.             end
  108.  
  109.             if checkfamily(char, targ) == true and enemydata.Tomoe.Value >= 3 and enemydata.EMS.Value ~= true then
  110.                 if enemydata.Tomoe.Value >= 3 and enemydata.EMS.Value ~= true then
  111.                     targ:BreakJoints()
  112.                     wait()
  113.                     game.ServerStorage.Bindables.Post:Fire("Uchiha Shenanigans", name, play.Name.." has penciled "..targ.Name..".", "uchiha")
  114.                     game.ServerStorage.Bindables.Wipe:Fire(eplay)
  115.                     if playdata.Tomoe.Value == 3 then
  116.                         game.ServerStorage.Bindables.AwakenDojutsu:Fire(play, true)
  117.                     end
  118.                     tool:Destroy()
  119.                 end
  120.             end
  121.         end
  122.  
  123.     end
  124. end)
Advertisement
Add Comment
Please, Sign In to add comment