Advertisement
Rovo112

Untitled

Jan 28th, 2015
294
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 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.  
  17. DieDetector = coroutine.create(function()
  18. while true do
  19. wait()
  20. Players.LocalPlayer.Character.Humanoid.Died:connect(function()
  21. Clone2 :Destroy()
  22. Clone2 = Clone:clone()
  23. Clone2.Parent = Workspace
  24. Players.LocalPlayer.Character = Clone2
  25. Workspace.CurrentCamera.CameraSubject = Clone2.Head
  26. end)
  27. end
  28. end)
  29.  
  30. RemovedDetector = coroutine.create(function()
  31. while true do
  32. wait()
  33. Workspace.ChildRemoved:connect(function(item)
  34. if item.Name == CloneName then
  35. Clone2 :Destroy()
  36. Clone2 = Clone:clone()
  37. Clone2.Parent = Workspace
  38. Players.LocalPlayer.Character = Clone2
  39. Workspace.CurrentCamera.CameraSubject = Clone2.Head
  40. end
  41. end)
  42. end
  43. end)
  44.  
  45. coroutine.resume(DieDetector)
  46. coroutine.resume(RemovedDetector)
  47.  
  48. Players.LocalPlayer.Chatted:connect(function(msg, plr)
  49. ChatService:Chat(Clone2.Head, msg , Enum.ChatColor.Red)
  50. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement