SubScripts

force choke

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