Advertisement
Guest User

yes

a guest
Sep 18th, 2019
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. repeat wait() until plr.Character
  3. repeat wait() until plr.Character.HumanoidRootPart
  4. local char = plr.Character
  5. char.Archivable = true
  6. local clone = char:Clone()
  7. clone.Parent = game:GetService("LocalizationService")
  8. local POI = "false"
  9. local prefix = ";"
  10. local CCF = CFrame.new()
  11.  
  12.  
  13.  
  14. local DummySs = Instance.new("Sound")
  15. DummySs.Name = "Died"
  16.  
  17. DummySs.Parent = game:GetService("SoundService")
  18.  
  19. local DummyS = game:GetService("SoundService"):WaitForChild("Died")
  20.  
  21. plr.Chatted:Connect(function(c)
  22. if c == prefix.."invis" then
  23. if POI == "false" then
  24. POI = "true"
  25. DummyS:Clone().Parent = clone.Head
  26. char = workspace[plr.Name]
  27. CCF = plr.Character.HumanoidRootPart.CFrame
  28. wait(.02)
  29. plr.Character.HumanoidRootPart.CFrame = CFrame.new(23094,23451,123582)
  30. wait(.2)
  31. plr.Character.HumanoidRootPart.Anchored = true
  32. wait(.2)
  33. plr.Character = clone
  34. clone.Parent = workspace.Terrain
  35. clone.HumanoidRootPart.CFrame = CCF
  36. workspace.CurrentCamera.CameraSubject = clone
  37. end
  38. elseif c == prefix.."vis" then
  39. if POI == "true" then
  40. POI = "false"
  41. DummyS:Clone().Parent = char.Head
  42. CCF = clone.HumanoidRootPart.CFrame
  43. plr.Character = char
  44. clone.Parent = game:GetService("LocalizationService")
  45. wait(.2)
  46. char.HumanoidRootPart.Anchored = false
  47. wait(.2)
  48. char.HumanoidRootPart.CFrame = CCF
  49. workspace.CurrentCamera.CameraSubject = char
  50. end
  51. end
  52. if c == ";stop" then
  53. script:Destroy()
  54. if game:GetService("LocalizationService"):FindFirstChild(plr.Name) then
  55. game:GetService("LocalizationService"):FindFirstChild(plr.Name):Destroy()
  56. elseif workspace.Terrain:FindFirstChild(plr.Name) then
  57. workspace.Terrain:FindFirstChild(plr.Name):Destroy()
  58. plr.Character = workspace[plr.Name]
  59. end
  60. end
  61. end)
  62.  
  63. clone.Humanoid.Died:Connect(function()
  64. POI = "Unusable"
  65. plr.Character = char
  66. DummyS:Clone().Parent = clone.Head
  67. wait(.5)
  68. game:GetService("Players").LocalPlayer.Character:BreakJoints()
  69. clone:Destroy()
  70. wait(.5)
  71. script:Destroy()
  72. end)
  73. char.Humanoid.Died:Connect(function()
  74. POI = "Unusable"
  75. DummyS:Clone().Parent = char.Head
  76. if clone ~= nil then
  77. clone:Destroy()
  78. wait(.5)
  79. script:Destroy()
  80. end
  81. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement