Advertisement
Guest User

Untitled

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