Advertisement
Mitko1223tm

chokefe test hope it work

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