Advertisement
rewfsdg3

Untitled

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