Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if workspace[game.Players.LocalPlayer.Name]:FindFirstChild("Raw") then
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "already reanimated",
- Text = ""
- })
- return
- end
- workspace[game.Players.LocalPlayer.Name].Archivable = true
- local cln = workspace[game.Players.LocalPlayer.Name]:Clone()
- cln.Name = "Raw"; cln.Parent = workspace[game.Players.LocalPlayer.Name]
- workspace[game.Players.LocalPlayer.Name].HumanoidRootPart:Destroy()
- workspace[game.Players.LocalPlayer.Name].Animate.Disabled = true
- for i,v in pairs(cln:GetDescendants()) do
- if v:IsA("BasePart") then v.Transparency = 1 end
- end
- cln.Head.face.Transparency = 1
- _G.reanim = game:GetService("RunService").Stepped:Connect(function()
- workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").Died:Connect(function()
- _G.reanim:Disconnect()
- end)
- if workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").Jump == true then
- cln:FindFirstChildOfClass("Humanoid").Jump = true
- cln:FindFirstChildOfClass("Humanoid").Sit = false
- end
- for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid"):GetPlayingAnimationTracks()) do
- v:Stop()
- end
- for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:GetDescendants()) do
- if v:IsA("BasePart") then v.CanCollide = false end
- end
- cln:FindFirstChildOfClass("Humanoid"):Move(workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").MoveDirection,false)
- end)
- for i,v in pairs(workspace[game.Players.LocalPlayer.Name].Torso:GetChildren()) do
- if v:IsA("Motor6D") and v.Name ~= "Neck" then v:Destroy() end
- end
- for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:GetChildren()) do
- if v:IsA("Accessory") then v.Handle:BreakJoints() end
- end
- _G.reanim2 = game:GetService("RunService").Heartbeat:Connect(function()
- workspace[game.Players.LocalPlayer.Name]:FindFirstChildOfClass("Humanoid").Died:Connect(function()
- _G.reanim2:Disconnect()
- end)
- for i,v in pairs(workspace[game.Players.LocalPlayer.Name]:GetChildren()) do
- if v:IsA("BasePart") then v.Velocity = Vector3.new(0,30,0) + cln:FindFirstChild("Torso").CFrame.LookVector * 10
- elseif v:IsA("Accessory") then v.Handle.Velocity = Vector3.new(0,30,0) + cln:FindFirstChild("Torso").CFrame.LookVector * 10 end
- if v:IsA("Accessory") then
- v.Handle.CFrame = cln[v.Name].Handle.CFrame
- end
- end
- workspace[game.Players.LocalPlayer.Name].Torso.CFrame = cln.Torso.CFrame
- workspace[game.Players.LocalPlayer.Name]["Right Arm"].CFrame = cln["Right Arm"].CFrame
- workspace[game.Players.LocalPlayer.Name]["Left Arm"].CFrame = cln["Left Arm"].CFrame
- workspace[game.Players.LocalPlayer.Name]["Right Leg"].CFrame = cln["Right Leg"].CFrame
- workspace[game.Players.LocalPlayer.Name]["Left Leg"].CFrame = cln["Left Leg"].CFrame
- end)
- workspace:FindFirstChildOfClass("Camera").CameraSubject = cln:FindFirstChildOfClass("Humanoid")
- game:GetService("StarterGui"):SetCore("SendNotification", {
- Title = "Reanimated",
- Text = "ok"
- })
- local ScreenGui = Instance.new("ScreenGui")
- local Frame = Instance.new("Frame")
- local aniid = Instance.new("TextBox")
- local Looped = Instance.new("TextButton")
- local Play = Instance.new("TextButton")
- local TextLabel = Instance.new("TextLabel")
- ScreenGui.Parent = game.Players.LocalPlayer:WaitForChild("PlayerGui")
- ScreenGui.ZIndexBehavior = Enum.ZIndexBehavior.Sibling
- Frame.Parent = ScreenGui
- Frame.BackgroundColor3 = Color3.fromRGB(116, 116, 116)
- Frame.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Frame.BorderSizePixel = 5
- Frame.Position = UDim2.new(0.322779924, 0, 0.720987678, 0)
- Frame.Size = UDim2.new(0.353667945, 0, 0.177777782, 0)
- Frame.Draggable = true
- Frame.Active = true
- aniid.Name = "aniid"
- aniid.Parent = Frame
- aniid.BackgroundColor3 = Color3.fromRGB(84, 84, 84)
- aniid.BorderColor3 = Color3.fromRGB(0, 0, 0)
- aniid.BorderSizePixel = 2
- aniid.Position = UDim2.new(0.0393013097, 0, 0.465277791, 0)
- aniid.Size = UDim2.new(0.624454141, 0, 0.451388896, 0)
- aniid.Font = Enum.Font.SourceSans
- aniid.PlaceholderColor3 = Color3.fromRGB(0, 0, 0)
- aniid.PlaceholderText = "Animation Id"
- aniid.Text = ""
- aniid.TextColor3 = Color3.fromRGB(0, 0, 0)
- aniid.TextScaled = true
- aniid.TextSize = 14.000
- aniid.TextWrapped = true
- Looped.Name = "Looped"
- Looped.Parent = Frame
- Looped.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- Looped.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Looped.BorderSizePixel = 2
- Looped.Position = UDim2.new(0.698689938, 0, 0.0972222164, 0)
- Looped.Size = UDim2.new(0.281659395, 0, 0.319444448, 0)
- Looped.Font = Enum.Font.SourceSans
- Looped.Text = "Loop"
- Looped.TextColor3 = Color3.fromRGB(0, 0, 0)
- Looped.TextScaled = true
- Looped.TextSize = 14.000
- Looped.TextWrapped = true
- Play.Name = "Play"
- Play.Parent = Frame
- Play.BackgroundColor3 = Color3.fromRGB(255, 0, 0)
- Play.BorderColor3 = Color3.fromRGB(0, 0, 0)
- Play.BorderSizePixel = 2
- Play.Position = UDim2.new(0.698689938, 0, 0.597222209, 0)
- Play.Size = UDim2.new(0.281659395, 0, 0.319444448, 0)
- Play.Font = Enum.Font.SourceSans
- Play.Text = "Play"
- Play.TextColor3 = Color3.fromRGB(0, 0, 0)
- Play.TextScaled = true
- Play.TextSize = 14.000
- Play.TextWrapped = true
- TextLabel.Parent = Frame
- TextLabel.BackgroundColor3 = Color3.fromRGB(255, 255, 255)
- TextLabel.BackgroundTransparency = 1.000
- TextLabel.Position = UDim2.new(0.0240174681, 0, 0.0625, 0)
- TextLabel.Size = UDim2.new(0.639737964, 0, 0.354166657, 0)
- TextLabel.Font = Enum.Font.SourceSans
- TextLabel.Text = "Rouxhavers animation player"
- TextLabel.TextColor3 = Color3.fromRGB(197, 197, 197)
- TextLabel.TextScaled = true
- TextLabel.TextSize = 14.000
- TextLabel.TextWrapped = true
- Islooping = false
- Looped.MouseButton1Up:Connect(function()
- if Islooping == false then do
- Islooping = true
- Looped.BackgroundColor3 = Color3.fromRGB(0,255,0)
- end else
- Islooping = false
- Looped.BackgroundColor3 = Color3.fromRGB(255,0,0)
- end
- end)
- local TweenService = game:GetService("TweenService")
- function tween(Part, Target, Time)
- local tweenInfo = TweenInfo.new(Time,Enum.EasingStyle.Linear)
- local Tween = TweenService:Create(Part, tweenInfo, {
- Transform = Target,
- })
- Tween:Play()
- end
- Playing = false
- Play.MouseButton1Up:Connect(function()
- if Playing == false then
- Play.BackgroundColor3 = Color3.fromRGB(0,255,0)
- Playing = true
- --NewChar.HumanoidRootPart.Anchored = true
- local Frames = nil
- local obj1 = game:GetObjects("rbxassetid://"..aniid.Text)
- for i,v in pairs(obj1) do
- Frames = v:GetChildren()
- end
- table.sort(Frames, function(a,b)
- return a.Time < b.Time
- end)
- NewChar.Animate.Disabled = true
- for i,v in pairs(NewChar.Humanoid:GetPlayingAnimationTracks()) do
- v:Stop()
- end
- while true do
- local Last_time = 0
- for i,Frame in pairs(Frames) do
- local TS = Frame:FindFirstChild("Torso", true)
- if TS and TS.Weight == 1 then
- tween(NewChar.HumanoidRootPart["RootJoint"], TS.CFrame, Frame.Time - Last_time)
- end
- local LA = Frame:FindFirstChild("Left Arm", true)
- if LA and LA.Weight == 1 then
- tween(NewChar.Torso["Left Shoulder"], LA.CFrame, Frame.Time - Last_time)
- end
- local RA = Frame:FindFirstChild("Right Arm", true)
- if RA and RA.Weight == 1 then
- tween(NewChar.Torso["Right Shoulder"], RA.CFrame, Frame.Time - Last_time)
- end
- local RL = Frame:FindFirstChild("Right Leg", true)
- if RL and RL.Weight == 1 then
- tween(NewChar.Torso["Right Hip"], RL.CFrame, Frame.Time - Last_time)
- end
- local LL = Frame:FindFirstChild("Left Leg", true)
- if LL and LL.Weight == 1 then
- tween(NewChar.Torso["Left Hip"], LL.CFrame, Frame.Time - Last_time)
- end
- wait(Frame.Time - Last_time)
- Last_time = Frame.Time
- end
- if Islooping == false then
- break
- end
- end
- NewChar.Animate.Disabled = false
- Playing = false
- Play.BackgroundColor3 = Color3.fromRGB(255,0,0)
- end
- end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement