Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- task.wait()
- local tool = script.Parent
- local char = nil
- local player = nil
- local deb = false
- function checkfamily(me, targ)
- local father = me:WaitForChild("Father").Value
- local grandparent = me:WaitForChild("Grandparent").Value
- local father2 = targ:WaitForChild("Father").Value
- local grandparent2 = targ:WaitForChild("Grandparent").Value
- local uniqueFamily = me:WaitForChild("UniqueFamily").Value
- local uniqueFamily2 = targ:WaitForChild("UniqueFamily").Value
- if father == father2 and father ~= "" then
- return true
- elseif father == uniqueFamily2 and father ~= "" then
- return true
- elseif father2 == uniqueFamily and father2 ~= "" then
- return true
- elseif grandparent == grandparent2 and grandparent ~= "" then
- return true
- elseif grandparent2 == uniqueFamily and grandparent2 ~= "" then
- return true
- elseif grandparent == uniqueFamily2 and grandparent ~= "" then
- return true
- elseif grandparent == father2 and grandparent ~= "" then
- return true
- elseif grandparent2 == father and grandparent2 ~= "" then
- return true
- else
- return false
- end
- end
- local name = game.PlaceId == 4971785899 and "Test Place" or "Main Game"
- tool.Equipped:Connect(function()
- char = tool.Parent
- player = game.Players:GetPlayerFromCharacter(char)
- local playerData = game.ServerStorage.PlayerData:FindFirstChild(player.Name)
- if playerData then
- local rankValue = playerData:FindFirstChild("Rank")
- if rankValue then
- local rankToNumber = require(game.ServerStorage.Modules.RankToNumber)
- local rankNumber = rankToNumber[rankValue.Value]
- if not rankNumber or rankNumber <= 8 then
- return
- end
- end
- end
- end)
- local tween = game:GetService("TweenService")
- tool.Activated:Connect(function()
- if deb then
- return
- end
- deb = true
- spawn(function()
- wait(3)
- deb = false
- end)
- local play = game.Players:GetPlayerFromCharacter(char)
- if play then
- local playdata = game.ServerStorage.PlayerData:FindFirstChild(play.Name)
- if playdata.Clan.Value ~= "Uchiha" then
- return
- end
- if playdata.Tomoe.Value < 1 then
- return
- end
- local targ = game.ReplicatedStorage.Remotes.GetTargetByMouse:InvokeClient(game.Players:GetPlayerFromCharacter(char))
- if targ == nil then
- return
- end
- if (targ.HumanoidRootPart.Position - char.HumanoidRootPart.CFrame.p).magnitude > 15 then return end
- local eplay = game.Players:GetPlayerFromCharacter(targ)
- if eplay and game.CollectionService:HasTag(targ, "Knocked") then
- local enemydata = game.ServerStorage.PlayerData:FindFirstChild(eplay.Name)
- local rankToNumber = require(game.ServerStorage.Modules.RankToNumber)
- local enemyRankValue = enemydata:FindFirstChild("Rank")
- if enemyRankValue then
- local enemyRankNumber = rankToNumber[enemyRankValue.Value]
- if not enemyRankNumber or enemyRankNumber <= 8 then
- return
- end
- else
- return
- end
- if checkfamily(char, targ) == true and enemydata.Tomoe.Value >= 3 and enemydata.EMS.Value ~= true then
- if enemydata.Tomoe.Value >= 3 and enemydata.EMS.Value ~= true then
- targ:BreakJoints()
- wait()
- game.ServerStorage.Bindables.Post:Fire("Uchiha Shenanigans", name, play.Name.." has penciled "..targ.Name..".", "uchiha")
- game.ServerStorage.Bindables.Wipe:Fire(eplay)
- if playdata.Tomoe.Value == 3 then
- game.ServerStorage.Bindables.AwakenDojutsu:Fire(play, true)
- end
- tool:Destroy()
- end
- end
- end
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment