Advertisement
ForkFullFight

Untitled

Oct 23rd, 2023
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 7.86 KB | None | 0 0
  1. if workspace[game.Players.LocalPlayer.Name]:FindFirstChild("Raw") then
  2.  
  3. game:GetService("StarterGui"):SetCore("SendNotification", {
  4.  
  5. Title = "already reanimated",
  6. Text = ""
  7. })
  8. return
  9. end
  10. workspace[game.Players.LocalPlayer.Name].Archivable = true
  11. local cln = workspace[game.Players.LocalPlayer.Name]:Clone()
  12. cln.Name = "Raw"; cln.Parent = workspace[game.Players.LocalPlayer.Name]
  13. workspace[game.Players.LocalPlayer.Name].HumanoidRootPart:Destroy()
  14. workspace[game.Players.LocalPlayer.Name].Animate.Disabled = true
  15. for i,v in pairs(cln:GetDescendants()) do
  16. if v:IsA("BasePart") then v.Transparency = 1 end
  17. end
  18. cln.Head.face.Transparency = 1
  19. _G.reanim = game:GetService("RunService").Stepped:Connect(function()
  20. workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").Died:Connect(function()
  21. _G.reanim:Disconnect()
  22. end)
  23. if workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").Jump == true then
  24. cln:FindFirstChildOfClass("Humanoid").Jump = true
  25. cln:FindFirstChildOfClass("Humanoid").Sit = false
  26. end
  27. for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid"):GetPlayingAnimationTracks()) do
  28. v:Stop()
  29. end
  30. for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:GetDescendants()) do
  31. if v:IsA("BasePart") then v.CanCollide = false end
  32. end
  33. cln:FindFirstChildOfClass("Humanoid"):Move(workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").MoveDirection,false)
  34. end)
  35. for i,v in pairs(workspace[game.Players.LocalPlayer.Name].Torso:GetChildren()) do
  36. if v:IsA("Motor6D") and v.Name ~= "Neck" then v:Destroy() end
  37. end
  38. for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:GetChildren()) do
  39. if v:IsA("Accessory") then v.Handle:BreakJoints() end
  40. end
  41. _G.reanim2 = game:GetService("RunService").Heartbeat:Connect(function()
  42. workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").Died:Connect(function()
  43. _G.reanim2:Disconnect()
  44. end)
  45. for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:GetChildren()) do
  46. if v:IsA("BasePart") then v.Velocity = Vector3.new(0,30,0) + cln:FindFirstChild("Torso").CFrame.LookVector * 10
  47. elseif v:IsA("Accessory") then v.Handle.Velocity = Vector3.new(0,30,0) + cln:FindFirstChild("Torso").CFrame.LookVector * 10 end
  48.  
  49. if v:IsA("Accessory") then
  50. v.Handle.CFrame = cln[v.Name].Handle.CFrame
  51. end
  52. end
  53. workspace[game.Players.LocalPlayer.Name].Torso.CFrame = cln.Torso.CFrame
  54. workspace[game.Players.LocalPlayer.Name]["Right Arm"].CFrame = cln["Right Arm"].CFrame
  55. workspace[game.Players.LocalPlayer.Name]["Left Arm"].CFrame = cln["Left Arm"].CFrame
  56. workspace[game.Players.LocalPlayer.Name]["Right Leg"].CFrame = cln["Right Leg"].CFrame
  57. workspace[game.Players.LocalPlayer.Name]["Left Leg"].CFrame = cln["Left Leg"].CFrame
  58. end)
  59.  
  60. workspace:FindFirstChildOfClass("Camera").CameraSubject = cln:FindFirstChildOfClass("Humanoid")
  61. game:GetService("StarterGui"):SetCore("SendNotification", {
  62. Title = "Reanimated",
  63. Text = "ok"
  64. })
  65.  
  66. local ScreenGui = Instance.new("ScreenGui")
  67. local Frame = Instance.new("Frame")
  68. local aniid = Instance.new("TextBox")
  69. local Looped = Instance.new("TextButton")
  70. local Play = Instance.new("TextButton")
  71. local TextLabel = Instance.new("TextLabel")
  72.  
  73.  
  74. ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
  75. ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
  76.  
  77. Frame.Parent = ScreenGui
  78. Frame.BackgroundColor3 = Color3.fromRGB(116, 116, 116)
  79. Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
  80. Frame.BorderSizePixel = 5
  81. Frame.Position = UDim2.new(0.322779924, 0, 0.720987678, 0)
  82. Frame.Size = UDim2.new(0.353667945, 0, 0.177777782, 0)
  83. Frame.Draggable = true
  84. Frame.Active = true
  85.  
  86. aniid.Name = "aniid"
  87. aniid.Parent = Frame
  88. aniid.BackgroundColor3 = Color3.fromRGB(84, 84, 84)
  89. aniid.BorderColor3 = Color3.fromRGB(0, 0, 0)
  90. aniid.BorderSizePixel = 2
  91. aniid.Position = UDim2.new(0.0393013097, 0, 0.465277791, 0)
  92. aniid.Size = UDim2.new(0.624454141, 0, 0.451388896, 0)
  93. aniid.Font = Enum.Font.SourceSans
  94. aniid.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
  95. aniid.PlaceholderText = "Animation Id"
  96. aniid.Text = ""
  97. aniid.TextColor3 = Color3.fromRGB(0, 0, 0)
  98. aniid.TextScaled = true
  99. aniid.TextSize = 14.000
  100. aniid.TextWrapped = true
  101.  
  102. Looped.Name = "Looped"
  103. Looped.Parent = Frame
  104. Looped.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  105. Looped.BorderColor3 = Color3.fromRGB(0, 0, 0)
  106. Looped.BorderSizePixel = 2
  107. Looped.Position = UDim2.new(0.698689938, 0, 0.0972222164, 0)
  108. Looped.Size = UDim2.new(0.281659395, 0, 0.319444448, 0)
  109. Looped.Font = Enum.Font.SourceSans
  110. Looped.Text = "Loop"
  111. Looped.TextColor3 = Color3.fromRGB(0, 0, 0)
  112. Looped.TextScaled = true
  113. Looped.TextSize = 14.000
  114. Looped.TextWrapped = true
  115.  
  116. Play.Name = "Play"
  117. Play.Parent = Frame
  118. Play.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
  119. Play.BorderColor3 = Color3.fromRGB(0, 0, 0)
  120. Play.BorderSizePixel = 2
  121. Play.Position = UDim2.new(0.698689938, 0, 0.597222209, 0)
  122. Play.Size = UDim2.new(0.281659395, 0, 0.319444448, 0)
  123. Play.Font = Enum.Font.SourceSans
  124. Play.Text = "Play"
  125. Play.TextColor3 = Color3.fromRGB(0, 0, 0)
  126. Play.TextScaled = true
  127. Play.TextSize = 14.000
  128. Play.TextWrapped = true
  129.  
  130. TextLabel.Parent = Frame
  131. TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
  132. TextLabel.BackgroundTransparency = 1.000
  133. TextLabel.Position = UDim2.new(0.0240174681, 0, 0.0625, 0)
  134. TextLabel.Size = UDim2.new(0.639737964, 0, 0.354166657, 0)
  135. TextLabel.Font = Enum.Font.SourceSans
  136. TextLabel.Text = "Rouxhavers animation player"
  137. TextLabel.TextColor3 = Color3.fromRGB(197, 197, 197)
  138. TextLabel.TextScaled = true
  139. TextLabel.TextSize = 14.000
  140. TextLabel.TextWrapped = true
  141.  
  142. Islooping = false
  143.  
  144. Looped.MouseButton1Up:Connect(function()
  145. if Islooping == false then do
  146. Islooping = true
  147. Looped.BackgroundColor3 = Color3.fromRGB(0,255,0)
  148. end else
  149. Islooping = false
  150. Looped.BackgroundColor3 = Color3.fromRGB(255,0,0)
  151. end
  152. end)
  153.  
  154.  
  155. local TweenService = game:GetService("TweenService")
  156.  
  157. function tween(Part, Target, Time)
  158. local tweenInfo = TweenInfo.new(Time,Enum.EasingStyle.Linear)
  159. local Tween = TweenService:Create(Part, tweenInfo, {
  160. Transform = Target,
  161. })
  162. Tween:Play()
  163. end
  164.  
  165.  
  166.  
  167.  
  168.  
  169.  
  170. Playing = false
  171.  
  172. Play.MouseButton1Up:Connect(function()
  173. if Playing == false then
  174. Play.BackgroundColor3 = Color3.fromRGB(0,255,0)
  175. Playing = true
  176. --NewChar.HumanoidRootPart.Anchored = true
  177.  
  178. local Frames = nil
  179.  
  180. local obj1 = game:GetObjects("rbxassetid://"..aniid.Text)
  181. for i,v in pairs(obj1) do
  182. Frames = v:GetChildren()
  183. end
  184.  
  185. table.sort(Frames, function(a,b)
  186. return a.Time < b.Time
  187. end)
  188.  
  189. NewChar.Animate.Disabled = true
  190.  
  191. for i,v in pairs(NewChar.Humanoid:GetPlayingAnimationTracks()) do
  192. v:Stop()
  193. end
  194.  
  195. while true do
  196. local Last_time = 0
  197.  
  198. for i,Frame in pairs(Frames) do
  199.  
  200. local TS = Frame:FindFirstChild("Torso", true)
  201. if TS and TS.Weight == 1 then
  202. tween(NewChar.HumanoidRootPart["RootJoint"], TS.CFrame, Frame.Time - Last_time)
  203. end
  204.  
  205. local LA = Frame:FindFirstChild("Left Arm", true)
  206. if LA and LA.Weight == 1 then
  207. tween(NewChar.Torso["Left Shoulder"], LA.CFrame, Frame.Time - Last_time)
  208. end
  209.  
  210. local RA = Frame:FindFirstChild("Right Arm", true)
  211. if RA and RA.Weight == 1 then
  212. tween(NewChar.Torso["Right Shoulder"], RA.CFrame, Frame.Time - Last_time)
  213. end
  214.  
  215. local RL = Frame:FindFirstChild("Right Leg", true)
  216. if RL and RL.Weight == 1 then
  217. tween(NewChar.Torso["Right Hip"], RL.CFrame, Frame.Time - Last_time)
  218. end
  219.  
  220. local LL = Frame:FindFirstChild("Left Leg", true)
  221. if LL and LL.Weight == 1 then
  222. tween(NewChar.Torso["Left Hip"], LL.CFrame, Frame.Time - Last_time)
  223. end
  224.  
  225. wait(Frame.Time - Last_time)
  226. Last_time = Frame.Time
  227. end
  228. if Islooping == false then
  229. break
  230. end
  231. end
  232.  
  233. NewChar.Animate.Disabled = false
  234. Playing = false
  235. Play.BackgroundColor3 = Color3.fromRGB(255,0,0)
  236. end
  237. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement