sIendytubble

become a giant cannibal

May 19th, 2020
172
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.00 KB | None | 0 0
  1. local Player,Mouse,mouse,UserInputService,ContextActionService = owner
  2. local RealPlayer = Player
  3. local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer warn'inspired by skinny giant one eyed monster script that allows you to eat people'
  4. player = game.Players.LocalPlayer
  5. chr = player.Character
  6. mouse = player:GetMouse()
  7. local target = nil
  8.  
  9. scl = 2
  10. local Head = chr['Head']
  11. local Torso = chr['Torso']
  12. local LA = chr['Left Arm']
  13. local RA = chr['Right Arm']
  14. local LL = chr['Left Leg']
  15. local RL = chr['Right Leg']
  16. local HRP = chr['HumanoidRootPart']
  17. wait(0.1)
  18.  
  19. Head.formFactor = 3
  20. Torso.formFactor = 3
  21. LA.formFactor = 3
  22. RA.formFactor = 3
  23. LL.formFactor = 3
  24. RL.formFactor = 3
  25. HRP.formFactor = 3
  26.  
  27. Head.Size = Vector3.new(scl * 2, scl, scl)
  28. Torso.Size = Vector3.new(scl * 2, scl * 2, scl)
  29. LA.Size = Vector3.new(scl, scl * 2, scl)
  30. RA.Size = Vector3.new(scl, scl * 2, scl)
  31. LL.Size = Vector3.new(scl, scl * 2, scl)
  32. RL.Size = Vector3.new(scl, scl * 2, scl)
  33. HRP.Size = Vector3.new(scl * 2, scl * 2, scl)
  34.  
  35. local Motor1 = Instance.new('Motor6D', Torso)
  36. Motor1.Part0 = Torso
  37. Motor1.Part1 = Head
  38. Motor1.C0 = CFrame.new(0, 1 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  39. Motor1.C1 = CFrame.new(0, -0.5 * scl, 0) * CFrame.Angles(-1.6, 0, 3.1)
  40. Motor1.Name = "Neck"
  41.  
  42. local Motor2 = Instance.new('Motor6D', Torso)
  43. Motor2.Part0 = Torso
  44. Motor2.Part1 = LA
  45. Motor2.C0 = CFrame.new(-1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  46. Motor2.C1 = CFrame.new(0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  47. Motor2.Name = "Left Shoulder"
  48.  
  49. local Motor3 = Instance.new('Motor6D', Torso)
  50. Motor3.Part0 = Torso
  51. Motor3.Part1 = RA
  52. Motor3.C0 = CFrame.new(1 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  53. Motor3.C1 = CFrame.new(-0.5 * scl, 0.5 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  54. Motor3.Name = "Right Shoulder"
  55.  
  56. local Motor4 = Instance.new('Motor6D', Torso)
  57. Motor4.Part0 = Torso
  58. Motor4.Part1 = LL
  59. Motor4.C0 = CFrame.new(-1 * scl, -1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  60. Motor4.C1 = CFrame.new(-0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, -1.6, 0)
  61. Motor4.Name = "Left Hip"
  62.  
  63. local Motor5 = Instance.new('Motor6D', Torso)
  64. Motor5.Part0 = Torso
  65. Motor5.Part1 = RL
  66. Motor5.C0 = CFrame.new(1 * scl, -1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  67. Motor5.C1 = CFrame.new(0.5 * scl, 1 * scl, 0) * CFrame.Angles(0, 1.6, 0)
  68. Motor5.Name = "Right Hip"
  69.  
  70. local Motor6 = Instance.new('Motor6D', HRP)
  71. Motor6.Part0 = HRP
  72. Motor6.Part1 = Torso
  73. Motor6.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  74. Motor6.C1 = CFrame.new(0, 0, 0) * CFrame.Angles(-1.6, 0, -3.1)
  75. function lerp(weld,startpos,endpos,amntime,longatend)
  76. local waited = 0
  77. for i=1,amntime*100 do
  78. if longatend == true then
  79. startpos = weld.C0
  80. end
  81. weld.C0 = startpos:lerp(endpos,i/(amntime*100))
  82. wait(0.01)
  83. waited=waited+0.01
  84. end
  85. end
  86. swinging = false
  87. working = false
  88. char = chr
  89. Part0 = char.Head
  90. char.Humanoid.WalkSpeed = 16 * 2
  91. function katanaswing()
  92. working = true
  93. pcall(function()
  94. local rweld = Instance.new("Weld", char["Right Arm"])
  95. rweld.Part0 = char["Torso"]
  96. rweld.Part1 = char["Right Arm"]
  97. rweld.C0 = CFrame.new(1.5, 0, 0)
  98. swinging = true
  99. lerp(rweld,rweld.C0,CFrame.new(1.8,1.1,-2) * CFrame.Angles(math.rad(126),math.rad(4),math.rad(-45)),0.04)
  100. wait(0.2)
  101. target.Humanoid.BreakJointsOnDeath = false
  102. for i,v in pairs(target:GetChildren()) do
  103. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  104. if v.Name ~= "Head" and v.Name ~= "Torso" and v.Name ~= "HumanoidRootPart" then
  105. v.Parent = nil
  106. end
  107. end
  108. end
  109. for i,v in pairs(target:GetChildren()) do
  110. if v.ClassName == "Part" or v.ClassName == "MeshPart" then
  111. weld = Instance.new("Weld",target)
  112. weld.Part0 = Torso
  113. weld.Part1 = v
  114. v.Parent.Head:ClearAllChildren()
  115. v.Transparency = 1
  116. end
  117. end
  118. for i,v in pairs(target:GetChildren()) do
  119. if v.ClassName == "Hat" or v.ClassName == "Accessory" then
  120. v:FindFirstChild("Handle"):ClearAllChildren()
  121. v:FindFirstChild("Handle").Transparency = 1
  122. end
  123. end
  124. target.Head:ClearAllChildren()
  125. target.Head.Transparency = 1
  126. if char:FindFirstChild("weldok") then
  127. char:FindFirstChild("weldok").Part0 = nil
  128. char:FindFirstChild("weldok").Part1 = nil
  129. char:FindFirstChild("weldok").Parent = nil
  130. end
  131. oof = Instance.new("Sound",Part0)
  132. oof.SoundId = "rbxassetid://429400881"
  133. oof.Volume = 10
  134. oof:Play()
  135. ParticleEmitter0 = Instance.new("ParticleEmitter")
  136. ParticleEmitter1 = Instance.new("ParticleEmitter")
  137. ParticleEmitter2 = Instance.new("ParticleEmitter")
  138. ParticleEmitter0.Name = "Blood"
  139. ParticleEmitter0.Parent = Part0
  140. ParticleEmitter0.Speed = NumberRange.new(5, 10)
  141. ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  142. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  143. ParticleEmitter0.LightEmission = 0.40000000596046
  144. ParticleEmitter0.LightInfluence = 1
  145. ParticleEmitter0.Texture = "rbxassetid://73547327"
  146. ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  147. ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
  148. ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
  149. ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
  150. ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  151. ParticleEmitter0.Rate = 10000000
  152. ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
  153. ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  154. ParticleEmitter0.VelocitySpread = 360
  155. ParticleEmitter1.Name = "Blood2"
  156. ParticleEmitter1.Parent = Part0
  157. ParticleEmitter1.Speed = NumberRange.new(5, 14)
  158. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  159. ParticleEmitter1.LightEmission = 0.20000000298023
  160. ParticleEmitter1.LightInfluence = 1
  161. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
  162. ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  163. ParticleEmitter1.ZOffset = 1
  164. ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
  165. ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
  166. ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  167. ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
  168. ParticleEmitter1.Rate = 100000
  169. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  170. ParticleEmitter1.VelocitySpread = 360
  171. ParticleEmitter2.Name = "Blood3"
  172. ParticleEmitter2.Parent = Part0
  173. ParticleEmitter2.Speed = NumberRange.new(3, 7)
  174. ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
  175. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  176. ParticleEmitter2.LightEmission = 0.20000000298023
  177. ParticleEmitter2.LightInfluence = 1
  178. ParticleEmitter2.Texture = "rbxassetid://241779220"
  179. ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  180. ParticleEmitter2.ZOffset = 0.5
  181. ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
  182. ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
  183. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  184. ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
  185. ParticleEmitter2.Rate = 3000
  186. ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
  187. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  188. ParticleEmitter2.VelocitySpread = 360
  189. wait(0.3)
  190. for i,v in pairs(Part0:GetChildren()) do
  191. if v.ClassName == "ParticleEmitter" then
  192. v.Enabled = false
  193. end
  194. end
  195. swinging = false
  196. lerp(rweld,rweld.C0,CFrame.new(2.5, 0, 0) * CFrame.Angles(0, math.rad(0), math.rad(0)),0.08)
  197. rweld:Destroy()
  198. end)
  199. working = false
  200. target = nil
  201. end
  202. function ragdollkill(character)
  203. local victimshumanoid = character:findFirstChildOfClass("Humanoid")
  204. local checkragd = character:findFirstChild("ragded")
  205. if not checkragd then
  206. local boolvalue = Instance.new("BoolValue", character)
  207. boolvalue.Name = "ragded"
  208. if not character:findFirstChild("UpperTorso") then
  209. local ragdollmodel = Instance.new("Model", workspace)
  210. ragdollmodel.Name = character.Name
  211. character.Archivable = true
  212. for i,v in pairs(character:GetChildren()) do
  213. if v.ClassName == "Sound" then
  214. v:remove()
  215. end
  216. for q,w in pairs(v:GetChildren()) do
  217. if w.ClassName == "Sound" then
  218. w:remove()
  219. end
  220. end
  221. end
  222. local ragdollright = character:Clone()
  223. local ragdollleft = character:Clone()
  224. weldo = Instance.new("Weld",char)
  225. weldo.Name = "weldok"
  226. weldo.Part0 = char["Right Arm"]
  227. weldo.Part1 = ragdollright.Torso
  228. weldo.C0 = CFrame.new(1.5,-2,-0.5) * CFrame.Angles(-math.rad(90),math.rad(0),-math.rad(0))
  229. weldo3 = Instance.new("Weld",char)
  230. weldo3.Name = "weldok"
  231. weldo3.Part0 = char["Left Arm"]
  232. weldo3.Part1 = ragdollleft.Torso
  233. weldo3.C0 = CFrame.new(1.5,-2,-0.5) * CFrame.Angles(-math.rad(90),math.rad(0),-math.rad(0))
  234. coroutine.resume(coroutine.create(function()
  235. wait(0.4)
  236. weldo:Destroy()
  237. weldo3:Destroy()
  238. end))
  239. for i,v in pairs(ragdollright:GetDescendants()) do
  240. if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  241. v:destroy()
  242. end
  243. end
  244. ragdollright:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  245. ragdollright:findFirstChildOfClass("Humanoid").Health = 0
  246. if ragdollright:findFirstChild("Health") then
  247. if ragdollright:findFirstChild("Health").ClassName == "Script" then
  248. ragdollright:findFirstChild("Health").Disabled = true
  249. end
  250. end
  251. --
  252. for i,v in pairs(ragdollleft:GetDescendants()) do
  253. if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  254. v:destroy()
  255. end
  256. end
  257. ragdollleft:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  258. ragdollleft:findFirstChildOfClass("Humanoid").Health = 0
  259. if ragdollleft:findFirstChild("Health") then
  260. if ragdollleft:findFirstChild("Health").ClassName == "Script" then
  261. ragdollright:findFirstChild("Health").Disabled = true
  262. end
  263. end
  264. for i,v in pairs(character:GetChildren()) do
  265. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" then
  266. v:destroy()
  267. end
  268. end
  269. for i,v in pairs(character:GetChildren()) do
  270. if v.ClassName == "Accessory" then
  271. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  272. if attachment1 then
  273. for q,w in pairs(character:GetChildren()) do
  274. if w.ClassName == "Part" then
  275. local attachment2 = w:findFirstChild(attachment1.Name)
  276. if attachment2 then
  277. local hinge = Instance.new("HingeConstraint", v.Handle)
  278. hinge.Attachment0 = attachment1
  279. hinge.Attachment1 = attachment2
  280. hinge.LimitsEnabled = true
  281. hinge.LowerAngle = 0
  282. hinge.UpperAngle = 0
  283. end
  284. end
  285. end
  286. end
  287. end
  288. end
  289. ragdollright.Parent = ragdollmodel
  290. ragdollleft.Parent = ragdollmodel
  291. --
  292. ragdollleft.Torso.Transparency = 0.01
  293. ragdollright.Torso.Transparency = 0.01
  294. if ragdollleft:findFirstChild("HumanoidRootPart") then
  295. ragdollleft:findFirstChild("HumanoidRootPart").Transparency = 1
  296. end
  297. --
  298. local leftinvisible = Instance.new("Part", ragdollmodel)
  299. leftinvisible.Size = Vector3.new(1.1,2.1,1.1)
  300. leftinvisible.Material = "Glass"
  301. leftinvisible.CanCollide = false
  302. leftinvisible.Transparency = 0.999
  303. local leftweld = Instance.new("Weld", leftinvisible)
  304. leftweld.Part0 = ragdollleft.Torso
  305. leftweld.Part1 = leftinvisible
  306. leftweld.C0 = CFrame.new(0.5,0,0)
  307. local leftred = Instance.new("Part", ragdollleft.Torso)
  308. leftred.Size = Vector3.new(0.925,1.925,0.925)
  309. leftred.Material = "Pebble"
  310. leftred.CanCollide = false
  311. leftred.BrickColor = BrickColor.new("Maroon")
  312. local leftredweld = Instance.new("Weld", leftred)
  313. leftredweld.Part0 = ragdollleft.Torso
  314. leftredweld.Part1 = leftred
  315. leftredweld.C0 = CFrame.new(-0.5,0,0)
  316. --
  317. local rightinvisible = Instance.new("Part", ragdollmodel)
  318. rightinvisible.Size = Vector3.new(1.1,2.1,1.1)
  319. rightinvisible.Material = "Glass"
  320. rightinvisible.CanCollide = false
  321. rightinvisible.Transparency = 0.999
  322. local rightweld = Instance.new("Weld", rightinvisible)
  323. rightweld.Part0 = ragdollright.Torso
  324. rightweld.Part1 = rightinvisible
  325. rightweld.C0 = CFrame.new(-0.5,0,0)
  326. local rightred = Instance.new("Part", ragdollright.Torso)
  327. rightred.Size = Vector3.new(0.925,1.925,0.925)
  328. rightred.Material = "Pebble"
  329. rightred.CanCollide = false
  330. rightred.BrickColor = BrickColor.new("Maroon")
  331. local rightredweld = Instance.new("Weld", rightred)
  332. rightredweld.Part0 = ragdollright.Torso
  333. rightredweld.Part1 = rightred
  334. rightredweld.C0 = CFrame.new(0.5,0,0)
  335. --
  336. if ragdollleft:findFirstChild("Right Arm") then
  337. ragdollleft["Right Arm"]:destroy()
  338. end
  339. coroutine.resume(coroutine.create(function()
  340. oof = Instance.new("Sound",ragdollleft.Torso)
  341. oof.SoundId = "rbxassetid://429400881"
  342. oof.Volume = 10
  343. oof:Play()
  344. ParticleEmitter0 = Instance.new("ParticleEmitter")
  345. ParticleEmitter1 = Instance.new("ParticleEmitter")
  346. ParticleEmitter2 = Instance.new("ParticleEmitter")
  347. ParticleEmitter0.Name = "Blood"
  348. ParticleEmitter0.Parent = ragdollleft.Torso
  349. ParticleEmitter0.Speed = NumberRange.new(5, 10)
  350. ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  351. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  352. ParticleEmitter0.LightEmission = 0.40000000596046
  353. ParticleEmitter0.LightInfluence = 1
  354. ParticleEmitter0.Texture = "rbxassetid://73547327"
  355. ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  356. ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
  357. ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
  358. ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
  359. ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  360. ParticleEmitter0.Rate = 10000000
  361. ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
  362. ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  363. ParticleEmitter0.VelocitySpread = 360
  364. ParticleEmitter1.Name = "Blood2"
  365. ParticleEmitter1.Parent = ragdollleft.Torso
  366. ParticleEmitter1.Speed = NumberRange.new(5, 14)
  367. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  368. ParticleEmitter1.LightEmission = 0.20000000298023
  369. ParticleEmitter1.LightInfluence = 1
  370. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
  371. ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  372. ParticleEmitter1.ZOffset = 1
  373. ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
  374. ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
  375. ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  376. ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
  377. ParticleEmitter1.Rate = 100000
  378. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  379. ParticleEmitter1.VelocitySpread = 360
  380. ParticleEmitter2.Name = "Blood3"
  381. ParticleEmitter2.Parent = ragdollleft.Torso
  382. ParticleEmitter2.Speed = NumberRange.new(3, 7)
  383. ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
  384. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  385. ParticleEmitter2.LightEmission = 0.20000000298023
  386. ParticleEmitter2.LightInfluence = 1
  387. ParticleEmitter2.Texture = "rbxassetid://241779220"
  388. ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  389. ParticleEmitter2.ZOffset = 0.5
  390. ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
  391. ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
  392. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  393. ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
  394. ParticleEmitter2.Rate = 3000
  395. ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
  396. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  397. ParticleEmitter2.VelocitySpread = 360
  398. wait(0.3)
  399. for i,v in pairs(ragdollleft.Torso:GetChildren()) do
  400. if v.ClassName == "ParticleEmitter" then
  401. v.Enabled = false
  402. end
  403. end
  404. end))
  405. coroutine.resume(coroutine.create(function()
  406. oof = Instance.new("Sound",ragdollright.Torso)
  407. oof.SoundId = "rbxassetid://429400881"
  408. oof.Volume = 10
  409. oof:Play()
  410. ParticleEmitter0 = Instance.new("ParticleEmitter")
  411. ParticleEmitter1 = Instance.new("ParticleEmitter")
  412. ParticleEmitter2 = Instance.new("ParticleEmitter")
  413. ParticleEmitter0.Name = "Blood"
  414. ParticleEmitter0.Parent = ragdollright.Torso
  415. ParticleEmitter0.Speed = NumberRange.new(5, 10)
  416. ParticleEmitter0.Rotation = NumberRange.new(-360, 360)
  417. ParticleEmitter0.Color = ColorSequence.new(Color3.new(0.666667, 0, 0),Color3.new(0.423529, 0, 0))
  418. ParticleEmitter0.LightEmission = 0.40000000596046
  419. ParticleEmitter0.LightInfluence = 1
  420. ParticleEmitter0.Texture = "rbxassetid://73547327"
  421. ParticleEmitter0.Transparency = NumberSequence.new(0.10000000149012,0.14375001192093,0.49374997615814,1)
  422. ParticleEmitter0.Size = NumberSequence.new(0,2.8749995231628)
  423. ParticleEmitter0.Acceleration = Vector3.new(0, -5, 0)
  424. ParticleEmitter0.EmissionDirection = Enum.NormalId.Front
  425. ParticleEmitter0.Lifetime = NumberRange.new(0.30000001192093, 0.5)
  426. ParticleEmitter0.Rate = 10000000
  427. ParticleEmitter0.RotSpeed = NumberRange.new(-40, 270)
  428. ParticleEmitter0.SpreadAngle = Vector2.new(360, 360)
  429. ParticleEmitter0.VelocitySpread = 360
  430. ParticleEmitter1.Name = "Blood2"
  431. ParticleEmitter1.Parent = ragdollright.Torso
  432. ParticleEmitter1.Speed = NumberRange.new(5, 14)
  433. ParticleEmitter1.Color = ColorSequence.new(Color3.new(0.45098, 0, 0),Color3.new(0.45098, 0, 0))
  434. ParticleEmitter1.LightEmission = 0.20000000298023
  435. ParticleEmitter1.LightInfluence = 1
  436. ParticleEmitter1.Texture = "http://www.roblox.com/asset/?id=134531274"
  437. ParticleEmitter1.Transparency = NumberSequence.new(0.30000001192093,0.30000001192093)
  438. ParticleEmitter1.ZOffset = 1
  439. ParticleEmitter1.Size = NumberSequence.new(0.12499988079071,0)
  440. ParticleEmitter1.Acceleration = Vector3.new(0, -20, 0)
  441. ParticleEmitter1.EmissionDirection = Enum.NormalId.Front
  442. ParticleEmitter1.Lifetime = NumberRange.new(0.5, 1.5)
  443. ParticleEmitter1.Rate = 100000
  444. ParticleEmitter1.SpreadAngle = Vector2.new(360, 360)
  445. ParticleEmitter1.VelocitySpread = 360
  446. ParticleEmitter2.Name = "Blood3"
  447. ParticleEmitter2.Parent = ragdollright.Torso
  448. ParticleEmitter2.Speed = NumberRange.new(3, 7)
  449. ParticleEmitter2.Rotation = NumberRange.new(-360, 360)
  450. ParticleEmitter2.Color = ColorSequence.new(Color3.new(0.486275, 0, 0),Color3.new(0.258824, 0, 0))
  451. ParticleEmitter2.LightEmission = 0.20000000298023
  452. ParticleEmitter2.LightInfluence = 1
  453. ParticleEmitter2.Texture = "rbxassetid://241779220"
  454. ParticleEmitter2.Transparency = NumberSequence.new(1,0.48750001192093,0.75625002384186,1)
  455. ParticleEmitter2.ZOffset = 0.5
  456. ParticleEmitter2.Size = NumberSequence.new(0,2.8749995231628)
  457. ParticleEmitter2.Acceleration = Vector3.new(0, -5, 0)
  458. ParticleEmitter2.EmissionDirection = Enum.NormalId.Front
  459. ParticleEmitter2.Lifetime = NumberRange.new(0.40000000596046, 1)
  460. ParticleEmitter2.Rate = 3000
  461. ParticleEmitter2.RotSpeed = NumberRange.new(-40, 270)
  462. ParticleEmitter2.SpreadAngle = Vector2.new(360, 360)
  463. ParticleEmitter2.VelocitySpread = 360
  464. wait(0.3)
  465. for i,v in pairs(ragdollright.Torso:GetChildren()) do
  466. if v.ClassName == "ParticleEmitter" then
  467. v.Enabled = false
  468. end
  469. end
  470. end))
  471. if ragdollright:findFirstChild("Right Arm") then
  472. local glue = Instance.new("Glue", ragdollright.Torso)
  473. glue.Part0 = ragdollright.Torso
  474. glue.Part1 = ragdollright:findFirstChild("Right Arm")
  475. glue.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  476. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  477. local limbcollider = Instance.new("Part", ragdollright:findFirstChild("Right Arm"))
  478. limbcollider.Size = Vector3.new(1.4,1,1)
  479. limbcollider.Shape = "Cylinder"
  480. limbcollider.Transparency = 1
  481. limbcollider.Name = "LimbCollider"
  482. local limbcolliderweld = Instance.new("Weld", limbcollider)
  483. limbcolliderweld.Part0 = ragdollright:findFirstChild("Right Arm")
  484. limbcolliderweld.Part1 = limbcollider
  485. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  486. end
  487. if ragdollright:findFirstChild("Left Arm") then
  488. ragdollright["Left Arm"]:destroy()
  489. end
  490. if ragdollleft:findFirstChild("Left Arm") then
  491. local glue = Instance.new("Glue", ragdollleft.Torso)
  492. glue.Part0 = ragdollleft.Torso
  493. glue.Part1 = ragdollleft:findFirstChild("Left Arm")
  494. glue.C0 = CFrame.new(-1.5, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  495. glue.C1 = CFrame.new(0, 0.5, 0, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  496. local limbcollider = Instance.new("Part", ragdollleft:findFirstChild("Left Arm"))
  497. limbcollider.Size = Vector3.new(1.4,1,1)
  498. limbcollider.Shape = "Cylinder"
  499. limbcollider.Name = "LimbCollider"
  500. limbcollider.Transparency = 1
  501. local limbcolliderweld = Instance.new("Weld", limbcollider)
  502. limbcolliderweld.Part0 = ragdollleft:findFirstChild("Left Arm")
  503. limbcolliderweld.Part1 = limbcollider
  504. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  505. end
  506. if ragdollright:findFirstChild("Left Leg") then
  507. ragdollright["Left Leg"]:destroy()
  508. end
  509. if ragdollleft:findFirstChild("Left Leg") then
  510. local glue = Instance.new("Glue", ragdollleft.Torso)
  511. glue.Part0 = ragdollleft.Torso
  512. glue.Part1 = ragdollleft:findFirstChild("Left Leg")
  513. glue.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  514. glue.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  515. local limbcollider = Instance.new("Part", ragdollleft:findFirstChild("Left Leg"))
  516. limbcollider.Size = Vector3.new(1.4,1,1)
  517. limbcollider.Shape = "Cylinder"
  518. limbcollider.Name = "LimbCollider"
  519. limbcollider.Transparency = 1
  520. local limbcolliderweld = Instance.new("Weld", limbcollider)
  521. limbcolliderweld.Part0 = ragdollleft:findFirstChild("Left Leg")
  522. limbcolliderweld.Part1 = limbcollider
  523. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  524. end
  525. if ragdollleft:findFirstChild("Right Leg") then
  526. ragdollleft["Right Leg"]:destroy()
  527. end
  528. if ragdollright:findFirstChild("Right Leg") then
  529. local glue = Instance.new("Glue", ragdollright.Torso)
  530. glue.Part0 = ragdollright.Torso
  531. glue.Part1 = ragdollright:findFirstChild("Right Leg")
  532. glue.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  533. glue.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  534. local limbcollider = Instance.new("Part", ragdollright:findFirstChild("Right Leg"))
  535. limbcollider.Size = Vector3.new(1.4,1,1)
  536. limbcollider.Shape = "Cylinder"
  537. limbcollider.Name = "LimbCollider"
  538. limbcollider.Transparency = 1
  539. local limbcolliderweld = Instance.new("Weld", limbcollider)
  540. limbcolliderweld.Part0 = ragdollright:findFirstChild("Right Leg")
  541. limbcolliderweld.Part1 = limbcollider
  542. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2) * CFrame.new(-0.3,0,0)
  543. end
  544. if ragdollleft:findFirstChild("Head") then
  545. ragdollleft["Head"]:destroy()
  546. end
  547. if ragdollright:findFirstChild("Head") and ragdollright.Torso:findFirstChild("NeckAttachment") then
  548. local HeadAttachment = Instance.new("Attachment", ragdollright["Head"])
  549. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  550. local connection = Instance.new('HingeConstraint', ragdollright["Head"])
  551. connection.LimitsEnabled = true
  552. connection.Attachment0 = ragdollright.Torso.NeckAttachment
  553. connection.Attachment1 = HeadAttachment
  554. connection.UpperAngle = 60
  555. connection.LowerAngle = -60
  556. elseif ragdollright:findFirstChild("Head") and not ragdollright.Torso:findFirstChild("NeckAttachment") then
  557. local hedweld = Instance.new("Weld", ragdollright.Torso)
  558. hedweld.Part0 = ragdollright.Torso
  559. hedweld.Part1 = ragdollright.Head
  560. hedweld.C0 = CFrame.new(0,1.5,0)
  561. end
  562. local function aaaalol()
  563. wait(0.2)
  564. local function searchforvelocity(wot)
  565. for i,v in pairs(wot:GetChildren()) do
  566. searchforvelocity(v)
  567. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  568. v:destroy()
  569. end
  570. end
  571. end
  572. searchforvelocity(ragdollleft)
  573. searchforvelocity(ragdollright)
  574. wait(0.5)
  575. if ragdollleft:findFirstChildOfClass("Humanoid") then
  576. ragdollleft:findFirstChildOfClass("Humanoid").PlatformStand = true
  577. end
  578. if ragdollleft:findFirstChild("HumanoidRootPart") then
  579. ragdollleft:findFirstChild("HumanoidRootPart"):destroy()
  580. end
  581. if ragdollright:findFirstChildOfClass("Humanoid") then
  582. ragdollright:findFirstChildOfClass("Humanoid").PlatformStand = true
  583. end
  584. if ragdollright:findFirstChild("HumanoidRootPart") then
  585. ragdollright:findFirstChild("HumanoidRootPart"):destroy()
  586. end
  587. end
  588. spawn(aaaalol)
  589. elseif character:findFirstChild("UpperTorso") then
  590. character.Archivable = true
  591. for i,v in pairs(character:GetChildren()) do
  592. if v.ClassName == "Sound" then
  593. v:remove()
  594. end
  595. for q,w in pairs(v:GetChildren()) do
  596. if w.ClassName == "Sound" then
  597. w:remove()
  598. end
  599. end
  600. end
  601. local ragdoll = character:Clone()
  602. ragdoll:findFirstChildOfClass("Humanoid").BreakJointsOnDeath = false
  603. for i,v in pairs(ragdoll:GetDescendants()) do
  604. if v.ClassName == "Motor" or v.ClassName == "Motor6D" then
  605. v:destroy()
  606. end
  607. end
  608. ragdoll:BreakJoints()
  609. ragdoll:findFirstChildOfClass("Humanoid").Health = 0
  610. if ragdoll:findFirstChild("Health") then
  611. if ragdoll:findFirstChild("Health").ClassName == "Script" then
  612. ragdoll:findFirstChild("Health").Disabled = true
  613. end
  614. end
  615. for i,v in pairs(character:GetChildren()) do
  616. if v.ClassName == "Part" or v.ClassName == "ForceField" or v.ClassName == "Accessory" or v.ClassName == "Hat" or v.ClassName == "MeshPart" then
  617. v:destroy()
  618. end
  619. end
  620. for i,v in pairs(character:GetChildren()) do
  621. if v.ClassName == "Accessory" then
  622. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  623. if attachment1 then
  624. for q,w in pairs(character:GetChildren()) do
  625. if w.ClassName == "Part" or w.ClassName == "MeshPart" then
  626. local attachment2 = w:findFirstChild(attachment1.Name)
  627. if attachment2 then
  628. local hinge = Instance.new("HingeConstraint", v.Handle)
  629. hinge.Attachment0 = attachment1
  630. hinge.Attachment1 = attachment2
  631. hinge.LimitsEnabled = true
  632. hinge.LowerAngle = 0
  633. hinge.UpperAngle = 0
  634. end
  635. end
  636. end
  637. end
  638. end
  639. end
  640. ragdoll.Parent = workspace
  641. local Humanoid = ragdoll:findFirstChildOfClass("Humanoid")
  642. Humanoid.PlatformStand = true
  643. local function makeballconnections(limb, attachementone, attachmenttwo, twistlower, twistupper)
  644. local connection = Instance.new('BallSocketConstraint', limb)
  645. connection.LimitsEnabled = true
  646. connection.Attachment0 = attachementone
  647. connection.Attachment1 = attachmenttwo
  648. connection.TwistLimitsEnabled = true
  649. connection.TwistLowerAngle = twistlower
  650. connection.TwistUpperAngle = twistupper
  651. local limbcollider = Instance.new("Part", limb)
  652. limbcollider.Size = Vector3.new(0.1,1,1)
  653. limbcollider.Shape = "Cylinder"
  654. limbcollider.Transparency = 1
  655. limbcollider:BreakJoints()
  656. local limbcolliderweld = Instance.new("Weld", limbcollider)
  657. limbcolliderweld.Part0 = limb
  658. limbcolliderweld.Part1 = limbcollider
  659. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  660. end
  661. local function makehingeconnections(limb, attachementone, attachmenttwo, lower, upper)
  662. local connection = Instance.new('HingeConstraint', limb)
  663. connection.LimitsEnabled = true
  664. connection.Attachment0 = attachementone
  665. connection.Attachment1 = attachmenttwo
  666. connection.LimitsEnabled = true
  667. connection.LowerAngle = lower
  668. connection.UpperAngle = upper
  669. local limbcollider = Instance.new("Part", limb)
  670. limbcollider.Size = Vector3.new(0.1,1,1)
  671. limbcollider.Shape = "Cylinder"
  672. limbcollider.Transparency = 1
  673. limbcollider:BreakJoints()
  674. local limbcolliderweld = Instance.new("Weld", limbcollider)
  675. limbcolliderweld.Part0 = limb
  676. limbcolliderweld.Part1 = limbcollider
  677. limbcolliderweld.C0 = CFrame.fromEulerAnglesXYZ(0,0,math.pi/2)
  678. end
  679. local HeadAttachment = Instance.new("Attachment", Humanoid.Parent.Head)
  680. HeadAttachment.Position = Vector3.new(0, -0.5, 0)
  681. if ragdoll.UpperTorso:findFirstChild("NeckAttachment") then
  682. makehingeconnections(Humanoid.Parent.Head, HeadAttachment, ragdoll.UpperTorso.NeckAttachment, -50, 50)
  683. end
  684. makehingeconnections(Humanoid.Parent.LowerTorso, Humanoid.Parent.LowerTorso.WaistRigAttachment, Humanoid.Parent.UpperTorso.WaistRigAttachment, -50, 50)
  685. makeballconnections(Humanoid.Parent.LeftUpperArm, Humanoid.Parent.LeftUpperArm.LeftShoulderRigAttachment, Humanoid.Parent.UpperTorso.LeftShoulderRigAttachment, -200, 200, 180)
  686. makehingeconnections(Humanoid.Parent.LeftLowerArm, Humanoid.Parent.LeftLowerArm.LeftElbowRigAttachment, Humanoid.Parent.LeftUpperArm.LeftElbowRigAttachment, 0, -60)
  687. makehingeconnections(Humanoid.Parent.LeftHand, Humanoid.Parent.LeftHand.LeftWristRigAttachment, Humanoid.Parent.LeftLowerArm.LeftWristRigAttachment, -20, 20)
  688. --
  689. makeballconnections(Humanoid.Parent.RightUpperArm, Humanoid.Parent.RightUpperArm.RightShoulderRigAttachment, Humanoid.Parent.UpperTorso.RightShoulderRigAttachment, -200, 200, 180)
  690. makehingeconnections(Humanoid.Parent.RightLowerArm, Humanoid.Parent.RightLowerArm.RightElbowRigAttachment, Humanoid.Parent.RightUpperArm.RightElbowRigAttachment, 0, -60)
  691. makehingeconnections(Humanoid.Parent.RightHand, Humanoid.Parent.RightHand.RightWristRigAttachment, Humanoid.Parent.RightLowerArm.RightWristRigAttachment, -20, 20)
  692. --
  693. makeballconnections(Humanoid.Parent.RightUpperLeg, Humanoid.Parent.RightUpperLeg.RightHipRigAttachment, Humanoid.Parent.LowerTorso.RightHipRigAttachment, -80, 80, 80)
  694. makehingeconnections(Humanoid.Parent.RightLowerLeg, Humanoid.Parent.RightLowerLeg.RightKneeRigAttachment, Humanoid.Parent.RightUpperLeg.RightKneeRigAttachment, 0, 60)
  695. makehingeconnections(Humanoid.Parent.RightFoot, Humanoid.Parent.RightFoot.RightAnkleRigAttachment, Humanoid.Parent.RightLowerLeg.RightAnkleRigAttachment, -20, 20)
  696. --
  697. makeballconnections(Humanoid.Parent.LeftUpperLeg, Humanoid.Parent.LeftUpperLeg.LeftHipRigAttachment, Humanoid.Parent.LowerTorso.LeftHipRigAttachment, -80, 80, 80)
  698. makehingeconnections(Humanoid.Parent.LeftLowerLeg, Humanoid.Parent.LeftLowerLeg.LeftKneeRigAttachment, Humanoid.Parent.LeftUpperLeg.LeftKneeRigAttachment, 0, 60)
  699. makehingeconnections(Humanoid.Parent.LeftFoot, Humanoid.Parent.LeftFoot.LeftAnkleRigAttachment, Humanoid.Parent.LeftLowerLeg.LeftAnkleRigAttachment, -20, 20)
  700. for i,v in pairs(Humanoid.Parent:GetChildren()) do
  701. if v.ClassName == "Accessory" then
  702. local attachment1 = v.Handle:findFirstChildOfClass("Attachment")
  703. if attachment1 then
  704. for q,w in pairs(Humanoid.Parent:GetChildren()) do
  705. if w.ClassName == "Part" then
  706. local attachment2 = w:findFirstChild(attachment1.Name)
  707. if attachment2 then
  708. local hinge = Instance.new("HingeConstraint", v.Handle)
  709. hinge.Attachment0 = attachment1
  710. hinge.Attachment1 = attachment2
  711. hinge.LimitsEnabled = true
  712. hinge.LowerAngle = 0
  713. hinge.UpperAngle = 0
  714. end
  715. end
  716. end
  717. end
  718. end
  719. end
  720. for i,v in pairs(ragdoll:GetChildren()) do
  721. for q,w in pairs(v:GetChildren()) do
  722. if w.ClassName == "Motor6D"--[[ and w.Name ~= "Neck"--]] and w.Name ~= "ouch_weld" then
  723. w:destroy()
  724. end
  725. end
  726. end
  727. if ragdoll:findFirstChild("HumanoidRootPart") then
  728. ragdoll.HumanoidRootPart:destroy()
  729. end
  730. if ragdoll:findFirstChildOfClass("Humanoid") then
  731. ragdoll:findFirstChildOfClass("Humanoid").PlatformStand = true
  732. end
  733. local function waitfordatmoment()
  734. wait(0.2)
  735. local function searchforvelocity(wot)
  736. for i,v in pairs(wot:GetChildren()) do
  737. searchforvelocity(v)
  738. if v.ClassName == "BodyPosition" or v.ClassName == "BodyVelocity" then
  739. v:destroy()
  740. end
  741. end
  742. end
  743. searchforvelocity(ragdoll)
  744. end
  745. spawn(waitfordatmoment)
  746. end
  747. end
  748. end
  749. function half()
  750. working = true
  751. pcall(function()
  752. weldo.C0 = CFrame.new(0,-2,-0.5) * CFrame.Angles(-math.rad(90),0,0)
  753. local rweld = Instance.new("Weld", char["Right Arm"])
  754. rweld.Part0 = char["Torso"]
  755. rweld.Part1 = char["Right Arm"]
  756. rweld.C0 = CFrame.new(2.5, 0, 0)
  757. local lweld = Instance.new("Weld", char["Left Arm"])
  758. lweld.Part0 = char["Torso"]
  759. lweld.Part1 = char["Left Arm"]
  760. lweld.C0 = CFrame.new(-2.5, 0, 0)
  761. swinging = true
  762. lerp(rweld,rweld.C0, CFrame.new(2.5,1,-1) * CFrame.Angles(math.rad(90),0,0),0.25)
  763. lerp(lweld,lweld.C0, CFrame.new(-2.5,1,-1) * CFrame.Angles(math.rad(90),0,math.rad(45)),0.25)
  764. wait(0.2)
  765. ragdollkill(target)
  766. lerp(lweld,lweld.C0,CFrame.new(-2.5,1,-1) * CFrame.Angles(math.rad(90),0,-math.rad(45)),0.08)
  767. wait(0.4)
  768. rweld:Destroy()
  769. lweld:Destroy()
  770. end)
  771. working = false
  772. target = nil
  773. end
  774. doingthat = false
  775. char.Torso.Touched:Connect(function(part)
  776. if doingthat == true then
  777. if part.Parent:FindFirstChildOfClass("Humanoid") then
  778. if part.Parent:FindFirstChildOfClass("Humanoid").RigType == Enum.HumanoidRigType.R15 or part.Parent:FindFirstChild("RightUpperArm") then
  779. target = part.Parent
  780. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  781. weldo = Instance.new("Weld",char)
  782. weldo.Name = "weldok"
  783. weldo.Part0 = char["Right Arm"]
  784. weldo.Part1 = part.Parent["RightUpperArm"]
  785. weldo.C0 = CFrame.new(1.5,-2,-0.5) * CFrame.Angles(-math.rad(90),math.rad(0),-math.rad(0))
  786. else
  787. target = part.Parent
  788. part.Parent:FindFirstChildOfClass("Humanoid").PlatformStand = true
  789. weldo = Instance.new("Weld",char)
  790. weldo.Name = "weldok"
  791. weldo.Part0 = char["Right Arm"]
  792. weldo.Part1 = part.Parent["Right Arm"]
  793. weldo.C0 = CFrame.new(1.5,-2,-0.5) * CFrame.Angles(-math.rad(90),math.rad(0),-math.rad(0))
  794. end
  795. end
  796. end
  797. end)
  798. mouse.Button1Down:Connect(function()
  799. if target then
  800. katanaswing()
  801. wait(0.2)
  802. if char:FindFirstChild("weldok") then
  803. char:FindFirstChild("weldok").Part0 = nil
  804. char:FindFirstChild("weldok").Part1 = nil
  805. char:FindFirstChild("weldok").Parent = nil
  806. end
  807. else
  808. doingthat = true
  809. wait(0.5)
  810. doingthat = false
  811. end
  812. --de:Play()
  813. end)
  814. mouse.KeyDown:Connect(function(key)
  815. if key == "e" then
  816. if target then
  817. half()
  818. end
  819. end
  820. end)
Add Comment
Please, Sign In to add comment