Advertisement
Rovo112

Untitled

Jan 27th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.12 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.  
  51. Players.LocalPlayer.Chatted:connect(function(msg, plr)
  52. ChatService:Chat(Clone2.Head, msg , Enum.ChatColor.Red)
  53. end)
  54.  
  55. --Move/Walk--
  56. game:service'RunService'.RenderStepped:connect(function()
  57. if LocalPlayer.Parent ~= game:service'Players' then
  58. if ProbeMode == false then
  59. if LocalPlayer.Character ~= nil then
  60. if key == 'w' then
  61. LocalPlayer.Character.Torso.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.new(0,0,-.5)
  62. elseif key == 's' then
  63. LocalPlayer.Character.Torso.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.new(0,0,.5)
  64. elseif key == 'd' then
  65. LocalPlayer.Character.Torso.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.Angles(0,math.rad(-5),0)
  66. elseif key == 'a' then
  67. LocalPlayer.Character.Torso.CFrame = LocalPlayer.Character.Torso.CFrame * CFrame.Angles(0,math.rad(5),0)
  68. end
  69. end
  70. end
  71. end
  72. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement