Advertisement
Guest User

Untitled

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