Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function notify(t,tex,dur)
- game.StarterGui:SetCore("SendNotification", {
- Title = t;
- Text = tex;
- Duration = dur or 5;
- })
- end
- local srv= game:GetService("RunService")
- fl=Instance.new('Folder',char);fl.Name='CWExtra'
- char.Archivable = true
- local reanim = char:Clone()
- reanim.Name='NexoPD'
- for i,v in next, reanim:GetDescendants() do
- if v:IsA('BasePart') or v:IsA('Decal') then
- v.Transparency = 1
- end
- end
- --flinge = false
- penis=5.65
- plr.Character=nil
- plr.Character=char
- char.Humanoid.AutoRotate=false
- char.Humanoid.WalkSpeed=0
- char.Humanoid.JumpPower=0
- char.Torso.Anchored = true
- notify('Nexo','Reanimating...\nPlease wait '..penis..' seconds.')
- wait(penis)
- char.Torso.Anchored=false
- notify('Nexo','Reanimated..')
- char.Humanoid.Health=0
- --reanim.Humanoid.AutoRotate=false
- reanim.Animate.Disabled = true
- reanim.Parent = fl
- reanim.HumanoidRootPart.CFrame = char.HumanoidRootPart.CFrame*CFrame.new(0,5,0)
- function create(part, parent, p, r)
- Instance.new("Attachment",part)
- Instance.new("AlignPosition",part)
- Instance.new("AlignOrientation",part)
- Instance.new("Attachment",parent)
- part.Attachment.Name = part.Name
- parent.Attachment.Name = part.Name
- part.AlignPosition.Attachment0 = part[part.Name]
- part.AlignOrientation.Attachment0 = part[part.Name]
- part.AlignPosition.Attachment1 = parent[part.Name]
- part.AlignOrientation.Attachment1 = parent[part.Name]
- parent[part.Name].Position = p or Vector3.new()
- part[part.Name].Orientation = r or Vector3.new()
- part.AlignPosition.MaxForce = 999999999
- part.AlignPosition.MaxVelocity = math.huge
- part.AlignPosition.ReactionForceEnabled = false
- part.AlignPosition.Responsiveness = math.huge
- part.AlignOrientation.Responsiveness = math.huge
- part.AlignPosition.RigidityEnabled = false
- part.AlignOrientation.MaxTorque = 999999999
- part.Massless=true
- end
- function Pos(part, parent, p)
- Instance.new("Attachment",part)
- Instance.new("AlignPosition",part)
- Instance.new("Attachment",parent)
- part.Attachment.Name = part.Name
- parent.Attachment.Name = part.Name
- part.AlignPosition.Attachment0 = part[part.Name]
- --part.AlignOrientation.Attachment0 = part[part.Name]
- part.AlignPosition.Attachment1 = parent[part.Name]
- --part.AlignOrientation.Attachment1 = parent[part.Name]
- parent[part.Name].Position = p or Vector3.new()
- part.AlignPosition.MaxForce = 999999999
- part.AlignPosition.MaxVelocity = math.huge
- part.AlignPosition.ReactionForceEnabled = false
- part.AlignPosition.Responsiveness = math.huge
- --part.AlignOrientation.Responsiveness = math.huge
- --part.AlignPosition.RigidityEnabled = false
- --part.AlignOrientation.MaxTorque = 999999999
- part.Massless=true
- end
- for i,part in next, char:GetDescendants() do
- if part:IsA('BasePart') then
- te(ct,srv.RenderStepped:Connect(function()
- part.CanCollide=false
- end))
- end
- end
- for i,part in next, char:GetDescendants() do
- if part:IsA('BasePart') then
- te(ct,srv.Stepped:Connect(function()
- part.CanCollide=false
- end))
- end
- end
- for i,part in next, reanim:GetDescendants() do
- if part:IsA('BasePart') then
- te(ct,srv.RenderStepped:Connect(function()
- part.CanCollide=false
- end))
- end
- end
- for i,part in next, reanim:GetDescendants() do
- if part:IsA('BasePart') then
- te(ct,srv.Stepped:Connect(function()
- part.CanCollide=false
- end))
- end
- end
- for i,v in next, char:GetDescendants() do
- if v:IsA('Accessory') then
- create(v.Handle,reanim[v.Name].Handle)
- end
- end
- --Pos(fhrp,reanim['Torso'])
- create(char['Head'],reanim['Head'])
- create(char['Torso'],reanim['Torso'])
- Pos(char['HumanoidRootPart'],reanim['Torso'],Vector3.new(0,0,0))
- create(char['Right Arm'],reanim['Right Arm'])
- create(char['Left Arm'],reanim['Left Arm'])
- create(char['Right Leg'],reanim['Right Leg'])
- create(char['Left Leg'],reanim['Left Leg'])
- m = plr:GetMouse()
- local LVecPart = Instance.new("Part", fl) LVecPart.CanCollide = false LVecPart.Transparency = 1
- te(ct,srv.RenderStepped:Connect(function()
- local lookVec = workspace.CurrentCamera.CFrame.lookVector
- local Root = reanim["HumanoidRootPart"]
- LVecPart.Position = Root.Position
- LVecPart.CFrame = CFrame.new(LVecPart.Position, Vector3.new(lookVec.X * 10000, lookVec.Y, lookVec.Z * 10000))
- end))
- wdown=false
- sdown=false
- adown=false
- ddown=false
- spacedown=false
- --reanim.HumanoidRootPart.RootJoint.Part0=nil
- function flinger(p)
- f=Instance.new('BodyAngularVelocity',p)
- f.AngularVelocity = Vector3.new(9e9,9e9,9e9)
- f.MaxTorque=Vector3.new(9e9,9e9,9e9)
- end
- flinger(char.HumanoidRootPart)
- m=plr:GetMouse()
- --char.HumanoidRootPart.Transparency = 0
- bp=Instance.new('BodyPosition',char.HumanoidRootPart)
- bp.P = 9e9
- bp.D = 9e9
- bp.MaxForce=Vector3.new(99999,99999,99999)
- local click
- te(ct,srv.Heartbeat:Connect(function()
- if click == true then
- bp.Position=m.Hit.p
- char.HumanoidRootPart.Position=m.Hit.p
- else
- bp.Position=reanim.Torso.Position
- char.HumanoidRootPart.Position=reanim.Torso.Position
- end
- end))
- local Highlight = Instance.new("SelectionBox")
- Highlight.Adornee = char.HumanoidRootPart
- Highlight.LineThickness=0.05
- Highlight.Color3 = Color3.fromRGB(30,255,30)
- Highlight.Parent = char.HumanoidRootPart
- Highlight.Name = "RAINBOW"
- hrp = Highlight
- spawn(function()
- while true do
- srv.Stepped:Wait()
- if ded then break end
- hrp.Color3 = Color3.new(255/255,0/255,0/255)
- for i = 0,255,10 do
- wait()
- hrp.Color3 = Color3.new(255/255,i/255,0/255)
- end
- for i = 255,0,-10 do
- wait()
- hrp.Color3 = Color3.new(i/255,255/255,0/255)
- end
- for i = 0,255,10 do
- wait()
- hrp.Color3 = Color3.new(0/255,255/255,i/255)
- end
- for i = 255,0,-10 do
- wait()
- hrp.Color3 = Color3.new(0/255,i/255,255/255)
- end
- for i = 0,255,10 do
- wait()
- hrp.Color3 = Color3.new(i/255,0/255,255/255)
- end
- for i = 255,0,-10 do
- wait()
- hrp.Color3 = Color3.new(255/255,0/255,i/255)
- end
- end
- end)
- te(ct,m.Button1Down:Connect(function()
- click=true
- end))
- te(ct,m.Button1Up:Connect(function()
- click=false
- end))
- te(ct,m.KeyDown:Connect(function(e)
- if e ==' ' then
- spacedown=true end
- if e =='w' then
- wdown=true end
- if e =='s' then
- sdown=true end
- if e =='a' then
- adown=true end
- if e =='d' then
- ddown=true
- end
- end))
- te(ct,m.KeyUp:Connect(function(e)
- if e ==' ' then
- spacedown=false end
- if e =='w' then
- wdown=false end
- if e =='s' then
- sdown=false end
- if e =='a' then
- adown=false end
- if e =='d' then
- ddown=false
- end
- end))
- local function MoveClone(X,Y,Z)
- LVecPart.CFrame = LVecPart.CFrame * CFrame.new(-X,Y,-Z)
- reanim.Humanoid.WalkToPoint = LVecPart.Position
- end
- te(ct,srv.RenderStepped:Connect(function()
- if wdown==true then
- MoveClone(0,0,1e4) end
- if sdown==true then
- MoveClone(0,0,-1e4) end
- if adown==true then
- MoveClone(1e4,0,0) end
- if ddown==true then
- MoveClone(-1e4,0,0)
- end
- if spacedown==true then
- reanim.Humanoid.Jump=true end
- if wdown ~= true and adown ~= true and sdown ~= true and ddown ~= true then
- reanim.Humanoid.WalkToPoint = reanim.HumanoidRootPart.Position end
- end))
- --reanim.HumanoidRootPart.RootJoint.Part1=nil
- workspace.CurrentCamera.CameraSubject = reanim.Humanoid
- reset=Instance.new('BindableEvent')
- te(ct,reset.Event:Connect(function()
- reanim:Destroy()
- HumanDied=true
- reanimated=false
- for i,v in next, char:GetDescendants() do if v:IsA('BasePart') then v.Anchored=true end end
- hc=char.Humanoid:Clone()
- char.Humanoid:Destroy()
- hc.Parent=char
- game.Players:Chat('-re')
- for i,v in pairs(ct) do v:Disconnect() end
- game:GetService("StarterGui"):SetCore("ResetButtonCallback", true)
- reset:Remove()
- end))
- game:GetService("StarterGui"):SetCore("ResetButtonCallback", reset)
Add Comment
Please, Sign In to add comment