Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plr = owner
- plr.Character.Archivable = true
- alive = true
- lastpos = Instance.new("Part",plr.Character)
- lastpos.Transparency = 1
- lastpos.Position = plr.Character.HumanoidRootPart.Position
- lastpos.Anchored = true
- lastpos.CanCollide = false
- spare = plr.Character:Clone()
- spare.Parent = workspace
- spare.HumanoidRootPart.Anchored = true
- spare.HumanoidRootPart.CFrame = CFrame.new(0, -500, 0)
- spare.Animate.Disabled = true
- spare.Animate.Disabled = false
- forcefield = Instance.new("ForceField",spare)
- forcefield.Visible = false
- fakecharacter = plr.Character:Clone()
- fakecharacter.Parent = workspace
- fakecharacter.Humanoid:Destroy()
- animator = plr.Character.Animate
- animator.Disabled = false
- fakehumanoid = plr.Character.Humanoid:Clone()
- fakehumanoid.Parent = fakecharacter
- wait(.1)
- plr.Character = fakecharacter
- rootpart = plr.Character.HumanoidRootPart
- NLS([[
- workspace.CurrentCamera.CameraSubject = script.Parent.Humanoid
- ]],fakecharacter)
- function refit()
- alive = false
- animator.Disabled = true
- fakecharacter = spare:Clone()
- fakecharacter.Parent = workspace
- fakecharacter.Animate.Disabled = false
- fakecharacter.HumanoidRootPart.Anchored = false
- fakecharacter.HumanoidRootPart.CFrame = lastpos.CFrame
- wait(.1)
- plr.Character = fakecharacter
- animator = plr.Character.Animate
- alive = true
- animator.Disabled = false
- NLS([[
- workspace.CurrentCamera.CameraSubject = script.Parent.Humanoid
- ]],fakecharacter)
- end
- while true do
- wait()
- plr = owner
- if plr.Character then
- alive = true
- if rootpart then
- lastpos.Position = rootpart.Position
- end
- else
- alive = false
- wait(.1)
- refit()
- end
- for _,v in pairs (plr.Character:children()) do
- if v:IsA("Part") then
- getitback = v
- v.Anchored = false
- if v:FindFirstChildOfClass("Motor6D") then
- motor = v:FindFirstChildOfClass("Motor6D")
- if not motor then
- if plr.Character.Humanoid.RigType == "R15" then
- local neck = Instance.new("Motor6D")
- neck.Part0 = plr.Character.Head
- neck.Part1 = plr.Character.UpperTorso
- neck.C0 = CFrame.new(0, -1.25, 0)
- else
- local neck = Instance.new("Motor6D")
- neck.Part0 = plr.Character.Head
- neck.Part1 = plr.Character.Torso
- neck.C0 = CFrame.new(0, -1.5, 0)
- end
- end
- end
- if v:FindFirstChildOfClass("BodyVelocity") then
- bv = v:FindFirstChildOfClass("BodyVelocity")
- bv:Destroy()
- end
- if getitback then
- else
- refit()
- end
- end
- end
- if plr.Character.Humanoid.Health > 99 then
- alive = true
- else
- alive = false
- wait(.1)
- refit()
- end
- if not rootpart then
- refit()
- wait(.5)
- if plr.Character.Humanoid.RigType == "R15" then
- local rootj = Instance.new("Motor6D")
- rootj.Part0 = plr.Character.UpperTorso
- rootj.Part1 = plr.Character.HumanoidRootPart
- rootj.C0 = CFrame.new(0, -0.25, 0)
- else
- local rootj = Instance.new("Motor6D")
- rootj.Part0 = plr.Character.Torso
- rootj.Part1 = plr.Character.HumanoidRootPart
- rootj.C0 = CFrame.new(0, 0, 0)
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement