Advertisement
reset234567890

asdfghjklm cdertyjm

May 4th, 2019
159
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 60.50 KB | None | 0 0
  1. -- This script has convert to FE by who i don't know?
  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,game,owner = owner,game
  6. local RealPlayer = Player
  7. do
  8. print("FE Compatibility code by Mokiros | Showcase by Bacon Hair!")
  9. local rp = RealPlayer
  10. script.Parent = rp.Character
  11.  
  12. --RemoteEvent for communicating
  13. local Event = Instance.new("RemoteEvent")
  14. Event.Name = "UserInput_Event"
  15.  
  16. --Fake event to make stuff like Mouse.KeyDown work
  17. local function fakeEvent()
  18. local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
  19. t.connect = t.Connect
  20. return t
  21. end
  22.  
  23. --Creating fake input objects with fake variables
  24. local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
  25. local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
  26. local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
  27. CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
  28. end}
  29. --Merged 2 functions into one by checking amount of arguments
  30. CAS.UnbindAction = CAS.BindAction
  31.  
  32. --This function will trigger the events that have been :Connect()'ed
  33. local function te(self,ev,...)
  34. local t = m[ev]
  35. if t and t._fakeEvent then
  36. for _,f in pairs(t.Functions) do
  37. f(...)
  38. end
  39. end
  40. end
  41. m.TrigEvent = te
  42. UIS.TrigEvent = te
  43.  
  44. Event.OnServerEvent:Connect(function(plr,io)
  45. if plr~=rp then return end
  46. m.Target = io.Target
  47. m.Hit = io.Hit
  48. if not io.isMouse then
  49. local b = io.UserInputState == Enum.UserInputState.Begin
  50. if io.UserInputType == Enum.UserInputType.MouseButton1 then
  51. return m:TrigEvent(b and "Button1Down" or "Button1Up")
  52. end
  53. for _,t in pairs(CAS.Actions) do
  54. for _,k in pairs(t.Keys) do
  55. if k==io.KeyCode then
  56. t.Function(t.Name,io.UserInputState,io)
  57. end
  58. end
  59. end
  60. m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
  61. UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
  62. end
  63. end)
  64. Event.Parent = NLS([==[
  65. local Player = game:GetService("Players").LocalPlayer
  66. local Event = script:WaitForChild("UserInput_Event")
  67.  
  68. local Mouse = Player:GetMouse()
  69. local UIS = game:GetService("UserInputService")
  70. local input = function(io,a)
  71. if a then return end
  72. --Since InputObject is a client-side instance, we create and pass table instead
  73. Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
  74. end
  75. UIS.InputBegan:Connect(input)
  76. UIS.InputEnded:Connect(input)
  77.  
  78. local h,t
  79. --Give the server mouse data 30 times every second, but only if the values changed
  80. --If player is not moving their mouse, client won't fire events
  81. while wait(1/30) do
  82. if h~=Mouse.Hit or t~=Mouse.Target then
  83. h,t=Mouse.Hit,Mouse.Target
  84. Event:FireServer({isMouse=true,Target=t,Hit=h})
  85. end
  86. end]==],Player.Character)
  87.  
  88. ----Sandboxed game object that allows the usage of client-side methods and services
  89. --Real game object
  90. local _rg = game
  91.  
  92. --Metatable for fake service
  93. local fsmt = {
  94. __index = function(self,k)
  95. local s = rawget(self,"_RealService")
  96. if s then return s[k] end
  97. end,
  98. __newindex = function(self,k,v)
  99. local s = rawget(self,"_RealService")
  100. if s then s[k]=v end
  101. end,
  102. __call = function(self,...)
  103. local s = rawget(self,"_RealService")
  104. if s then return s(...) end
  105. end
  106. }
  107. local function FakeService(t,RealService)
  108. t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
  109. return setmetatable(t,fsmt)
  110. end
  111.  
  112. --Fake game object
  113. local g = {
  114. GetService = function(self,s)
  115. return self[s]
  116. end,
  117. Players = FakeService({
  118. LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
  119. },"Players"),
  120. UserInputService = FakeService(UIS,"UserInputService"),
  121. ContextActionService = FakeService(CAS,"ContextActionService"),
  122. }
  123. rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
  124. g.service = g.GetService
  125.  
  126. g.RunService = FakeService({
  127. RenderStepped = _rg:GetService("RunService").Heartbeat,
  128. BindToRenderStep = function(self,name,_,fun)
  129.  
  130. end,
  131. UnbindFromRenderStep = function(self,name)
  132. self._btrs[name]:Disconnect()
  133. end,
  134. },"RunService")
  135.  
  136. setmetatable(g,{
  137. __index=function(self,s)
  138. return _rg:GetService(s) or typeof(_rg[s])=="function"
  139. and function(_,...)return _rg[s](_rg,...)end or _rg[s]
  140. end,
  141. __newindex = fsmt.__newindex,
  142. __call = fsmt.__call
  143. })
  144. --Changing owner to fake player object to support owner:GetMouse()
  145. game,owner = g,g.Players.LocalPlayer
  146. end
  147.  
  148. --By Rufus14 and edited by QehNoob, dont remove the credits
  149. Character = game.Players.LocalPlayer.Character
  150. Player = game.Players.LocalPlayer
  151. char = Character
  152. hum = Character.Humanoid
  153. Torso = Character.Torso
  154. Head = Character.Head
  155.  
  156. char.Shirt.ShirtTemplate = "rbxassetid://994469018"
  157. char.Pants.PantsTemplate = "rbxassetid://977437883"
  158.  
  159.  
  160. local BC = char["Body Colors"]
  161. BC.HeadColor = BrickColor.new("Really black")
  162. BC.LeftArmColor = BrickColor.new("Really black")
  163. BC.LeftLegColor = BrickColor.new("Really black")
  164. BC.RightArmColor = BrickColor.new("Really black")
  165. BC.RightLegColor = BrickColor.new("Really black")
  166. BC.TorsoColor = BrickColor.new("Really black")
  167.  
  168. char.Head.face.Texture = "rbxassetid://701379058"
  169.  
  170. hum.MaxHealth = math.huge
  171.  
  172.  
  173.  
  174.  
  175. for i,v in pairs(char:children()) do
  176. if v:IsA("Hat") then
  177. v:Destroy()
  178. end
  179. end
  180. for i,v in pairs(char:children()) do
  181. if v:IsA("Accessory") then
  182. v:Destroy()
  183. end
  184. end
  185. for i,v in pairs(char:children()) do
  186. if v:IsA("Hair") then
  187. v:Destroy()
  188. end
  189. end
  190. --141378828
  191. Reaper = Instance.new("Model")
  192. Reaper.Parent = Player.Character
  193. Reaper.Name = "Reaper"
  194. rh = Instance.new("Part")
  195. rh.Parent = Reaper
  196. rh.BrickColor = BrickColor.new("Really red")
  197. rh.Locked = true
  198. rh.CanCollide = false
  199. mesh = Instance.new("SpecialMesh")
  200. rh.formFactor = "Symmetric"
  201. mesh.MeshType = "FileMesh"
  202. mesh.MeshId = "http://www.roblox.com/asset/?id=112643970"
  203. mesh.TextureId = "http://www.roblox.com/asset/?id=1018233493"
  204. mesh.Parent = rh
  205. mesh.Scale = Vector3.new(1.1,1.1,1.1)
  206. local weld = Instance.new("Weld")
  207. weld.Parent = rh
  208. rh.Transparency = 0
  209. weld.Part0 = rh
  210. weld.Part1 = Player.Character.Head
  211. weld.C0 = CFrame.new(-0, -0.05, -0)*CFrame.Angles(0, 0, 0)
  212.  
  213. mouse = game.Players.LocalPlayer:GetMouse()
  214. game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 25
  215. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  216. game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Remove()
  217. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  218. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  219. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  220. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  221. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  222. game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Remove()
  223. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  224. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  225. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  226. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  227. local llegclone = game.Players.LocalPlayer.Character.Torso["Left Hip"]:Clone()
  228. game.Players.LocalPlayer.Character.Torso["Left Hip"]:Remove()
  229. local llegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  230. llegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  231. llegweld.Part1 = game.Players.LocalPlayer.Character["Left Leg"]
  232. llegweld.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  233. local rlegclone = game.Players.LocalPlayer.Character.Torso["Right Hip"]:Clone()
  234. game.Players.LocalPlayer.Character.Torso["Right Hip"]:Remove()
  235. local rlegweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  236. rlegweld.Part0 = game.Players.LocalPlayer.Character.Torso
  237. rlegweld.Part1 = game.Players.LocalPlayer.Character["Right Leg"]
  238. rlegweld.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  239. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  240. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  241. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  242. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  243. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  244. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  245. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  246. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  247. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  248. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  249. game.Players.LocalPlayer.Character.Torso.Neck:Remove()
  250. howmuch = 0
  251. canwalk = true
  252. function change(key)
  253. if key == "w" or key == "a" or key == "s" or key == "d" then
  254. howmuch = howmuch + 1
  255. end
  256. end
  257. function otherchange(key)
  258. if key == "w" or key == "a" or key == "s" or key == "d" then
  259. howmuch = howmuch - 1
  260. end
  261. end
  262. mouse.KeyDown:connect(change)
  263. mouse.KeyUp:connect(otherchange)
  264. --Converted with ttyyuu12345's model to script plugin v4
  265. function sandbox(var,func)
  266. local env = getfenv(func)
  267. local newenv = setmetatable({},{
  268. __index = function(self,k)
  269. if k=="script" then
  270. return var
  271. else
  272. return env[k]
  273. end
  274. end,
  275. })
  276. setfenv(func,newenv)
  277. return func
  278. end
  279. cors = {}
  280. mas = Instance.new("Model",game:GetService("Lighting"))
  281. Model0 = Instance.new("Model")
  282. Part1 = Instance.new("Part")
  283. Part2 = Instance.new("Part")
  284. Part3 = Instance.new("Part")
  285. Weld4 = Instance.new("Weld")
  286. Weld5 = Instance.new("Weld")
  287. Weld6 = Instance.new("Weld")
  288. Part7 = Instance.new("Part")
  289. Model0.Name = "Sawed Off"
  290. Model0.Parent = mas
  291. Part1.Parent = Model0
  292. Part1.BrickColor = BrickColor.new("Really black")
  293. Part1.Shape = Enum.PartType.Cylinder
  294. Part1.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334)
  295. Part1.CFrame = CFrame.new(40.7499924, 151.548019, 156.470001, 1.0000006, -1.78813934e-07, 0, -1.78813934e-07, 1.00000024, 0, 0, 0, 1)
  296. Part1.Color = Color3.new(0.101961, 0.101961, 0.101961)
  297. Part1.Position = Vector3.new(40.7499924, 151.548019, 156.470001)
  298. Part1.Color = Color3.new(0.101961, 0.101961, 0.101961)
  299. Part2.Parent = Model0
  300. Part2.BrickColor = BrickColor.new("Really black")
  301. Part2.Shape = Enum.PartType.Cylinder
  302. Part2.Size = Vector3.new(2.96000075, 0.449999958, 0.400000334)
  303. Part2.CFrame = CFrame.new(40.7499962, 151.548035, 156.079056, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  304. Part2.Color = Color3.new(0.101961, 0.101961, 0.101961)
  305. Part2.Position = Vector3.new(40.7499962, 151.548035, 156.079056)
  306. Part2.Color = Color3.new(0.101961, 0.101961, 0.101961)
  307. Part3.Parent = Model0
  308. Part3.BrickColor = BrickColor.new("Cocoa")
  309. Part3.Rotation = Vector3.new(0, 0, -34)
  310. Part3.Size = Vector3.new(1.11000025, 0.519999921, 0.570000172)
  311. Part3.CFrame = CFrame.new(42.5974922, 150.98793, 156.274887, 0.829038441, 0.559192181, 0, -0.55919224, 0.829038203, 0, 0, 0, 1)
  312. Part3.Color = Color3.new(0.317647, 0.145098, 0)
  313. Part3.Position = Vector3.new(42.5974922, 150.98793, 156.274887)
  314. Part3.Orientation = Vector3.new(0, 0, -34)
  315. Part3.Color = Color3.new(0.317647, 0.145098, 0)
  316. Weld4.Name = "1"
  317. Weld4.Parent = Part3
  318. Weld4.C0 = CFrame.new(-1.84484863, -0.568756104, -0.195831299, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1)
  319. Weld4.Part0 = Part3
  320. Weld4.Part1 = Part2
  321. Weld5.Name = "3"
  322. Weld5.Parent = Part3
  323. Weld5.C0 = CFrame.new(-0.60994339, 0.0636444092, 0.00506591797, 0.866026163, 0.499997735, 0, -0.499997616, 0.866026044, 0, 0, 0, 1)
  324. Weld5.Part0 = Part3
  325. Weld5.Part1 = Part7
  326. Weld6.Name = "2"
  327. Weld6.Parent = Part3
  328. Weld6.C0 = CFrame.new(-1.84484482, -0.568771362, 0.195114136, 0.829038441, -0.55919224, 0, 0.559192181, 0.829038203, 0, 0, 0, 1)
  329. Weld6.Part0 = Part3
  330. Weld6.Part1 = Part1
  331. Part7.Parent = Model0
  332. Part7.BrickColor = BrickColor.new("Cocoa")
  333. Part7.Rotation = Vector3.new(0, 0, -64)
  334. Part7.Size = Vector3.new(0.440000623, 0.519999921, 0.759999931)
  335. Part7.CFrame = CFrame.new(42.1274147, 151.381775, 156.279953, 0.438374251, 0.898792326, 0, -0.898792267, 0.438373834, 0, 0, 0, 1)
  336. Part7.Color = Color3.new(0.317647, 0.145098, 0)
  337. Part7.Position = Vector3.new(42.1274147, 151.381775, 156.279953)
  338. Part7.Orientation = Vector3.new(0, 0, -64)
  339. Part7.Color = Color3.new(0.317647, 0.145098, 0)
  340. for i,v in pairs(mas:GetChildren()) do
  341. v.Parent = game:GetService("Players").LocalPlayer.Character
  342. pcall(function() v:MakeJoints() end)
  343. end
  344. mas:Destroy()
  345. for i,v in pairs(cors) do
  346. spawn(function()
  347. pcall(v)
  348. end)
  349. end
  350. for i,v in pairs(Model0:GetChildren()) do
  351. if v.ClassName == "Part" then
  352. v.CanCollide = false
  353. end
  354. end
  355.  
  356. --Converted with ttyyuu12345's model to script plugin v4
  357. function sandbox(var,func)
  358. local env = getfenv(func)
  359. local newenv = setmetatable({},{
  360. __index = function(self,k)
  361. if k=="script" then
  362. return var
  363. else
  364. return env[k]
  365. end
  366. end,
  367. })
  368. setfenv(func,newenv)
  369. return func
  370. end
  371. cors = {}
  372. mas = Instance.new("Model",game:GetService("Lighting"))
  373. for i,v in pairs(mas:GetChildren()) do
  374. v.Parent = game:GetService("Players").LocalPlayer.Character.Torso
  375. pcall(function() v:MakeJoints() end)
  376. end
  377. mas:Destroy()
  378. for i,v in pairs(cors) do
  379. spawn(function()
  380. pcall(v)
  381. end)
  382. end
  383. Sound0 = Instance.new("Sound")
  384. Sound0.Volume = 5
  385. Sound0.Parent = game.Players.LocalPlayer.Character.Head
  386. Sound0.SoundId = "rbxassetid://565420180"
  387. Sound0.Looped = true
  388. Sound0:Play()
  389. Sound00 = Instance.new("Sound")
  390. Sound00.Volume = 6
  391. Sound00.Parent = game.Players.LocalPlayer.Character.Head
  392. Sound00.SoundId = "rbxassetid://330706798"
  393. local txtfag = Instance.new("BillboardGui", game.Players.LocalPlayer.Character.Head)
  394. txtfag.Adornee = suckadick
  395. txtfag.Name = "kys nigga"
  396. txtfag.Size = UDim2.new(2, 0, 1.2, 0)
  397. txtfag.StudsOffset = Vector3.new(-5, 3, 0)
  398. local textfag = Instance.new("TextLabel", txtfag)
  399. textfag.Size = UDim2.new(6, 0, 1, 0)
  400. textfag.FontSize = "Size8"
  401. textfag.TextScaled = true
  402. textfag.TextTransparency = 0
  403. textfag.BackgroundTransparency = 1
  404. textfag.TextTransparency = 0
  405. textfag.TextStrokeTransparency = 0
  406. textfag.Font = "Cartoon"
  407. textfag.TextStrokeColor3 = Color3.new(0, 0, 0)
  408. textfag.Text = game.Players.LocalPlayer.Character.Name.." the Anti-Skid "
  409. bullethitforclone = Instance.new("Sound")
  410. bullethitforclone.Volume = 4
  411. bullethitforclone.Parent = game.Players.LocalPlayer.Character.Head
  412. bullethitforclone.SoundId = "rbxassetid://144884872"
  413. weldf = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  414. weldf.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  415. weldf.Part1 = Part3
  416. weldf.C0 = CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511)
  417. using = false
  418. function shoot()
  419. if not using then
  420. using = true
  421. canwalk = false
  422. for i = 0,1 , 0.02 do
  423. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.207927465, 1.10965065e-11, -0.978144228, -7.31349337e-09, 1, -1.5433097e-09, 0.978144288, 7.47454809e-09, 0.207927451),i)
  424. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.01304245, 0.49798584, -0.020904541, 0.0697589889, -0.997563899, -2.65673535e-22, -1.85331179e-23, 2.65026316e-22, -0.999999881, 0.997563779, 0.0697589815, 0),i)
  425. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
  426. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00933837891, -0.0203552246, -0.000652313232, 0.0697618872, -2.27432338e-06, 0.997569025, 1.77783205e-11, 0.999999881, 2.2798622e-06, -0.997569859, -1.59030108e-07, 0.0697606578),i)
  427. game:GetService("RunService").RenderStepped:wait()
  428. end
  429. Sound00:Play()
  430. for i = 1,5 do
  431. ghosting = math.random(1,2)
  432. local bullet = Instance.new("Part", workspace)
  433. bullet.Size = Vector3.new(0.2,0.2,3)
  434. bullet.BrickColor = BrickColor.new("Institutional White")
  435. bullet.Material = "Neon"
  436. bullet.Anchored = false
  437. bullet.CFrame = Part1.CFrame * CFrame.new(3,0,0) * CFrame.fromEulerAnglesXYZ(0,math.pi/2,0)
  438. local velocityofbullet = Instance.new("BodyVelocity", bullet)
  439. velocityofbullet.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  440. velocityofbullet.Velocity = mouse.Hit.lookVector * 650 + Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
  441. bullet.CanCollide = false
  442. bullet:BreakJoints()
  443. local function kill(part)
  444. local humanoid = part.Parent:findFirstChild("Humanoid")
  445. if humanoid then
  446. if humanoid.Parent.Name == game.Players.LocalPlayer.Name then
  447.  
  448. else
  449. if ghosting == 1 then
  450.  
  451. else
  452. bullet:destroy()
  453. end
  454. local bullethit = bullethitforclone:Clone()
  455. bullethit.Parent = part
  456. if part.Name == "Left Leg" then
  457. bullethit:Play()
  458. humanoid.Parent.Torso["Left Hip"]:Remove()
  459. humanoid.Health = humanoid.Health - math.random(35,50)
  460. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  461. glue.Part0 = humanoid.Parent.Torso
  462. glue.Part1 = humanoid.Parent["Left Leg"]
  463. glue.Name = "Left leg"
  464. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  465. collider.Position = Vector3.new(0,999,0)
  466. collider.Size = Vector3.new(1.5, 1, 1)
  467. collider.Shape = "Cylinder"
  468. local weld = Instance.new("Weld", collider)
  469. weld.Part0 = humanoid.Parent["Left Leg"]
  470. weld.Part1 = collider
  471. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  472. collider.TopSurface = "Smooth"
  473. collider.BottomSurface = "Smooth"
  474. collider.formFactor = "Symmetric"
  475. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  476. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  477. collider.Transparency = 1
  478. end
  479. if part.Name == "Right Leg" then
  480. humanoid.Parent.Torso["Right Hip"]:Remove()
  481. bullethit:Play()
  482. humanoid.Health = humanoid.Health - math.random(35,50)
  483. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  484. glue.Part0 = humanoid.Parent.Torso
  485. glue.Part1 = humanoid.Parent["Right Leg"]
  486. glue.Name = "Right leg"
  487. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  488. collider.Position = Vector3.new(0,999,0)
  489. collider.Size = Vector3.new(1.5, 1, 1)
  490. collider.Shape = "Cylinder"
  491. local weld = Instance.new("Weld", collider)
  492. weld.Part0 = humanoid.Parent["Right Leg"]
  493. weld.Part1 = collider
  494. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  495. collider.TopSurface = "Smooth"
  496. collider.BottomSurface = "Smooth"
  497. collider.formFactor = "Symmetric"
  498. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  499. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  500. collider.Transparency = 1
  501. end
  502. if part.Name == "Right Arm" then
  503. bullethit:Play()
  504. humanoid.Parent.Torso["Right Shoulder"]:Remove()
  505. humanoid.Health = humanoid.Health - math.random(20,35)
  506. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  507. glue.Part0 = humanoid.Parent.Torso
  508. glue.Part1 = humanoid.Parent["Right Arm"]
  509. glue.Name = "Right arm"
  510. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  511. collider.Position = Vector3.new(0,999,0)
  512. collider.Size = Vector3.new(1.5, 1, 1)
  513. collider.Shape = "Cylinder"
  514. local weld = Instance.new("Weld", collider)
  515. weld.Part0 = humanoid.Parent["Right Arm"]
  516. weld.Part1 = collider
  517. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  518. collider.TopSurface = "Smooth"
  519. collider.BottomSurface = "Smooth"
  520. collider.formFactor = "Symmetric"
  521. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  522. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  523. collider.Transparency = 1
  524. end
  525. if part.Name == "Left Arm" then
  526. bullethit:Play()
  527. humanoid.Parent.Torso["Left Shoulder"]:Remove()
  528. humanoid.Health = humanoid.Health - math.random(20,35)
  529. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  530. glue.Part0 = humanoid.Parent.Torso
  531. glue.Part1 = humanoid.Parent["Left Arm"]
  532. glue.Name = "Left arm"
  533. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  534. collider.Position = Vector3.new(0,999,0)
  535. collider.Size = Vector3.new(1.5, 1, 1)
  536. collider.Shape = "Cylinder"
  537. local weld = Instance.new("Weld", collider)
  538. weld.Part0 = humanoid.Parent["Left Arm"]
  539. weld.Part1 = collider
  540. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  541. collider.TopSurface = "Smooth"
  542. collider.BottomSurface = "Smooth"
  543. collider.formFactor = "Symmetric"
  544. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  545. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  546. collider.Transparency = 1
  547. end
  548. if part.Name == "Torso" then
  549. bullethit:Play()
  550. humanoid.Health = humanoid.Health - math.random(15,50)
  551. humanoid.WalkSpeed = humanoid.WalkSpeed - math.random(1,2)
  552. end
  553. if part.Name == "Head" then
  554. bullethit:Play()
  555. humanoid.JumpPower = 0
  556. humanoid.PlatformStand = true
  557. humanoid.WalkSpeed = 0
  558. local decal = Instance.new("Decal", part)
  559. decal.Texture = "http://www.roblox.com/asset/?id=1081285488"
  560. local findlefthip = humanoid.Parent.Torso:findFirstChild("Left Hip")
  561. if findlefthip then
  562. findlefthip:Remove()
  563. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  564. glue.Part0 = humanoid.Parent.Torso
  565. glue.Part1 = humanoid.Parent["Left Leg"]
  566. glue.Name = "Left leg"
  567. local collider = Instance.new("Part", humanoid.Parent["Left Leg"])
  568. collider.Position = Vector3.new(0,999,0)
  569. collider.Size = Vector3.new(1.5, 1, 1)
  570. collider.Shape = "Cylinder"
  571. local weld = Instance.new("Weld", collider)
  572. weld.Part0 = humanoid.Parent["Left Leg"]
  573. weld.Part1 = collider
  574. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  575. collider.TopSurface = "Smooth"
  576. collider.BottomSurface = "Smooth"
  577. collider.formFactor = "Symmetric"
  578. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  579. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  580. collider.Transparency = 1
  581. end
  582. --
  583. local findrighthip = humanoid.Parent.Torso:findFirstChild("Right Hip")
  584. if findrighthip then
  585. findrighthip:Remove()
  586. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  587. glue.Part0 = humanoid.Parent.Torso
  588. glue.Part1 = humanoid.Parent["Right Leg"]
  589. glue.Name = "Right leg"
  590. local collider = Instance.new("Part", humanoid.Parent["Right Leg"])
  591. collider.Position = Vector3.new(0,999,0)
  592. collider.Size = Vector3.new(1.5, 1, 1)
  593. collider.Shape = "Cylinder"
  594. local weld = Instance.new("Weld", collider)
  595. weld.Part0 = humanoid.Parent["Right Leg"]
  596. weld.Part1 = collider
  597. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  598. collider.TopSurface = "Smooth"
  599. collider.BottomSurface = "Smooth"
  600. collider.formFactor = "Symmetric"
  601. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  602. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  603. collider.Transparency = 1
  604. end
  605. --
  606. local findrightshoulder = humanoid.Parent.Torso:findFirstChild("Right Shoulder")
  607. if findrightshoulder then
  608. findrightshoulder:Remove()
  609. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  610. glue.Part0 = humanoid.Parent.Torso
  611. glue.Part1 = humanoid.Parent["Right Arm"]
  612. glue.Name = "Right arm"
  613. local collider = Instance.new("Part", humanoid.Parent["Right Arm"])
  614. collider.Position = Vector3.new(0,999,0)
  615. collider.Size = Vector3.new(1.5, 1, 1)
  616. collider.Shape = "Cylinder"
  617. local weld = Instance.new("Weld", collider)
  618. weld.Part0 = humanoid.Parent["Right Arm"]
  619. weld.Part1 = collider
  620. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  621. collider.TopSurface = "Smooth"
  622. collider.BottomSurface = "Smooth"
  623. collider.formFactor = "Symmetric"
  624. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  625. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  626. collider.Transparency = 1
  627. end
  628. --
  629. local findleftshoulder = humanoid.Parent.Torso:findFirstChild("Left Shoulder")
  630. if findleftshoulder then
  631. findleftshoulder:Remove()
  632. local glue = Instance.new("Glue", humanoid.Parent.Torso)
  633. glue.Part0 = humanoid.Parent.Torso
  634. glue.Part1 = humanoid.Parent["Left Arm"]
  635. glue.Name = "Left arm"
  636. local collider = Instance.new("Part", humanoid.Parent["Left Arm"])
  637. collider.Position = Vector3.new(0,999,0)
  638. collider.Size = Vector3.new(1.5, 1, 1)
  639. collider.Shape = "Cylinder"
  640. local weld = Instance.new("Weld", collider)
  641. weld.Part0 = humanoid.Parent["Left Arm"]
  642. weld.Part1 = collider
  643. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  644. collider.TopSurface = "Smooth"
  645. collider.BottomSurface = "Smooth"
  646. collider.formFactor = "Symmetric"
  647. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  648. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  649. collider.Transparency = 1
  650. end
  651. wait(5)
  652. humanoid.Health = 0
  653. end
  654. local howmany = 0
  655. for i,v in pairs(humanoid.Parent.Torso:GetChildren()) do
  656. if v.ClassName == "Glue" then
  657. howmany = howmany + 1
  658. end
  659. end
  660. if howmany == 4 then
  661. humanoid.JumpPower = 0
  662. humanoid.PlatformStand = true
  663. humanoid.WalkSpeed = 0
  664. end
  665. if humanoid.Health < 1 then
  666. if humanoid.Parent:findFirstChild("Health") then
  667. humanoid.Parent.Health:Remove()
  668. humanoid.Health = 0.001
  669. for i,v in pairs(humanoid.Parent:GetChildren()) do
  670. if v.ClassName == "Part" then
  671. for q,w in pairs(v:GetChildren()) do
  672. if w.ClassName == "Part" then
  673. w:destroy()
  674. end
  675. end
  676. end
  677. end
  678. end
  679. if humanoid.Parent:findFirstChild("Torso") then
  680. humanoid.Parent.Torso.Velocity = mouse.Hit.lookVector * 35
  681. for i,v in pairs(humanoid.Parent.Torso:GetChildren()) do
  682. if v.ClassName == "Motor6D" then
  683. if v.Name == "Neck" then
  684.  
  685. else
  686. v:destroy()
  687. end
  688. end
  689. end
  690. end
  691. humanoid.WalkSpeed = 0
  692. humanoid.JumpPower = 0
  693. humanoid.PlatformStand = true
  694. if humanoid.Parent:findFirstChild("Right Arm") then
  695. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  696. attachment.Position = Vector3.new(1, 1, 0)
  697. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  698. ball.Attachment0 = humanoid.Parent["Right Arm"].RightShoulderAttachment
  699. ball.Attachment1 = attachment
  700. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  701. collidepartofleftleg.Name = "Bone"
  702. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  703. collidepartofleftleg.Transparency = 1
  704. collidepartofleftleg:BreakJoints()
  705. local weeld = Instance.new("Weld", collidepartofleftleg)
  706. weeld.Part0 = humanoid.Parent["Right Arm"]
  707. weeld.Part1 = collidepartofleftleg
  708. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  709. end
  710. if humanoid.Parent:findFirstChild("Left Arm") then
  711. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  712. attachment.Position = Vector3.new(1, 1, 0)
  713. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  714. ball.Attachment0 = humanoid.Parent.Torso.LeftCollarAttachment
  715. ball.Attachment1 = humanoid.Parent["Left Arm"].LeftShoulderAttachment
  716. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  717. collidepartofleftleg.Name = "Bone"
  718. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  719. collidepartofleftleg.Transparency = 1
  720. collidepartofleftleg:BreakJoints()
  721. local weeld = Instance.new("Weld", collidepartofleftleg)
  722. weeld.Part0 = humanoid.Parent["Left Arm"]
  723. weeld.Part1 = collidepartofleftleg
  724. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  725. end
  726. if humanoid.Parent:findFirstChild("Right Leg") then
  727. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  728. attachment.Position = Vector3.new(0.5, -1, 0)
  729. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  730. ball.Attachment0 = humanoid.Parent["Right Leg"].RightFootAttachment
  731. ball.Attachment1 = attachment
  732. humanoid.Parent["Right Leg"].RightFootAttachment.Position = Vector3.new(0, 1, 0)
  733. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  734. collidepartofleftleg.Name = "Bone"
  735. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  736. collidepartofleftleg.Transparency = 1
  737. collidepartofleftleg:BreakJoints()
  738. local weeld = Instance.new("Weld", collidepartofleftleg)
  739. weeld.Part0 = humanoid.Parent["Right Leg"]
  740. weeld.Part1 = collidepartofleftleg
  741. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  742. end
  743. if humanoid.Parent:findFirstChild("Left Leg") then
  744. local attachment = Instance.new("Attachment", humanoid.Parent.Torso)
  745. attachment.Position = Vector3.new(-0.5, -1, 0)
  746. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  747. ball.Attachment0 = humanoid.Parent["Left Leg"].LeftFootAttachment
  748. ball.Attachment1 = attachment
  749. humanoid.Parent["Left Leg"].LeftFootAttachment.Position = Vector3.new(0, 1, 0)
  750. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  751. collidepartofleftleg.Name = "Bone"
  752. collidepartofleftleg.Size = Vector3.new(0.8,1.4,0.8)
  753. collidepartofleftleg.Transparency = 1
  754. collidepartofleftleg:BreakJoints()
  755. local weeld = Instance.new("Weld", collidepartofleftleg)
  756. weeld.Part0 = humanoid.Parent["Left Leg"]
  757. weeld.Part1 = collidepartofleftleg
  758. weeld.C0 = weeld.C0 * CFrame.new(0,-0.3,0)
  759. end
  760. if humanoid.Parent:findFirstChild("Head") then
  761. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  762. attachment.Position = Vector3.new(0, -0.5, 0)
  763. humanoid.Parent.Torso.NeckAttachment.Visible = false
  764. humanoid.Parent.Torso.NeckAttachment.Position = humanoid.Parent.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  765. local ball = Instance.new("HingeConstraint", humanoid.Parent)
  766. ball.Attachment0 = humanoid.Parent.Torso.NeckAttachment
  767. ball.Attachment1 = attachment
  768. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.Torso)
  769. collidepartofleftleg.Name = "Bone"
  770. collidepartofleftleg.Size = Vector3.new(0.5,0.3,0.5)
  771. collidepartofleftleg.Transparency = 1
  772. collidepartofleftleg:BreakJoints()
  773. local weeld = Instance.new("Weld", collidepartofleftleg)
  774. weeld.Part0 = collidepartofleftleg
  775. weeld.Part1 = humanoid.Parent["Head"]
  776. humanoid.Parent.Torso.Neck:destroy()
  777. end
  778. if humanoid.Parent:findFirstChild("Head") then
  779. local aah = Instance.new("Sound", humanoid.Parent.Head)
  780. if aah then
  781. aah.Volume = 8
  782. local aahmath = math.random(2,8)
  783. if aahmath == 2 then
  784. aah.SoundId = "rbxassetid://884348443"
  785. aah:Play()
  786. end
  787. if aahmath == 3 then
  788. aah.SoundId = "rbxassetid://535528169"
  789. aah.TimePosition = 0.3
  790. aah:Play()
  791. end
  792. if aahmath == 4 then
  793. aah.SoundId = "rbxassetid://1080363252"
  794. aah:Play()
  795. end
  796. if aahmath == 5 then
  797. aah.SoundId = "rbxassetid://150245085"
  798. aah:Play()
  799. end
  800. if aahmath == 6 then
  801. aah.SoundId = "rbxassetid://345287845"
  802. aah.TimePosition = 2.5
  803. aah:Play()
  804. end
  805. if aahmath == 7 then
  806. aah.SoundId = "rbxassetid://147758746"
  807. aah.TimePosition = 1.3
  808. aah:Play()
  809. end
  810. if aahmath == 8 then
  811. aah.SoundId = "rbxassetid://626777433"
  812. aah.TimePosition = 1.4
  813. aah:Play()
  814. end
  815. end
  816. humanoid.Name = "Hammoodmememememem"
  817. end
  818. end
  819. end
  820. end
  821. end
  822. bullet.Touched:connect(kill)
  823. end
  824. for i = 0,1 , 0.25 do
  825. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.207933038, -0.102243967, -0.972784758, 8.86239135e-08, 0.994521916, -0.104528628, 0.978143096, 0.0217348691, 0.206793979),i)
  826. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.82263184, 0.730773926, -0.020904541, 0.0646852478, -0.924928367, 0.374597609, 0.0261337012, -0.373684913, -0.927187502, 0.997563481, 0.0697649717, -9.91872824e-08),i)
  827. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
  828. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00933837891, -0.0203552246, -0.000652313232, 0.0697618872, -2.27432338e-06, 0.997569025, 1.77783205e-11, 0.999999881, 2.2798622e-06, -0.997569859, -1.59030108e-07, 0.0697606578),i)
  829. game:GetService("RunService").RenderStepped:wait()
  830. end
  831. for i = 0,1 , 0.02 do
  832. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.207927465, 1.10965065e-11, -0.978144228, -7.31349337e-09, 1, -1.5433097e-09, 0.978144288, 7.47454809e-09, 0.207927451),i)
  833. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(2.01304245, 0.49798584, -0.020904541, 0.0697589889, -0.997563899, -2.65673535e-22, -1.85331179e-23, 2.65026316e-22, -0.999999881, 0.997563779, 0.0697589815, 0),i)
  834. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0359191895, -0.892173767, 0.284561157, -0.0689456016, 0.0198679417, -0.997422755, 0.839448929, 0.541383147, -0.0472417921, 0.539049447, -0.840541601, -0.0540040247),i)
  835. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(-0.00933837891, -0.0203552246, -0.000652313232, 0.0697618872, -2.27432338e-06, 0.997569025, 1.77783205e-11, 0.999999881, 2.2798622e-06, -0.997569859, -1.59030108e-07, 0.0697606578),i)
  836. game:GetService("RunService").RenderStepped:wait()
  837. end
  838. for i = 0,1 , 0.02 do
  839. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511),i)
  840. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  841. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.48563504, -0.102214813, 1, 6.31088724e-30, -1.00974196e-28, -2.5243549e-29, 0.990270674, 0.139171436, -5.04870979e-29, -0.139171436, 0.990270674),i)
  842. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
  843. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.56223869, 0.00435209274, 0, 0.997564316, 0.0697554871, 0, -0.0697554871, 0.997564316, 0, 0, 2.5243549e-29, 1),i)
  844. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
  845. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.61233902, 0.0157878399, 0, 0.990270674, -0.139171436, 5.04870979e-29, 0.139171436, 0.990270674, 2.01948392e-28, 1.00974196e-28, 2.27191941e-28, 1),i)
  846. game:GetService("RunService").RenderStepped:wait()
  847. end
  848. canwalk = true
  849. using = false
  850. end
  851. end
  852. function kys(key)
  853. key = key:lower()
  854. if key == "q" and not using then
  855. using = false
  856. canwalk = false
  857. for i = 0,1 , 0.02 do
  858. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.168807983, -2.35839844, 1.06054688, 0.376244515, -0.0200107303, 0.92630434, -0.527649045, -0.826430559, 0.196466327, 0.761594713, -0.562682986, -0.321498603),i)
  859. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  860. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.964937389, -0.102245584, 0.241747394, 0.104467049, 0.994521677, 0.00364552485, -0.240795761, 0.0217369329, 0.970332384),i)
  861. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
  862. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-0.755413055, -0.0500183105, -2.32714844, 0.992147624, -0.122393578, 0.0257476419, 0.0214064512, -0.0366528891, -0.999098778, 0.123226993, 0.991804659, -0.0337450653),i)
  863. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
  864. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.817108154, 0.43989563, -1.35630798, 0.906662822, 0.312888145, -0.28295514, -0.253573388, -0.131829232, -0.958290994, -0.337139636, 0.9405967, -0.04018455),i)
  865. game:GetService("RunService").RenderStepped:wait()
  866. end
  867. --0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
  868. --0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0
  869. --[[
  870. local vel = Instance.new("BodyVelocity", game.Players.LocalPlayer.Character.Torso)
  871. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * -5
  872. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  873. --]]
  874. --By Rufus14 (FINALLY I KNOW HOW TO MAKE A RAGDOLL :D)
  875. --die plz
  876. mouse = game.Players.LocalPlayer:GetMouse()
  877. function ragdoll()
  878. game.Players.LocalPlayer.Character.Archivable = true
  879. Sound0:destroy()
  880. clone = game.Players.LocalPlayer.Character:Clone()
  881. clone.Parent = workspace
  882. for i,v in pairs(clone:GetChildren()) do
  883. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  884. v:destroy()
  885. end
  886. for i,p in pairs(v:GetChildren()) do
  887. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  888. p:destroy()
  889. end
  890. end
  891. end
  892. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  893. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  894. t:destroy()
  895. end
  896. end
  897. vel = Instance.new("BodyVelocity", clone.Torso)
  898. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  899. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  900. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  901. using = false
  902. hit = Instance.new("Sound", clone.Torso)
  903. hit.SoundId = "rbxassetid://260430060"
  904. hit.Volume = 0
  905. hit1 = Instance.new("Sound", clone.Torso)
  906. hit1.SoundId = "rbxassetid://138087186"
  907. hit1.Volume = 0
  908. hit2 = Instance.new("Sound", clone.Torso)
  909. hit2.SoundId = "rbxassetid://131237241"
  910. hit2.Volume = 0
  911. hit3 = Instance.new("Sound", clone.Torso)
  912. hit3.SoundId = "rbxassetid://278062209"
  913. hit3.Volume = 0
  914. hit3.TimePosition = 0.33
  915. ded = Instance.new("Sound", clone.Torso)
  916. ded.SoundId = "rbxassetid://418892870"
  917. ded.Volume = 0
  918. local leftarm = clone:findFirstChild("Left Arm")
  919. local rightrm = clone:findFirstChild("Right Arm")
  920. local leftleg = clone:findFirstChild("Left Leg")
  921. local rightleg = clone:findFirstChild("Right Leg")
  922. local head = clone:findFirstChild("Head")
  923. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  924. if g.ClassName == "Part" then
  925. g:destroy()
  926. end
  927. end
  928. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  929. if h.ClassName == "Accesory" then
  930. h:destroy()
  931. end
  932. end
  933. game.Workspace.CurrentCamera.CameraSubject = head
  934. if head then
  935. local attachment = Instance.new("Attachment", clone.Head)
  936. attachment.Position = Vector3.new(0, -0.5, 0)
  937. attachment.Name = "lol"
  938. attachment.Visible = false
  939. clone.Torso.NeckAttachment.Visible = false
  940. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  941. local ball = Instance.new("BallSocketConstraint", clone)
  942. ball.Attachment0 = clone.Torso.NeckAttachment
  943. ball.Attachment1 = attachment
  944. ball.LimitsEnabled = true
  945. ball.TwistLimitsEnabled = true
  946. ball.UpperAngle = 90
  947. ball.Restitution = 0.5
  948. ball.TwistUpperAngle = 90
  949. ball.TwistLowerAngle = -90
  950. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  951. collidepartofleftleg.Name = "Bone"
  952. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  953. collidepartofleftleg.Transparency = 1
  954. collidepartofleftleg:BreakJoints()
  955. local weeld = Instance.new("Weld", collidepartofleftleg)
  956. weeld.Part0 = collidepartofleftleg
  957. weeld.Part1 = clone["Head"]
  958. end
  959. if leftleg ~= nil then
  960. local glue = Instance.new("Glue", clone.Torso)
  961. glue.Part0 = clone.Torso
  962. glue.Part1 = leftleg
  963. glue.Name = "Left leg"
  964. local collider = Instance.new("Part", leftleg)
  965. collider.Position = Vector3.new(0,999,0)
  966. collider.Size = Vector3.new(1.5, 1, 1)
  967. collider.Shape = "Cylinder"
  968. local weld = Instance.new("Weld", collider)
  969. weld.Part0 = leftleg
  970. weld.Part1 = collider
  971. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  972. collider.TopSurface = "Smooth"
  973. collider.BottomSurface = "Smooth"
  974. collider.formFactor = "Symmetric"
  975. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  976. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  977. collider.Transparency = 1
  978. end
  979. ------------
  980. if rightleg ~= nil then
  981. local glue1 = Instance.new("Glue", clone.Torso)
  982. glue1.Part0 = clone.Torso
  983. glue1.Part1 = rightleg
  984. glue1.Name = "Right leg"
  985. local collider1 = Instance.new("Part", rightleg)
  986. collider1.Position = Vector3.new(0,999,0)
  987. collider1.Size = Vector3.new(1.5, 1, 1)
  988. collider1.Shape = "Cylinder"
  989. local weld1 = Instance.new("Weld", collider1)
  990. weld1.Part0 = rightleg
  991. weld1.Part1 = collider1
  992. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  993. collider1.TopSurface = "Smooth"
  994. collider1.BottomSurface = "Smooth"
  995. collider1.formFactor = "Symmetric"
  996. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  997. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  998. collider1.Transparency = 1
  999. end
  1000. ------------
  1001. if rightrm ~= nil then
  1002. local glue11 = Instance.new("Glue", clone.Torso)
  1003. glue11.Part0 = clone.Torso
  1004. glue11.Part1 = rightrm
  1005. glue11.Name = "Right shoulder"
  1006. local collider11 = Instance.new("Part", rightrm)
  1007. collider11.Position = Vector3.new(0,9999,0)
  1008. collider11.Size = Vector3.new(1.5,1,1)
  1009. collider11.Shape = "Cylinder"
  1010. local weld11 = Instance.new("Weld", collider11)
  1011. weld11.Part0 = rightrm
  1012. weld11.Part1 = collider11
  1013. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  1014. collider11.TopSurface = "Smooth"
  1015. collider11.BottomSurface = "Smooth"
  1016. collider11.formFactor = "Symmetric"
  1017. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1018. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1019. collider11.Transparency = 1
  1020. end
  1021. ------------
  1022. if leftarm ~= nil then
  1023. local glue111 = Instance.new("Glue", clone.Torso)
  1024. glue111.Part0 = clone.Torso
  1025. glue111.Part1 = leftarm
  1026. glue111.Name = "Left shoulder"
  1027. local collider111 = Instance.new("Part", leftarm)
  1028. collider111.Position = Vector3.new(0,9999,0)
  1029. collider111.Size = Vector3.new(1.5,1,1)
  1030. collider111.Shape = "Cylinder"
  1031. local weld111 = Instance.new("Weld", collider111)
  1032. weld111.Part0 = leftarm
  1033. weld111.Part1 = collider111
  1034. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  1035. collider111.TopSurface = "Smooth"
  1036. collider111.BottomSurface = "Smooth"
  1037. collider111.formFactor = "Symmetric"
  1038. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1039. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  1040. collider111.Transparency = 1
  1041. ----------------
  1042. sensoring = Instance.new("Part", clone.Torso)
  1043. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  1044. sensoring.CanCollide = false
  1045. sensoring.Position = clone.Torso.Position
  1046. local welder = Instance.new("Weld", sensoring)
  1047. welder.Part0 = clone.Torso
  1048. welder.Part1 = sensoring
  1049. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  1050. sensoring.Transparency = 1
  1051. -----------------
  1052. sensoring1 = Instance.new("Part", clone.Torso)
  1053. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  1054. sensoring1.CanCollide = false
  1055. sensoring1.Position = clone.Torso.Position
  1056. local welder1 = Instance.new("Weld", sensoring)
  1057. welder1.Part0 = clone.Torso
  1058. welder1.Part1 = sensoring1
  1059. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  1060. sensoring1.Transparency = 1
  1061. end
  1062. clone.Name = game.Players.LocalPlayer.Character.Name.." (DEAD)"
  1063. ded:Play()
  1064. vel:destroy()
  1065. wait(0.5)
  1066. local function touch()
  1067. if not using then
  1068. using = true
  1069. local Math = math.random(1,4)
  1070. if Math == 1 then
  1071. hit:Play()
  1072. end
  1073. if Math == 2 then
  1074. hit1:Play()
  1075. end
  1076. if Math == 3 then
  1077. hit2:Play()
  1078. end
  1079. if Math == 4 then
  1080. hit3:Play()
  1081. end
  1082. wait(0.1)
  1083. using = false
  1084. end
  1085. end
  1086. sensoring.Touched:connect(touch)
  1087. sensoring1.Touched:connect(touch)
  1088. while true do
  1089. clone.Head.CanCollide = false
  1090. game:GetService("RunService").Stepped:wait()
  1091. end
  1092. end
  1093.  
  1094. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  1095.  
  1096. --di ent
  1097. Sound00:Play()
  1098. game.Players.LocalPlayer.Character.Humanoid.Health = 0
  1099. end
  1100. end
  1101. mouse.Button1Down:connect(shoot)
  1102. mouse.KeyDown:connect(kys)
  1103. function look()
  1104. game.Players.LocalPlayer.Character.Torso.CFrame = CFrame.new(game.Players.LocalPlayer.Character.Torso.Position,Vector3.new(mouse.Hit.p.x, game.Players.LocalPlayer.Character.Torso.Position.y, mouse.Hit.p.z))
  1105. end
  1106. game:GetService("RunService").RenderStepped:connect(look)
  1107. while true do
  1108. if howmuch <= -1 then
  1109. howmuch = 0
  1110. end
  1111. if howmuch >= 4 then
  1112. howmuch = 0
  1113. end
  1114. if canwalk and howmuch < 1 then
  1115. for i = 0,1 , 0.01 do
  1116. if canwalk and howmuch < 1 then
  1117. weldf.C0 = weldf.C0:lerp(CFrame.new(-0.0861244202, -1.04447937, -0.182327271, -0.105800174, 0.219419539, -0.969882667, 0.973032475, -0.178225949, -0.146464914, -0.204995126, -0.959215224, -0.194644511),i)
  1118. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1119. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.48563504, -0.102214813, 1, 6.31088724e-30, -1.00974196e-28, -2.5243549e-29, 0.990270674, 0.139171436, -5.04870979e-29, -0.139171436, 0.990270674),i)
  1120. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
  1121. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.56223869, 0.00435209274, 0, 0.997564316, 0.0697554871, 0, -0.0697554871, 0.997564316, 0, 0, 2.5243549e-29, 1),i)
  1122. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
  1123. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.61233902, 0.0157878399, 0, 0.990270674, -0.139171436, 5.04870979e-29, 0.139171436, 0.990270674, 2.01948392e-28, 1.00974196e-28, 2.27191941e-28, 1),i)
  1124. game:GetService("RunService").RenderStepped:wait()
  1125. end
  1126. end
  1127. for i = 0,0.3 , 0.004 do
  1128. if canwalk and howmuch < 1 then
  1129. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0,0,0),i)
  1130. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5222218, -0.102214813, 1, 6.31088724e-30, -1.00974196e-28, -2.5243549e-29, 0.990270674, 0.139171436, -5.04870979e-29, -0.139171436, 0.990270674),i)
  1131. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.606146812, -2.0409379, 0.23392868, 0.994522691, 0.104527831, 4.48272353e-09, -0.10395515, 0.989075184, 0.104526937, 0.0109259691, -0.103954434, 0.994521797),i)
  1132. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.56223869, 0.0409388542, 0, 0.997564316, 0.0697554871, 0, -0.0697554871, 0.997564316, 0, 0, 2.5243549e-29, 1),i)
  1133. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.589343071, -2.06024575, -0.139556885, 0.997564077, -0.0693742931, 0.0072911568, 0.0697562397, 0.992102206, -0.104268931, 1.75914945e-08, 0.104523741, 0.994524658),i)
  1134. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.61233902, 0.0523746014, 0, 0.990270674, -0.139171436, 5.04870979e-29, 0.139171436, 0.990270674, 2.01948392e-28, 1.00974196e-28, 2.27191941e-28, 1),i)
  1135. game:GetService("RunService").RenderStepped:wait()
  1136. end
  1137. end
  1138. end
  1139. if canwalk and howmuch >= 1 then
  1140. if canwalk then
  1141. for i = 0,0.5 , 0.05 do
  1142. if canwalk and howmuch >= 1 then
  1143. weldf.C0 = weldf.C0:lerp(CFrame.new(0.405254364, -0.770187378, -0.0317382813, 0.916420221, 0.388018847, -0.0981012359, 0.181092858, -0.183419436, 0.966214538, 0.356913, -0.90321666, -0.238354743),i)
  1144. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, -4.22829445e-28, 5.04870979e-28, -4.7962743e-28, 0.98481518, -0.173646927, 4.54383881e-28, 0.173646927, 0.98481518),i)
  1145. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0218505859, -0.207862854, 1, -2.65673535e-22, 5.23747954e-22, 1.5097504e-22, 0.978147745, 0.207910955, -5.67539301e-22, -0.207910955, 0.978147745),i)
  1146. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.35635376, 0.984832764, 1, -1.46412584e-27, -1.17303617e-26, 1.15615454e-26, -0.0348859876, 0.999391198, -1.61558713e-27, -0.999391198, -0.0348859876),i)
  1147. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.2262764, 0.145446777, -0.484161377, 0.788011551, -0.578533888, 0.210562602, 0.411958992, 0.241324201, -0.878665209, 0.457523763, 0.779141247, 0.428498387),i)
  1148. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.81869507, -0.922622681, 1, -1.72713825e-22, -5.61306619e-22, -2.65673535e-22, 0.719345152, -0.694654465, 5.23747954e-22, 0.694656253, 0.719344676),i)
  1149. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.39048004, 0.431030273, -0.798828125, 0.978150845, 0.207915336, -2.65673535e-22, -3.24998904e-22, 2.51171167e-22, -1, -0.207915336, 0.978150845, 3.13253081e-22),i)
  1150. game:GetService("RunService").RenderStepped:wait()
  1151. end
  1152. end
  1153. end
  1154. if canwalk then
  1155. for i = 0,0.5 , 0.05 do
  1156. if canwalk and howmuch >= 1 then
  1157. weldf.C0 = weldf.C0:lerp(CFrame.new(0.405254364, -0.770187378, -0.0317382813, 0.916420221, 0.388018847, -0.0981012359, 0.181092858, -0.183419436, 0.966214538, 0.356913, -0.90321666, -0.238354743),i)
  1158. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 1, -4.22829445e-28, 5.04870979e-28, -4.7962743e-28, 0.98481518, -0.173646927, 4.54383881e-28, 0.173646927, 0.98481518),i)
  1159. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, -0.0218505859, -0.00492095947, 1, -2.65673535e-22, 5.23747954e-22, 1.5097504e-22, 0.978147686, 0.20791094, -5.67539301e-22, -0.20791094, 0.978147686),i)
  1160. llegweld.C0 = llegweld.C0:lerp(CFrame.new(-0.5, -1.86941528, -0.882217407, 1, -6.4421537e-26, 9.04728795e-26, 1.09784194e-25, 0.694650829, -0.71934706, -1.64587939e-26, 0.71934706, 0.694650829),i)
  1161. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.2262764, 0.145446777, -0.484161377, 0.788011551, -0.578533888, 0.210562602, 0.411958992, 0.241324201, -0.878665209, 0.457523763, 0.779141247, 0.428498387),i)
  1162. rlegweld.C0 = rlegweld.C0:lerp(CFrame.new(0.5, -1.35365295, 1.16508484, 1, 5.03939593e-22, 3.01560673e-22, -2.65673358e-22, -0.0697558299, 0.997564077, 5.237476e-22, -0.997564077, -0.0697558299),i)
  1163. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.39048004, 0.431030273, -0.798828125, 0.978150845, 0.207915336, -2.65673535e-22, -3.24998904e-22, 2.51171167e-22, -1, -0.207915336, 0.978150845, 3.13253081e-22),i)
  1164. game:GetService("RunService").RenderStepped:wait()
  1165. end
  1166. end
  1167. end
  1168. end
  1169. game:GetService("RunService").RenderStepped:wait()
  1170. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement