Advertisement
Guest User

fe test

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