Advertisement
takuyahd

Script Ninja Legends GUI 2-4

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