Advertisement
MESCRIPT

skid pan

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