Advertisement
Vzurxy

amokahfox invisible scrip

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