Advertisement
Ima3ine

Dont Credit me

Jan 30th, 2023
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.85 KB | None | 0 0
  1. t="target"
  2.  
  3.  
  4.  
  5. players = game:FindService("Players")
  6. lp = players.LocalPlayer
  7. local function hasProperty(object, prop)
  8. local t = object[prop]
  9. end
  10.  
  11.  
  12. target = players:FindFirstChild(t)
  13.  
  14.  
  15. function togglefreeze(char)
  16. for i,v in pairs(char:GetChildren()) do
  17. if v:IsA("Part") or v:IsA("MeshPart") then
  18. if v.Anchored == true then
  19. v.Anchored = false
  20. else v.Anchored =true end
  21. end
  22. end
  23. end
  24. if target then
  25. if target.Character and runningkill ~= true then
  26. runningkill = true
  27. arm = lp.Character:FindFirstChild("Right Arm") or lp.Character:FindFirstChild("RightHand")
  28. targetarm = target.Character:FindFirstChild("Right Arm") or
  29. target.Character:FindFirstChild("RightHand")
  30.  
  31.  
  32.  
  33.  
  34.  
  35. oldpos = lp.Character.PrimaryPart.CFrame
  36. lp.Character:ClearAllChildren()
  37. lp.CharacterAdded:Wait()
  38. repeat task.wait() until lp.Character:FindFirstChild("HumanoidRootPart")
  39. lp.Character["HumanoidRootPart"].Anchored = false
  40. lp.Character["HumanoidRootPart"].CFrame = oldpos
  41.  
  42. repeat task.wait() until lp.Character:FindFirstChildOfClass("Humanoid")
  43. repeat task.wait() until lp.Character:FindFirstChild("HumanoidRootPart")
  44.  
  45. wait(0.3)
  46. local tool = lp.Backpack:FindFirstChildOfClass("Tool")
  47.  
  48.  
  49.  
  50.  
  51. humanoid = lp.Character:FindFirstChildOfClass("Humanoid")
  52. for i,v in pairs(lp.Character:GetChildren()) do
  53. if v:IsA("Accessory") then
  54. v:Destroy()
  55. end
  56.  
  57. end
  58. clone = humanoid:Clone()
  59. clone.Parent = lp.Character
  60.  
  61.  
  62. humanoid:ClearAllChildren()
  63. wait()
  64. humanoid:Destroy()
  65.  
  66.  
  67. game:FindService("RunService").Stepped:Wait()
  68.  
  69.  
  70. tool.Parent = lp.Character
  71.  
  72. loop = game:FindService("RunService").Stepped:Connect(function()
  73. togglefreeze(target.Character)
  74. if target.Character then
  75. target.Character.PrimaryPart.Anchored = true
  76. target.Character.PrimaryPart.CFrame = tool.Handle.CFrame
  77. end
  78. for i,v in pairs(target.Character:GetChildren()) do
  79. if pcall(function() hasProperty(v,"CanCollide") end) then
  80. v.CanCollide = true
  81. end
  82. end
  83. if not lp.Character or tool.Parent == target.Character or
  84. not tool or not target or not target.Character then
  85. loop:Disconnect()
  86. end
  87. end)
  88.  
  89. if target then
  90. if target.Character then
  91. target.Character.PrimaryPart.Anchored = true
  92. togglefreeze(target.Character)
  93. end
  94. end
  95.  
  96. oldchar = lp.Character
  97.  
  98. oldchar.Head:Destroy()
  99. lp.Character = nil
  100. wait(1)
  101. lp.Character=oldchar
  102.  
  103.  
  104.  
  105. lp.Character:ClearAllChildren()
  106. lp.CharacterAdded:Wait()
  107. repeat task.wait() until lp.Character:FindFirstChild("HumanoidRootPart")
  108. lp.Character["HumanoidRootPart"].Anchored = false
  109. lp.Character["HumanoidRootPart"].CFrame = oldpos
  110.  
  111. runningkill=nil
  112.  
  113.  
  114.  
  115. end
  116. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement