Advertisement
coolgoldboy166

fantasma original

Oct 31st, 2017
138
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.88 KB | None | 0 0
  1. local plr = game:GetService("Players").LocalPlayer
  2. local mouse,char = plr:GetMouse(),plr.Character
  3.  
  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 == "r" then
  10. print("R!")
  11. if cd == false then
  12. print("No cooldown!")
  13. cd = true
  14. if toggle == false then
  15. print("Entering godmode")
  16. toggle = true
  17. Instance.new("ForceField",char).Visible = false
  18. char.Parent = game:GetService("Workspace").CurrentCamera
  19. char:FindFirstChild("Head").Transparency = 1
  20. char:FindFirstChild("Torso").Transparency = 1
  21. char:FindFirstChild("Right Arm").Transparency = 1
  22. char:FindFirstChild("Left Arm").Transparency = 1
  23. char:FindFirstChild("Right Leg").Transparency = 1
  24. char:FindFirstChild("Left Leg").Transparency = 1
  25. for i,v in pairs(char:GetChildren()) do
  26. if v:IsA("Accessory") then
  27. v:FindFirstChild("Handle").Transparency = 1
  28. end
  29. end
  30. else
  31. print("Exiting godmode")
  32. toggle = false
  33. char.Parent = game:GetService("Workspace")
  34. char:FindFirstChild("ForceField"):Destroy()
  35. char:FindFirstChild("Head").Transparency = 0
  36. char:FindFirstChild("Torso").Transparency = 0
  37. char:FindFirstChild("Right Arm").Transparency = 0
  38. char:FindFirstChild("Left Arm").Transparency = 0
  39. char:FindFirstChild("Right Leg").Transparency = 0
  40. char:FindFirstChild("Left Leg").Transparency = 0
  41. for i,v in pairs(char:GetChildren()) do
  42. if v:IsA("Accessory") then
  43. v:FindFirstChild("Handle").Transparency = 0
  44. end
  45. end
  46. end
  47. cd = false
  48. end
  49. end
  50. end)
  51.  
  52. game:GetService("RunService").RenderStepped:connect(function()
  53. if char.Parent == game:GetService("Workspace").CurrentCamera then
  54. for i,v in pairs(char:GetChildren()) do
  55. if v:IsA("Part") then if v.Name ~= "HumanoidRootPart" then
  56. local c = v:Clone()
  57. c.Parent = game:GetService("Workspace")
  58. c.BottomSurface = "Smooth"
  59. c.TopSurface = "Smooth"
  60. c:BreakJoints()
  61. --c.Material = "Neon"
  62. c.Anchored = true
  63. c.CanCollide = false
  64. c.Transparency = 0.9
  65. c.CFrame = v.CFrame
  66. game:GetService("Debris"):AddItem(c,0.1)
  67. end end
  68. if v:IsA("Accessory") then if v:FindFirstChild("Handle") then
  69. local c = v.Handle:Clone()
  70. c.Parent = game:GetService("Workspace")
  71. c.BottomSurface = "Smooth"
  72. c.TopSurface = "Smooth"
  73. c:BreakJoints()
  74. --c.Material = "Neon"
  75. c.Anchored = true
  76. c.CanCollide = false
  77. c.Transparency = 0.9
  78. c.CFrame = v.Handle.CFrame
  79. game:GetService("Debris"):AddItem(c,0.1)
  80. end end
  81. end
  82. end
  83. end)
  84. end
  85. }
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement