Advertisement
Black_Magic

force

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