Advertisement
kikot

dp script pls pls pls work

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