Advertisement
Guest User

Untitled

a guest
Jun 22nd, 2017
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 37.67 KB | None | 0 0
  1. Player = game.Players.LocalPlayer
  2.  
  3.  
  4. function chatfunc(text)
  5. local chat = coroutine.wrap(function()
  6. if Player.Character:FindFirstChild("ChatGui")~= nil then
  7. Player.Character:FindFirstChild("ChatGui"):destroy()
  8. end
  9. local trans = 0.04
  10.  
  11. local Bill = Instance.new("BillboardGui", Player.Character)
  12. Bill.Adornee = Player.Character.Head
  13. Bill.Name = "ChatGui"
  14. Bill.Size = UDim2.new(1,0,3,0)
  15. Bill.StudsOffset = Vector3.new(0,2.5,0)
  16.  
  17.  
  18. local text1 = Instance.new("TextLabel",Bill)
  19. text1.BackgroundTransparency = 1
  20. text1.BorderSizePixel = 0
  21. text1.Text = ""
  22. text1.Font = "Code"
  23. text1.TextSize = 30
  24. text1.TextStrokeTransparency = 1
  25. text1.TextColor3 = BrickColor.new("Black").Color
  26. text1.TextStrokeColor3 = BrickColor.new("Pearl").Color
  27. text1.Size = UDim2.new(1,0,1,0)
  28. for i = 1,string.len(text),1 do
  29. text1.Text = string.sub(text,1,i)
  30. wait(0.01)
  31. end
  32. for i = 1, 50 do wait()
  33. text1.TextStrokeTransparency = text1.TextStrokeTransparency + trans
  34. text1.TextTransparency = text1.TextTransparency + trans
  35. end
  36. end)
  37. chat()
  38. end
  39.  
  40. function onChatted(msg)
  41. chatfunc(msg)
  42. end
  43. Player.Chatted:connect(onChatted)
  44.  
  45. hole = Instance.new("Sound", game.Players.LocalPlayer.Character.Torso)
  46. hole.SoundId = "rbxassetid://209788934"
  47. hole.Volume = 5
  48. hole.Looped = true
  49.  
  50.  
  51. function Cloak()
  52.  
  53. local verlet = {}
  54. verlet.step_time = 1 / 50
  55. verlet.gravity = Vector3.new(0, -10, 0)
  56.  
  57. local char = game.Players.LocalPlayer.Character
  58. local torso = char:WaitForChild("Torso")
  59. local parts = {}
  60. local render = game:GetService("RunService").RenderStepped
  61.  
  62. wait(2)
  63.  
  64. local point = {}
  65. local link = {}
  66. local rope = {}
  67.  
  68. local function ccw(A,B,C)
  69. return (C.y-A.y) * (B.x-A.x) > (B.y-A.y) * (C.x-A.x)
  70. end
  71.  
  72. local function intersect(A,B,C,D)
  73. return ccw(A,C,D) ~= ccw(B,C,D) and ccw(A,B,C) ~= ccw(A,B,D)
  74. end
  75.  
  76. local function vec2(v)
  77. return Vector2.new(v.x, v.z)
  78. end
  79.  
  80. function point:step()
  81. if not self.fixed then
  82. local derivative = (self.position - self.last_position) * 0.95
  83. self.last_position = self.position
  84. self.position = self.position + derivative + (self.velocity * verlet.step_time ^ 2)
  85. --[[local torsoP = torso.CFrame * CFrame.new(-1, 0, 0.5)
  86. local torsoE = torso.CFrame * CFrame.new(1, 0, 0.5)
  87. local pointE = self.position + torso.CFrame.lookVector * 100
  88. local doIntersect = intersect(vec2(torsoP.p), vec2(torsoE.p), vec2(self.position), vec2(pointE))
  89. if not doIntersect then
  90. self.postition = self.position - torso.CFrame.lookVector * 10
  91. end]]
  92. end
  93. end
  94.  
  95. function link:step()
  96. for i = 1, 1 do
  97. local distance = self.point1.position - self.point2.position
  98. local magnitude = distance.magnitude
  99. local differance = (self.length - magnitude) / magnitude
  100. local translation = ((self.point1.fixed or self.point2.fixed) and 1 or 0.6) * distance * differance
  101. if not self.point1.fixed then
  102. self.point1.position = self.point1.position + translation
  103. end
  104. if not self.point2.fixed then
  105. self.point2.position = self.point2.position - translation
  106. end
  107. end
  108. end
  109.  
  110. function verlet.new(class, a, b, c)
  111. if class == "Point" then
  112. local new = {}
  113. setmetatable(new, {__index = point})
  114. new.class = class
  115. new.position = a or Vector3.new()
  116. new.last_position = new.position
  117. new.velocity = verlet.gravity
  118. new.fixed = false
  119. return new
  120. elseif class == "Link" then
  121. local new = {}
  122. setmetatable(new, {__index = link})
  123. new.class = class
  124. new.point1 = a
  125. new.point2 = b
  126. new.length = c or (a.position - b.position).magnitude
  127. return new
  128. elseif class == "Rope" then
  129. local new = {}
  130. setmetatable(new, {__index = link})
  131. new.class = class
  132. new.start_point = a
  133. new.finish_point = b
  134. new.points = {}
  135. new.links = {}
  136. local inc = (b - a) / 10
  137. for i = 0, 10 do
  138. table.insert(new.points, verlet.new("Point", a + (i * inc)))
  139. end
  140. for i = 2, #new.points do
  141. table.insert(new.links, verlet.new("Link", new.points[i - 1], new.points[i]))
  142. end
  143. return new
  144. end
  145. end
  146.  
  147. local tris = {}
  148. local triParts = {}
  149.  
  150. local function GetDiscoColor(hue)
  151. local section = hue % 1 * 3
  152. local secondary = 0.5 * math.pi * (section % 1)
  153. if section < 1 then
  154. return Color3.new(0, 0, 0)
  155. elseif section < 2 then
  156. return Color3.new(0, 0, 0)
  157. else
  158. return Color3.new(0, 0, 0)
  159. end
  160. end
  161. -- [[ Setup Part is the main part of the cloak ]] --
  162. local function setupPart(part)
  163. part.Anchored = true
  164. part.FormFactor = 3
  165. part.CanCollide = false
  166. part.TopSurface = 10
  167. part.BottomSurface = 10
  168. part.LeftSurface = 10
  169. part.RightSurface = 10
  170. part.FrontSurface = 10
  171. part.BackSurface = 10
  172. part.Material = "Neon"
  173. local m = Instance.new("SpecialMesh", part)
  174. m.MeshType = "Wedge"
  175. m.Scale = Vector3.new(1, 1, 1)
  176. return part
  177. end
  178.  
  179.  
  180.  
  181.  
  182.  
  183. local function CFrameFromTopBack(at, top, back)
  184. local right = top:Cross(back)
  185. return CFrame.new(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
  186. end
  187.  
  188. local function drawTri(parent, a, b, c)
  189. local this = {}
  190. local mPart1 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  191. local mPart2 = table.remove(triParts, 1) or setupPart(Instance.new("Part"))
  192. function this:Set(a, b, c)
  193. local ab, bc, ca = b-a, c-b, a-c
  194. local abm, bcm, cam = ab.magnitude, bc.magnitude, ca.magnitude
  195. local edg1 = math.abs(0.5 + ca:Dot(ab)/(abm*abm))
  196. local edg2 = math.abs(0.5 + ab:Dot(bc)/(bcm*bcm))
  197. local edg3 = math.abs(0.5 + bc:Dot(ca)/(cam*cam))
  198. if edg1 < edg2 then
  199. if edg1 >= edg3 then
  200. a, b, c = c, a, b
  201. ab, bc, ca = ca, ab, bc
  202. abm = cam
  203. end
  204. else
  205. if edg2 < edg3 then
  206. a, b, c = b, c, a
  207. ab, bc, ca = bc, ca, ab
  208. abm = bcm
  209. else
  210. a, b, c = c, a, b
  211. ab, bc, ca = ca, ab, bc
  212. abm = cam
  213. end
  214. end
  215.  
  216. local len1 = -ca:Dot(ab)/abm
  217. local len2 = abm - len1
  218. local width = (ca + ab.unit*len1).magnitude
  219.  
  220. local maincf = CFrameFromTopBack(a, ab:Cross(bc).unit, -ab.unit)
  221.  
  222. if len1 > 0.2 then
  223. mPart1.Parent = parent
  224. mPart1.Size = Vector3.new(0.2, width, len1)
  225. mPart1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
  226. else
  227. mPart1.Parent = nil
  228. end
  229.  
  230. if len2 > 0.2 then
  231. mPart2.Parent = parent
  232. mPart2.Size = Vector3.new(0.2, width, len2)
  233. mPart2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
  234. else
  235. mPart2.Parent = nil
  236. end
  237. end
  238. function this:SetProperty(prop, value)
  239. mPart1[prop] = value
  240. mPart2[prop] = value
  241. end
  242. this:Set(a, b, c)
  243. function this:Destroy()
  244. mPart1:Destroy()
  245. mPart2:Destroy()
  246. end
  247. this.p1 = mPart1
  248. this.p2 = mPart2
  249. this.p1.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p1.CFrame.Y * 0.5 + time())))
  250. this.p2.BrickColor = BrickColor.new(GetDiscoColor(math.noise(0.5, 0.5, this.p2.CFrame.Y * 0.5 + time())))
  251. return this
  252. end
  253.  
  254. function verlet.draw(object, id)
  255. if object.class == "Point" then
  256. local part = parts[id]
  257. part.BrickColor = BrickColor.new(255, 0, 0)
  258. part.Transparency = 0
  259. part.formFactor = 3
  260. part.Anchored = true
  261. part.CanCollide = false
  262. part.TopSurface = 0
  263. part.BottomSurface = 0
  264. part.Size = Vector3.new(0.35, 0.35, 0.35)
  265. part.Material = "Neon"
  266. part.CFrame = CFrame.new(object.position)
  267. part.Parent = torso
  268. return part
  269. elseif object.class == "Link" then
  270. local part = parts[id]
  271. local dist = (object.point1.position - object.point2.position).magnitude
  272. part.Size = Vector3.new(0.2, 0.2, dist)
  273. part.CFrame = CFrame.new(object.point1.position, object.point2.position) * CFrame.new(0, 0, dist * -0.5)
  274. part.Parent = torso
  275. return part
  276. end
  277. end
  278.  
  279. function verlet.clear()
  280. for _, v in pairs(workspace:GetChildren()) do
  281. if v.Name == "Part" then
  282. v:Destroy()
  283. end
  284. end
  285. end
  286.  
  287. local points = {}
  288. local links = {}
  289.  
  290. for x = 0, 2 do
  291. points[x] = {}
  292. for y = 0, 3 do
  293. points[x][y] = verlet.new("Point", torso.Position + Vector3.new(x * 0.8 - 2, 2 - y * 0.8, 5 + y * 0.4))
  294. points[x][y].fixed = y == 0
  295. end
  296. end
  297.  
  298. for x = 1, 2 do
  299. for y = 0, 3 do
  300. links[#links + 1] = verlet.new("Link", points[x][y], points[x - 1][y], 1 + y * 0.08)
  301. end
  302. end
  303.  
  304. for x = 0, 2 do
  305. for y = 1, 3 do
  306. links[#links + 1] = verlet.new("Link", points[x][y], points[x][y - 1], 1.2 + y * 0.03)
  307. end
  308. end
  309.  
  310. render:connect(function()
  311. for x = 0, 2 do
  312. for y = 0, 3 do
  313. if y == 0 then
  314. points[x][y].position = (torso.CFrame * CFrame.new(x * 1 - 1, 1, 0.5)).p
  315. else
  316. points[x][y]:step()
  317. end
  318. end
  319. end
  320. for i = 1, #links do
  321. links[i]:step()
  322. end
  323. for i = 1, #tris do
  324. triParts[#triParts + 1] = tris[i].p1
  325. triParts[#triParts + 1] = tris[i].p2
  326. end
  327. tris = {}
  328. for x = 1, 2 do
  329. for y = 1, 3 do
  330. tris[#tris + 1] = drawTri(torso, points[x - 1][y - 1].position, points[x - 1][y].position, points[x][y - 1].position)
  331. tris[#tris + 1] = drawTri(torso, points[x][y].position, points[x - 1][y].position, points[x][y - 1].position)
  332. end
  333. end
  334. end)
  335.  
  336. end
  337.  
  338. wait(5)
  339. chatfunc("Cloak Online, And Activated.")
  340. Cloak()
  341. wait(5)
  342. chatfunc("Force Online, And Activated.")
  343. wait(2)
  344. hole:Play()
  345. local plr = game.Players.LocalPlayer
  346. local good = true
  347. local R15 = false
  348. while plr.Character == nil or plr.Character:FindFirstChildOfClass('Humanoid') == nil do
  349. wait()
  350. end
  351. if plr.Character:FindFirstChildOfClass('Humanoid').RigType == Enum.HumanoidRigType.R15 then
  352. R15 = true
  353. end
  354.  
  355. function makegui()
  356. -- Objects
  357.  
  358. local ScreenGui = Instance.new("ScreenGui")
  359. local Frame = Instance.new("Frame")
  360. local TextBox = Instance.new("TextLabel")
  361.  
  362. -- Properties
  363.  
  364. ScreenGui.Parent = plr.PlayerGui
  365.  
  366. Frame.Parent = ScreenGui
  367. Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  368. Frame.BackgroundTransparency = 0.5
  369. Frame.BorderSizePixel = 0
  370. Frame.Size = UDim2.new(1, 0, 0, 0)
  371.  
  372. TextBox.Parent = Frame
  373. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  374. TextBox.BackgroundTransparency = 1
  375. TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
  376. TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  377. TextBox.Font = Enum.Font.Code
  378. TextBox.FontSize = Enum.FontSize.Size14
  379. TextBox.Text = ""
  380. TextBox.TextColor3 = Color3.new(1, 1, 1)
  381. TextBox.TextScaled = true
  382. TextBox.TextSize = 14
  383. TextBox.TextWrapped = true
  384. Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  385. wait(1.5)
  386. local text = "This script doesn't work in R15, sorry!"
  387. for i=1,string.len(text) do
  388. TextBox.Text = string.sub(text,1,i)
  389. wait()
  390. end
  391. wait(2)
  392. TextBox.Text = ""
  393. Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  394. end
  395. function makegui2()
  396. -- Objects
  397.  
  398. local ScreenGui = Instance.new("ScreenGui")
  399. local Frame = Instance.new("Frame")
  400. local TextBox = Instance.new("TextLabel")
  401.  
  402. -- Properties
  403.  
  404. ScreenGui.Parent = plr.PlayerGui
  405.  
  406. Frame.Parent = ScreenGui
  407. Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  408. Frame.BackgroundTransparency = 0.5
  409. Frame.BorderSizePixel = 0
  410. Frame.Size = UDim2.new(1, 0, 0, 0)
  411.  
  412. TextBox.Parent = Frame
  413. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  414. TextBox.BackgroundTransparency = 1
  415. TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
  416. TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  417. TextBox.Font = Enum.Font.Code
  418. TextBox.FontSize = Enum.FontSize.Size14
  419. TextBox.Text = ""
  420. TextBox.TextColor3 = Color3.new(1, 1, 1)
  421. TextBox.TextScaled = true
  422. TextBox.TextSize = 14
  423. TextBox.TextWrapped = true
  424. Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  425. wait(1.5)
  426. local text = "This script doesn't work in Filtering Enabled, sorry!"
  427. for i=1,string.len(text) do
  428. TextBox.Text = string.sub(text,1,i)
  429. wait()
  430. end
  431. wait(2)
  432. TextBox.Text = ""
  433. Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  434. end
  435. function makegui3()
  436. -- Objects
  437.  
  438. local ScreenGui = Instance.new("ScreenGui")
  439. local Frame = Instance.new("Frame")
  440. local TextBox = Instance.new("TextLabel")
  441.  
  442. -- Properties
  443.  
  444. ScreenGui.Parent = plr.PlayerGui
  445.  
  446. Frame.Parent = ScreenGui
  447. Frame.BackgroundColor3 = Color3.new(0.117647, 0.117647, 0.117647)
  448. Frame.BackgroundTransparency = 0.5
  449. Frame.BorderSizePixel = 0
  450. Frame.Size = UDim2.new(1, 0, 0, 0)
  451.  
  452. TextBox.Parent = Frame
  453. TextBox.BackgroundColor3 = Color3.new(1, 1, 1)
  454. TextBox.BackgroundTransparency = 1
  455. TextBox.Position = UDim2.new(0.05, 0, 0.05, 0)
  456. TextBox.Size = UDim2.new(0.899999976, 0, 0.899999976, 0)
  457. TextBox.Font = Enum.Font.Code
  458. TextBox.FontSize = Enum.FontSize.Size14
  459. TextBox.Text = ""
  460. TextBox.TextColor3 = Color3.new(1, 1, 1)
  461. TextBox.TextScaled = true
  462. TextBox.TextSize = 14
  463. TextBox.TextWrapped = true
  464. Frame:TweenSize(UDim2.new(1, 0, 0.2, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  465. wait(1.5)
  466. local text = "Press F on a player to force choke them, and hold G to use force lightning."
  467. for i=1,string.len(text) do
  468. TextBox.Text = string.sub(text,1,i)
  469. wait()
  470. end
  471. wait(2)
  472. TextBox.Text = ""
  473. Frame:TweenSize(UDim2.new(1, 0, 0, 0),Enum.EasingDirection.Out,Enum.EasingStyle.Bounce,1,false)
  474. end
  475.  
  476.  
  477. local coru = coroutine.wrap(function()
  478. if R15 then
  479. good = false
  480. makegui()
  481. elseif workspace.FilteringEnabled then
  482. good = false
  483. makegui2()
  484. else
  485. makegui3()
  486. end
  487. end)
  488. coru()
  489.  
  490.  
  491. if good then
  492. local mou = plr:GetMouse()
  493. local choking = false
  494. local zapping = false
  495. local target = nil
  496. local lastzap = nil
  497. local oldHit = nil
  498. local startpos = CFrame.new(0,0,0)
  499. local beforehealth = 100
  500. local timez = 0
  501.  
  502. Gibs = workspace
  503.  
  504. function Kill(Character,yee,oh)
  505. if Character:FindFirstChildOfClass('Humanoid') then
  506. Character:FindFirstChildOfClass('Humanoid').Health = 0
  507. local svch = Character
  508. local hum = Character:findFirstChild("Humanoid")
  509. Character.Archivable = true
  510. local chrclone = Character:clone()
  511. Character.Archivable = false
  512.  
  513. local ch = chrclone:GetChildren()
  514. local i
  515. for i = 1,#ch do
  516. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" or ch[i].ClassName == "Script" then
  517. ch[i]:remove()
  518. end
  519. end
  520. local function Scan(ch)
  521. local e
  522. for e = 1,#ch do
  523. Scan(ch[e]:GetChildren())
  524. if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
  525. ch[e]:remove()
  526. end
  527. end
  528. end
  529. Scan(chrclone:GetChildren())
  530.  
  531. local hum2 = chrclone:findFirstChild("Humanoid")
  532.  
  533.  
  534. if hum2 ~= nil then
  535. hum2.Name = "Humanoid2"
  536. hum2.PlatformStand = true
  537. hum2.Sit = true
  538. hum2.MaxHealth = 0
  539. hum2.Health = 0
  540. end
  541.  
  542. local ch = Character:GetChildren()
  543. local i
  544. for i = 1,#ch do
  545. if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  546. ch[i]:remove()
  547. end
  548. end
  549.  
  550. wait(0.2)
  551.  
  552. local ch = Character:GetChildren()
  553. local i
  554. for i = 1,#ch do
  555. if ch[i].ClassName == "Part" or ch[i].ClassName == "Hat" or ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
  556. ch[i]:remove()
  557. end
  558. end
  559. Character = chrclone
  560. local Torso = Character.Torso
  561. local movevector = Vector3.new()
  562. if Character.Torso ~= nil then
  563. local killtors = Character:findFirstChild("Torso")
  564. if killtors ~= nil then
  565. movevector = CFrame.new(plr.Character["Right Arm"].Position,Torso.Position).lookVector
  566. end
  567. end
  568. if Torso then
  569. local Head = Character:FindFirstChild("Head")
  570. if Head and yee == false then
  571. local Neck = Instance.new("Weld")
  572. Neck.Name = "Neck"
  573. Neck.Part0 = Torso
  574. Neck.Part1 = Head
  575. Neck.C0 = CFrame.new(0, 1.5, 0)
  576. Neck.C1 = CFrame.new()
  577. Neck.Parent = Torso
  578. end
  579. local Limb = Character:FindFirstChild("Right Arm")
  580. if Limb then
  581. Limb.CFrame = Torso.CFrame * CFrame.new(1.5, 0, 0)
  582. local Joint = Instance.new("Glue")
  583. Joint.Name = "RightShoulder"
  584. Joint.Part0 = Torso
  585. Joint.Part1 = Limb
  586. Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  587. Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  588. Joint.Parent = Torso
  589. local B = Instance.new("Part")
  590. B.TopSurface = 0
  591. B.BottomSurface = 0
  592. B.formFactor = "Symmetric"
  593. B.Size = Vector3.new(1, 1, 1)
  594. B.Transparency = 1
  595. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  596. B.Parent = Character
  597. local W = Instance.new("Weld")
  598. W.Part0 = Limb
  599. W.Part1 = B
  600. W.C0 = CFrame.new(0, -0.5, 0)
  601. W.Parent = Limb
  602. end
  603. local Limb = Character:FindFirstChild("Left Arm")
  604. if Limb then
  605. Limb.CFrame = Torso.CFrame * CFrame.new(-1.5, 0, 0)
  606. local Joint = Instance.new("Glue")
  607. Joint.Name = "LeftShoulder"
  608. Joint.Part0 = Torso
  609. Joint.Part1 = Limb
  610. Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  611. Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  612. Joint.Parent = Torso
  613.  
  614. local B = Instance.new("Part")
  615. B.TopSurface = 0
  616. B.BottomSurface = 0
  617. B.formFactor = "Symmetric"
  618. B.Size = Vector3.new(1, 1, 1)
  619. B.Transparency = 1
  620. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  621. B.Parent = Character
  622. local W = Instance.new("Weld")
  623. W.Part0 = Limb
  624. W.Part1 = B
  625. W.C0 = CFrame.new(0, -0.5, 0)
  626. W.Parent = Limb
  627. end
  628. local Limb = Character:FindFirstChild("Right Leg")
  629. if Limb then
  630.  
  631. Limb.CFrame = Torso.CFrame * CFrame.new(0.5, -2, 0)
  632. local Joint = Instance.new("Glue")
  633. Joint.Name = "RightHip"
  634. Joint.Part0 = Torso
  635. Joint.Part1 = Limb
  636. Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  637. Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  638. Joint.Parent = Torso
  639.  
  640. local B = Instance.new("Part")
  641. B.TopSurface = 0
  642. B.BottomSurface = 0
  643. B.formFactor = "Symmetric"
  644. B.Size = Vector3.new(1, 1, 1)
  645. B.Transparency = 1
  646. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  647. B.Parent = Character
  648. local W = Instance.new("Weld")
  649. W.Part0 = Limb
  650. W.Part1 = B
  651. W.C0 = CFrame.new(0, -0.5, 0)
  652. W.Parent = Limb
  653.  
  654. end
  655. local Limb = Character:FindFirstChild("Left Leg")
  656. if Limb then
  657.  
  658. Limb.CFrame = Torso.CFrame * CFrame.new(-0.5, -2, 0)
  659. local Joint = Instance.new("Glue")
  660. Joint.Name = "LeftHip"
  661. Joint.Part0 = Torso
  662. Joint.Part1 = Limb
  663. Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  664. Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  665. Joint.Parent = Torso
  666.  
  667. local B = Instance.new("Part")
  668. B.TopSurface = 0
  669. B.BottomSurface = 0
  670. B.formFactor = "Symmetric"
  671. B.Size = Vector3.new(1, 1, 1)
  672. B.Transparency = 1
  673. B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
  674. B.Parent = Character
  675. local W = Instance.new("Weld")
  676. W.Part0 = Limb
  677. W.Part1 = B
  678. W.C0 = CFrame.new(0, -0.5, 0)
  679. W.Parent = Limb
  680.  
  681. end
  682. --[
  683. local Bar = Instance.new("Part")
  684. Bar.TopSurface = 0
  685. Bar.BottomSurface = 0
  686. Bar.formFactor = "Symmetric"
  687. Bar.Size = Vector3.new(1, 1, 1)
  688. Bar.Transparency = 1
  689. Bar.CFrame = Torso.CFrame * CFrame.new(0, 0.5, 0)
  690. Bar.Parent = Character
  691. local Weld = Instance.new("Weld")
  692. Weld.Part0 = Torso
  693. Weld.Part1 = Bar
  694. Weld.C0 = CFrame.new(0, 0.5, 0)
  695. Weld.Parent = Torso
  696. --]]
  697. end
  698. Character.Parent = Gibs
  699. game.Debris:AddItem(Character, 12)
  700. Character.Torso.Velocity = plr.Character.Torso.CFrame.lookVector*10
  701. Character.Head.Velocity = plr.Character.Torso.CFrame.lookVector*10
  702. if oh then
  703. local repulse = Instance.new('BodyForce',Torso)
  704. repulse.Force = movevector*10000 + Vector3.new(0,1000,0)
  705. game.Debris:AddItem(repulse,0.05)
  706. for i,v in pairs(chrclone:GetChildren()) do
  707. if v:IsA('BasePart') then
  708. v.BrickColor = BrickColor.Black()
  709. end
  710. end
  711. local sound = Instance.new('Sound',Torso)
  712. sound.EmitterSize = 50
  713. sound.MaxDistance = 100
  714. sound.Volume = 6
  715. sound.SoundId = 'rbxassetid://157325701'
  716. sound:Play()
  717. sound.Ended:connect(function()
  718. sound:Destroy()
  719. end)
  720. end
  721. local duh = Torso
  722. if yee == true then
  723. ee = Instance.new("Part")
  724. ee.Anchored = false
  725. ee.CanCollide = false
  726. ee.Parent = duh
  727. ee.Transparency =1
  728. ee.Size = Vector3.new(0.15, 0.15, 0.15)
  729. wee = Instance.new("Weld")
  730. wee.Parent = duh
  731. wee.Part0 = duh
  732. wee.Part1 = ee
  733. wee.C0 = CFrame.new(0, 1, 0)
  734. ge = Instance.new('ParticleEmitter')
  735. ge.Parent = ee
  736. ge.Texture = "rbxassetid://29712167"
  737. ge.Size = NumberSequence.new(0.2,0.05)
  738. ge.Acceleration = Vector3.new(0, -20, 0)
  739. ge.Rate = 100000
  740. ge.Speed = NumberRange.new(7,8)
  741. ge.Lifetime = NumberRange.new(3,4)
  742. ge.VelocitySpread = 10
  743. ge.VelocityInheritance = 0.3
  744. ea = Instance.new("Part")
  745. ea.Anchored = false
  746. ea.CanCollide = false
  747. ea.Parent = Character.Head
  748. ea.Transparency =1
  749. ea.Size = Vector3.new(0.15, 0.15, 0.15)
  750. wea = Instance.new("Weld")
  751. wea.Parent = Character.Head
  752. wea.Part0 = Character.Head
  753. wea.Part1 = ea
  754. wea.C0 = CFrame.new(0, -0.7, 0)
  755. ga = Instance.new('ParticleEmitter')
  756. ga.Parent = ea
  757. ga.Texture = "rbxassetid://29712167"
  758. ga.Size = NumberSequence.new(0.2,0.05)
  759. ga.Acceleration = Vector3.new(0, -20, 0)
  760. ga.Rate = 100000
  761. ga.Speed = NumberRange.new(7,8)
  762. ga.Lifetime = NumberRange.new(3,4)
  763. ga.VelocitySpread = 10
  764. ga.VelocityInheritance = 0.3
  765. ga.EmissionDirection = Enum.NormalId.Bottom
  766. end
  767. end
  768. end
  769.  
  770. function gettouching(startpos,endpos,dont)
  771. local ray = Ray.new(startpos,(endpos-startpos).unit*300)
  772. local ignore = {}
  773. for i,v in pairs(game:GetService('Players'):GetChildren()) do
  774. if v.Character and v ~= plr then
  775. table.insert(ignore,v.Character)
  776. end
  777. end
  778. local part,pos = workspace:FindPartOnRayWithWhitelist(ray,ignore,false)
  779. if part then
  780. if part.Parent:FindFirstChildOfClass('Humanoid') and part.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  781. local coru = coroutine.wrap(function()
  782. Kill(part.Parent,false,true)
  783. end)
  784. coru()
  785. end
  786. end
  787. table.insert(ignore,dont)
  788. local part2,pos2 = workspace:FindPartOnRayWithIgnoreList(ray,ignore,false,true)
  789. if part2 and part2.Parent and part2.Parent ~= plr.Character and part2.Parent:FindFirstChildOfClass('Humanoid') and part2.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  790. local coru = coroutine.wrap(function()
  791. Kill(part2.Parent,false,true)
  792. end)
  793. coru()
  794. end
  795. end
  796.  
  797. function makelaser(parent)
  798. local part = Instance.new('Part',parent)
  799. part.Size = Vector3.new(0.2,0.2,0.2)
  800. part.Transparency = 1
  801. part.CanCollide = false
  802. local weld = Instance.new('Weld',part)
  803. weld.Part0 = part
  804. weld.Part1 = plr.Character["Right Arm"]
  805. weld.C0 = CFrame.new(0,1.25,0)
  806. for i=1,5 do
  807. local mouse = mou
  808. targ = mouse.Target
  809. if targ then
  810. hum = targ.Parent:findFirstChild("Humanoid")
  811. Hit = mouse.hit
  812. local P = Instance.new("Part")
  813. P.Name = "Guideline"
  814. P.Material = Enum.Material.Neon
  815. local Place0 = part.CFrame
  816. P.formFactor = 0
  817. P.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  818. if plr.Character:FindFirstChild('Right Arm') then
  819. for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
  820. if v:IsA('Sound') and v.Name == "Electricity" then
  821. if Place0 and Hit and (Place0.p - Hit.p).magnitude >= 20 then
  822. v.MaxDistance = (Place0.p - Hit.p).magnitude
  823. v.EmitterSize = (Place0.p - Hit.p).magnitude
  824. elseif Place0 and Hit then
  825. v.MaxDistance = 20
  826. v.EmitterSize = 20
  827. end
  828. end
  829. end
  830. end
  831. P.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  832. P.Parent = parent
  833. P.BrickColor = BrickColor.Yellow()
  834. P.Anchored = true
  835. P.CanCollide = false
  836. P.Transparency = 1
  837. local m = Instance.new("BlockMesh")
  838. m.Scale = Vector3.new(0.1,0.1,1)
  839. m.Parent = P
  840. local mh = mouse.Hit
  841. for c1 = 1, 1 do
  842. oldHit = part.CFrame
  843. for count = 1, 9 do
  844. local val1 = Vector3.new(math.random(-1,1),math.random(-1,1),math.random(-1,1))
  845. local val2 = P.Size.z / 10
  846. local val3 = P.CFrame.lookVector * -1
  847. local val4 = count * val2
  848. local val5 = val4 * val3
  849. local val6 = part.CFrame.p
  850. local Hit = CFrame.new(val5 + val1 + val6)
  851. local s = Instance.new("Part")
  852. s.Name = "Spark"
  853. s.Material = Enum.Material.Neon
  854. local Place0 = oldHit
  855. s.formFactor = 0
  856. s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  857. s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  858. s.Parent = parent
  859. s.BrickColor = BrickColor.new('Instatutional white')
  860. s.Anchored = true
  861. s.CanCollide = false
  862. m = Instance.new("BlockMesh")
  863. m.Scale = Vector3.new(0.1,0.1,1)
  864. m.Parent = s
  865. local clone = s:clone()
  866. clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
  867. clone.BrickColor = BrickColor.new('Electric blue')
  868. clone.Transparency = 0.8
  869. clone.Parent = s.Parent
  870. oldHit = Hit
  871. end
  872. Hit = oldHit
  873. local s = Instance.new("Part")
  874. s.Name = "Spark"
  875. s.Material = Enum.Material.Neon
  876. local Place0 = mh
  877. s.formFactor = 0
  878. s.Size = Vector3.new(1,1,(Place0.p - Hit.p).magnitude)
  879. s.CFrame = CFrame.new((Place0.p + Hit.p)/2,Place0.p)
  880. s.Parent = parent
  881. s.BrickColor = BrickColor.new('Instatutional white')
  882. s.Anchored = true
  883. s.CanCollide = false
  884. m = Instance.new("BlockMesh")
  885. m.Scale = Vector3.new(0.1,0.1,1)
  886. m.Parent = s
  887. local clone = s:clone()
  888. clone.Mesh.Scale = Vector3.new(0.3,0.3,1.1)
  889. clone.BrickColor = BrickColor.new('Electric blue')
  890. clone.Transparency = 0.8
  891. clone.Parent = s.Parent
  892. gettouching(part.Position,mou.Hit.p,parent)
  893. end
  894. P:remove()
  895. end
  896. end
  897. end
  898.  
  899. function chokearms(chr)
  900. if chr:FindFirstChild('Torso') then
  901. if chr:FindFirstChild('Right Arm') then
  902. if chr.Torso:FindFirstChild('Right Shoulder') then
  903. chr.Torso["Right Shoulder"]:Destroy()
  904. end
  905. local thing = Instance.new('Weld',chr.Torso)
  906. thing.Name = "Right Shoulder"
  907. thing.Part0 = chr.Torso
  908. thing.Part1 = chr["Right Arm"]
  909. 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)
  910. end
  911. if chr:FindFirstChild('Left Arm') then
  912. if chr.Torso:FindFirstChild('Left Shoulder') then
  913. chr.Torso["Left Shoulder"]:Destroy()
  914. end
  915. local thing = Instance.new('Weld',chr.Torso)
  916. thing.Name = "Left Shoulder"
  917. thing.Part0 = chr["Left Arm"]
  918. thing.Part1 = chr.Torso
  919. 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)
  920. end
  921. end
  922. end
  923.  
  924. function fixarms(chr)
  925. if chr:FindFirstChild('Torso') then
  926. for i,v in pairs(chr.Torso:GetChildren()) do
  927. if v.Name == "Right Shoulder" or v.Name == "Left Shoulder" then
  928. v:Destroy()
  929. end
  930. end
  931. if chr:FindFirstChild('Right Arm') then
  932. local rs = Instance.new('Motor6D',chr.Torso)
  933. rs.Name = "Right Shoulder"
  934. rs.Part0 = chr.Torso
  935. rs.Part1 = chr:FindFirstChild('Right Arm')
  936. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  937. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  938. end
  939. if chr:FindFirstChild('Left Arm') then
  940. local ls = Instance.new('Motor6D',chr.Torso)
  941. ls.Name = "Left Shoulder"
  942. ls.Part0 = chr.Torso
  943. ls.Part1 = chr:FindFirstChild('Left Arm')
  944. ls.C0 = CFrame.new(-1, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  945. ls.C1 = CFrame.new(0.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
  946. end
  947. end
  948. end
  949.  
  950. mou.KeyDown:connect(function(key)
  951. if key == "f" and mou.Target and zapping == false then
  952. if choking == false then
  953. local hum = mou.Target.Parent:FindFirstChildOfClass('Humanoid')
  954.  
  955. if hum == nil then
  956. hum = mou.Target.Parent.Parent:FindFirstChildOfClass('Humanoid')
  957. end
  958.  
  959. if hum and hum.Parent:FindFirstChild('Torso') and hum.Health > 0 then
  960. beforehealth = hum.Health
  961. choking = true
  962. target = hum.Parent.Torso
  963. local sound = Instance.new('Sound',target)
  964. sound.Volume = 5
  965. sound.EmitterSize = 50
  966. sound.MaxDistance = 100
  967. sound.SoundId = 'rbxassetid://418658161'
  968. sound.Looped = false
  969. sound.PlaybackSpeed = 0.75
  970. sound.Name = "Choking"
  971. sound:Play()
  972. startpos = target.CFrame
  973. chokearms(target.Parent)
  974. local bod = Instance.new('BodyPosition',hum.Parent.Torso)
  975. bod.Position = target.Position+Vector3.new(0,12,0)
  976. bod.MaxForce = Vector3.new(100000,100000,100000)
  977. bod.P = 1000
  978. bod.D = 500
  979. end
  980. if target and target:FindFirstChild('Breathing') then
  981. target.Breathing:Destroy()
  982. end
  983. local coru = coroutine.wrap(function()
  984. while timez < 5 and choking do
  985. timez = timez + 0.1
  986. if target.Parent:FindFirstChildOfClass('Humanoid') then
  987. if target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49) > 0 then
  988. target.Parent:FindFirstChildOfClass('Humanoid').Health = target.Parent:FindFirstChildOfClass('Humanoid').Health - (beforehealth/49)
  989. end
  990. end
  991. wait(0.1)
  992. end
  993. if timez >= 5 then
  994. if target and target.Parent and target.Parent:FindFirstChildOfClass('Humanoid') and target.Parent:FindFirstChildOfClass('Humanoid').Health > 0 then
  995. if target and target:FindFirstChild('Choking') then
  996. target.Choking:Stop()
  997. target.Choking:Destroy()
  998. end
  999. if target then
  1000. for i,v in pairs(target:GetChildren()) do
  1001. if v:IsA("BodyPosition") then
  1002. v:Destroy()
  1003. end
  1004. end
  1005. end
  1006. Kill(target.Parent,false,false)
  1007. end
  1008. end
  1009. target = nil
  1010. choking = false
  1011. startpos = CFrame.new(0,0,0)
  1012. timez = 0
  1013. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  1014. if v.Name == "Right Shoulder" and v:IsA('Weld') then
  1015. v:Destroy()
  1016. end
  1017. end
  1018. if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
  1019. local rs = Instance.new('Motor6D',plr.Character.Torso)
  1020. rs.Name = "Right Shoulder"
  1021. rs.Part0 = plr.Character.Torso
  1022. rs.Part1 = plr.Character:FindFirstChild('Right Arm')
  1023. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1024. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1025. end
  1026. end)
  1027. coru()
  1028. else
  1029. if target and target:FindFirstChild('Choking') then
  1030. fixarms(target.Parent)
  1031. target.Choking:Stop()
  1032. target.Choking:Destroy()
  1033. local sound = Instance.new('Sound',target)
  1034. sound.Volume = 5
  1035. sound.EmitterSize = 50
  1036. sound.MaxDistance = 100
  1037. sound.SoundId = 'rbxassetid://304511128'
  1038. sound.Looped = true
  1039. sound.PlaybackSpeed = 1
  1040. sound.Name = "Breathing"
  1041. sound:Play()
  1042. game:GetService('Debris'):AddItem(sound,timez)
  1043. for i,v in pairs(target:GetChildren()) do
  1044. if v:IsA("BodyPosition") then
  1045. v:Destroy()
  1046. end
  1047. end
  1048. end
  1049. if target.Parent:FindFirstChildOfClass('Humanoid') then
  1050. target.Parent:FindFirstChildOfClass('Humanoid').Health = beforehealth
  1051. end
  1052. target = nil
  1053. choking = false
  1054. startpos = CFrame.new(0,0,0)
  1055. timez = 0
  1056. end
  1057. elseif key == "g" and choking == false then
  1058. zapping = true
  1059. local electricity = Instance.new("Sound",plr.Character:FindFirstChild('Right Arm'))
  1060. electricity.Name = "Electricity"
  1061. electricity.SoundId = "rbxassetid://379557765"
  1062. electricity.Volume = 5
  1063. electricity.EmitterSize = 100
  1064. electricity.MaxDistance = 100
  1065. electricity.Looped = true
  1066. electricity:Play()
  1067. end
  1068. end)
  1069.  
  1070. mou.KeyUp:connect(function(key)
  1071. if key == "g" then
  1072. zapping = false
  1073. if plr.Character:FindFirstChild('Right Arm') then
  1074. for i,v in pairs(plr.Character:FindFirstChild('Right Arm'):GetChildren()) do
  1075. if v:IsA('Sound') and v.Name == "Electricity" then
  1076. v:Destroy()
  1077. end
  1078. end
  1079. end
  1080. end
  1081. end)
  1082.  
  1083.  
  1084. while true do
  1085. 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
  1086. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  1087. if v.Name == "Right Shoulder" then
  1088. v:Destroy()
  1089. end
  1090. end
  1091. local Head = plr.Character.Head
  1092. local RightArm = plr.Character["Right Arm"]
  1093. local RightShoulder = Instance.new('Weld',plr.Character.Torso)
  1094. RightShoulder.Name = "Right Shoulder"
  1095. RightShoulder.Part0 = plr.Character.Torso
  1096. RightShoulder.Part1 = RightArm
  1097. RightShoulder.C0 = CFrame.new(1,1,-0.75)
  1098. local MousePosition = target.Position+(target.Size/2)
  1099. local ToMouse = (MousePosition - Head.Position).unit
  1100. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  1101. 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)))
  1102. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  1103. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  1104. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  1105. if tostring(LateralAngle) == "-1.#IND" then
  1106. LateralAngle = 0
  1107. end
  1108. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  1109. local change = false
  1110. if LateralAngle > (math.pi / 2) then
  1111. LateralAngle = (math.pi / 2)
  1112. change = true
  1113. end
  1114. if Cross.Y < 0 then
  1115. LateralAngle = -LateralAngle
  1116. end
  1117. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
  1118. for i,v in pairs(target.Parent:GetChildren()) do
  1119. if v:IsA('Tool') then
  1120. v.ManualActivationOnly = true
  1121. end
  1122. end
  1123. elseif zapping == false and plr and plr.Character and plr.Character:FindFirstChild("Torso") and plr.Character:FindFirstChild('Right Arm') then
  1124. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  1125. if v.Name == "Right Shoulder" and v:IsA('Weld') then
  1126. v:Destroy()
  1127. end
  1128. end
  1129. if target then
  1130. for i,v in pairs(target:GetChildren()) do
  1131. if v:IsA("BodyPosition") then
  1132. v:Destroy()
  1133. end
  1134. end
  1135. if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
  1136. local rs = Instance.new('Motor6D',plr.Character.Torso)
  1137. rs.Name = "Right Shoulder"
  1138. rs.Part0 = plr.Character.Torso
  1139. rs.Part1 = plr.Character:FindFirstChild('Right Arm')
  1140. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1141. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1142. end
  1143. if target.Parent then
  1144. for i,v in pairs(target.Parent:GetChildren()) do
  1145. if v:IsA('Tool') then
  1146. v.ManualActivationOnly = false
  1147. end
  1148. end
  1149. end
  1150. end
  1151. target = nil
  1152. choking = false
  1153. startpos = CFrame.new(0,0,0)
  1154. timez = 0
  1155. end
  1156. 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
  1157. if lastzap then
  1158. lastzap:Destroy()
  1159. lastzap = nil
  1160. end
  1161. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  1162. if v.Name == "Right Shoulder" then
  1163. v:Destroy()
  1164. end
  1165. end
  1166. local Head = plr.Character.Head
  1167. local RightArm = plr.Character["Right Arm"]
  1168. local RightShoulder = Instance.new('Weld',plr.Character.Torso)
  1169. RightShoulder.Name = "Right Shoulder"
  1170. RightShoulder.Part0 = plr.Character.Torso
  1171. RightShoulder.Part1 = RightArm
  1172. RightShoulder.C0 = CFrame.new(1,1,-0.75)
  1173. local MousePosition = mou.Hit.p
  1174. local ToMouse = (MousePosition - Head.Position).unit
  1175. local Angle = math.acos(ToMouse:Dot(Vector3.new(0, 1, 0)))
  1176. 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)))
  1177. local ToMouseRightArm = ((MousePosition - FromRightArmPos) * Vector3.new(1 ,0, 1)).unit
  1178. local Look = (Head.CFrame.lookVector * Vector3.new(1, 0, 1)).unit
  1179. local LateralAngle = math.acos(ToMouseRightArm:Dot(Look))
  1180. if tostring(LateralAngle) == "-1.#IND" then
  1181. LateralAngle = 0
  1182. end
  1183. local Cross = Head.CFrame.lookVector:Cross(ToMouseRightArm)
  1184. local change = false
  1185. if LateralAngle > (math.pi / 2) then
  1186. LateralAngle = (math.pi / 2)
  1187. change = true
  1188. end
  1189. if Cross.Y < 0 then
  1190. LateralAngle = -LateralAngle
  1191. end
  1192. RightShoulder.C0 = CFrame.new(RightShoulder.C0.p) * CFrame.Angles(((math.pi / 2) - Angle), ((math.pi / 2) + LateralAngle), math.pi/2)
  1193. local thing = Instance.new('Model',workspace)
  1194. thing.Name = "Zap"
  1195. lastzap = thing
  1196. makelaser(thing)
  1197. elseif choking == false and zapping == false then
  1198. if lastzap then
  1199. lastzap:Destroy()
  1200. lastzap = nil
  1201. end
  1202. if plr.Character:FindFirstChild('Torso') then
  1203. for i,v in pairs(plr.Character.Torso:GetChildren()) do
  1204. if v.Name == "Right Shoulder" and v:IsA('Weld') then
  1205. v:Destroy()
  1206. end
  1207. end
  1208. if plr.Character.Torso:FindFirstChild('Right Shoulder') == nil then
  1209. local rs = Instance.new('Motor6D',plr.Character.Torso)
  1210. rs.Name = "Right Shoulder"
  1211. rs.Part0 = plr.Character.Torso
  1212. rs.Part1 = plr.Character:FindFirstChild('Right Arm')
  1213. rs.C0 = CFrame.new(1, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1214. rs.C1 = CFrame.new(-0.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
  1215. end
  1216. end
  1217. end
  1218. wait()
  1219. end
  1220. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement