Advertisement
ManlyMemeScripter

Untitled

Mar 16th, 2018
520
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 46.51 KB | None | 0 0
  1. --This is a localscript; you will need to have access to using scripts wherever you want this
  2. p = game:GetService('Players').LocalPlayer if p.Character then if p.Character:FindFirstChild('Humanoid') then p.Character.Humanoid.MaxHealth = math.huge end end
  3.  
  4. plr = game.Players.LocalPlayer
  5. repeat
  6. wait(0.4)
  7. until plr.Character
  8. chr = plr.Character
  9. human = chr:FindFirstChild("Humanoid")
  10. mouse = plr:GetMouse()
  11. cam = workspace.CurrentCamera
  12. selected = false
  13. equipd = false
  14. tors = chr.Torso
  15. rarm = chr["Right Arm"]
  16. larm = chr["Left Arm"]
  17. rleg = chr["Right Leg"]
  18. lleg = chr["Left Leg"]
  19. hrp = chr.HumanoidRootPart
  20. hed = chr.Head
  21. anim = human.Animator
  22. activu = false
  23. ragged = false
  24. batting = false
  25. Heartbeat = Instance.new("BindableEvent")
  26. Heartbeat.Name = "Heartbeat"
  27. Heartbeat.Parent = script
  28. frame = 0.03333333333333333
  29. tf = 0
  30. chara = plr.Character
  31.  
  32. New = function(Object, Parent, Name, Data)
  33. local Object = Instance.new(Object)
  34. for Index, Value in pairs(Data or {}) do
  35. Object[Index] = Value
  36. end
  37. Object.Parent = Parent
  38. Object.Name = Name
  39. return Object
  40. end
  41. local AddInstance = function(Object, ...)
  42. local Obj = Instance.new(Object)
  43. for i,v in next,(...) do
  44. Obj[i] = v
  45. end
  46. return Obj
  47. end
  48.  
  49. Music1 = New("Sound",chara,"Music",{SoundId = "rbxassetid://390409627",Volume = 2,Looped = true})
  50. Music1:Play()
  51. musicon = true
  52. for i,v in pairs(chara:GetChildren()) do
  53. if v.ClassName == 'Accessory' then
  54. v:Destroy()
  55. end
  56. end
  57.  
  58. local BC = chara["Body Colors"]
  59. BC.HeadColor = BrickColor.new("Pastel brown")
  60. BC.LeftArmColor = BrickColor.new("Pastel brown")
  61. BC.LeftLegColor = BrickColor.new("Pastel brown")
  62. BC.RightArmColor = BrickColor.new("Pastel brown")
  63. BC.RightLegColor = BrickColor.new("Pastel brown")
  64. BC.TorsoColor = BrickColor.new("Pastel brown")
  65.  
  66. Team=function()
  67. local r=math.random(1,2)
  68.  
  69. if r==1 then
  70. print('RED')
  71. for i,v in pairs(chara:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
  72. for i,v in pairs(chara:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  73. wait()shirt = Instance.new("Shirt", chara)
  74. shirt.Name = "Shirt"
  75. pants = Instance.new("Pants", chara)
  76. pants.Name = "Pants"
  77. chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=61921144"
  78. chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61921182"
  79. end
  80.  
  81. if r==2 then
  82. print('BLUE')
  83. for i,v in pairs(chara:GetChildren()) do if v:IsA("Shirt") then v:Remove() end end
  84. for i,v in pairs(chara:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
  85. wait()shirt = Instance.new("Shirt", chara)
  86. shirt.Name = "Shirt"
  87. pants = Instance.new("Pants", chara)
  88. pants.Name = "Pants"
  89. chara.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=61921164"
  90. chara.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=61921182"
  91. end
  92. end
  93.  
  94. Team()
  95.  
  96. chara.Head.face.Texture = "http://www.roblox.com/asset/?id=192467476"
  97. wait()
  98.  
  99. local Reaper = AddInstance("Part",{
  100. Parent = hed,
  101. CFrame = hed.CFrame,
  102. formFactor = "Symmetric",
  103. Size = Vector3.new(1, 1, 1),
  104. CanCollide = false,
  105. TopSurface = "Smooth",
  106. BottomSurface = "Smooth",
  107. Locked = true,
  108. })
  109. local Weld = AddInstance("Weld",{
  110. Parent = Reaper,
  111. Part0 = hed,
  112. C0 = CFrame.new(-0.2,0.17,-.24)*CFrame.Angles(.15, 3.12, 0),
  113. Part1 = Reaper,
  114. })
  115. local Mesh = AddInstance("SpecialMesh",{
  116. Parent = Reaper,
  117. MeshId = "rbxassetid://450793946",
  118. TextureId = "rbxassetid://450794061",
  119. Scale = Vector3.new(3.4,3,2.7),
  120. VertexColor = Vector3.new(1,1,1),
  121. })
  122.  
  123.  
  124.  
  125. local Reaper2 = AddInstance("Part",{
  126. Parent = larm,
  127. CFrame = larm.CFrame,
  128. formFactor = "Symmetric",
  129. Size = Vector3.new(.1, .1, .1),
  130. CanCollide = false,
  131. TopSurface = "Smooth",
  132. BottomSurface = "Smooth",
  133. Locked = true,
  134. Transparency = 1
  135. })
  136. local Weld = AddInstance("Weld",{
  137. Parent = Reaper2,
  138. Part0 = larm,
  139. C0 = CFrame.new(.3,-1,.2)*CFrame.Angles(-1, 0, -1),
  140. Part1 = Reaper2,
  141. })
  142. local Mesh = AddInstance("SpecialMesh",{
  143. Parent = Reaper2,
  144. MeshId = "rbxassetid://10470609",
  145. TextureId = "rbxassetid://10735250",
  146. Scale = Vector3.new(1,1,1),
  147. VertexColor = Vector3.new(1,1,1),
  148. })
  149.  
  150.  
  151. RSC0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  152. RSC1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  153. LSC0 = CFrame.new(-1, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  154. LSC1 = CFrame.new(0.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  155. RHC0 = CFrame.new(1, -1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  156. RHC1 = CFrame.new(0.5, 1, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  157. LHC0 = CFrame.new(-1, -1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  158. RJC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  159. LHC1 = CFrame.new(-0.5, 1, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  160. NC0 = CFrame.new(0, 1, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  161. NC1 = CFrame.new(0, -0.5, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  162. RJC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  163. local nscale = Instance.new("NumberValue")
  164. nscale.Value = 1
  165. nscale.Parent = nil
  166. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  167. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  168. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  169. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  170. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  171. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  172. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  173. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  174. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  175. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  176. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  177. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  178. nscale.Changed:connect(function()
  179. RightShoulderC0 = CFrame.new(1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  180. RightShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  181. LeftShoulderC0 = CFrame.new(-1.5 * nscale.Value, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  182. LeftShoulderC1 = CFrame.new(0, 0.5 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  183. RightHipC0 = CFrame.new(0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  184. RightHipC1 = CFrame.new(0, 1 * nscale.Value, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  185. LeftHipC0 = CFrame.new(-0.5 * nscale.Value, -1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  186. LeftHipC1 = CFrame.new(0 * nscale.Value, 1 * nscale.Value, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  187. RootJointC0 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  188. RootJointC1 = CFrame.new(0, 0, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  189. NeckC0 = CFrame.new(0, 1 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  190. NeckC1 = CFrame.new(0, -0.5 * nscale.Value, 0, -1, 0, 0, 0, 0, 1, 0, 1, 0)
  191. end)
  192. RS = tors:FindFirstChild("Right Shoulder")
  193. LS = tors:FindFirstChild("Left Shoulder")
  194. RH = tors:FindFirstChild("Right Hip")
  195. LH = tors:FindFirstChild("Left Hip")
  196. RJ = hrp:FindFirstChild("RootJoint")
  197. N = tors:FindFirstChild("Neck")
  198. cf = CFrame.new
  199. ang = CFrame.Angles
  200. rd = math.rad
  201. rd2 = math.random
  202. function nooutline(p)
  203. p.TopSurface, p.BottomSurface, p.LeftSurface, p.RightSurface, p.FrontSurface, p.BottomSurface = 10, 10, 10, 10, 10, 10
  204. end
  205. function makepart(color, name, reflec, trans, mater, parnt, cfram)
  206. local port = Instance.new("Part")
  207. port.BrickColor = BrickColor.new(color)
  208. port.Name = name
  209. port.Transparency = trans
  210. nooutline(port)
  211. port.Reflectance = reflec
  212. port.Material = mater
  213. port.Anchored = false
  214. port.CanCollide = false
  215. port.Locked = true
  216. port.Size = Vector3.new(0.2, 0.2, 0.2)
  217. port.Parent = parnt
  218. return port
  219. end
  220. function makemesh(meshtype, scale, meshid, parent)
  221. local mes = Instance.new("SpecialMesh")
  222. mes.MeshType = meshtype
  223. mes.Scale = scale
  224. if meshtype == "FileMesh" then
  225. mes.MeshId = meshid
  226. end
  227. mes.Parent = parent
  228. return mes
  229. end
  230. function makeweld(parent, p0, p1, c0, c1)
  231. local wel = Instance.new("Weld")
  232. wel.Part0 = p0
  233. wel.Part1 = p1
  234. wel.C0 = c0
  235. if c1 ~= nil then
  236. wel.C1 = c1
  237. end
  238. wel.Parent = parent
  239. return wel
  240. end
  241.  
  242. --By THIS IS A LINE WE WOWOOWOWOWOWOWO
  243. mouse = game.Players.LocalPlayer:GetMouse()
  244. local rhandclone = game.Players.LocalPlayer.Character.Torso["Right Shoulder"]:Clone()
  245. local rhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  246. rhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  247. rhandweld.Part1 = game.Players.LocalPlayer.Character["Right Arm"]
  248. rhandweld.C0 = CFrame.new(1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  249. local lhandclone = game.Players.LocalPlayer.Character.Torso["Left Shoulder"]:Clone()
  250. local lhandweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  251. lhandweld.Part0 = game.Players.LocalPlayer.Character.Torso
  252. lhandweld.Part1 = game.Players.LocalPlayer.Character["Left Arm"]
  253. lhandweld.C0 = CFrame.new(-1.5, 0, 0, 1, -1.6395192e-43, 0, -1.6395192e-43, 1, 0, 0, 0, 1)
  254. local rootjointclone = game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Clone()
  255. game.Players.LocalPlayer.Character.HumanoidRootPart.RootJoint:Remove()
  256. local humanoidrootpart = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  257. humanoidrootpart.Part0 = game.Players.LocalPlayer.Character.HumanoidRootPart
  258. humanoidrootpart.Part1 = game.Players.LocalPlayer.Character.Torso
  259. local heed = game.Players.LocalPlayer.Character.Torso["Neck"]:Clone()
  260. local headweld = Instance.new("Weld", game.Players.LocalPlayer.Character.Torso)
  261. headweld.Part0 = game.Players.LocalPlayer.Character.Torso
  262. headweld.Part1 = game.Players.LocalPlayer.Character.Head
  263. headweld.C0 = headweld.C0 * CFrame.new(0,1.5,0)
  264. game.Players.LocalPlayer.Character.Torso.Neck:Remove()
  265. using = false
  266. --Converted with ttyyuu12345's model to script plugin v4
  267. function sandbox(var,func)
  268. local env = getfenv(func)
  269. local newenv = setmetatable({},{
  270. __index = function(self,k)
  271. if k=="script" then
  272. return var
  273. else
  274. return env[k]
  275. end
  276. end,
  277. })
  278. setfenv(func,newenv)
  279. return func
  280. end
  281. cors = {}
  282. mas = Instance.new("Model",game:GetService("Lighting"))
  283. Part0 = Instance.new("Part")
  284. SpecialMesh1 = Instance.new("SpecialMesh")
  285. Part0.Parent = mas
  286. Part0.Rotation = Vector3.new(-17.039999, 72.0800018, -73.7399979)
  287. Part0.Size = Vector3.new(0.48999998, 2.96999931, 1.94999981)
  288. Part0.CFrame = CFrame.new(1.99671245, 4.08856773, -0.616976917, 0.0861581191, 0.29545939, 0.95146209, -0.99592489, 0, 0.090184398, 0.0266458243, -0.955355108, 0.294255406)
  289. Part0.BottomSurface = Enum.SurfaceType.Smooth
  290. Part0.TopSurface = Enum.SurfaceType.Smooth
  291. Part0.Position = Vector3.new(1.99671245, 4.08856773, -0.616976917)
  292. Part0.Orientation = Vector3.new(-5.17000008, 72.8099976, -90)
  293. Part0.CanCollide = false
  294. SpecialMesh1.Parent = Part0
  295. SpecialMesh1.MeshId = "rbxassetid://441572308"
  296. SpecialMesh1.Scale = Vector3.new(0.0209999997, 0.60, 0.0209999997)
  297. SpecialMesh1.TextureId = "rbxassetid://"
  298. SpecialMesh1.MeshType = Enum.MeshType.FileMesh
  299. SpecialMesh1.Scale = Vector3.new(0.0209999997, 0.60, 0.0209999997)
  300. for i,v in pairs(mas:GetChildren()) do
  301. v.Parent = game:GetService("Players").LocalPlayer.Character
  302. pcall(function() v:MakeJoints() end)
  303. end
  304. mas:Destroy()
  305. for i,v in pairs(cors) do
  306. spawn(function()
  307. pcall(v)
  308. end)
  309. end
  310. Part0:BreakJoints()
  311. cananimate = true
  312. canhit = false
  313. local weld = Instance.new("Weld", game.Players.LocalPlayer.Character["Right Arm"])
  314. weld.Part0 = game.Players.LocalPlayer.Character["Right Arm"]
  315. weld.Part1 = Part0
  316. weld.C0 = CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0)
  317. for i = 0,1 , 0.03 do
  318. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.962374032, 0, 0.271727562, 0, 1, 0, -0.271727562, 0, 0.962374032),i)
  319. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
  320. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
  321. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54305458, 0.047129631, 2.98023224e-08, 0.99592495, -0.0901843905, 0, 0.090184398, 0.995925009, 0, 0, 0, 0.999999881),i)
  322. game:GetService("RunService").RenderStepped:wait()
  323. end
  324. function swing()
  325. if not using then
  326. using = true
  327. cananimate = false
  328. for i = 0,1 , 0.045 do
  329. weld.C0 = weld.C0:lerp(CFrame.new(0.958130836, -0.815908253, -0.0419664383, 0.379335552, 0.92491132, -0.0253674984, -0.913223445, 0.378668189, 0.150445476, 0.148754537, -0.0339030921, 0.988292694),i)
  330. headweld.C0 = headweld.C0:lerp(CFrame.new(-4.65661287e-10, 1.49999952, 0, 0.601507425, -2.32830644e-10, 0.798867226, 3.0559022e-10, 1, 0, -0.798867226, -4.65661287e-10, 0.601507425),i)
  331. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.63088727, -0.00573391188, -0.775853336, 0, 0.999972701, -0.00739025697, 0.775874496, 0.00466241874, 0.630870044),i)
  332. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(0.0363237262, 0.350219727, -1.1563791, 0.495106995, -0.857149601, 0.1419992, 0.110766649, -0.0998312235, -0.988819599, 0.861742377, 0.505300522, 0.0455164276),i)
  333. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.50056481, 0.516354084, -0.499166548, 0.995925009, -0.00520473719, 0.09003409, 0.0901844054, 0.0574772507, -0.994265079, -2.98023224e-08, 0.998333335, 0.057712432),i)
  334. game:GetService("RunService").RenderStepped:wait()
  335. end
  336. canhit = true
  337. for i = 0,1 , 0.08 do
  338. weld.C0 = weld.C0:lerp(CFrame.new(0.968596578, -1.15575922, 0.178524971, 0.0531506836, 0.988890588, -0.13881819, -0.988834679, 0.0327400565, -0.145376131, -0.13921617, 0.144995078, 0.979589343),i)
  339. headweld.C0 = headweld.C0:lerp(CFrame.new(-0.0249017328, 1.48724031, 2.04332173e-06, 0.499998868, 0, -0.866026163, 0, 1, 0, 0.866026163, 0, 0.499998868),i)
  340. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.305942208, 0, -0.952050149, 0, 1, 0, 0.952050149, 0, 0.305942208):inverse(),i)
  341. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.07653618, 0.305679321, -0.818206966, 0.707105398, -0.707108259, 4.32133675e-07, 0.122787982, 0.122786887, -0.984807909, 0.696365714, 0.696363032, 0.173647687),i)
  342. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(0.74788636, 0.363031864, -0.7663396, 0.70710665, 0.707106948, -2.23517418e-08, -0.0616280138, 0.061627958, -0.99619478, -0.704416275, 0.704416037, 0.0871551335),i)
  343. game:GetService("RunService").RenderStepped:wait()
  344. end
  345. canhit = false
  346. using = false
  347. cananimate = true
  348. end
  349. end
  350. mouse.Button1Down:connect(swing)
  351. function hittie(part)
  352. if canhit then
  353. local humanoid = part.Parent:findFirstChildOfClass("Humanoid")
  354. if humanoid then
  355. canhit = false
  356. using = false
  357. local uptor = humanoid.Parent:findFirstChild("UpperTorso")
  358. if uptor and uptor.Parent.Name ~= game.Players.LocalPlayer.Name then
  359. humanoid.Parent:BreakJoints()
  360. while humanoid.Health >= 0.001 do
  361. game:GetService("RunService").RenderStepped:wait()
  362. end
  363. if humanoid.Parent:findFirstChild("HumanoidRootPart") then
  364. humanoid.Parent.HumanoidRootPart.CanCollide = false
  365. end
  366. local function makeballlimb(attachone, attachtwo, upperang, lowang, twist)
  367. local constraint = Instance.new("BallSocketConstraint", humanoid.Parent)
  368. constraint.Attachment0 = attachone
  369. constraint.Attachment1 = attachtwo
  370. constraint.LimitsEnabled = true
  371. constraint.TwistLimitsEnabled = true
  372. constraint.TwistLowerAngle = lowang
  373. constraint.TwistUpperAngle = upperang
  374. constraint.UpperAngle = twist
  375. end
  376. local function makehingelimb(attachone, attachtwo, upperang, lowang)
  377. local constraint = Instance.new("HingeConstraint", humanoid.Parent)
  378. constraint.Attachment0 = attachone
  379. constraint.Attachment1 = attachtwo
  380. constraint.LimitsEnabled = true
  381. constraint.LowerAngle = lowang
  382. constraint.UpperAngle = upperang
  383. end
  384. for i,v in pairs(humanoid.Parent:GetChildren()) do --scan player
  385. if v.ClassName == "Accessory" then
  386. local findhandle = v:findFirstChild("Handle") --finding handle in accesorry
  387. if findhandle then
  388. local attach = findhandle:findFirstChildOfClass("Attachment")
  389. for q,w in pairs(humanoid.Parent:GetChildren()) do --scan player
  390. if w.Name == "UpperTorso" or w.Name == "Head" then
  391. attach1 = w:findFirstChild(attach.Name) --finding attachment in head/uppertorso
  392. end
  393. end
  394. if attach and attach1 then
  395. local constraint = Instance.new("HingeConstraint", humanoid.Parent) --making fake weld
  396. constraint.Attachment0 = attach
  397. constraint.Attachment1 = attach1
  398. constraint.LimitsEnabled = true
  399. constraint.LowerAngle = 0
  400. constraint.UpperAngle = 0
  401. end
  402. end
  403. end
  404. end
  405. if humanoid.Parent:findFirstChild("Head") and humanoid.Parent:findFirstChild("UpperTorso") then
  406. local attachment = Instance.new("Attachment", humanoid.Parent.Head)
  407. attachment.Position = Vector3.new(0, -0.5, 0)
  408. attachment.Name = "lol"
  409. attachment.Visible = false
  410. humanoid.Parent.UpperTorso.NeckAttachment.Visible = false
  411. humanoid.Parent.UpperTorso.NeckAttachment.Position = humanoid.Parent.UpperTorso.NeckAttachment.Position + Vector3.new(0,0,0)
  412. local ball = Instance.new("BallSocketConstraint", humanoid.Parent)
  413. ball.Attachment0 = humanoid.Parent.UpperTorso.NeckAttachment
  414. ball.Attachment1 = attachment
  415. ball.LimitsEnabled = true
  416. ball.TwistLimitsEnabled = true
  417. ball.UpperAngle = 40
  418. ball.Restitution = 0.5
  419. ball.TwistUpperAngle = 40
  420. ball.TwistLowerAngle = -40
  421. local collidepartofleftleg = Instance.new("Part", humanoid.Parent.UpperTorso)
  422. collidepartofleftleg.Name = "Bone"
  423. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  424. collidepartofleftleg.Transparency = 1
  425. collidepartofleftleg:BreakJoints()
  426. local weeld = Instance.new("Weld", collidepartofleftleg)
  427. weeld.Part0 = collidepartofleftleg
  428. weeld.Part1 = humanoid.Parent["Head"]
  429. if humanoid.Parent.Head:findFirstChild("Neck") then
  430. humanoid.Parent.Head.Neck:destroy()
  431. end
  432. if humanoid.Parent.Head:findFirstChild("face") then
  433. humanoid.Parent.Head.face.Texture = "http://www.roblox.com/asset/?id=810245460"
  434. end
  435. end
  436. local LeftUpperLeg = humanoid.Parent:findFirstChild("LeftUpperLeg")
  437. local LeftLowerLeg = humanoid.Parent:findFirstChild("LeftLowerLeg")
  438. --
  439. local RightUpperLeg = humanoid.Parent:findFirstChild("RightUpperLeg")
  440. local RightLowerLeg = humanoid.Parent:findFirstChild("RightLowerLeg")
  441. --
  442. local RightUpperArm = humanoid.Parent:findFirstChild("RightUpperArm")
  443. local RightLowerArm = humanoid.Parent:findFirstChild("RightLowerArm")
  444. --
  445. local LeftUpperArm = humanoid.Parent:findFirstChild("LeftUpperArm")
  446. local LeftLowerArm = humanoid.Parent:findFirstChild("LeftLowerArm")
  447. --Foot & Hands--
  448.  
  449. local LeftFoot = humanoid.Parent:findFirstChild("LeftFoot")
  450. local RightFoot = humanoid.Parent:findFirstChild("RightFoot")
  451. --
  452. local LeftHand = humanoid.Parent:findFirstChild("LeftHand")
  453. local RightHand = humanoid.Parent:findFirstChild("RightHand")
  454.  
  455. --END--
  456. --TORSOS--
  457.  
  458. local UpperTorso = humanoid.Parent:findFirstChild("UpperTorso")
  459. local LowerTorso = humanoid.Parent:findFirstChild("LowerTorso")
  460.  
  461. --END--
  462. if LowerTorso then
  463. if LeftUpperLeg then
  464. makeballlimb(LowerTorso["LeftHipRigAttachment"], LeftUpperLeg["LeftHipRigAttachment"], 50,-50, 90)
  465. end
  466. if RightUpperLeg then
  467. makeballlimb(LowerTorso["RightHipRigAttachment"], RightUpperLeg["RightHipRigAttachment"], 50,-50, 90)
  468. end
  469. if LeftLowerLeg then
  470. makehingelimb(LeftUpperLeg["LeftKneeRigAttachment"], LeftLowerLeg["LeftKneeRigAttachment"], 0,-90)
  471. end
  472. if RightLowerLeg then
  473. makehingelimb(RightUpperLeg["RightKneeRigAttachment"], RightLowerLeg["RightKneeRigAttachment"], 0,-90)
  474. end
  475. if LeftFoot then
  476. makehingelimb(LeftLowerLeg["LeftAnkleRigAttachment"], LeftFoot["LeftAnkleRigAttachment"], 30, -30)
  477. end
  478. if RightFoot then
  479. makehingelimb(RightLowerLeg["RightAnkleRigAttachment"], RightFoot["RightAnkleRigAttachment"], 30, -30)
  480. end
  481. if UpperTorso then
  482. makehingelimb(UpperTorso["WaistRigAttachment"], LowerTorso["WaistRigAttachment"], 30, -30)
  483. end
  484. end
  485. if UpperTorso then
  486. local vel = Instance.new("BodyVelocity", UpperTorso)
  487. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  488. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 10
  489. game.Debris:AddItem(vel, 0.1)
  490. local hitsound = Instance.new("Sound", UpperTorso)
  491. hitsound.SoundId = "http://www.roblox.com/asset/?id=135436482"
  492. hitsound:Play()
  493. hitsound.Volume = math.random(5,10)
  494. local canhit = true
  495. local hitval = 15
  496. local uptor = humanoid.Parent.UpperTorso
  497. if RightUpperArm then
  498. makeballlimb(RightUpperArm["RightShoulderRigAttachment"], UpperTorso["RightShoulderRigAttachment"], 90,-50, 180)
  499. end
  500. if RightLowerArm then
  501. makehingelimb(RightLowerArm["RightElbowRigAttachment"], RightUpperArm["RightElbowRigAttachment"], 0,-90)
  502. end
  503. if RightHand then
  504. makehingelimb(RightHand["RightWristRigAttachment"], RightLowerArm["RightWristRigAttachment"], 30,30)
  505. end
  506. if LeftUpperArm then
  507. makeballlimb(LeftUpperArm["LeftShoulderRigAttachment"], UpperTorso["LeftShoulderRigAttachment"], 90,-50, 180)
  508. end
  509. if LeftLowerArm then
  510. makehingelimb(LeftLowerArm["LeftElbowRigAttachment"], LeftUpperArm["LeftElbowRigAttachment"], 0,-90)
  511. end
  512. if LeftHand then
  513. makehingelimb(LeftHand["LeftWristRigAttachment"], LeftLowerArm["LeftWristRigAttachment"], 30,30)
  514. end
  515. end
  516. else
  517. humanoid.Parent.Archivable = true
  518. humanoid.PlatformStand = true
  519. local clone = humanoid.Parent:Clone()
  520. clone.Parent = workspace
  521. game.Debris:AddItem(clone, 60)
  522. for i,v in pairs(clone:GetChildren()) do
  523. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  524. v:Remove()
  525. end
  526. for i,p in pairs(v:GetChildren()) do
  527. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  528. p:Remove()
  529. end
  530. end
  531. end
  532. for i,t in pairs(humanoid.Parent:GetChildren()) do
  533. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  534. t:Remove()
  535. end
  536. end
  537. local vel = Instance.new("BodyVelocity", clone.Torso)
  538. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  539. vel.Velocity = game.Players.LocalPlayer.Character.Torso.CFrame.lookVector * 15
  540. game.Debris:AddItem(vel, 0.1)
  541. local hitsound = Instance.new("Sound", clone.Torso)
  542. hitsound.SoundId = "http://www.roblox.com/asset/?id=135436482"
  543. hitsound:Play()
  544. hitsound.Volume = math.random(5,10)
  545. vel = Instance.new("BodyVelocity", clone.Torso)
  546. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  547. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  548. using = false
  549. hit = Instance.new("Sound", clone.Torso)
  550. hit.SoundId = "rbxassetid://135436482"
  551. hit.Volume = 0
  552. hit1 = Instance.new("Sound", clone.Torso)
  553. hit1.SoundId = "rbxassetid://135436482"
  554. hit1.Volume = 0
  555. hit2 = Instance.new("Sound", clone.Torso)
  556. hit2.SoundId = "rbxassetid://135436482"
  557. hit2.Volume = 0
  558. hit3 = Instance.new("Sound", clone.Torso)
  559. hit3.SoundId = "rbxassetid://278062209"
  560. hit3.Volume = 0
  561. hit3.TimePosition = 0.33
  562. ded = Instance.new("Sound", clone.Torso)
  563. ded.SoundId = "rbxassetid://418892870"
  564. ded.Volume = 0
  565. local leftarm = clone:findFirstChild("Left Arm")
  566. local rightrm = clone:findFirstChild("Right Arm")
  567. local leftleg = clone:findFirstChild("Left Leg")
  568. local rightleg = clone:findFirstChild("Right Leg")
  569. local head = clone:findFirstChild("Head")
  570. for i, g in pairs(humanoid.Parent:GetChildren()) do
  571. if g.ClassName == "Part" then
  572. g:destroy()
  573. end
  574. end
  575. for i, h in pairs(humanoid.Parent:GetChildren()) do
  576. if h.ClassName == "Accesory" then
  577. h:destroy()
  578. end
  579. end
  580. for z,x in pairs(clone:GetChildren()) do
  581. if x.ClassName == "Accessory" then
  582. local handle = x:findFirstChild("Handle")
  583. if handle then
  584. local attachment = handle:findFirstChildOfClass("Attachment")
  585. if attachment then
  586. for q,w in pairs(clone:GetChildren()) do
  587. if w.Name == "Torso" or w.Name == "Head" then
  588. local anotherone = w:findFirstChild(attachment.Name)
  589. if attachment and anotherone then
  590. local constraint = Instance.new("HingeConstraint", clone) --making fake weld
  591. constraint.Attachment0 = attachment
  592. constraint.Attachment1 = anotherone
  593. constraint.LimitsEnabled = true
  594. constraint.LowerAngle = 0
  595. constraint.UpperAngle = 0
  596. end
  597. end
  598. end
  599. end
  600. end
  601. end
  602. end
  603. if head and clone.Torso:findFirstChild("NeckAttachment") then
  604. local attachment = Instance.new("Attachment", clone.Head)
  605. attachment.Position = Vector3.new(0, -0.5, 0)
  606. attachment.Name = "lol"
  607. attachment.Visible = false
  608. clone.Torso.NeckAttachment.Visible = false
  609. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  610. local ball = Instance.new("BallSocketConstraint", clone)
  611. ball.Attachment0 = clone.Torso.NeckAttachment
  612. ball.Attachment1 = attachment
  613. ball.LimitsEnabled = true
  614. ball.TwistLimitsEnabled = true
  615. ball.UpperAngle = 90
  616. ball.Restitution = 0.5
  617. ball.TwistUpperAngle = 90
  618. ball.TwistLowerAngle = -90
  619. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  620. collidepartofleftleg.Name = "Bone"
  621. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  622. collidepartofleftleg.Transparency = 1
  623. collidepartofleftleg:BreakJoints()
  624. local weeld = Instance.new("Weld", collidepartofleftleg)
  625. weeld.Part0 = collidepartofleftleg
  626. weeld.Part1 = clone["Head"]
  627. end
  628. if leftleg ~= nil then
  629. leftleg:BreakJoints()
  630. local glue = Instance.new("Glue", clone.Torso)
  631. glue.Part0 = clone.Torso
  632. glue.Part1 = leftleg
  633. glue.Name = "Left leg"
  634. local collider = Instance.new("Part", leftleg)
  635. collider.Position = Vector3.new(0,999,0)
  636. collider.Size = Vector3.new(1.5, 1, 1)
  637. collider.Shape = "Cylinder"
  638. local weld = Instance.new("Weld", collider)
  639. weld.Part0 = leftleg
  640. weld.Part1 = collider
  641. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  642. collider.TopSurface = "Smooth"
  643. collider.BottomSurface = "Smooth"
  644. collider.formFactor = "Symmetric"
  645. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  646. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  647. collider.Transparency = 1
  648. end
  649. ------------
  650. if rightleg ~= nil then
  651. rightleg:BreakJoints()
  652. local glue1 = Instance.new("Glue", clone.Torso)
  653. glue1.Part0 = clone.Torso
  654. glue1.Part1 = rightleg
  655. glue1.Name = "Right leg"
  656. local collider1 = Instance.new("Part", rightleg)
  657. collider1.Position = Vector3.new(0,999,0)
  658. collider1.Size = Vector3.new(1.5, 1, 1)
  659. collider1.Shape = "Cylinder"
  660. local weld1 = Instance.new("Weld", collider1)
  661. weld1.Part0 = rightleg
  662. weld1.Part1 = collider1
  663. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  664. collider1.TopSurface = "Smooth"
  665. collider1.BottomSurface = "Smooth"
  666. collider1.formFactor = "Symmetric"
  667. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  668. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  669. collider1.Transparency = 1
  670. end
  671. ------------
  672. if rightrm ~= nil then
  673. rightrm:BreakJoints()
  674. rightrm.CFrame = clone.Torso.CFrame * CFrame.new(1.7,0,0)
  675. local glue11 = Instance.new("Glue", clone.Torso)
  676. glue11.Part0 = clone.Torso
  677. glue11.Part1 = rightrm
  678. glue11.Name = "Right shoulder"
  679. local collider11 = Instance.new("Part", rightrm)
  680. collider11.Position = Vector3.new(0,9999,0)
  681. collider11.Size = Vector3.new(1.5,1,1)
  682. collider11.Shape = "Cylinder"
  683. local weld11 = Instance.new("Weld", collider11)
  684. weld11.Part0 = rightrm
  685. weld11.Part1 = collider11
  686. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  687. collider11.TopSurface = "Smooth"
  688. collider11.BottomSurface = "Smooth"
  689. collider11.formFactor = "Symmetric"
  690. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  691. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  692. collider11.Transparency = 1
  693. end
  694. ------------
  695. if leftarm ~= nil then
  696. leftarm.CFrame = clone.Torso.CFrame * CFrame.new(-1.7,0,0)
  697. leftarm:BreakJoints()
  698. local glue111 = Instance.new("Glue", clone.Torso)
  699. glue111.Part0 = clone.Torso
  700. glue111.Part1 = leftarm
  701. glue111.Name = "Left shoulder"
  702. local collider111 = Instance.new("Part", leftarm)
  703. collider111.Position = Vector3.new(0,9999,0)
  704. collider111.Size = Vector3.new(1.5,1,1)
  705. collider111.Shape = "Cylinder"
  706. local weld111 = Instance.new("Weld", collider111)
  707. weld111.Part0 = leftarm
  708. weld111.Part1 = collider111
  709. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  710. collider111.TopSurface = "Smooth"
  711. collider111.BottomSurface = "Smooth"
  712. collider111.formFactor = "Symmetric"
  713. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  714. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  715. collider111.Transparency = 1
  716. ----------------
  717. sensoring = Instance.new("Part", clone.Torso)
  718. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  719. sensoring.CanCollide = false
  720. sensoring.Position = clone.Torso.Position
  721. local welder = Instance.new("Weld", sensoring)
  722. welder.Part0 = clone.Torso
  723. welder.Part1 = sensoring
  724. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  725. sensoring.Transparency = 1
  726. -----------------
  727. sensoring1 = Instance.new("Part", clone.Torso)
  728. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  729. sensoring1.CanCollide = false
  730. sensoring1.Position = clone.Torso.Position
  731. local welder1 = Instance.new("Weld", sensoring)
  732. welder1.Part0 = clone.Torso
  733. welder1.Part1 = sensoring1
  734. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  735. sensoring1.Transparency = 1
  736. end
  737. clone.Name = humanoid.Parent.Name.." (BONK’D)"
  738. ded:Play()
  739. vel:destroy()
  740. wait(0.5)
  741. local function touch()
  742. if not using then
  743. using = true
  744. local Math = math.random(1,4)
  745. if Math == 1 then
  746. hit:Play()
  747. end
  748. if Math == 2 then
  749. hit1:Play()
  750. end
  751. if Math == 3 then
  752. hit2:Play()
  753. end
  754. if Math == 4 then
  755. hit3:Play()
  756. end
  757. wait(0.1)
  758. using = false
  759. end
  760. end
  761. sensoring.Touched:connect(touch)
  762. sensoring1.Touched:connect(touch)
  763. while true do
  764. if clone:findFirstChild("Head") then
  765. clone.Head.CanCollide = false
  766. end
  767. game:GetService("RunService").Stepped:wait()
  768. end
  769. end
  770. end
  771. end
  772. end
  773. Part0.Touched:connect(hittie)
  774. function ragdoll()
  775. game.Players.LocalPlayer.Character.Archivable = true
  776. clone = game.Players.LocalPlayer.Character:Clone()
  777. clone.Parent = workspace
  778. for i,v in pairs(clone:GetChildren()) do
  779. if v.ClassName == "Script" or v.ClassName == "LocalScript" then
  780. v:Remove()
  781. end
  782. for i,p in pairs(v:GetChildren()) do
  783. if p.ClassName == "Weld" or p.ClassName == "Motor6D" or p.ClassName == "BodyVelocity" then
  784. p:Remove()
  785. end
  786. end
  787. end
  788. for i,t in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  789. if t.ClassName == "Accessory" or t.ClassName == "ForceField" then
  790. t:Remove()
  791. end
  792. end
  793. vel = Instance.new("BodyVelocity", clone.Torso)
  794. vel.Velocity = clone.Torso.CFrame.lookVector * -5
  795. vel.MaxForce = Vector3.new(math.huge,math.huge,math.huge)
  796. clone.Head.face.Texture = "http://www.roblox.com/asset/?id=161061608"
  797. using = false
  798. hit = Instance.new("Sound", clone.Torso)
  799. hit.SoundId = "rbxassetid://135436482"
  800. hit.Volume = 0
  801. hit1 = Instance.new("Sound", clone.Torso)
  802. hit1.SoundId = "rbxassetid://135436482"
  803. hit1.Volume = 0
  804. hit2 = Instance.new("Sound", clone.Torso)
  805. hit2.SoundId = "rbxassetid://135436482"
  806. hit2.Volume = 0
  807. hit3 = Instance.new("Sound", clone.Torso)
  808. hit3.SoundId = "rbxassetid://135436482"
  809. hit3.Volume = 0
  810. hit3.TimePosition = 0.33
  811. ded = Instance.new("Sound", clone.Torso)
  812. ded.SoundId = "rbxassetid://135436482"
  813. ded.Volume = 5
  814. local leftarm = clone:findFirstChild("Left Arm")
  815. local rightrm = clone:findFirstChild("Right Arm")
  816. local leftleg = clone:findFirstChild("Left Leg")
  817. local rightleg = clone:findFirstChild("Right Leg")
  818. local head = clone:findFirstChild("Head")
  819. for i, g in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  820. if g.ClassName == "Part" then
  821. g:destroy()
  822. end
  823. end
  824. for i, h in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
  825. if h.ClassName == "Accesory" then
  826. h:destroy()
  827. end
  828. end
  829. game.Workspace.CurrentCamera.CameraSubject = head
  830. if head then
  831. local attachment = Instance.new("Attachment", clone.Head)
  832. attachment.Position = Vector3.new(0, -0.5, 0)
  833. attachment.Name = "lol"
  834. attachment.Visible = false
  835. clone.Torso.NeckAttachment.Visible = false
  836. clone.Torso.NeckAttachment.Position = clone.Torso.NeckAttachment.Position + Vector3.new(0,0,0)
  837. local ball = Instance.new("BallSocketConstraint", clone)
  838. ball.Attachment0 = clone.Torso.NeckAttachment
  839. ball.Attachment1 = attachment
  840. ball.LimitsEnabled = true
  841. ball.TwistLimitsEnabled = true
  842. ball.UpperAngle = 90
  843. ball.Restitution = 0.5
  844. ball.TwistUpperAngle = 90
  845. ball.TwistLowerAngle = -90
  846. local collidepartofleftleg = Instance.new("Part", clone.Torso)
  847. collidepartofleftleg.Name = "Bone"
  848. collidepartofleftleg.Size = Vector3.new(0.7,0.7,0.7)
  849. collidepartofleftleg.Transparency = 1
  850. collidepartofleftleg:BreakJoints()
  851. local weeld = Instance.new("Weld", collidepartofleftleg)
  852. weeld.Part0 = collidepartofleftleg
  853. weeld.Part1 = clone["Head"]
  854. end
  855. if leftleg ~= nil then
  856. local glue = Instance.new("Glue", clone.Torso)
  857. glue.Part0 = clone.Torso
  858. glue.Part1 = leftleg
  859. glue.Name = "Left leg"
  860. local collider = Instance.new("Part", leftleg)
  861. collider.Position = Vector3.new(0,999,0)
  862. collider.Size = Vector3.new(1.5, 1, 1)
  863. collider.Shape = "Cylinder"
  864. local weld = Instance.new("Weld", collider)
  865. weld.Part0 = leftleg
  866. weld.Part1 = collider
  867. weld.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  868. collider.TopSurface = "Smooth"
  869. collider.BottomSurface = "Smooth"
  870. collider.formFactor = "Symmetric"
  871. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  872. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  873. collider.Transparency = 1
  874. end
  875. ------------
  876. if rightleg ~= nil then
  877. local glue1 = Instance.new("Glue", clone.Torso)
  878. glue1.Part0 = clone.Torso
  879. glue1.Part1 = rightleg
  880. glue1.Name = "Right leg"
  881. local collider1 = Instance.new("Part", rightleg)
  882. collider1.Position = Vector3.new(0,999,0)
  883. collider1.Size = Vector3.new(1.5, 1, 1)
  884. collider1.Shape = "Cylinder"
  885. local weld1 = Instance.new("Weld", collider1)
  886. weld1.Part0 = rightleg
  887. weld1.Part1 = collider1
  888. weld1.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  889. collider1.TopSurface = "Smooth"
  890. collider1.BottomSurface = "Smooth"
  891. collider1.formFactor = "Symmetric"
  892. glue1.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  893. glue1.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  894. collider1.Transparency = 1
  895. end
  896. ------------
  897. if rightrm ~= nil then
  898. local glue11 = Instance.new("Glue", clone.Torso)
  899. glue11.Part0 = clone.Torso
  900. glue11.Part1 = rightrm
  901. glue11.Name = "Right shoulder"
  902. local collider11 = Instance.new("Part", rightrm)
  903. collider11.Position = Vector3.new(0,9999,0)
  904. collider11.Size = Vector3.new(1.5,1,1)
  905. collider11.Shape = "Cylinder"
  906. local weld11 = Instance.new("Weld", collider11)
  907. weld11.Part0 = rightrm
  908. weld11.Part1 = collider11
  909. weld11.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  910. collider11.TopSurface = "Smooth"
  911. collider11.BottomSurface = "Smooth"
  912. collider11.formFactor = "Symmetric"
  913. glue11.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  914. glue11.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  915. collider11.Transparency = 1
  916. end
  917. ------------
  918. if leftarm ~= nil then
  919. local glue111 = Instance.new("Glue", clone.Torso)
  920. glue111.Part0 = clone.Torso
  921. glue111.Part1 = leftarm
  922. glue111.Name = "Left shoulder"
  923. local collider111 = Instance.new("Part", leftarm)
  924. collider111.Position = Vector3.new(0,9999,0)
  925. collider111.Size = Vector3.new(1.5,1,1)
  926. collider111.Shape = "Cylinder"
  927. local weld111 = Instance.new("Weld", collider111)
  928. weld111.Part0 = leftarm
  929. weld111.Part1 = collider111
  930. weld111.C0 = CFrame.new(0,-0.2,0) * CFrame.fromEulerAnglesXYZ(0, 0, math.pi/2)
  931. collider111.TopSurface = "Smooth"
  932. collider111.BottomSurface = "Smooth"
  933. collider111.formFactor = "Symmetric"
  934. glue111.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  935. glue111.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  936. collider111.Transparency = 1
  937. ----------------
  938. sensoring = Instance.new("Part", clone.Torso)
  939. sensoring.Size = Vector3.new(1.2,1.1,0.8)
  940. sensoring.CanCollide = false
  941. sensoring.Position = clone.Torso.Position
  942. local welder = Instance.new("Weld", sensoring)
  943. welder.Part0 = clone.Torso
  944. welder.Part1 = sensoring
  945. welder.C0 = welder.C0 * CFrame.new(0,0,1.05)
  946. sensoring.Transparency = 1
  947. -----------------
  948. sensoring1 = Instance.new("Part", clone.Torso)
  949. sensoring1.Size = Vector3.new(1.2,1.1,0.8)
  950. sensoring1.CanCollide = false
  951. sensoring1.Position = clone.Torso.Position
  952. local welder1 = Instance.new("Weld", sensoring)
  953. welder1.Part0 = clone.Torso
  954. welder1.Part1 = sensoring1
  955. welder1.C0 = welder1.C0 * CFrame.new(0,0,-1.05)
  956. sensoring1.Transparency = 1
  957. end
  958. clone.Name = game.Players.LocalPlayer.Character.Name.." (BONKED)"
  959. ded:Play()
  960. vel:destroy()
  961. wait(0.2)
  962. game.Debris:AddItem(clone,60)
  963. local function touch()
  964. if not using then
  965. using = true
  966. local Math = math.random(1,4)
  967. if Math == 1 then
  968. hit:Play()
  969. end
  970. if Math == 2 then
  971. hit1:Play()
  972. end
  973. if Math == 3 then
  974. hit2:Play()
  975. end
  976. if Math == 4 then
  977. hit3:Play()
  978. end
  979. wait(0.1)
  980. using = false
  981. end
  982. end
  983. sensoring.Touched:connect(touch)
  984. sensoring1.Touched:connect(touch)
  985. while true do
  986. clone.Head.CanCollide = false
  987. game:GetService("RunService").Stepped:wait()
  988. end
  989. end
  990.  
  991. game.Players.LocalPlayer.Character.Humanoid.Died:connect(ragdoll)
  992.  
  993. --di ent
  994. while true do
  995. if cananimate then
  996. if game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  997. for i = 0.1,0.3 , 0.008 do
  998. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  999. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53402293, 0.0594797134, 0.144087285, 0.997264206, 0.0707819909, 0.0213012099, -0.0739177391, 0.9549582, 0.287386209, 2.98023224e-08, -0.28817457, 0.957577825),i)
  1000. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54035091, 0.0769848824, -0.170524538, 0.99592495, -0.0847774297, 0.0307573378, 0.090184398, 0.936214805, -0.339659303, 0, 0.341049016, 0.940045416),i)
  1001. game:GetService("RunService").Stepped:wait()
  1002. end
  1003. end
  1004. for i = 0.1,0.3 , 0.008 do
  1005. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x > 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > 0.5 and cananimate then
  1006. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53173375, 0.0903658867, -0.222393572, 0.997264206, 0.0662034005, -0.0328776538, -0.0739177391, 0.893185973, -0.443570435, 2.98023224e-08, 0.444787204, 0.895636141),i)
  1007. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54079688, 0.0720610619, 0.156226337, 0.99592495, -0.085669145, -0.0281783342, 0.090184398, 0.946062148, 0.311179608, 0, -0.312452823, 0.949932992),i)
  1008. game:GetService("RunService").Stepped:wait()
  1009. end
  1010. end
  1011. elseif game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 then
  1012. for i = 0,1 , 0.1 do
  1013. if cananimate and game.Players.LocalPlayer.Character.Torso.Velocity.x > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.x < 0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z > -0.5 or game.Players.LocalPlayer.Character.Torso.Velocity.z < 0.5 and cananimate then
  1014. weld.C0 = weld.C0:lerp(CFrame.new(0.0769970417, -1.17027426, -1.17937994, 0, 0, 1, -0.999999881, 0, 0, 0, -1, 0),i)
  1015. headweld.C0 = headweld.C0:lerp(CFrame.new(0, 1.5, 0, 0.962374032, 0, 0.271727562, 0, 1, 0, -0.271727562, 0, 0.962374032),i)
  1016. humanoidrootpart.C0 = humanoidrootpart.C0:lerp(CFrame.new(0, 0, 0, 0.955355227, 0, -0.295459419, 0, 1, 0, 0.295459419, 0, 0.955355227),i)
  1017. lhandweld.C0 = lhandweld.C0:lerp(CFrame.new(-1.53559077, 0.0383267403, 0, 0.997264206, 0.0739177391, 0, -0.0739177391, 0.997264266, 0, 2.98023224e-08, 1.86264515e-09, 0.999999881),i)
  1018. rhandweld.C0 = rhandweld.C0:lerp(CFrame.new(1.54305458, 0.047129631, 2.98023224e-08, 0.99592495, -0.0901843905, 0, 0.090184398, 0.995925009, 0, 0, 0, 0.999999881),i)
  1019. game:GetService("RunService").RenderStepped:wait()
  1020. end
  1021. end
  1022. end
  1023. end
  1024. wait()
  1025. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement