Hugo1234cool

Untitled

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