Advertisement
Guest User

Untitled

a guest
Nov 17th, 2019
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. local VirtualUser = game:GetService("VirtualUser")
  2. local players = game.Players:GetPlayers()
  3. local player = game.Players.LocalPlayer
  4. local soulType = "Bad" -- Good or Bad , Change this only
  5. local lplr = ""
  6. local jplr = ""
  7. _G.Enabled = true
  8.  
  9. local function check()
  10. for i,v in pairs(game.Players.LocalPlayer.Backpack:GetChildren()) do
  11. if v.ClassName == "Tool" and v:FindFirstChild("attackKatanaScript") then
  12. game.Players.LocalPlayer.Character.Humanoid:EquipTool(v)
  13. end
  14. end
  15. end
  16.  
  17. while _G.Enabled and wait(.4) do
  18. if workspace[player.Name]:FindFirstChild("Head") then
  19. if workspace[player.Name].Head:FindFirstChild("nameGui") then
  20. workspace[player.Name].Head.nameGui:Destroy()
  21. end
  22. end
  23. player.ninjaEvent:FireServer("goInvisible")
  24. if player.Character:FindFirstChild("inSafezone") then
  25. player.Character.HumanoidRootPart.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0,200,0)
  26. end
  27. if game.Players.LocalPlayer.Character:WaitForChild("HumanoidRootPart") then
  28. game.Players.PlayerRemoving:Connect(function(player)
  29. lplr = (player.Name)
  30. players = game.Players:GetPlayers()
  31. end)
  32.  
  33. game.Players.PlayerAdded:Connect(function(player)
  34. jplr = (player.Name)
  35. players = game.Players:GetPlayers()
  36. end)
  37.  
  38. players = game.Players:GetPlayers()
  39. game:service'RunService'.Stepped:Connect(function()
  40. if player.Character and player.Character:FindFirstChildOfClass("Humanoid") then
  41. player.Character.Humanoid:ChangeState(11)
  42. end
  43. end)
  44. for _, v in pairs(players) do
  45. if v.Name ~= player.Name and v.Name ~= lplr and v.Name ~= jplr and workspace:FindFirstChild(v.Name) and workspace[v.Name]:FindFirstChild("Head") then
  46. if v.Name ~= game.Players.LocalPlayer.Name and not v.Character:FindFirstChild("inSafezone") then
  47. v.Character.Head.CanCollide = false
  48. v.Character.Head.Anchored = true
  49. v.Character.Head.Position = player.Character.HumanoidRootPart.Position + Vector3.new(4.5,0,0)
  50. elseif v.Name ~= game.Players.LocalPlayer.Name and v.Character:FindFirstChild("inSafezone") then
  51. v.Character.Head.CFrame = player.Character.HumanoidRootPart.CFrame + Vector3.new(0,20,0)
  52. end
  53. end
  54. end
  55.  
  56. if player.Character:FindFirstChildOfClass("Tool") then
  57. player.Character:FindFirstChildOfClass("Tool"):Activate()
  58. end
  59.  
  60. for _,v in pairs(game.Workspace.soulPartsFolder:GetChildren()) do
  61. if v.Name == "soulPart" and v.collectPlayers:FindFirstChild(player.Name) then
  62. if not v:FindFirstChild("isGoodKarma") and soulType == "Bad" then
  63. player.Character.HumanoidRootPart.CFrame = v.CFrame + Vector3.new(0,5,0)
  64. player.ninjaEvent:FireServer("collectSoul", v)
  65. elseif v:FindFirstChild("isGoodKarma") and soulType == "Good" then
  66. player.Character.HumanoidRootPart.CFrame = v.CFrame + Vector3.new(0,5,0)
  67. player.ninjaEvent:FireServer("collectSoul", v)
  68. end
  69. end
  70. end
  71. check()
  72. end
  73. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement