Advertisement
Rovo112

Untitled

Jan 28th, 2015
267
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.25 KB | None | 0 0
  1. game:GetService("Players")--Players
  2. LocalPlayer = Players.LocalPlayer
  3. ChatService = game:GetService("Chat")
  4. Char = Players.LocalPlayer.Character
  5. CloneName = "|Zyph Nil|"
  6. Char.Archivable = true
  7. Clone = Char:clone()
  8. Clone.Archivable = true
  9. Clone.Humanoid.MaxHealth = math.huge
  10. Clone.Humanoid.Health = math.huge
  11. Clone.Name = CloneName
  12. --Players.LocalPlayer:Destroy()
  13. Clone2 = Clone:clone()
  14. Clone2.Parent = Workspace
  15. Players.LocalPlayer.Character = Clone2
  16. Workspace.CurrentCamera.CameraSubject = Clone2.Head
  17. mouse = LocalPlayer:GetMouse()
  18.  
  19. DieDetector = coroutine.create(function()
  20. Players.LocalPlayer.Character.Humanoid.Died:connect(function()
  21. pcall(function()
  22. Clone2 :Destroy()
  23. Clone2 = Clone:clone()
  24. Clone2.Parent = Workspace
  25. Players.LocalPlayer.Character = Clone2
  26. Workspace.CurrentCamera.CameraSubject = Clone2.Head
  27. end)
  28. end)
  29. end)
  30.  
  31. RemovedDetector = coroutine.create(function()
  32. Workspace.ChildRemoved:connect(function(item)
  33. pcall(function()
  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. function process(msg, plr)
  49. ChatService:Chat(Clone2.Head, msg , Enum.ChatColor.Red)
  50.  
  51. for index, value in pairs(Commands) do
  52. if (msg == value.Button) then
  53. value.Fund()
  54. end
  55. end--?
  56. end --Go to anti's sb
  57.  
  58. Players.LocalPlayer.Chatted:connect(function(chat) process(Players.LocalPlayer, chat) end)
  59.  
  60. Commands = {};
  61.  
  62. function OnPress(key)
  63. for i,v in pairs(Commands) do
  64. if v.Button == key then
  65. pcall(function() v.Func() end)
  66. end
  67. end
  68. end
  69.  
  70. ---/|Commands|\---
  71.  
  72. AddCommand = function(key,func) -- Command handler, easy inserting in the Commands table.
  73. table.insert(Commands,{Button=key,Func=func})
  74. end
  75.  
  76. AddCommand("z",function()
  77. local s = Instance.new("Sound")
  78. s.Name = "ZyphSound"
  79. s.SoundId = "http://www.roblox.com/Asset/?id=148092137"
  80. s.Volume = 1
  81. s.Looped = false
  82. s.archivable = false
  83. s.Parent = game.Workspace
  84. wait(0)
  85. s:play()
  86. end)
  87.  
  88.  
  89. mouse.KeyDown:connect(function(key)
  90. if key == 'q' then
  91. OnPress(key)
  92. end
  93. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement