TheUnknownDiscord

clone

Sep 12th, 2021 (edited)
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.24 KB | None | 0 0
  1. local E2 = Instance.new("RemoteEvent", owner.Character)
  2. E2.Name = "The"
  3. local E = Instance.new("RemoteEvent", owner.Character)
  4. E.Name = "The2"
  5. NLS([[
  6. local Players = game:GetService("Players")
  7. local playerToClone = nil
  8.  
  9. function CloneMe(char)
  10. char.Archivable = true
  11. local clone = char:Clone()
  12. wait(0.0000000000000000000001)
  13. char.Archivable = false
  14. return clone
  15. end
  16. charClone = nil
  17. OriginalPlayer = owner.Character
  18. local Mouse = owner:GetMouse()
  19. function ButtonDown()
  20. if Mouse.Target ~= nil then
  21. local Model = Mouse.Target:FindFirstAncestorOfClass("Model")
  22. if Model then
  23. local PC = Players:GetPlayerFromCharacter(Model)
  24. if PC then
  25. playerToClone = PC.Name
  26. wait(0.1)
  27. local charClone = CloneMe(game.Players[playerToClone].Character)
  28. charClone.Parent = game.Workspace
  29. local animate = game.Players[playerToClone].Character.Animate:Clone()
  30. owner.Character = charClone
  31. workspace.CurrentCamera.CameraSubject = charClone
  32. animate.Parent = charClone
  33. tool = charClone:findFirstChildOfClass("Tool")
  34. if old then
  35. wait(0.1)
  36. oldClone:Destroy()
  37. wait(0.1)
  38. oldClone = charClone
  39. old = false
  40. wait(0.1)
  41. old = true
  42. else
  43. wait(0.1)
  44. oldClone = charClone
  45. old = true
  46. end
  47. end
  48. end
  49. end
  50. end
  51. Mouse.Button1Down:Connect(ButtonDown)
  52. switch = 0
  53. function switching()
  54. switch = switch + 1
  55. if switch == 1 then
  56. owner.Character = OriginalPlayer
  57. workspace.CurrentCamera.CameraSubject = OriginalPlayer
  58. elseif switch == 2 then
  59. owner.Character = oldClone
  60. workspace.CurrentCamera.CameraSubject = oldClone
  61. wait(0.1)
  62. switch = 0
  63. end
  64. end
  65.  
  66. local E2 = owner.Character:WaitForChild("The")
  67. function KeyDownlol(key)
  68. key = key:lower()
  69. if key == "q" then
  70. switching()
  71. E2:FireServer("Down")
  72. tool:Activate()
  73. end
  74. end
  75. Mouse.KeyDown:Connect(KeyDownlol)
  76. local E = owner.Character:WaitForChild("The2")
  77. function KeyDownlol(key)
  78. key = key:lower()
  79. if key == "e" then
  80. tool:Activate()
  81. E:FireServer("Down")
  82. end
  83. end
  84. Mouse.KeyDown:Connect(KeyDownlol)
  85. ]],owner.PlayerGui)
Add Comment
Please, Sign In to add comment