Advertisement
Guest User

Untitled

a guest
Jan 21st, 2020
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.60 KB | None | 0 0
  1. local NPCName = "Marine [Lv. 1]"
  2. --[[ Normal NPCs:
  3. Marine [Lv. 1]
  4. Buggy Pirate [Lv. 10]
  5. Buggy pirate [Lv.50]
  6. Commander [Lv. 100]
  7. ]]--
  8. --[[ Boss NPCs:
  9. Smoky [Lv.20]
  10. Tashi [Lv. 30]
  11. The Clown [Lv. 75]
  12. Don't Kill Me!
  13. ]]--
  14.  
  15. for i,v in pairs(game.Workspace.Monster:GetDescendants()) do
  16. if v.Name == "HumanoidRootPart" and v.Parent:FindFirstChild("Humanoid") and v.Parent.Humanoid.Health > 0 and v.Parent.Name == NPCName then
  17. v.CFrame = game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame + game.Players.LocalPlayer.Character.HumanoidRootPart.CFrame.lookVector * 3
  18. v.Anchored = true
  19. end
  20. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement