Deyer

Untitled

Mar 30th, 2023
19
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.43 KB | None | 0 0
  1. function notify(t,tex,dur)
  2. game.StarterGui:SetCore("SendNotification", {
  3. Title = t;
  4. Text = tex;
  5. Duration = dur or 5;
  6. })
  7. end
  8.  
  9. local srv= game:GetService("RunService")
  10.  
  11. fl=Instance.new('Folder',char);fl.Name='CWExtra'
  12.  
  13. char.Archivable = true
  14. local reanim = char:Clone()
  15. reanim.Name='NexoPD'
  16.  
  17. for i,v in next, reanim:GetDescendants() do
  18. if v:IsA('BasePart') or v:IsA('Decal') then
  19. v.Transparency = 1
  20. end
  21. end
  22.  
  23. --flinge = false
  24.  
  25. penis=5.65
  26. plr.Character=nil
  27. plr.Character=char
  28. char.Humanoid.AutoRotate=false
  29. char.Humanoid.WalkSpeed=0
  30. char.Humanoid.JumpPower=0
  31. char.Torso.Anchored = true
  32. notify('Nexo','Reanimating...\nPlease wait '..penis..' seconds.')
  33. wait(penis)
  34. char.Torso.Anchored=false
  35. notify('Nexo','Reanimated..')
  36. char.Humanoid.Health=0
  37. --reanim.Humanoid.AutoRotate=false
  38. reanim.Animate.Disabled = true
  39. reanim.Parent = fl
  40. reanim.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,5,0)
  41.  
  42. function create(part, parent, p, r)
  43. Instance.new("Attachment",part)
  44. Instance.new("AlignPosition",part)
  45. Instance.new("AlignOrientation",part)
  46. Instance.new("Attachment",parent)
  47. part.Attachment.Name = part.Name
  48. parent.Attachment.Name = part.Name
  49. part.AlignPosition.Attachment0 = part[part.Name]
  50. part.AlignOrientation.Attachment0 = part[part.Name]
  51. part.AlignPosition.Attachment1 = parent[part.Name]
  52. part.AlignOrientation.Attachment1 = parent[part.Name]
  53. parent[part.Name].Position = p or Vector3.new()
  54. part[part.Name].Orientation = r or Vector3.new()
  55. part.AlignPosition.MaxForce = 999999999
  56. part.AlignPosition.MaxVelocity = math.huge
  57. part.AlignPosition.ReactionForceEnabled = false
  58. part.AlignPosition.Responsiveness = math.huge
  59. part.AlignOrientation.Responsiveness = math.huge
  60. part.AlignPosition.RigidityEnabled = false
  61. part.AlignOrientation.MaxTorque = 999999999
  62. part.Massless=true
  63. end
  64.  
  65. function Pos(part, parent, p)
  66. Instance.new("Attachment",part)
  67. Instance.new("AlignPosition",part)
  68. Instance.new("Attachment",parent)
  69. part.Attachment.Name = part.Name
  70. parent.Attachment.Name = part.Name
  71. part.AlignPosition.Attachment0 = part[part.Name]
  72. --part.AlignOrientation.Attachment0 = part[part.Name]
  73. part.AlignPosition.Attachment1 = parent[part.Name]
  74. --part.AlignOrientation.Attachment1 = parent[part.Name]
  75. parent[part.Name].Position = p or Vector3.new()
  76. part.AlignPosition.MaxForce = 999999999
  77. part.AlignPosition.MaxVelocity = math.huge
  78. part.AlignPosition.ReactionForceEnabled = false
  79. part.AlignPosition.Responsiveness = math.huge
  80. --part.AlignOrientation.Responsiveness = math.huge
  81. --part.AlignPosition.RigidityEnabled = false
  82. --part.AlignOrientation.MaxTorque = 999999999
  83. part.Massless=true
  84. end
  85.  
  86. for i,part in next, char:GetDescendants() do
  87. if part:IsA('BasePart') then
  88. te(ct,srv.RenderStepped:Connect(function()
  89. part.CanCollide=false
  90. end))
  91. end
  92. end
  93.  
  94. for i,part in next, char:GetDescendants() do
  95. if part:IsA('BasePart') then
  96. te(ct,srv.Stepped:Connect(function()
  97. part.CanCollide=false
  98. end))
  99. end
  100. end
  101.  
  102. for i,part in next, reanim:GetDescendants() do
  103. if part:IsA('BasePart') then
  104. te(ct,srv.RenderStepped:Connect(function()
  105. part.CanCollide=false
  106. end))
  107. end
  108. end
  109.  
  110. for i,part in next, reanim:GetDescendants() do
  111. if part:IsA('BasePart') then
  112. te(ct,srv.Stepped:Connect(function()
  113. part.CanCollide=false
  114. end))
  115. end
  116. end
  117.  
  118. for i,v in next, char:GetDescendants() do
  119. if v:IsA('Accessory') then
  120. create(v.Handle,reanim[v.Name].Handle)
  121. end
  122. end
  123.  
  124. --Pos(fhrp,reanim['Torso'])
  125. create(char['Head'],reanim['Head'])
  126. create(char['Torso'],reanim['Torso'])
  127. Pos(char['HumanoidRootPart'],reanim['Torso'],Vector3.new(0,0,0))
  128. create(char['Right Arm'],reanim['Right Arm'])
  129. create(char['Left Arm'],reanim['Left Arm'])
  130. create(char['Right Leg'],reanim['Right Leg'])
  131. create(char['Left Leg'],reanim['Left Leg'])
  132.  
  133. m = plr:GetMouse()
  134.  
  135. local LVecPart = Instance.new("Part", fl) LVecPart.CanCollide = false LVecPart.Transparency = 1
  136.  
  137. te(ct,srv.RenderStepped:Connect(function()
  138. local lookVec = workspace.CurrentCamera.CFrame.lookVector
  139. local Root = reanim["HumanoidRootPart"]
  140. LVecPart.Position = Root.Position
  141. LVecPart.CFrame = CFrame.new(LVecPart.Position, Vector3.new(lookVec.X * 10000, lookVec.Y, lookVec.Z * 10000))
  142. end))
  143.  
  144. wdown=false
  145. sdown=false
  146. adown=false
  147. ddown=false
  148. spacedown=false
  149.  
  150. --reanim.HumanoidRootPart.RootJoint.Part0=nil
  151.  
  152. function flinger(p)
  153. f=Instance.new('BodyAngularVelocity',p)
  154. f.AngularVelocity = Vector3.new(9e9,9e9,9e9)
  155. f.MaxTorque=Vector3.new(9e9,9e9,9e9)
  156. end
  157.  
  158. flinger(char.HumanoidRootPart)
  159.  
  160. m=plr:GetMouse()
  161.  
  162. --char.HumanoidRootPart.Transparency = 0
  163.  
  164. bp=Instance.new('BodyPosition',char.HumanoidRootPart)
  165. bp.P = 9e9
  166. bp.D = 9e9
  167. bp.MaxForce=Vector3.new(99999,99999,99999)
  168.  
  169. local click
  170.  
  171. te(ct,srv.Heartbeat:Connect(function()
  172. if click == true then
  173. bp.Position=m.Hit.p
  174. char.HumanoidRootPart.Position=m.Hit.p
  175. else
  176. bp.Position=reanim.Torso.Position
  177. char.HumanoidRootPart.Position=reanim.Torso.Position
  178. end
  179. end))
  180.  
  181. local Highlight = Instance.new("SelectionBox")
  182. Highlight.Adornee = char.HumanoidRootPart
  183. Highlight.LineThickness=0.05
  184. Highlight.Color3 = Color3.fromRGB(30,255,30)
  185. Highlight.Parent = char.HumanoidRootPart
  186. Highlight.Name = "RAINBOW"
  187.  
  188. hrp = Highlight
  189.  
  190. spawn(function()
  191. while true do
  192. srv.Stepped:Wait()
  193. if ded then break end
  194. hrp.Color3 = Color3.new(255/255,0/255,0/255)
  195. for i = 0,255,10 do
  196. wait()
  197. hrp.Color3 = Color3.new(255/255,i/255,0/255)
  198. end
  199. for i = 255,0,-10 do
  200. wait()
  201. hrp.Color3 = Color3.new(i/255,255/255,0/255)
  202. end
  203. for i = 0,255,10 do
  204. wait()
  205. hrp.Color3 = Color3.new(0/255,255/255,i/255)
  206. end
  207. for i = 255,0,-10 do
  208. wait()
  209. hrp.Color3 = Color3.new(0/255,i/255,255/255)
  210. end
  211. for i = 0,255,10 do
  212. wait()
  213. hrp.Color3 = Color3.new(i/255,0/255,255/255)
  214. end
  215. for i = 255,0,-10 do
  216. wait()
  217. hrp.Color3 = Color3.new(255/255,0/255,i/255)
  218. end
  219. end
  220. end)
  221.  
  222. te(ct,m.Button1Down:Connect(function()
  223. click=true
  224. end))
  225.  
  226. te(ct,m.Button1Up:Connect(function()
  227. click=false
  228. end))
  229.  
  230. te(ct,m.KeyDown:Connect(function(e)
  231. if e ==' ' then
  232. spacedown=true end
  233. if e =='w' then
  234. wdown=true end
  235. if e =='s' then
  236. sdown=true end
  237. if e =='a' then
  238. adown=true end
  239. if e =='d' then
  240. ddown=true
  241. end
  242. end))
  243.  
  244. te(ct,m.KeyUp:Connect(function(e)
  245. if e ==' ' then
  246. spacedown=false end
  247. if e =='w' then
  248. wdown=false end
  249. if e =='s' then
  250. sdown=false end
  251. if e =='a' then
  252. adown=false end
  253. if e =='d' then
  254. ddown=false
  255. end
  256. end))
  257.  
  258. local function MoveClone(X,Y,Z)
  259. LVecPart.CFrame = LVecPart.CFrame * CFrame.new(-X,Y,-Z)
  260. reanim.Humanoid.WalkToPoint = LVecPart.Position
  261. end
  262.  
  263. te(ct,srv.RenderStepped:Connect(function()
  264. if wdown==true then
  265. MoveClone(0,0,1e4) end
  266. if sdown==true then
  267. MoveClone(0,0,-1e4) end
  268. if adown==true then
  269. MoveClone(1e4,0,0) end
  270. if ddown==true then
  271. MoveClone(-1e4,0,0)
  272. end
  273. if spacedown==true then
  274. reanim.Humanoid.Jump=true end
  275. if wdown ~= true and adown ~= true and sdown ~= true and ddown ~= true then
  276. reanim.Humanoid.WalkToPoint = reanim.HumanoidRootPart.Position end
  277. end))
  278.  
  279. --reanim.HumanoidRootPart.RootJoint.Part1=nil
  280.  
  281. workspace.CurrentCamera.CameraSubject = reanim.Humanoid
  282.  
  283. reset=Instance.new('BindableEvent')
  284. te(ct,reset.Event:Connect(function()
  285. reanim:Destroy()
  286. HumanDied=true
  287. reanimated=false
  288. for i,v in next, char:GetDescendants() do if v:IsA('BasePart') then v.Anchored=true end end
  289. hc=char.Humanoid:Clone()
  290. char.Humanoid:Destroy()
  291. hc.Parent=char
  292. game.Players:Chat('-re')
  293. for i,v in pairs(ct) do v:Disconnect() end
  294. game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
  295. reset:Remove()
  296. end))
  297.  
  298. game:GetService("StarterGui"):SetCore("ResetButtonCallback", reset)
Add Comment
Please, Sign In to add comment