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