Advertisement
Hmm465_Gaming

what's death?

Mar 10th, 2018
378
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 20.17 KB | None | 0 0
  1. --edited version of Deadpool script
  2. -—with add buttons and stuff
  3. -—by Hmm465#7106
  4.  
  5. if game.Players.LocalPlayer.Character.Humanoid.Health < 100
  6. then
  7. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  8. game.Players.LocalPlayer.Character.Humanoid.Health = 100
  9. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  10. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  11. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  12. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  13. Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  14. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  15. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  16. game.Players.LocalPlayer.Character.Humanoid:SetStateEnabled(Enum.HumanoidStateType.Dead, false)
  17. game.Players.LocalPlayer.Character.Humanoid.Health = 100
  18. end
  19.  
  20.  
  21. local ContentProvider = game:GetService("ContentProvider")
  22.  
  23. local function LoadAssets(AssetList)
  24.     -- Takes an asset list and preloads it. Will not wait for them to load.
  25.  
  26.     for _, AssetId in pairs(AssetList) do
  27.         ContentProvider:Preload("http://www.roblox.com/asset/?id=" .. AssetId)
  28.     end
  29. end
  30.  
  31. LoadAssets({11442510,30956707})
  32. local Gibs = game.Workspace
  33.  
  34. function Kill(Character)
  35.     Character.Humanoid.Health = 0
  36.     local poo = Instance.new("IntValue",Character)
  37.     poo.Name = "haha nope"
  38.     local svch = Character
  39.     local hum = Character:findFirstChild("Humanoid")
  40.     Character.Archivable = true
  41.     local chrclone = Character:clone()
  42.     Character.Archivable = false
  43.  
  44.     local ch = chrclone:GetChildren()
  45.     local i
  46.     for i = 1,#ch do
  47.         if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  48.             ch[i]:remove()
  49.         end
  50.     end
  51.     local function Scan(ch)
  52.         local e
  53.         for e = 1,#ch do
  54.             Scan(ch[e]:GetChildren())
  55.             if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  56.                 ch[e]:remove()
  57.             end
  58.         end
  59.     end
  60.     Scan(chrclone:GetChildren())
  61.  
  62.     local hum2 = chrclone:findFirstChild("Humanoid")
  63.  
  64.  
  65.     if hum2 ~= nil then
  66.         hum2.Name = "Humanoid2"
  67.         hum2.PlatformStand = true
  68.         hum2.Sit = true
  69.         hum2.MaxHealth = 0
  70.         hum2.Health = 0
  71.     end
  72.  
  73.     local ch = Character:GetChildren()
  74.     local i
  75.     for i = 1,#ch do
  76.         if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  77.             ch[i]:remove()
  78.         end
  79.     end
  80.  
  81.     wait(0.2)
  82.  
  83.     local ch = Character:GetChildren()
  84.     local i
  85.     for i = 1,#ch do
  86.         if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  87.             ch[i]:remove()
  88.         end
  89.     end
  90.     Character = chrclone
  91.     local Torso = Character.Torso
  92.     local movevector = Vector3.new()
  93.  
  94.     if Torso then
  95.         local Head = Character:FindFirstChild("Head")
  96.         local Limb = Character:FindFirstChild("Right Arm")
  97.         if Limb then
  98.  
  99.             Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  100.             local Joint = Instance.new("Glue")
  101.             Joint.Name = "RightShoulder"
  102.             Joint.Part0 = Torso
  103.             Joint.Part1 = Limb
  104.             Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  105.             Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  106.             Joint.Parent = Torso
  107.  
  108.             local B = Instance.new("Part")
  109.             B.TopSurface = 0
  110.             B.BottomSurface = 0
  111.             B.formFactor = "Symmetric"
  112.             B.Size = Vector3.new(1, 1, 1)
  113.             B.Transparency = 1
  114.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  115.             B.Parent = Character
  116.             local W = Instance.new("Weld")
  117.             W.Part0 = Limb
  118.             W.Part1 = B
  119.             W.C0 = CFrame.new(0, -0.5, 0)
  120.             W.Parent = Limb
  121.  
  122.         end
  123.         local Limb = Character:FindFirstChild("Left Arm")
  124.         if Limb then
  125.  
  126.             Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  127.             local Joint = Instance.new("Glue")
  128.             Joint.Name = "LeftShoulder"
  129.             Joint.Part0 = Torso
  130.             Joint.Part1 = Limb
  131.             Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  132.             Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  133.             Joint.Parent = Torso
  134.  
  135.             local B = Instance.new("Part")
  136.             B.TopSurface = 0
  137.             B.BottomSurface = 0
  138.             B.formFactor = "Symmetric"
  139.             B.Size = Vector3.new(1, 1, 1)
  140.             B.Transparency = 1
  141.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  142.             B.Parent = Character
  143.             local W = Instance.new("Weld")
  144.             W.Part0 = Limb
  145.             W.Part1 = B
  146.             W.C0 = CFrame.new(0, -0.5, 0)
  147.             W.Parent = Limb
  148.  
  149.         end
  150.         local Limb = Character:FindFirstChild("Right Leg")
  151.         if Limb then
  152.  
  153.             Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  154.             local Joint = Instance.new("Glue")
  155.             Joint.Name = "RightHip"
  156.             Joint.Part0 = Torso
  157.             Joint.Part1 = Limb
  158.             Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  159.             Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  160.             Joint.Parent = Torso
  161.  
  162.             local B = Instance.new("Part")
  163.             B.TopSurface = 0
  164.             B.BottomSurface = 0
  165.             B.formFactor = "Symmetric"
  166.             B.Size = Vector3.new(1, 1, 1)
  167.             B.Transparency = 1
  168.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  169.             B.Parent = Character
  170.             local W = Instance.new("Weld")
  171.             W.Part0 = Limb
  172.             W.Part1 = B
  173.             W.C0 = CFrame.new(0, -0.5, 0)
  174.             W.Parent = Limb
  175.  
  176.         end
  177.         local Limb = Character:FindFirstChild("Left Leg")
  178.         if Limb then
  179.  
  180.             Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  181.             local Joint = Instance.new("Glue")
  182.             Joint.Name = "LeftHip"
  183.             Joint.Part0 = Torso
  184.             Joint.Part1 = Limb
  185.             Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  186.             Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  187.             Joint.Parent = Torso
  188.  
  189.             local B = Instance.new("Part")
  190.             B.TopSurface = 0
  191.             B.BottomSurface = 0
  192.             B.formFactor = "Symmetric"
  193.             B.Size = Vector3.new(1, 1, 1)
  194.             B.Transparency = 1
  195.             B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  196.             B.Parent = Character
  197.             local W = Instance.new("Weld")
  198.             W.Part0 = Limb
  199.             W.Part1 = B
  200.             W.C0 = CFrame.new(0, -0.5, 0)
  201.             W.Parent = Limb
  202.  
  203.         end
  204.         --[
  205.         local Bar = Instance.new("Part")
  206.         Bar.TopSurface = 0
  207.         Bar.BottomSurface = 0
  208.         Bar.formFactor = "Symmetric"
  209.         Bar.Size = Vector3.new(1, 1, 1)
  210.         Bar.Transparency = 1
  211.         Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  212.         Bar.Parent = Character
  213.         local Weld = Instance.new("Weld")
  214.         Weld.Part0 = Torso
  215.         Weld.Part1 = Bar
  216.         Weld.C0 = CFrame.new(0, 0.5, 0)
  217.         Weld.Parent = Torso
  218.         --]]
  219.     end
  220.     Character.Parent = Gibs
  221.     game.Debris:AddItem(Character, 12)
  222.     if movevector ~= Vector3.new() then
  223.         for i = 1,10 do
  224.             wait()
  225.             Torso.Velocity = Vector3.new(0,0,-100)
  226.             Head.Velocity = movevector * 200
  227.         end
  228.     end
  229.     local duh = Torso
  230. ee = Instance.new("Part")
  231. ee.Anchored = false
  232. ee.CanCollide = false
  233. ee.Parent = duh
  234. ee.Transparency =1
  235. ee.Size = Vector3.new(0.15, 0.15, 0.15)
  236. wee = Instance.new("Weld")
  237. wee.Parent = duh
  238. wee.Part0 = duh
  239. wee.Part1 = ee
  240. wee.C0 = CFrame.new(0, 1, 0)
  241. ge = Instance.new('ParticleEmitter')
  242. ge.Parent = ee
  243. ge.Texture = "rbxassetid://29712167"
  244. ge.Size = NumberSequence.new(0.2,0.05)
  245. ge.Acceleration = Vector3.new(0, -20, 0)
  246. ge.Rate = 100000
  247. ge.Speed = NumberRange.new(7,8)
  248. ge.Lifetime = NumberRange.new(3,4)
  249. ge.VelocitySpread = 10
  250. ge.VelocityInheritance = 0.3
  251. ea = Instance.new("Part")
  252. ea.Anchored = false
  253. ea.CanCollide = false
  254. ea.Parent = Character.Head
  255. ea.Transparency =1
  256. ea.Size = Vector3.new(0.15, 0.15, 0.15)
  257. wea = Instance.new("Weld")
  258. wea.Parent = Character.Head
  259. wea.Part0 = Character.Head
  260. wea.Part1 = ea
  261. wea.C0 = CFrame.new(0, -0.7, 0)
  262. ga = Instance.new('ParticleEmitter')
  263. ga.Parent = ea
  264. ga.Texture = "rbxassetid://29712167"
  265. ga.Size = NumberSequence.new(0.2,0.05)
  266. ga.Acceleration = Vector3.new(0, -20, 0)
  267. ga.Rate = 100000
  268. ga.Speed = NumberRange.new(7,8)
  269. ga.Lifetime = NumberRange.new(3,4)
  270. ga.VelocitySpread = 10
  271. ga.VelocityInheritance = 0.3
  272. ga.EmissionDirection = Enum.NormalId.Bottom
  273. end
  274.  
  275. local plr = game.Players.LocalPlayer
  276. local chr = plr.Character
  277. local mouse = plr:GetMouse()
  278. local intro = coroutine.wrap(function()
  279.     local gui = Instance.new('ScreenGui',plr.PlayerGui)
  280.     gui.Name = "Intro"
  281.     local fr = Instance.new('Frame',gui)
  282.     fr.Size = UDim2.new(0.4,0,0,0)
  283.     fr.Position = UDim2.new(0.3,0,-0.1,0)
  284.     fr.BorderColor3 = Color3.fromRGB(198, 45, 45)
  285.     fr.BorderSizePixel = 5
  286.     fr.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  287.     local title = Instance.new('TextLabel',fr)
  288.     title.Size = UDim2.new(1,0,0.4,0)
  289.     title.Position = UDim2.new(0,0,0.1,0)
  290.     title.BackgroundTransparency = 1
  291.     title.TextColor3 = Color3.fromRGB(198, 45, 45)
  292.     title.TextScaled = true
  293.     title.Text = 'Deadpool Script'
  294.     local desc = Instance.new('TextLabel',fr)
  295.     desc.Size = UDim2.new(1,0,0.5,0)
  296.     desc.Position = UDim2.new(0,0,0.5,0)
  297.     desc.BackgroundTransparency = 1
  298.     desc.TextColor3 = Color3.fromRGB(198, 45, 45)
  299.     desc.TextScaled = true
  300.     desc.Text = ''
  301.     wait(1)
  302.     fr:TweenSize(UDim2.new(0.4,0,0.5,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,2)
  303.     wait(2)
  304.     local str = 'Hotkey to equip katana is N. Use Z to stab and X to slice heads off. Created by mustardfoot.'
  305.     local leng = string.len(str)
  306.     for i = 1,leng do
  307.         desc.Text = string.sub(str,1,i)
  308.         wait()
  309.     end
  310.     wait(2)
  311.     fr:TweenSize(UDim2.new(0.4,0,0,0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,0.8)
  312.     wait(2)
  313.     gui:Destroy()
  314. end)
  315. intro()
  316.  
  317.  
  318. wait(2)
  319. local tors = chr.Torso
  320. chr.Head.Transparency = 1
  321. for i,v in pairs(chr:GetChildren()) do
  322.     if v.ClassName == "CharacterMesh" then
  323.         v:Destroy()
  324.     end
  325. end
  326. local humroot = chr.HumanoidRootPart:Clone()
  327. local torsclone = tors:Clone()
  328. local anim = chr.Animate:Clone()
  329. local hum = chr.Humanoid:Clone()
  330. local head = chr.Head:Clone()
  331. local neck = chr.Torso.Neck:Clone()
  332. local rightarm = chr["Right Arm"]:Clone()
  333. local leftarm = chr["Left Arm"]:Clone()
  334. local leftleg = chr["Left Leg"]:Clone()
  335. local rightleg = chr["Right Leg"]:Clone()
  336. local rightshoulder = tors["Right Shoulder"]:Clone()
  337. local leftshoulder = tors["Left Shoulder"]:Clone()
  338. local righthip = tors["Right Hip"]:Clone()
  339. local lefthip = tors["Left Hip"]:Clone()
  340. local shirt = nil
  341. local pants = nil
  342. local hats = {}
  343. local lastpos = CFrame.new(0,0,0)
  344. local on = true
  345. local doing = false
  346. local stabbing = false
  347. local slicing = false
  348. local toolz = Instance.new('Tool',plr.Backpack)
  349. toolz.Name = "Katana"
  350. toolz.RequiresHandle = false
  351. toolz.CanBeDropped = false
  352. local partz = Instance.new('Part',toolz)
  353. partz.Size = Vector3.new(0.2,0.2,3)
  354. partz.CanCollide = false
  355. local meshz = Instance.new('SpecialMesh',partz)
  356. meshz.MeshId = 'rbxassetid://11442510'
  357. meshz.TextureId = 'rbxassetid://30956707'
  358. meshz.VertexColor = Vector3.new(0,0,0)
  359.  
  360. toolz.Equipped:connect(function(mouse)
  361.     if chr:FindFirstChild('Right Arm') then
  362.         local weld = Instance.new('Weld',partz)
  363.         weld.Part0 = partz
  364.         weld.Part1 = chr["Right Arm"]
  365.         weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
  366.     end
  367.     mouse.KeyDown:connect(function(key)
  368.         if doing == false then
  369.         if key == 'z' then
  370.         if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
  371.             doing = true
  372.             local weld = Instance.new('Weld',chr["Right Arm"])
  373.             weld.Part0 = chr["Right Arm"]
  374.             weld.Part1 = chr.Torso
  375.             weld.C0 = CFrame.new(-1.5,0,0)
  376.             for i=1,25 do
  377.                 weld.C0 = weld.C0:lerp(CFrame.new(-1.5,1,0.9)*CFrame.Angles(math.pi/2.5,0,-math.pi/2.5),i/25)
  378.                 wait()
  379.             end
  380.             wait()
  381.             stabbing = true
  382.             for i=1,10 do
  383.                 weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/4,0,-math.pi/6),i/10)
  384.                 wait()
  385.             end
  386.             wait()
  387.             for i=1,25 do
  388.                 weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/25)
  389.                 wait()
  390.             end
  391.             chr["Right Arm"]:Destroy()
  392.             doing = false
  393.             stabbing = false
  394.         end
  395.         elseif key == 'x' then
  396.             if chr:FindFirstChild('Right Arm') and chr:FindFirstChild('Torso') then
  397.             doing = true
  398.             local weld = Instance.new('Weld',chr["Right Arm"])
  399.             weld.Part0 = chr["Right Arm"]
  400.             weld.Part1 = chr.Torso
  401.             weld.C0 = CFrame.new(-1.5,0,0)
  402.             for i=1,25 do
  403.                 weld.C0 = weld.C0:lerp(CFrame.new(-0.5,0.7,-0.5)*CFrame.Angles(math.pi/8,math.pi/1,math.pi/1.5),i/25)
  404.                 wait()
  405.             end
  406.             wait()
  407.             slicing = true
  408.             for i=1,5 do
  409.                 weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0.8,0)*CFrame.Angles(-math.pi/8,0,-math.pi/4),i/5)
  410.                 wait()
  411.             end
  412.             wait()
  413.             for i=1,12.5 do
  414.                 weld.C0 = weld.C0:lerp(CFrame.new(-1.5,0,0),i/12.5)
  415.                 wait()
  416.             end
  417.             chr["Right Arm"]:Destroy()
  418.             doing = false
  419.             slicing = false
  420.         end
  421.         end
  422.         end
  423.     end)
  424. end)
  425.  
  426. partz.Touched:connect(function(hit)
  427.     if hit.Parent:FindFirstChild('Humanoid') and stabbing and hit.Parent ~= chr then
  428.         hit.Parent.Humanoid.Health = 0
  429.     elseif hit.Parent:FindFirstChild('heck') == nil and slicing then
  430.         local he = Instance.new('IntValue',hit.Parent)
  431.         he.Name = "heck"
  432.         Kill(hit.Parent)
  433.     end
  434. end)
  435.  
  436. toolz.Unequipped:connect(function(mouse)
  437.     if partz:FindFirstChildOfClass('Weld') then
  438.         partz:FindFirstChildOfClass('Weld'):Destroy()
  439.     end
  440. end)
  441. toolz.AncestryChanged:connect(function(child, parent)
  442.     if parent ~= chr and parent ~= plr.Backpack then
  443.     wait()
  444.         toolz.Parent = plr.Backpack
  445.     end
  446. end)
  447.  
  448. mouse.KeyDown:connect(function(key)
  449.     if key == "n" then
  450.     wait()
  451.         toolz:Equip()
  452.     end
  453. end)
  454. if chr:FindFirstChildOfClass('Shirt') then
  455.     shirt = chr:FindFirstChildOfClass('Shirt'):Clone()
  456. end
  457. if chr:FindFirstChildOfClass('Pants') then
  458.     pants = chr:FindFirstChildOfClass('Pants'):Clone()
  459. end
  460. for i,v in pairs(chr:GetChildren()) do
  461.     if v.ClassName == "Accessory" then
  462.         table.insert(hats,v:Clone())
  463.     end
  464. end
  465. local rootjoint = chr.HumanoidRootPart.RootJoint:Clone()
  466. chr.Humanoid:Destroy()
  467. local gui = Instance.new('ScreenGui')
  468. gui.Parent = game.Players.LocalPlayer.PlayerGui
  469. gui.Name = "Deadpool"
  470. gui.ResetOnSpawn = false
  471. local frame = Instance.new('Frame',gui)
  472. frame.Size = UDim2.new(0.2,0,0.2,0)
  473. frame.Position = UDim2.new(0,0,0.9,0)
  474. frame.BackgroundColor3 = Color3.fromRGB(38, 38, 38)
  475. frame.BorderSizePixel = 4
  476. frame.BorderColor3 = Color3.fromRGB(198, 45, 45)
  477. frame.Active = true
  478. frame.Draggable = true
  479. local txt = Instance.new('TextLabel',frame)
  480. txt.Text = "Deadpool Gui"
  481. txt.TextColor3 = Color3.fromRGB(198, 45, 45)
  482. txt.Size = UDim2.new(1,0,0.3,0)
  483. txt.TextScaled = true
  484. txt.BackgroundTransparency = 1
  485. local but = Instance.new('TextButton',frame)
  486. but.Text = "Toggle Suit"
  487. but.TextColor3 = Color3.fromRGB(38, 38, 38)
  488. but.Size = UDim2.new(0.7,0,0.3,0)
  489. but.Position = UDim2.new(0.15,0,0.5,0)
  490. but.BorderSizePixel = 0
  491. but.TextScaled = true
  492. but.BackgroundColor3 = Color3.fromRGB(198, 45, 45)
  493. but.MouseButton1Down:connect(function()
  494.     on = not on
  495. end)
  496. local but2 = Instance.new('TextButton',frame)
  497. but2.Text = "destory gui"
  498. but2.TextColor3 = Color3.fromRGB(38, 38, 38)
  499. but2.Size = UDim2.new(0.7,0,0.3,0)
  500. but2.Position = UDim2.new(0.15,0,0.17,0)
  501. but2.BorderSizePixel = 0
  502. but2.TextScaled = true
  503. but2.BackgroundColor3 = Color3.fromRGB(198, 45, 45)
  504. but2.MouseButton1Down:connect(function()
  505. gui:Remove()
  506. end)
  507. game:GetService('RunService').Stepped:connect(function()
  508.     if chr.Parent == nil then
  509.     chr.RobloxLocked = false
  510.     chr.Parent = game.Workspace
  511.     end
  512.     if chr:FindFirstChildOfClass('Humanoid') == nil then
  513.         hum:Clone().Parent = chr
  514.         chr.Animate:Destroy()
  515.         anim:Clone().Parent = chr
  516.     end
  517.     if chr:FindFirstChild('HumanoidRootPart') == nil then
  518.         humroot:Clone().Parent = chr
  519.         humroot.CFrame = lastpos
  520.         chr.Humanoid:Destroy()
  521.         hum:Clone().Parent = chr
  522.         chr.Animate:Destroy()
  523.         anim:Clone().Parent = chr
  524.         chr.HumanoidRootPart.RootJoint:Destroy()
  525.     end
  526.     if chr:FindFirstChild('Torso') == nil then
  527.         chr.Humanoid:Destroy()
  528.         local tor = tors:Clone()
  529.         tor.Parent = chr
  530.         hum:Clone().Parent = chr
  531.         chr.Animate:Destroy()
  532.         anim:Clone().Parent = chr
  533.     end
  534.     if chr.HumanoidRootPart:FindFirstChild('RootJoint') == nil then
  535.         local rtj = rootjoint:Clone()
  536.         rtj.Parent = chr.HumanoidRootPart
  537.         rtj.Part0 = chr.HumanoidRootPart
  538.         rtj.Part1 = chr.Torso
  539.     end
  540.     if chr:FindFirstChild('Head') == nil then
  541.         chr.Humanoid:Destroy()
  542.         head:Clone().Parent = chr
  543.         hum:Clone().Parent = chr
  544.         chr.Animate:Destroy()
  545.         anim:Clone().Parent = chr
  546.     end
  547.     if chr.Torso:FindFirstChild('Neck') == nil then
  548.         chr.Humanoid:Destroy()
  549.         local hec = neck:Clone()
  550.         hec.Parent = chr.Torso
  551.         hec.Part0 = chr.Torso
  552.         hec.Part1 = chr.Head
  553.         hum:Clone().Parent = chr
  554.         chr.Animate:Destroy()
  555.         anim:Clone().Parent = chr
  556.     end
  557.     if chr:FindFirstChild('Right Leg') == nil then
  558.         rightleg:Clone().Parent = chr
  559.         local fi = righthip:Clone()
  560.         fi.Parent = chr.Torso
  561.         fi.Part0 = chr.Torso
  562.         fi.Part1 = chr["Right Leg"]
  563.     end
  564.     if chr:FindFirstChild('Right Arm') == nil then
  565.         rightarm:Clone().Parent = chr
  566.         local fi = rightshoulder:Clone()
  567.         fi.Parent = chr.Torso
  568.         fi.Part0 = chr.Torso
  569.         fi.Part1 = chr["Right Arm"]
  570.     end
  571.     if chr:FindFirstChild('Left Leg') == nil then
  572.         leftleg:Clone().Parent = chr
  573.         local fi = lefthip:Clone()
  574.         fi.Parent = chr.Torso
  575.         fi.Part0 = chr.Torso
  576.         fi.Part1 = chr["Left Leg"]
  577.     end
  578.     if chr:FindFirstChild('Left Arm') == nil then
  579.         leftarm:Clone().Parent = chr
  580.         local fi = leftshoulder:Clone()
  581.         fi.Parent = chr.Torso
  582.         fi.Part0 = chr.Torso
  583.         fi.Part1 = chr["Left Arm"]
  584.     end
  585.     for i,v in pairs(chr:GetChildren()) do
  586.         if v.Name == "Mask" or v.ClassName == "Accessory" or v.ClassName == "Shirt" or v.ClassName == "Pants" or v.Name == "KatanaHolder" then
  587.             v:Destroy()
  588.         end
  589.     end
  590.     chr.Humanoid.Health = chr.Humanoid.MaxHealth
  591.     if partz:FindFirstChild('Weld') == nil and toolz.Parent == chr then
  592.         local weld = Instance.new('Weld',partz)
  593.         weld.Part0 = partz
  594.         weld.Part1 = chr["Right Arm"]
  595.         weld.C0 = CFrame.new(0.9,0,-1.25)*CFrame.Angles(math.pi,0,-math.pi/2)
  596.     end
  597.     lastpos = chr.HumanoidRootPart.CFrame
  598.     local kat = Instance.new('Part',chr)
  599.     kat.Size = Vector3.new(0.4,3,0.2)
  600.     kat.Name = "KatanaHolder"
  601.     kat.Material = Enum.Material.SmoothPlastic
  602.     kat.BrickColor = BrickColor.new('Really black')
  603.     kat.CanCollide = false
  604.     local we = Instance.new('Weld',kat)
  605.     we.Part0 = kat
  606.     we.Part1 = chr.Torso
  607.     we.C0 = CFrame.new(0,0,-0.5)*CFrame.Angles(0,0,0.5)
  608.     if on == true then
  609.     local shirt = Instance.new('Shirt',chr)
  610.     shirt.ShirtTemplate = 'rbxassetid://379545459'
  611.     local pants = Instance.new('Pants',chr)
  612.     pants.PantsTemplate = 'rbxassetid://379545671'
  613.     local mask = Instance.new('Part',chr)
  614. mask.Name = "Mask"
  615. mask.Size = Vector3.new(2,1,1)
  616. mask.BrickColor = BrickColor.new('Bright red')
  617. local mesh = Instance.new('SpecialMesh',mask)
  618. mesh.Scale = Vector3.new(1.3,1.3,1.3)
  619. local weld = Instance.new('Weld',mask)
  620. weld.Part0 = mask
  621. weld.Part1 = chr.Head
  622. local eyesurround = Instance.new('Part',mask)
  623. eyesurround.BrickColor = BrickColor.new('Really black')
  624. eyesurround.Size = Vector3.new(0.3,0.5,0.2)
  625. local mesh2 = Instance.new('SpecialMesh',eyesurround)
  626. mesh2.MeshType = Enum.MeshType.Sphere
  627. mesh2.Scale = Vector3.new(1,1,0.5)
  628. local weld2 = Instance.new('Weld',eyesurround)
  629. weld2.Part0 = eyesurround
  630. weld2.Part1 = mask
  631. weld2.C0 = CFrame.new(0.1,-0.22,0.58)*CFrame.Angles(0,0,-0.2)
  632. local eyesurround2 = Instance.new('Part',mask)
  633. eyesurround2.BrickColor = BrickColor.new('Really black')
  634. eyesurround2.Size = Vector3.new(0.3,0.5,0.2)
  635. local mesh3 = Instance.new('SpecialMesh',eyesurround2)
  636. mesh3.MeshType = Enum.MeshType.Sphere
  637. mesh3.Scale = Vector3.new(1,1,0.5)
  638. local weld3 = Instance.new('Weld',eyesurround2)
  639. weld3.Part0 = eyesurround2
  640. weld3.Part1 = mask
  641. weld3.C0 = CFrame.new(-0.1,-0.22,0.58)*CFrame.Angles(0,0,0.2)
  642. local eye = Instance.new('Part',mask)
  643. eye.BrickColor = BrickColor.new('Institutional white')
  644. eye.Size = Vector3.new(0.2,0.2,0.2)
  645. local mesh4 = Instance.new('SpecialMesh',eye)
  646. mesh4.MeshType = Enum.MeshType.Sphere
  647. mesh4.Scale = Vector3.new(1,1,0.5)
  648. local weld4 = Instance.new('Weld',eye)
  649. weld4.Part0 = eye
  650. weld4.Part1 = mask
  651. weld4.C0 = CFrame.new(0.1,-0.22,0.59)*CFrame.Angles(0,0,-0.2)
  652. local eye2 = Instance.new('Part',mask)
  653. eye2.BrickColor = BrickColor.new('Institutional white')
  654. eye2.Size = Vector3.new(0.2,0.2,0.2)
  655. local mesh5 = Instance.new('SpecialMesh',eye2)
  656. mesh5.MeshType = Enum.MeshType.Sphere
  657. mesh5.Scale = Vector3.new(1,1,0.5)
  658. local weld5 = Instance.new('Weld',eye2)
  659. weld5.Part0 = eye2
  660. weld5.Part1 = mask
  661. weld5.C0 = CFrame.new(-0.1,-0.22,0.59)*CFrame.Angles(0,0,0.2)
  662.     else
  663.         chr.Head.Transparency = 0
  664.         if shirt ~= nil then
  665.             shirt:Clone().Parent = chr
  666.         end
  667.         if pants ~= nil then
  668.             pants:Clone().Parent = chr
  669.         end
  670.         for i,v in pairs(hats) do
  671.             v:Clone().Parent = chr
  672.         end
  673. end
  674. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement