Advertisement
Thefrozen106

Darth Sidious

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