Advertisement
Rovo112

Untitled

Jan 28th, 2015
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. Players = game:GetService("Players")
  2. ChatService = game:GetService("Chat")
  3. Char = Players.LocalPlayer.Character
  4. CloneName = "Zyph Nil"
  5. Char.Archivable = true
  6. Clone = Char:clone()
  7. Clone.Archivable = true
  8. Clone.Humanoid.MaxHealth = math.huge
  9. Clone.Humanoid.Health = math.huge
  10. Clone.Name = CloneName
  11. Players.LocalPlayer :Destroy()
  12. Clone2 = Clone:clone()
  13. Clone2.Parent = Workspace
  14. Players.LocalPlayer.Character = Clone2
  15. Workspace.CurrentCamera.CameraSubject = Clone2.Head
  16. --Utilitys True False--
  17.  
  18.  
  19. DieDetector = coroutine.create(function()
  20. while true do
  21. wait()
  22. Players.LocalPlayer.Character.Humanoid.Died:connect(function()
  23. Clone2 :Destroy()
  24. Clone2 = Clone:clone()
  25. Clone2.Parent = Workspace
  26. Players.LocalPlayer.Character = Clone2
  27. Workspace.CurrentCamera.CameraSubject = Clone2.Head
  28. end)
  29. end
  30. end)
  31.  
  32. RemovedDetector = coroutine.create(function()
  33. while true do
  34. wait()
  35. Workspace.ChildRemoved:connect(function(item)
  36. if item.Name == CloneName then
  37. Clone2 :Destroy()
  38. Clone2 = Clone:clone()
  39. Clone2.Parent = Workspace
  40. Players.LocalPlayer.Character = Clone2
  41. Workspace.CurrentCamera.CameraSubject = Clone2.Head
  42. end
  43. end)
  44. end
  45. end)
  46.  
  47. coroutine.resume(DieDetector)
  48. coroutine.resume(RemovedDetector)
  49.  
  50. Players.LocalPlayer.Chatted:connect(function(msg, plr)
  51. ChatService:Chat(Clone2.Head, msg , Enum.ChatColor.Green)
  52. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement