Advertisement
ericdesouza

Untitled

Mar 23rd, 2018
265
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. plr = game.Players.LocalPlayer
  2. mouse = plr:GetMouse()
  3. part = nil
  4. bp = nil
  5. particles = nil
  6. function clerp(a,b,c,d)
  7. for i = 0,d,.01 do
  8. a.CFrame = CFrame.new(b:lerp(c,i))
  9. wait()
  10. end
  11. end
  12. function slerp(a2,b2,c2,d2)
  13. for i2 = 0,d2,.01 do
  14. a2.CFrame = CFrame.new(b2:lerp(c2,i2))
  15. wait()
  16. end
  17. end
  18. mouse.KeyDown:connect(function(key)
  19. if Character.Parent == workspace then
  20. plr.Character.Parent = workspace.Camera
  21. plr.Character.Archivable = true
  22. Instance.new("ForceField",plr.Character).Visible = false
  23. for y,t in pairs(plr.Character:GetChildren()) do
  24. if t:IsA("Part") and t.Name ~= "HumanoidRootPart" then
  25. t.Transparency = 0
  26. if t.Name == "Head" and t:FindFirstChild("face") then
  27. t.face.Transparency = 0
  28. end
  29. elseif t:IsA("Accessory") and t:FindFirstChild("Handle") then
  30. t.Handle.Transparency = 0
  31. end
  32. end
  33. else
  34. for y,t in pairs(plr.Character:GetChildren()) do
  35. if t:IsA("Part") then
  36. t.Anchored = true
  37. end
  38. end
  39. end
  40. end
  41.  
  42.  
  43.  
  44.  
  45.  
  46. while wait() do
  47. if plr.Character.Parent == workspace.Camera then
  48. local c = plr.Character:Clone()
  49. c:MakeJoints()
  50. for y,t in pairs(c:GetChildren()) do
  51. if t:IsA("Part") then
  52. t.CanCollide = false
  53. t.Anchored = true
  54. t.Transparency = 1
  55. t.TopSurface = "Smooth"
  56. t.BottomSurface = "Smooth"
  57. t.RightSurface = "Smooth"
  58. t.LeftSurface = "Smooth"
  59. t.FrontSurface = "Smooth"
  60. t.BackSurface = "Smooth"
  61. t.BrickColor = BrickColor.new("Really black")
  62. if t.Name == "Head" and t:FindFirstChild("face") then
  63. t.face:Remove()
  64. elseif t.Name == "Torso" and t:FindFirstChild("roblox") then
  65. t.roblox:Remove()
  66. elseif t.Name == "HumanoidRootPart" then
  67. t:Remove()
  68. end
  69. else
  70. t:Remove()
  71. end
  72. end
  73. c.Parent = workspace
  74. game.Debris:AddItem(c,.05)
  75. end
  76. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement