Advertisement
zombieslayerwtf

New Shadow [Leaked]

Jun 20th, 2018
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.02 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local mouse,char = plr:GetMouse(),plr.Character
  3. local mouse = plr:getMouse()
  4. for i,v in pairs(game:GetService("Workspace").CurrentCamera:GetChildren()) do v:Destroy() end
  5.  
  6. local toggle,cd = false,false
  7.  
  8. mouse.KeyDown:connect(function(key)
  9. if key == "z" and plr.Character.Parent == workspace.Camera and part == nil then
  10. plr.Character.Torso.CFrame = CFrame.new(Vector3.new(mouse.hit.p.X,mouse.hit.p.Y+1.5,mouse.hit.p.Z),plr.Character.Torso.CFrame.p)
  11. elseif key == "r" then
  12.  
  13. if cd == false then
  14.  
  15. cd = true
  16. if toggle == false then
  17.  
  18. toggle = true
  19. Instance.new("ForceField",char).Visible = false
  20. char.Parent = game:GetService("Workspace").CurrentCamera
  21. char:FindFirstChild("Head").Transparency = 1
  22. char:FindFirstChild("Torso").Transparency = 1
  23. char:FindFirstChild("Right Arm").Transparency = 1
  24. char:FindFirstChild("Left Arm").Transparency = 1
  25. char:FindFirstChild("Right Leg").Transparency = 1
  26. char:FindFirstChild("Left Leg").Transparency = 1
  27. for i,v in pairs(char:GetChildren()) do
  28. if v:IsA("Accessory") then
  29. v:FindFirstChild("Handle").Transparency = 1
  30. end
  31. end
  32. else
  33.  
  34. toggle = false
  35. char.Parent = game:GetService("Workspace")
  36. char:FindFirstChild("ForceField"):Destroy()
  37. char:FindFirstChild("Head").Transparency = 0
  38. char:FindFirstChild("Torso").Transparency = 0
  39. char:FindFirstChild("Right Arm").Transparency = 0
  40. char:FindFirstChild("Left Arm").Transparency = 0
  41. char:FindFirstChild("Right Leg").Transparency = 0
  42. char:FindFirstChild("Left Leg").Transparency = 0
  43. for i,v in pairs(char:GetChildren()) do
  44. if v:IsA("Accessory") then
  45. v:FindFirstChild("Handle").Transparency = 0
  46. end
  47. end
  48. end
  49. cd = false
  50. end
  51. end
  52. end)
  53.  
  54. game:GetService("RunService").RenderStepped:connect(function()
  55. if char.Parent == game:GetService("Workspace").CurrentCamera then
  56. for i,v in pairs(char:GetChildren()) do
  57. if v:IsA("Part") then if v.Name ~= "HumanoidRootPart" then
  58. local c = v:Clone()
  59. c.Parent = game:GetService("Workspace")
  60. c.BottomSurface = "Smooth"
  61. c.TopSurface = "Smooth"
  62. c:BreakJoints()
  63. c.Material = "ForceField"
  64. c.Anchored = true
  65. c.CanCollide = false
  66. c.Transparency = 0.9
  67. c.CFrame = v.CFrame
  68. game:GetService("Debris"):AddItem(c,0.1)
  69. end end
  70. if v:IsA("Accessory") then if v:FindFirstChild("Handle") then
  71. local c = v.Handle:Clone()
  72. c.Parent = game:GetService("Workspace")
  73. c.BottomSurface = "Smooth"
  74. c.TopSurface = "Smooth"
  75. c:BreakJoints()
  76. c.Material = "ForceField"
  77. c.Anchored = true
  78. c.CanCollide = false
  79. c.Transparency = 0.9
  80. c.CFrame = v.Handle.CFrame
  81. game:GetService("Debris"):AddItem(c,0.1)
  82. end end
  83. end
  84. end
  85. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement