Advertisement
rewfsdg3

Untitled

Nov 2nd, 2018
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. local plr = owner
  2. local good = true
  3. local R15 = false
  4. while plr.Character == nil or plr.Character:FindFirstChildOfClass('Humanoid') == nil do
  5. wait()
  6. end
  7. if plr.Character:FindFirstChildOfClass('Humanoid').RigType == Enum.HumanoidRigType.R15 then
  8. R15 = true
  9. end
  10.  
  11. function makegui()
  12. -- Objects
  13.  
  14. local ScreenGui = Instance.new("ScreenGui")
  15. local Frame = Instance.new("Frame")
  16. local TextBox = Instance.new("TextLabel")
  17.  
  18. -- Properties
  19.  
  20. ScreenGui.Parent = plr.PlayerGui
  21.  
  22. Frame.Parent = ScreenGui
  23. Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  24. Frame.BackgroundTransparency = 0.5
  25. Frame.BorderSizePixel = 0
  26. Frame.Size = UDim2.new(1, 0, 0, 0)
  27.  
  28. TextBox.Parent = Frame
  29. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  30. TextBox.BackgroundTransparency = 1
  31. TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
  32. TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  33. TextBox.Font = Enum.Font.Code
  34. TextBox.FontSize = Enum.FontSize.Size14
  35. TextBox.Text = ""
  36. TextBox.TextColor3 = Color3.new(1, 1, 1)
  37. TextBox.TextScaled = true
  38. TextBox.TextSize = 14
  39. TextBox.TextWrapped = true
  40. Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  41. wait(1.5)
  42. local text = "This script doesn't work in R15, sorry!"
  43. for i=1,string.len(text) do
  44. TextBox.Text = string.sub(text,1,i)
  45. wait()
  46. end
  47. wait(2)
  48. TextBox.Text = ""
  49. Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  50. end
  51.  
  52. function makegui3()
  53. -- Objects
  54.  
  55. local ScreenGui = Instance.new("ScreenGui")
  56. local Frame = Instance.new("Frame")
  57. local TextBox = Instance.new("TextLabel")
  58.  
  59. -- Properties
  60.  
  61. ScreenGui.Parent = plr.PlayerGui
  62.  
  63. Frame.Parent = ScreenGui
  64. Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  65. Frame.BackgroundTransparency = 0.5
  66. Frame.BorderSizePixel = 0
  67. Frame.Size = UDim2.new(1, 0, 0, 0)
  68.  
  69. TextBox.Parent = Frame
  70. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  71. TextBox.BackgroundTransparency = 1
  72. TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
  73. TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  74. TextBox.Font = Enum.Font.Code
  75. TextBox.FontSize = Enum.FontSize.Size14
  76. TextBox.Text = ""
  77. TextBox.TextColor3 = Color3.new(1, 1, 1)
  78. TextBox.TextScaled = true
  79. TextBox.TextSize = 14
  80. TextBox.TextWrapped = true
  81. Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  82. wait(1.5)
  83. local text = "Press F on a player to force choke them, and hold G to use force lightning."
  84. for i=1,string.len(text) do
  85. TextBox.Text = string.sub(text,1,i)
  86. wait()
  87. end
  88. wait(2)
  89. TextBox.Text = ""
  90. Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  91. end
  92.  
  93.  
  94. local coru = coroutine.wrap(function()
  95. if R15 then
  96. good = false
  97. makegui()
  98. else
  99. makegui3()
  100. end
  101. end)
  102. coru()
  103.  
  104.  
  105. if good then
  106. local mou = plr:GetMouse()
  107. local choking = false
  108. local zapping = false
  109. local target = nil
  110. local lastzap = nil
  111. local oldHit = nil
  112. local startpos = CFrame.new(0,0,0)
  113. local beforehealth = 100
  114. local timez = 0
  115.  
  116. Gibs = workspace
  117.  
  118. function Kill(Character,yee,oh)
  119. if Character:FindFirstChildOfClass('Humanoid') then
  120. Character:FindFirstChildOfClass('Humanoid').Health = 0
  121. local svch = Character
  122. local hum = Character:findFirstChild("Humanoid")
  123. Character.Archivable = true
  124. local chrclone = Character:clone()
  125. Character.Archivable = false
  126.  
  127. local ch = chrclone:GetChildren()
  128. local i
  129. for i = 1,#ch do
  130. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  131. ch[i]:remove()
  132. end
  133. end
  134. local function Scan(ch)
  135. local e
  136. for e = 1,#ch do
  137. Scan(ch[e]:GetChildren())
  138. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  139. ch[e]:remove()
  140. end
  141. end
  142. end
  143. Scan(chrclone:GetChildren())
  144.  
  145. local hum2 = chrclone:findFirstChild("Humanoid")
  146.  
  147.  
  148. if hum2 ~= nil then
  149. hum2.Name = "Humanoid2"
  150. hum2.PlatformStand = true
  151. hum2.Sit = true
  152. hum2.MaxHealth = 0
  153. hum2.Health = 0
  154. end
  155.  
  156. local ch = Character:GetChildren()
  157. local i
  158. for i = 1,#ch do
  159. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  160. ch[i]:remove()
  161. end
  162. end
  163.  
  164. wait(0.2)
  165.  
  166. local ch = Character:GetChildren()
  167. local i
  168. for i = 1,#ch do
  169. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  170. ch[i]:remove()
  171. end
  172. end
  173. Character = chrclone
  174. local Torso = Character.Torso
  175. local movevector = Vector3.new()
  176. if Character.Torso ~= nil then
  177. local killtors = Character:findFirstChild("Torso")
  178. if killtors ~= nil then
  179. movevector = CFrame.new(plr.Character["Right Arm"].Position,Torso.Position).lookVector
  180. end
  181. end
  182. if Torso then
  183. local Head = Character:FindFirstChild("Head")
  184. if Head and yee == false then
  185. local Neck = Instance.new("Weld")
  186. Neck.Name = "Neck"
  187. Neck.Part0 = Torso
  188. Neck.Part1 = Head
  189. Neck.C0 = CFrame.new(0, 1.5, 0)
  190. Neck.C1 = CFrame.new()
  191. Neck.Parent = Torso
  192. end
  193. local Limb = Character:FindFirstChild("Right Arm")
  194. if Limb then
  195. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  196. local Joint = Instance.new("Glue")
  197. Joint.Name = "RightShoulder"
  198. Joint.Part0 = Torso
  199. Joint.Part1 = Limb
  200. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  201. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  202. Joint.Parent = Torso
  203. local B = Instance.new("Part")
  204. B.TopSurface = 0
  205. B.BottomSurface = 0
  206. B.formFactor = "Symmetric"
  207. B.Size = Vector3.new(1, 1, 1)
  208. B.Transparency = 1
  209. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  210. B.Parent = Character
  211. local W = Instance.new("Weld")
  212. W.Part0 = Limb
  213. W.Part1 = B
  214. W.C0 = CFrame.new(0, -0.5, 0)
  215. W.Parent = Limb
  216. end
  217. local Limb = Character:FindFirstChild("Left Arm")
  218. if Limb then
  219. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  220. local Joint = Instance.new("Glue")
  221. Joint.Name = "LeftShoulder"
  222. Joint.Part0 = Torso
  223. Joint.Part1 = Limb
  224. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  225. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  226. Joint.Parent = Torso
  227.  
  228. local B = Instance.new("Part")
  229. B.TopSurface = 0
  230. B.BottomSurface = 0
  231. B.formFactor = "Symmetric"
  232. B.Size = Vector3.new(1, 1, 1)
  233. B.Transparency = 1
  234. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  235. B.Parent = Character
  236. local W = Instance.new("Weld")
  237. W.Part0 = Limb
  238. W.Part1 = B
  239. W.C0 = CFrame.new(0, -0.5, 0)
  240. W.Parent = Limb
  241. end
  242. local Limb = Character:FindFirstChild("Right Leg")
  243. if Limb then
  244.  
  245. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  246. local Joint = Instance.new("Glue")
  247. Joint.Name = "RightHip"
  248. Joint.Part0 = Torso
  249. Joint.Part1 = Limb
  250. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  251. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  252. Joint.Parent = Torso
  253.  
  254. local B = Instance.new("Part")
  255. B.TopSurface = 0
  256. B.BottomSurface = 0
  257. B.formFactor = "Symmetric"
  258. B.Size = Vector3.new(1, 1, 1)
  259. B.Transparency = 1
  260. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  261. B.Parent = Character
  262. local W = Instance.new("Weld")
  263. W.Part0 = Limb
  264. W.Part1 = B
  265. W.C0 = CFrame.new(0, -0.5, 0)
  266. W.Parent = Limb
  267.  
  268. end
  269. local Limb = Character:FindFirstChild("Left Leg")
  270. if Limb then
  271.  
  272. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  273. local Joint = Instance.new("Glue")
  274. Joint.Name = "LeftHip"
  275. Joint.Part0 = Torso
  276. Joint.Part1 = Limb
  277. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  278. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  279. Joint.Parent = Torso
  280.  
  281. local B = Instance.new("Part")
  282. B.TopSurface = 0
  283. B.BottomSurface = 0
  284. B.formFactor = "Symmetric"
  285. B.Size = Vector3.new(1, 1, 1)
  286. B.Transparency = 1
  287. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  288. B.Parent = Character
  289. local W = Instance.new("Weld")
  290. W.Part0 = Limb
  291. W.Part1 = B
  292. W.C0 = CFrame.new(0, -0.5, 0)
  293. W.Parent = Limb
  294.  
  295. end
  296. --[
  297. local Bar = Instance.new("Part")
  298. Bar.TopSurface = 0
  299. Bar.BottomSurface = 0
  300. Bar.formFactor = "Symmetric"
  301. Bar.Size = Vector3.new(1, 1, 1)
  302. Bar.Transparency = 1
  303. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  304. Bar.Parent = Character
  305. local Weld = Instance.new("Weld")
  306. Weld.Part0 = Torso
  307. Weld.Part1 = Bar
  308. Weld.C0 = CFrame.new(0, 0.5, 0)
  309. Weld.Parent = Torso
  310. --]]
  311. end
  312. Character.Parent = Gibs
  313. game.Debris:AddItem(Character, 12)
  314. Character.Torso.Velocity = plr.Character.Torso.CFrame.lookVector*10
  315. Character.Head.Velocity = plr.Character.Torso.CFrame.lookVector*10
  316. if oh then
  317. local repulse = Instance.new('BodyForce',Torso)
  318. repulse.Force = movevector*10000 + Vector3.new(0,1000,0)
  319. game.Debris:AddItem(repulse,0.05)
  320. for i,v in pairs(chrclone:GetChildren()) do
  321. if v:IsA('BasePart') then
  322. v.BrickColor = BrickColor.Black()
  323. end
  324. end
  325. local sound = Instance.new('Sound',Torso)
  326. sound.EmitterSize = 50
  327. sound.MaxDistance = 100
  328. sound.Volume = 6
  329. sound.SoundId = 'rbxassetid://157325701'
  330. sound:Play()
  331. sound.Ended:connect(function()
  332. sound:Destroy()
  333. end)
  334. end
  335. local duh = Torso
  336. if yee == true then
  337. ee = Instance.new("Part")
  338. ee.Anchored = false
  339. ee.CanCollide = false
  340. ee.Parent = duh
  341. ee.Transparency =1
  342. ee.Size = Vector3.new(0.15, 0.15, 0.15)
  343. wee = Instance.new("Weld")
  344. wee.Parent = duh
  345. wee.Part0 = duh
  346. wee.Part1 = ee
  347. wee.C0 = CFrame.new(0, 1, 0)
  348. ge = Instance.new('ParticleEmitter')
  349. ge.Parent = ee
  350. ge.Texture = "rbxassetid://29712167"
  351. ge.Size = NumberSequence.new(0.2,0.05)
  352. ge.Acceleration = Vector3.new(0, -20, 0)
  353. ge.Rate = 100000
  354. ge.Speed = NumberRange.new(7,8)
  355. ge.Lifetime = NumberRange.new(3,4)
  356. ge.VelocitySpread = 10
  357. ge.VelocityInheritance = 0.3
  358. ea = Instance.new("Part")
  359. ea.Anchored = false
  360. ea.CanCollide = false
  361. ea.Parent = Character.Head
  362. ea.Transparency =1
  363. ea.Size = Vector3.new(0.15, 0.15, 0.15)
  364. wea = Instance.new("Weld")
  365. wea.Parent = Character.Head
  366. wea.Part0 = Character.Head
  367. wea.Part1 = ea
  368. wea.C0 = CFrame.new(0, -0.7, 0)
  369. ga = Instance.new('ParticleEmitter')
  370. ga.Parent = ea
  371. ga.Texture = "rbxassetid://29712167"
  372. ga.Size = NumberSequence.new(0.2,0.05)
  373. ga.Acceleration = Vector3.new(0, -20, 0)
  374. ga.Rate = 100000
  375. ga.Speed = NumberRange.new(7,8)
  376. ga.Lifetime = NumberRange.new(3,4)
  377. ga.VelocitySpread = 10
  378. ga.VelocityInheritance = 0.3
  379. ga.EmissionDirection = Enum.NormalId.Bottom
  380. end
  381. end
  382. end
  383.  
  384. function gettouching(startpos,endpos,dont)
  385. local ray = Ray.new(startpos,(endpos-startpos).unit*300)
  386. local ignore = {}
  387. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  388. if v.Character and v ~= plr then
  389. table.insert(ignore,v.Character)
  390. end
  391. end
  392. local part,pos = workspace:FindPartOnRayWithWhitelist(ray,ignore,false)
  393. if part then
  394. if part.Parent:FindFirstChildOfClass('Humanoid') and part.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  395. local coru = coroutine.wrap(function()
  396. Kill(part.Parent,false,true)
  397. end)
  398. coru()
  399. end
  400. end
  401. table.insert(ignore,dont)
  402. local part2,pos2 = workspace:FindPartOnRayWithIgnoreList(ray,ignore,false,true)
  403. if part2 and part2.Parent and part2.Parent ~= plr.Character and part2.Parent:FindFirstChildOfClass('Humanoid') and part2.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  404. local coru = coroutine.wrap(function()
  405. Kill(part2.Parent,false,true)
  406. end)
  407. coru()
  408. end
  409. end
  410.  
  411. function makelaser(parent)
  412. local part = Instance.new('Part',parent)
  413. part.Size = Vector3.new(0.2,0.2,0.2)
  414. part.Transparency = 1
  415. part.CanCollide = false
  416. local weld = Instance.new('Weld',part)
  417. weld.Part0 = part
  418. weld.Part1 = plr.Character["Right Arm"]
  419. weld.C0 = CFrame.new(0,1.25,0)
  420. for i=1,5 do
  421. local mouse = mou
  422. targ = mouse.Target
  423. if targ then
  424. hum = targ.Parent:findFirstChild("Humanoid")
  425. Hit = mouse.hit
  426. local P = Instance.new("Part")
  427. P.Name = "Guideline"
  428. P.Material = Enum.Material.Neon
  429. local Place0 = part.CFrame
  430. P.formFactor = 0
  431. P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  432. if plr.Character:FindFirstChild('Right Arm') then
  433. for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
  434. if v:IsA('Sound') and v.Name == "Electricity" then
  435. if Place0 and Hit and (Place0.p - Hit.p).magnitude >= 20 then
  436. v.MaxDistance = (Place0.p - Hit.p).magnitude
  437. v.EmitterSize = (Place0.p - Hit.p).magnitude
  438. elseif Place0 and Hit then
  439. v.MaxDistance = 20
  440. v.EmitterSize = 20
  441. end
  442. end
  443. end
  444. end
  445. P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  446. P.Parent = parent
  447. P.BrickColor = BrickColor.Yellow()
  448. P.Anchored = true
  449. P.CanCollide = false
  450. P.Transparency = 1
  451. local m = Instance.new("BlockMesh")
  452. m.Scale = Vector3.new(0.1,0.1,1)
  453. m.Parent = P
  454. local mh = mouse.Hit
  455. for c1 = 1, 1 do
  456. oldHit = part.CFrame
  457. for count = 1, 9 do
  458. local val1 = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  459. local val2 = P.Size.z / 10
  460. local val3 = P.CFrame.lookVector * -1
  461. local val4 = count * val2
  462. local val5 = val4 * val3
  463. local val6 = part.CFrame.p
  464. local Hit = CFrame.new(val5 + val1 + val6)
  465. local s = Instance.new("Part")
  466. s.Name = "Spark"
  467. s.Material = Enum.Material.Neon
  468. local Place0 = oldHit
  469. s.formFactor = 0
  470. s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  471. s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  472. s.Parent = parent
  473. s.BrickColor = BrickColor.new('Instatutional white')
  474. s.Anchored = true
  475. s.CanCollide = false
  476. m = Instance.new("BlockMesh")
  477. m.Scale = Vector3.new(0.1,0.1,1)
  478. m.Parent = s
  479. local clone = s:clone()
  480. clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
  481. clone.BrickColor = BrickColor.new('Electric blue')
  482. clone.Transparency = 0.8
  483. clone.Parent = s.Parent
  484. oldHit = Hit
  485. end
  486. Hit = oldHit
  487. local s = Instance.new("Part")
  488. s.Name = "Spark"
  489. s.Material = Enum.Material.Neon
  490. local Place0 = mh
  491. s.formFactor = 0
  492. s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  493. s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  494. s.Parent = parent
  495. s.BrickColor = BrickColor.new('Instatutional white')
  496. s.Anchored = true
  497. s.CanCollide = false
  498. m = Instance.new("BlockMesh")
  499. m.Scale = Vector3.new(0.1,0.1,1)
  500. m.Parent = s
  501. local clone = s:clone()
  502. clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
  503. clone.BrickColor = BrickColor.new('Electric blue')
  504. clone.Transparency = 0.8
  505. clone.Parent = s.Parent
  506. gettouching(part.Position,mou.Hit.p,parent)
  507. end
  508. P:remove()
  509. end
  510. end
  511. end
  512.  
  513. function chokearms(chr)
  514. if chr:FindFirstChild('Torso') then
  515. if chr:FindFirstChild('Right Arm') then
  516. if chr.Torso:FindFirstChild('Right Shoulder') then
  517. chr.Torso["Right Shoulder"]:Destroy()
  518. end
  519. local thing = Instance.new('Weld',chr.Torso)
  520. thing.Name = "Right Shoulder"
  521. thing.Part0 = chr.Torso
  522. thing.Part1 = chr["Right Arm"]
  523. thing.C0 = CFrame.new(0.811074257, 0.835914135, -0.381313324, 0.27563563, 0.961260796, 2.0569455e-06, 0.488285512, -0.140010983, -0.861379266, -0.828009903, 0.237427771, -0.50796169)
  524. end
  525. if chr:FindFirstChild('Left Arm') then
  526. if chr.Torso:FindFirstChild('Left Shoulder') then
  527. chr.Torso["Left Shoulder"]:Destroy()
  528. end
  529. local thing = Instance.new('Weld',chr.Torso)
  530. thing.Name = "Left Shoulder"
  531. thing.Part0 = chr["Left Arm"]
  532. thing.Part1 = chr.Torso
  533. thing.C0 = CFrame.new(0.962814331, -0.457080841, 0.306755066, 0.309041202, -0.579310298, 0.754249752, -0.951046288, -0.188228443, 0.245104745, -2.09111568e-05, -0.793076754, -0.609121859)
  534. end
  535. end
  536. end
  537.  
  538. function fixarms(chr)
  539. if chr:FindFirstChild('Torso') then
  540. for i,v in pairs(chr.Torso:GetChildren()) do
  541. if v.Name == "Right Shoulder" or v.Name == "Left Shoulder" then
  542. v:Destroy()
  543. end
  544. end
  545. if chr:FindFirstChild('Right Arm') then
  546. local rs = Instance.new('Motor6D',chr.Torso)
  547. rs.Name = "Right Shoulder"
  548. rs.Part0 = chr.Torso
  549. rs.Part1 = chr:FindFirstChild('Right Arm')
  550. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  551. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  552. end
  553. if chr:FindFirstChild('Left Arm') then
  554. local ls = Instance.new('Motor6D',chr.Torso)
  555. ls.Name = "Left Shoulder"
  556. ls.Part0 = chr.Torso
  557. ls.Part1 = chr:FindFirstChild('Left Arm')
  558. ls.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  559. ls.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  560. end
  561. end
  562. end
  563.  
  564. mou.KeyDown:connect(function(key)
  565. if key == "f" and mou.Target and zapping == false then
  566. if choking == false then
  567. local hum = mou.Target.Parent:FindFirstChildOfClass('Humanoid')
  568.  
  569. if hum == nil then
  570. hum = mou.Target.Parent.Parent:FindFirstChildOfClass('Humanoid')
  571. end
  572.  
  573. if hum and hum.Parent:FindFirstChild('Torso') and hum.Health > 0 then
  574. beforehealth = hum.Health
  575. choking = true
  576. target = hum.Parent.Torso
  577. local sound = Instance.new('Sound',target)
  578. sound.Volume = 5
  579. sound.EmitterSize = 50
  580. sound.MaxDistance = 100
  581. sound.SoundId = 'rbxassetid://418658161'
  582. sound.Looped = false
  583. sound.PlaybackSpeed = 0.75
  584. sound.Name = "Choking"
  585. sound:Play()
  586. startpos = target.CFrame
  587. chokearms(target.Parent)
  588. local bod = Instance.new('BodyPosition',hum.Parent.Torso)
  589. bod.Position = target.Position+Vector3.new(0,12,0)
  590. bod.MaxForce = Vector3.new(100000,100000,100000)
  591. bod.P = 1000
  592. bod.D = 500
  593. end
  594. if target and target:FindFirstChild('Breathing') then
  595. target.Breathing:Destroy()
  596. end
  597. local coru = coroutine.wrap(function()
  598. while timez < 5 and choking do
  599. timez = timez + 0.1
  600. if target.Parent:FindFirstChildOfClass('Humanoid') then
  601. if target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49) > 0 then
  602. target.Parent:FindFirstChildOfClass('Humanoid').Health = target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49)
  603. end
  604. end
  605. wait(0.1)
  606. end
  607. if timez >= 5 then
  608. if target and target.Parent and target.Parent:FindFirstChildOfClass('Humanoid') and target.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  609. if target and target:FindFirstChild('Choking') then
  610. target.Choking:Stop()
  611. target.Choking:Destroy()
  612. end
  613. if target then
  614. for i,v in pairs(target:GetChildren()) do
  615. if v:IsA("BodyPosition") then
  616. v:Destroy()
  617. end
  618. end
  619. end
  620. Kill(target.Parent,false,false)
  621. end
  622. end
  623. target = nil
  624. choking = false
  625. startpos = CFrame.new(0,0,0)
  626. timez = 0
  627. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  628. if v.Name == "Right Shoulder" and v:IsA('Weld') then
  629. v:Destroy()
  630. end
  631. end
  632. if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
  633. local rs = Instance.new('Motor6D',plr.Character.Torso)
  634. rs.Name = "Right Shoulder"
  635. rs.Part0 = plr.Character.Torso
  636. rs.Part1 = plr.Character:FindFirstChild('Right Arm')
  637. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  638. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  639. end
  640. end)
  641. coru()
  642. else
  643. if target and target:FindFirstChild('Choking') then
  644. fixarms(target.Parent)
  645. target.Choking:Stop()
  646. target.Choking:Destroy()
  647. local sound = Instance.new('Sound',target)
  648. sound.Volume = 5
  649. sound.EmitterSize = 50
  650. sound.MaxDistance = 100
  651. sound.SoundId = 'rbxassetid://304511128'
  652. sound.Looped = true
  653. sound.PlaybackSpeed = 1
  654. sound.Name = "Breathing"
  655. sound:Play()
  656. game:GetService('Debris'):AddItem(sound,timez)
  657. for i,v in pairs(target:GetChildren()) do
  658. if v:IsA("BodyPosition") then
  659. v:Destroy()
  660. end
  661. end
  662. end
  663. if target.Parent:FindFirstChildOfClass('Humanoid') then
  664. target.Parent:FindFirstChildOfClass('Humanoid').Health = beforehealth
  665. end
  666. target = nil
  667. choking = false
  668. startpos = CFrame.new(0,0,0)
  669. timez = 0
  670. end
  671. elseif key == "g" and choking == false then
  672. zapping = true
  673. local electricity = Instance.new("Sound",plr.Character:FindFirstChild('Right Arm'))
  674. electricity.Name = "Electricity"
  675. electricity.SoundId = "rbxassetid://379557765"
  676. electricity.Volume = 5
  677. electricity.EmitterSize = 100
  678. electricity.MaxDistance = 100
  679. electricity.Looped = true
  680. electricity:Play()
  681. end
  682. end)
  683.  
  684. mou.KeyUp:connect(function(key)
  685. if key == "g" then
  686. zapping = false
  687. if plr.Character:FindFirstChild('Right Arm') then
  688. for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
  689. if v:IsA('Sound') and v.Name == "Electricity" then
  690. v:Destroy()
  691. end
  692. end
  693. end
  694. end
  695. end)
  696.  
  697.  
  698. while true do
  699. if choking and plr.Character and target and target.Parent and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
  700. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  701. if v.Name == "Right Shoulder" then
  702. v:Destroy()
  703. end
  704. end
  705. local Head = plr.Character.Head
  706. local RightArm = plr.Character["Right Arm"]
  707. local RightShoulder = Instance.new('Weld',plr.Character.Torso)
  708. RightShoulder.Name = "Right Shoulder"
  709. RightShoulder.Part0 = plr.Character.Torso
  710. RightShoulder.Part1 = RightArm
  711. RightShoulder.C0 = CFrame.new(1,1,-0.75)
  712. local MousePosition = target.Position+(target.Size/2)
  713. local ToMouse = (MousePosition - Head.Position).unit
  714. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  715. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  716. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  717. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  718. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  719. if tostring(LateralAngle) == "-1.#IND" then
  720. LateralAngle = 0
  721. end
  722. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  723. local change = false
  724. if LateralAngle > (math.pi / 2) then
  725. LateralAngle = (math.pi / 2)
  726. change = true
  727. end
  728. if Cross.Y < 0 then
  729. LateralAngle = -LateralAngle
  730. end
  731. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
  732. for i,v in pairs(target.Parent:GetChildren()) do
  733. if v:IsA('Tool') then
  734. v.ManualActivationOnly = true
  735. end
  736. end
  737. elseif zapping == false and plr and plr.Character and plr.Character:FindFirstChild("Torso") and plr.Character:FindFirstChild('Right Arm') then
  738. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  739. if v.Name == "Right Shoulder" and v:IsA('Weld') then
  740. v:Destroy()
  741. end
  742. end
  743. if target then
  744. for i,v in pairs(target:GetChildren()) do
  745. if v:IsA("BodyPosition") then
  746. v:Destroy()
  747. end
  748. end
  749. if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
  750. local rs = Instance.new('Motor6D',plr.Character.Torso)
  751. rs.Name = "Right Shoulder"
  752. rs.Part0 = plr.Character.Torso
  753. rs.Part1 = plr.Character:FindFirstChild('Right Arm')
  754. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  755. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  756. end
  757. if target.Parent then
  758. for i,v in pairs(target.Parent:GetChildren()) do
  759. if v:IsA('Tool') then
  760. v.ManualActivationOnly = false
  761. end
  762. end
  763. end
  764. end
  765. target = nil
  766. choking = false
  767. startpos = CFrame.new(0,0,0)
  768. timez = 0
  769. end
  770. if zapping and plr.Character and mou.Hit and plr.Character:FindFirstChild('Head') and plr.Character:FindFirstChild('Right Arm') and plr.Character:FindFirstChild('Torso') then
  771. if lastzap then
  772. lastzap:Destroy()
  773. lastzap = nil
  774. end
  775. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  776. if v.Name == "Right Shoulder" then
  777. v:Destroy()
  778. end
  779. end
  780. local Head = plr.Character.Head
  781. local RightArm = plr.Character["Right Arm"]
  782. local RightShoulder = Instance.new('Weld',plr.Character.Torso)
  783. RightShoulder.Name = "Right Shoulder"
  784. RightShoulder.Part0 = plr.Character.Torso
  785. RightShoulder.Part1 = RightArm
  786. RightShoulder.C0 = CFrame.new(1,1,-0.75)
  787. local MousePosition = mou.Hit.p
  788. local ToMouse = (MousePosition - Head.Position).unit
  789. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  790. local FromRightArmPos = (Head.Position + Head.CFrame:vectorToWorldSpace(Vector3.new(((Head.Size.X / 2) + (RightArm.Size.X / 2)), ((Head.Size.Y / 2) - (RightArm.Size.Z / 2)), 0)))
  791. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  792. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  793. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  794. if tostring(LateralAngle) == "-1.#IND" then
  795. LateralAngle = 0
  796. end
  797. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  798. local change = false
  799. if LateralAngle > (math.pi / 2) then
  800. LateralAngle = (math.pi / 2)
  801. change = true
  802. end
  803. if Cross.Y < 0 then
  804. LateralAngle = -LateralAngle
  805. end
  806. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
  807. local thing = Instance.new('Model',workspace)
  808. thing.Name = "Zap"
  809. lastzap = thing
  810. makelaser(thing)
  811. elseif choking == false and zapping == false then
  812. if lastzap then
  813. lastzap:Destroy()
  814. lastzap = nil
  815. end
  816. if plr.Character:FindFirstChild('Torso') then
  817. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  818. if v.Name == "Right Shoulder" and v:IsA('Weld') then
  819. v:Destroy()
  820. end
  821. end
  822. if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
  823. local rs = Instance.new('Motor6D',plr.Character.Torso)
  824. rs.Name = "Right Shoulder"
  825. rs.Part0 = plr.Character.Torso
  826. rs.Part1 = plr.Character:FindFirstChild('Right Arm')
  827. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  828. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  829. end
  830. end
  831. end
  832. wait()
  833. end
  834. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement