View difference between Paste ID: W8mSttnv and TfkhnL1k
SHOW: | | - or go back to the newest paste.
1
--------------------------------------------------------------------------------
2
--A Really Mad Guy with a Knife, a Tec-9 and a Sawed-Off! THOSE KIDS WILL PAY!--
3
--------------------------------------------------------------------------------
4
--By CKbackup (Sugarie Saffron)                               --
5
--YT: https://www.youtube.com/channel/UC8n9FFz7e6Zo13ob_5F9MJw--
6
--Discord: Sugarie Saffron#4705                               --
7
----------------------------------------------------------------
8
9
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
10
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
11
do
12
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
13
	script.Parent = Player.Character
14
15
	--RemoteEvent for communicating
16
	local Event = Instance.new("RemoteEvent")
17
	Event.Name = "UserInput_Event"
18
19
	--Fake event to make stuff like Mouse.KeyDown work
20
	local function fakeEvent()
21
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
22
		t.connect = t.Connect
23
		return t
24
	end
25
26
	--Creating fake input objects with fake variables
27
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
28
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
29
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
30
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
31
	end}
32
	--Merged 2 functions into one by checking amount of arguments
33
	CAS.UnbindAction = CAS.BindAction
34
35
	--This function will trigger the events that have been :Connect()'ed
36
	local function te(self,ev,...)
37
		local t = m[ev]
38
		if t and t._fakeEvent and t.Function then
39
			t.Function(...)
40
		end
41
	end
42
	m.TrigEvent = te
43
	UIS.TrigEvent = te
44
45
	Event.OnServerEvent:Connect(function(plr,io)
46
	    if plr~=Player then return end
47
		if io.isMouse then
48
			m.Target = io.Target
49
			m.Hit = io.Hit
50
		else
51
			local b = io.UserInputState == Enum.UserInputState.Begin
52
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
53
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
54
			end
55
			for _,t in pairs(CAS.Actions) do
56
				for _,k in pairs(t.Keys) do
57
					if k==io.KeyCode then
58
						t.Function(t.Name,io.UserInputState,io)
59
					end
60
				end
61
			end
62
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
63
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
64
	    end
65
	end)
66
	Event.Parent = NLS([==[
67
	local Player = game:GetService("Players").LocalPlayer
68
	local Event = script:WaitForChild("UserInput_Event")
69
70
	local UIS = game:GetService("UserInputService")
71
	local input = function(io,a)
72
		if a then return end
73
		--Since InputObject is a client-side instance, we create and pass table instead
74
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
75
	end
76
	UIS.InputBegan:Connect(input)
77
	UIS.InputEnded:Connect(input)
78
79
	local Mouse = Player:GetMouse()
80
	local h,t
81
	--Give the server mouse data 30 times every second, but only if the values changed
82
	--If player is not moving their mouse, client won't fire events
83
	while wait(1/30) do
84
		if h~=Mouse.Hit or t~=Mouse.Target then
85
			h,t=Mouse.Hit,Mouse.Target
86
			Event:FireServer({isMouse=true,Target=t,Hit=h})
87
		end
88
	end]==],Player.Character)
89
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
90
end
91
92
93
wait(1/60)
94
Effects = { }
95
local Player = owner
96
local chara = Player.Character
97
local Humanoid = chara:FindFirstChildOfClass("Humanoid")
98
local LeftArm = chara["Left Arm"]
99
local RightArm = chara["Right Arm"]
100
local LeftLeg = chara["Left Leg"]
101
local RightLeg = chara["Right Leg"]
102
local Head = chara.Head
103
local Torso = chara.Torso
104
local Camera = workspace.CurrentCamera
105
local RootPart = chara.HumanoidRootPart
106
local RootJoint = RootPart.RootJoint
107
local attack = false
108
local Anim = 'Idle'
109
local attacktype = 1
110
local delays = false
111
local play = true
112
local targetted = nil
113
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
114
local velocity = RootPart.Velocity.y
115
local sine = 0
116
local change = 1
117
local doe = 0
118
local Create = LoadLibrary("RbxUtility").Create
119
local debby = game:GetService("Debris")
120
Humanoid.WalkSpeed = 8
121
122
Humanoid.Animator.Parent = nil
123
chara.Animate.Parent = nil
124
125
local newMotor = function(part0, part1, c0, c1)
126
local w = Create('Motor'){
127
Parent = part0,
128
Part0 = part0,
129
Part1 = part1,
130
C0 = c0,
131
C1 = c1,
132
}
133
return w
134
end
135
136
function clerp(a, b, t)
137
return a:lerp(b, t)
138
end
139
140
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
141
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
142
143
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
144
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
145
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
146
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
147
RootJoint.C1 = CFrame.new(0, 0, 0)
148
RootJoint.C0 = CFrame.new(0, 0, 0)
149
Torso.Neck.C1 = CFrame.new(0, 0, 0)
150
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
151
152
local rarmc1 = RW.C1
153
local larmc1 = LW.C1
154
local rlegc1 = RH.C1
155
local llegc1 = LH.C1
156
157
local resetc1 = false
158
159
function PlayAnimationFromTable(table, speed, bool)
160
RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
161
Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
162
RW.C0 = clerp(RW.C0, table[3], speed) 
163
LW.C0 = clerp(LW.C0, table[4], speed) 
164
RH.C0 = clerp(RH.C0, table[5], speed) 
165
LH.C0 = clerp(LH.C0, table[6], speed) 
166
if bool == true then
167
if resetc1 == false then
168
resetc1 = true
169
RootJoint.C1 = RootJoint.C1
170
Torso.Neck.C1 = Torso.Neck.C1
171
RW.C1 = rarmc1
172
LW.C1 = larmc1
173
RH.C1 = rlegc1
174
LH.C1 = llegc1
175
end
176
end
177
end
178
179
ArtificialHB = Instance.new("BindableEvent", script)
180
ArtificialHB.Name = "Heartbeat"
181
script:WaitForChild("Heartbeat")
182
frame = 0.03333333333333
183
tf = 0
184
allowframeloss = false
185
tossremainder = false
186
lastframe = tick()
187
script.Heartbeat:Fire()
188
game:GetService("RunService").Heartbeat:connect(function(s, p)
189
tf = tf + s
190
if tf >= frame then
191
if allowframeloss then
192
script.Heartbeat:Fire()
193
lastframe = tick()
194
else
195
for i = 1, math.floor(tf / frame) do
196
script.Heartbeat:Fire()
197
end
198
lastframe = tick()
199
end
200
if tossremainder then
201
tf = 0
202
else
203
tf = tf - frame * math.floor(tf / frame)
204
end
205
end
206
end)
207
function swait(num)
208
if num == 0 or num == nil then
209
ArtificialHB.Event:wait()
210
else
211
for i = 0, num do
212
ArtificialHB.Event:wait()
213
end
214
end
215
end
216
217
function RemoveOutlines(part)
218
part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
219
end
220
221
function so(id,par,pit,vol)
222
local sou = Instance.new("Sound", par or workspace)
223
if par == chara then
224
sou.Parent = chara.Torso
225
end
226
sou.Volume = vol
227
sou.Pitch = pit or 1
228
sou.SoundId = "rbxassetid://" .. id
229
sou.PlayOnRemove = true
230
sou:Destroy()
231
end
232
233
--This is just for builds--
234
New = function(Object, Parent, Name, Data)
235
local Object = Instance.new(Object)
236
for Index, Value in pairs(Data or {}) do
237
Object[Index] = Value
238
end
239
Object.Parent = Parent
240
Object.Name = Name
241
return Object
242
end
243
Naifu = New("Part",chara,"Naifu",{BrickColor = BrickColor.new("Dark stone grey"),FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 0.200000003, 2.09999967),CFrame = CFrame.new(-46.1688423, 1.71234488, -46.3381615, -0.556669891, -0.663414657, 0.499999702, -0.766044796, 0.642787278, 7.3450633e-07, -0.321393907, -0.383021802, -0.866025567),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
244
Mesh = New("SpecialMesh",Naifu,"Mesh",{Scale = Vector3.new(0.5, 0.699999988, 0.5),VertexColor = Vector3.new(0.5, 0.5, 0.5),MeshId = "rbxassetid://54430772",TextureId = "rbxassetid://54430066",MeshType = Enum.MeshType.FileMesh,})
245
Weld = New("ManualWeld",Naifu,"Weld",{Part0 = Naifu,Part1 = LeftArm,C0 = CFrame.new(0, 0, 0, -0.556669891, -0.766044796, -0.321393907, -0.663414657, 0.642787278, -0.383021802, 0.499999702, 7.3450633e-07, -0.866025567),C1 = CFrame.new(-0.0408859253, -1.28767514, 0.650009155, -0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, -0.866025388),})
246
TEC9 = New("Part",chara,"TEC9",{BrickColor = BrickColor.new("Dark stone grey"),Transparency = 1,Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 1.20000005, 1.79999959),CFrame = CFrame.new(-56.3000031, 1.29999971, -46.6999931, -1, -1.00172471e-07, -1.61844298e-08, 5.16190539e-08, -8.19882651e-09, 1, -1.29974794e-07, 1, -4.67569983e-08),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
247
Mesh = New("SpecialMesh",TEC9,"Mesh",{Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012),MeshId = "rbxassetid://742046473",TextureId = "rbxassetid://742046691",MeshType = Enum.MeshType.FileMesh,})
248
Weld = New("ManualWeld",TEC9,"Weld",{Part0 = TEC9,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, -1, 5.16190539e-08, -1.29974794e-07, -1.00172471e-07, -8.19882651e-09, 1, -1.61844298e-08, 1, -4.67569983e-08),C1 = CFrame.new(-0.0999984741, -1.70001817, -7.62939453e-06, -1, 0, 0, 0, 1, 0, 0, 0, -1),})
249
DBarrel = New("Part",chara,"DBarrel",{BrickColor = BrickColor.new("Dark stone grey"),Transparency = 1,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.200000018, 0.799999952, 2.09999967),CFrame = CFrame.new(-42.2655792, 3.62635231, -28.7166176, 0.99998486, 0.00129485771, -0.00535738515, -0.00132099993, 0.999987245, -0.0048789978, 0.00535099953, 0.00488600042, 0.999973774),CanCollide = false,BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.388235, 0.372549, 0.384314),})
250
Mesh = New("SpecialMesh",DBarrel,"Mesh",{Scale = Vector3.new(0.00700000022, 0.00700000022, 0.00700000022),MeshId = "rbxassetid://438826329",TextureId = "rbxassetid://438826340",MeshType = Enum.MeshType.FileMesh,})
251
Weld = New("ManualWeld",DBarrel,"Weld",{Part0 = DBarrel,Part1 = RightArm,C0 = CFrame.new(0, 0, 0, 0.99998486, -0.00132099993, 0.00535099953, 0.00129485771, 0.999987245, 0.00488600042, -0.00535738515, -0.0048789978, 0.999973774),C1 = CFrame.new(0.00952529907, -1.46699142, -0.100050688, -0.868691146, -0.00176300027, 0.495351046, -0.495353371, 0.00488599995, -0.868677914, -0.000888805604, -0.999986589, -0.00511773303),})
252
253
local att1 = Instance.new("Attachment",Naifu)
254
att1.Position = Vector3.new(0,.2,-.2)
255
local att2 = Instance.new("Attachment",Naifu)
256
att2.Position = Vector3.new(0,.1,1.5)
257
local tr1 = Instance.new("Trail",Naifu)
258
tr1.Color = ColorSequence.new(Color3.new(.5,.5,.5),Color3.new(1,1,1))
259
tr1.Transparency = NumberSequence.new(0,1)
260
tr1.Lifetime = .5
261
tr1.Enabled = false
262
tr1.Attachment0 = att1
263
tr1.Attachment1 = att2
264
265
if chara:FindFirstChild("FakeHeadM") then
266
local CorruptFace = New("Decal",chara.FakeHeadM.FakeHead,"Corrupt",{Texture = "rbxassetid://1000657824",})
267
chara.FakeHeadM.FakeHead.Normal:Destroy()
268
chara.FakeHeadM.FakeHead.Lood:Destroy()
269
chara.FakeHeadM.FakeHead.Rooped:Destroy()
270
chara.FaysG:Destroy()
271
chara.FakeHeadM.Ahoge:Destroy()
272
for i,v in pairs(chara:GetDescendants()) do
273
if v.Name == "SpecPart" or v.Name == "Ears1Part" then
274
v:Destroy()
275
elseif v.Name == "Ears2Part" then
276
v.Transparency = 0
277
end
278
end
279
end
280
for i, v in pairs(chara:children()) do
281
if v:IsA("Shirt") or v:IsA("Pants") then
282
v:Destroy()
283
elseif v.Name == "Chest" then
284
for a, b in pairs(v:children()) do
285
if b.Name ~= "Tail" then
286
b.Transparency = 1
287
end
288
end
289
end
290
end
291
local sh = Instance.new("Shirt",chara)
292
local pn = Instance.new("Pants",chara)
293
sh.ShirtTemplate = "rbxassetid://567462542"
294
pn.PantsTemplate = "rbxassetid://1521666087"
295
---------------------------
296
297
function rayCast(Position, Direction, Range, Ignore)
298
return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
299
end 
300
301
function FindNearestTorso(Position, Distance, SinglePlayer)
302
if SinglePlayer then
303
return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
304
end
305
local List = {}
306
for i, v in pairs(workspace:GetDescendants()) do
307
if v:IsA("Model") then
308
if v:findFirstChild("Head") then
309
if v ~= chara then
310
if (v.Head.Position - Position).magnitude <= Distance then
311
table.insert(List, v)
312
end 
313
end 
314
end 
315
end 
316
end
317
return List
318
end
319
320
EffectModel = Create("Model"){
321
Parent = chara,
322
Name = "Effects",
323
}
324
325
--Effect Functions--
326
Effects = {
327
328
Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
329
local p = Instance.new("Part",EffectModel)
330
p.BrickColor = BrickColor.new(colour)
331
p.Size = partsize
332
p.Anchored = true
333
p.CanCollide = false
334
p.Material = matr
335
p.CFrame = cf
336
if inverse == true then
337
p.Transparency = 1
338
else
339
p.Transparency = 0
340
end
341
local m = Instance.new("BlockMesh",p)
342
m.Scale = meshstart
343
coroutine.wrap(function()
344
for i=0,1,factor do
345
swait()
346
if inverse == true then
347
p.Transparency = 1-i
348
else
349
p.Transparency = i
350
end
351
m.Scale = m.Scale + meshadd
352
if spin == true then
353
p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
354
end
355
end
356
p:Destroy()
357
end)()
358
return p
359
end,
360
361
Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
362
local p = Instance.new("Part",EffectModel)
363
p.BrickColor = BrickColor.new(colour)
364
p.Size = partsize
365
p.Anchored = true
366
p.CanCollide = false
367
p.Material = matr
368
p.CFrame = cf
369
if inverse == true then
370
p.Transparency = 1
371
else
372
p.Transparency = 0
373
end
374
local m = Instance.new("SpecialMesh",p)
375
m.MeshType = "Sphere"
376
m.Scale = meshstart
377
coroutine.wrap(function()
378
for i=0,1,factor do
379
swait()
380
if inverse == true then
381
p.Transparency = 1-i
382
else
383
p.Transparency = i
384
end
385
m.Scale = m.Scale + meshadd
386
end
387
p:Destroy()
388
end)()
389
return p
390
end,
391
392
Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
393
local p = Instance.new("Part",EffectModel)
394
p.BrickColor = BrickColor.new(colour)
395
p.Size = partsize
396
p.Anchored = true
397
p.CanCollide = false
398
p.Material = matr
399
p.CFrame = cf
400
if inverse == true then
401
p.Transparency = 1
402
else
403
p.Transparency = 0
404
end
405
local m = Instance.new("CylinderMesh",p)
406
m.Scale = meshstart
407
coroutine.wrap(function()
408
for i=0,1,factor do
409
swait()
410
if inverse == true then
411
p.Transparency = 1-i
412
else
413
p.Transparency = i
414
end
415
m.Scale = m.Scale + meshadd
416
end
417
p:Destroy()
418
end)()
419
return p
420
end,
421
422
Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
423
local p = Instance.new("Part",EffectModel)
424
p.BrickColor = BrickColor.new(colour)
425
p.Size = Vector3.new()
426
p.Anchored = true
427
p.CanCollide = false
428
p.CFrame = cf
429
if inverse == true then
430
p.Transparency = 1
431
else
432
p.Transparency = 0
433
end
434
local m = Instance.new("SpecialMesh",p)
435
m.MeshId = "rbxassetid://20329976"
436
m.Scale = meshstart
437
coroutine.wrap(function()
438
for i=0,1,factor do
439
swait()
440
if inverse == true then
441
p.Transparency = 1-i
442
else
443
p.Transparency = i
444
end
445
m.Scale = m.Scale + meshadd
446
p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
447
end
448
p:Destroy()
449
end)()
450
return p
451
end,
452
453
Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
454
local p = Instance.new("Part",EffectModel)
455
p.BrickColor = BrickColor.new(colour)
456
p.Size = Vector3.new()
457
p.Anchored = true
458
p.CanCollide = false
459
p.CFrame = cf
460
if inverse == true then
461
p.Transparency = 1
462
else
463
p.Transparency = 0
464
end
465
local m = Instance.new("SpecialMesh",p)
466
m.MeshId = "rbxassetid://3270017"
467
m.Scale = meshstart
468
coroutine.wrap(function()
469
for i=0,1,factor do
470
swait()
471
if inverse == true then
472
p.Transparency = 1-i
473
else
474
p.Transparency = i
475
end
476
m.Scale = m.Scale + meshadd
477
end
478
p:Destroy()
479
end)()
480
return p
481
end,
482
483
Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
484
local p = Instance.new("Part",EffectModel)
485
p.BrickColor = BrickColor.new(colour)
486
p.Size = Vector3.new()
487
p.Anchored = true
488
p.CanCollide = false
489
p.CFrame = cf
490
if inverse == true then
491
p.Transparency = 1
492
else
493
p.Transparency = 0
494
end
495
local m = Instance.new("SpecialMesh",p)
496
m.MeshId = meshid
497
m.TextureId = textid
498
m.Scale = meshstart
499
coroutine.wrap(function()
500
for i=0,1,factor do
501
swait()
502
if inverse == true then
503
p.Transparency = 1-i
504
else
505
p.Transparency = i
506
end
507
m.Scale = m.Scale + meshadd
508
p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
509
end
510
p:Destroy()
511
end)()
512
return p
513
end,
514
515
Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
516
local p = Instance.new("Part",EffectModel)
517
p.BrickColor = BrickColor.new(colour)
518
p.Size = partsize
519
p.Anchored = true
520
p.CanCollide = false
521
p.Material = matr
522
p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
523
if inverse == true then
524
p.Transparency = 1
525
else
526
p.Transparency = 0
527
end
528
local m = Instance.new("SpecialMesh",p)
529
m.MeshType = "Sphere"
530
m.Scale = meshstart
531
coroutine.wrap(function()
532
for i=0,1,factor do
533
swait()
534
if inverse == true then
535
p.Transparency = 1-i
536
else
537
p.Transparency = i
538
end
539
m.Scale = m.Scale + meshadd
540
p.CFrame = p.CFrame * CFrame.new(0,move,0)
541
end
542
p:Destroy()
543
end)()
544
return p
545
end,
546
547
}
548
549
function chatfunc(text)
550
coroutine.wrap(function()
551
if chara:FindFirstChild("TalkingBillBoard")~= nil then
552
chara:FindFirstChild("TalkingBillBoard"):destroy()
553
end
554
local naeeym2 = Instance.new("BillboardGui",chara)
555
naeeym2.Size = UDim2.new(0,100,0,40)
556
naeeym2.StudsOffset = Vector3.new(0,3,0)
557
naeeym2.Adornee = chara.Head
558
naeeym2.Name = "BLABLABLA"
559
local tecks2 = Instance.new("TextLabel",naeeym2)
560
tecks2.BackgroundTransparency = 1
561
tecks2.BorderSizePixel = 0
562
tecks2.Text = ""
563
tecks2.Font = "Antique"
564
tecks2.FontSize = "Size24"
565
tecks2.TextStrokeTransparency = 0
566
tecks2.TextColor3 = Color3.new(0,0,0)
567
tecks2.TextStrokeColor3 = Color3.new(1,0,0)
568
tecks2.Size = UDim2.new(1,0,0.5,0)coroutine.wrap(function()
569
while tecks2 ~= nil do
570
swait()
571
tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
572
end
573
end)()
574
for i = 1,string.len(text),1 do
575
tecks2.Text = string.sub(text,1,i)
576
swait()
577
end
578
swait(30)
579
for i = 1, 5 do
580
swait()
581
tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
582
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
583
tecks2.TextTransparency = tecks2.TextTransparency + .2
584
end
585
naeeym2:Destroy()
586
end)()
587
end
588
589
function GetDudesTorso(c)
590
local torsy = (c:findFirstChild("Torso") or c:findFirstChild("UpperTorso"))
591
if torsy ~= nil then
592
return torsy
593
end
594
end
595
596
function BodyVel(part,faws)
597
local bodyvel = Instance.new("BodyVelocity",part)
598
local pep = 10000000
599
bodyvel.P = pep
600
bodyvel.MaxForce = Vector3.new(pep,pep,pep)
601
bodyvel.Velocity = faws
602
debby:AddItem(bodyvel,.2)
603
end
604
605
function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
606-
if dude and dude ~= chara and dude.Name ~= "CKbackup" and dude.Name ~= "qeeeqx" and dude.Name ~= "Salvo_Starly" then
606+
if dude and dude ~= chara and dude.Name ~= "CKbackup" and dude.Name ~= "qeeeqx" and dude.Name ~= "TameDoNotClick" then
607
if dude:FindFirstChild("HITO") then return end
608
local debounce = Instance.new("BoolValue",dude)
609
debounce.Name = "HITO"
610
debby:AddItem(debounce,toim)
611
local hum = dude:FindFirstChildOfClass("Humanoid")
612
local dam = dmg+math.random(-env,env)
613
local teksu = "-"..dam
614
if hum then
615
local finhel = hum.Health - dam
616
if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
617
Instance.new("BoolValue",dude).Name = "DEATHED"
618
local soaa = Instance.new("Sound",dude.Head)
619
local cho = math.random(1,5)
620
if cho == 1 then
621
soaa.SoundId = "rbxassetid://111896685"
622
elseif cho == 2 then
623
soaa.SoundId = "rbxassetid://535528169"
624
elseif cho == 3 then
625
soaa.SoundId = "rbxassetid://1080363252"
626
elseif cho == 4 then
627
soaa.SoundId = "rbxassetid://147758746"
628
elseif cho == 5 then
629
soaa.SoundId = "rbxassetid://626777433"
630
soaa.Volume = .2
631
soaa.TimePosition = 1
632
end
633
game:service'Debris':AddItem(soaa,6)
634
soaa:Play()
635
end
636
hum.Health = hum.Health - dam
637
end
638
coroutine.wrap(function()
639
local naeeym2 = Instance.new("BillboardGui",dude)
640
naeeym2.Size = UDim2.new(0,100,0,40)
641
naeeym2.StudsOffset = Vector3.new(0,3,0)
642
naeeym2.Adornee = dude:FindFirstChild("Head")
643
naeeym2.Name = "TalkingBillBoard"
644
local tecks2 = Instance.new("TextLabel",naeeym2)
645
tecks2.BackgroundTransparency = 1
646
tecks2.BorderSizePixel = 0
647
tecks2.Text = teksu
648
tecks2.Font = "Antique"
649
tecks2.TextSize = 24
650
tecks2.TextStrokeTransparency = 0
651
tecks2.TextColor3 = Color3.new(0,0,0)
652
tecks2.TextStrokeColor3 = Color3.new(1,0,0)
653
tecks2.Size = UDim2.new(1,0,0.5,0)
654
swait(10)
655
for i = 0,1,.05 do
656
swait()
657
tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
658
tecks2.TextStrokeTransparency = i
659
tecks2.TextTransparency = i
660
end
661
naeeym2:Destroy()
662
end)()
663
local torsy = GetDudesTorso(dude)
664
if torsy then
665
for i=1,dam/5 do
666
local blp = Instance.new("Part",EffectModel)
667
blp.Size = Vector3.new(.3,.3,.3)
668
blp.BrickColor = BrickColor.new("Crimson")
669
blp.CFrame = torsy.CFrame
670
blp.Velocity = torsy.CFrame.lookVector*5
671
coroutine.wrap(function()
672
swait(10)
673
blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
674
for i=0,1,.1  do
675
swait()
676
blp.Transparency = i
677
blp.Size = blp.Size + Vector3.new(.02,-.02,.02)
678
end
679
blp:Destroy()
680
end)()
681
end
682
if efftyp == "Blunt" then
683
puncheff(torsy)
684
elseif efftyp == "Sharp" then
685
slasheff(torsy)
686
end
687
if faws ~= 0 then
688
BodyVel(torsy,faws)
689
end
690
if trip == true then
691
torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
692
torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
693
end
694
end
695
end
696
end
697
698
function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
699
for _, c in pairs(workspace:GetDescendants()) do
700
local hum = c:FindFirstChildOfClass("Humanoid")
701-
if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil and c.Name ~= "CKbackup" and c.Name ~= "qeeeqx" and c.Name ~= "Salvo_Starly" then"Salvo_Starly" then
701+
if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil and c.Name ~= "CKbackup" and c.Name ~= "qeeeqx" and c.Name ~= "TameDoNotClick" then"TameDoNotClick" then
702
local head = GetDudesTorso(c)
703
if head ~= nil then
704
local targ = head.Position - par.Position
705
local mag = targ.magnitude
706
if magni >= mag and c ~= chara then
707
Dmg(c,dmg,env,faws,trip,efftyp,toim)
708
end
709
end
710
end
711
end
712
end
713
714
function puncheff(par)
715
if par.Parent:FindFirstChild("DebounceHit")==nil then
716
so(386946017,par,math.random(80,120)/100,1)
717
Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(2,2,2),"Neon","White",false,.1)
718
end
719
end
720
721
function slasheff(par)
722
if par.Parent:FindFirstChild("DebounceHit")==nil then
723
local cho = math.random(1,3)
724
if cho == 1 then
725
so(444667824,par,1,1)
726
elseif cho == 2 then
727
so(444667844,par,1,1)
728
elseif cho == 3 then
729
so(444667859,par,1,1)
730
end
731
--function(cf,partsize,meshstart,meshadd,matr,colour,factor)
732
Effects.Sphere(par.CFrame*CFrame.Angles(math.random(0,360),math.random(0,360),math.random(0,360)),Vector3.new(.5,.5,.5),Vector3.new(1,0,1),Vector3.new(0,5,0),"Neon","Really red",false,.1)
733
end
734
end
735
736
local mus = Instance.new("Sound",Head)
737
mus.Name = "mus"
738
mus.SoundId = "rbxassetid://581195737"
739
mus.Looped = true
740
mus.Volume = 1
741
mus:Play()
742
743
coroutine.wrap(function()
744
chatfunc("I'm tired of all of this crap..")
745
swait(90)
746
chatfunc("Now the day of reckoning has begun..")
747
swait(90)
748
chatfunc("This shall be my finest hour..")
749
swait(90)
750
chatfunc("ICH BIN GOTT! BERZERKER!")
751
end)()
752
753
function smek()
754
attack = true
755
Humanoid.WalkSpeed = 16
756
for i=0,1,.1 do
757
swait()
758
PlayAnimationFromTable({		
759
CFrame.new(0.0506498702, -5.11459177e-07, -0.0829713419, 0.76604414, 0, 0.642788053, -2.68192082e-07, 1.00000834, 3.19618522e-07, -0.642793417, -4.17232513e-07, 0.766050518),
760
CFrame.new(0.0446723551, 1.46553934, 0.0211830139, 0.735023618, 0.242944986, -0.633023083, -0.171009988, 0.969846427, 0.173647657, 0.656122029, -0.0193818808, 0.754406095),
761
CFrame.new(1.40946591, -0.0135071278, 0, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
762
CFrame.new(-1.55299187, 0.416839302, -0.457236975, 0.68952775, 0.492403448, -0.53112185, -0.633021951, 0.766044736, -0.11161866, 0.35190171, 0.413175911, 0.839911342),
763
CFrame.new(0.499983132, -2.00001597, -9.13441181e-06, 0.76604414, 0, -0.642788053, 0, 1, 0, 0.642788053, 0, 0.76604414),
764
CFrame.new(-0.500005186, -2.00001597, -1.22189522e-06, 0.98480773, 0, 0.173648447, 0, 1, 0, -0.173648447, 0, 0.98480773),
765
}, .3, false)
766
end
767
Humanoid.WalkSpeed = 2
768
tr1.Enabled = true
769
so(536642316,Naifu,1,1)
770
for i=0,1.4,.2 do
771
swait()
772
PlayAnimationFromTable({		
773
CFrame.new(0.0327370502, 1.24810251e-09, 0.00299140904, 0.64278698, 0, -0.766044974, 3.19616191e-07, 1, 2.68189382e-07, 0.766044974, -4.17229018e-07, 0.64278698),
774
CFrame.new(-0.0331632644, 1.46557713, -0.11364907, 0.656121135, -0.0193833038, 0.754413188, -0.171011418, 0.969854534, 0.173649102, -0.735024333, -0.24294585, 0.633027315),
775
CFrame.new(1.24921072, -0.104290992, 0.29409039, 0.93969059, 0.26200676, 0.21985054, -0.342026025, 0.719844162, 0.604022086, -2.68220901e-07, -0.642788291, 0.766043901),
776
CFrame.new(-0.663761616, 0.985711455, -0.487553686, 0.383021712, -0.64278698, -0.663414836, -0.866025984, 0, -0.499998987, 0.321392834, 0.766044974, -0.556670249),
777
CFrame.new(0.500005841, -2.00003386, -4.52250242e-06, 0.984807551, 0, -0.173649341, 0, 1, 0, 0.173649341, 0, 0.984807551),
778
CFrame.new(-0.499993563, -2.00003386, -1.44541264e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
779
}, .5, false)
780
MagnitudeDmg(Naifu,3,40,3,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
781
end
782
swait(5)
783
Humanoid.WalkSpeed = 8
784
tr1.Enabled = false
785
attack = false
786
end
787
788
zhold = true
789
function shoot()
790
attack = true
791
so(169799883,TEC9,1,1)
792
for i=0,1,.1 do
793
swait()
794
PlayAnimationFromTable({		
795
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
796
CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
797
CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
798
CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
799
CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
800
CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
801
}, .3, false)
802
end
803
Humanoid.WalkSpeed = 2
804
local ref = Instance.new("Part",chara)
805
ref.Size = Vector3.new(0,0,0)
806
ref.Anchored = true
807
ref.CanCollide = false
808
ref.Transparency = 1
809
TEC9.Transparency = 0
810
for i=0,1,.1 do
811
swait()
812
PlayAnimationFromTable({		
813
CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
814
CFrame.new(0.0674266815, 1.48262143, -0.0571227223, 0.939692736, 0.0593910702, -0.33682391, 0, 0.984807849, 0.173647985, 0.342019886, -0.163175747, 0.925416768),
815
CFrame.new(1.62663007, 0.722141325, -0.273156077, 0.883022428, -0.342019916, 0.321393609, 0.342019916, 0, -0.939692736, 0.321393609, 0.939692736, 0.116977602),
816
CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
817
CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
818
CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
819
}, .3, false)
820
end
821
swait(5)
822
local shots = 20
823
repeat
824
so(745308042,TEC9,1,1)
825
ref.CFrame = Mouse.Hit
826
MagnitudeDmg(ref,2,12,2,RootPart.CFrame.lookVector*3,false,"Shot",.1)
827
local hitpt = Instance.new("Part",EffectModel)
828
hitpt.Size = Vector3.new(0,0,.3)
829
hitpt.CFrame = TEC9.CFrame * CFrame.new(0,.465,.1)-- * CFrame.Angles(math.rad(90),0,0)
830
hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
831
local hitm = Instance.new("SpecialMesh",hitpt)
832
hitm.MeshId = "rbxassetid://94295100"
833
hitm.TextureId = "rbxassetid://94287792"
834
hitm.Scale = Vector3.new(3,3,3.5)
835
coroutine.wrap(function()
836
swait(30)
837
for i = 0,1,.1 do
838
swait()
839
hitpt.Transparency = i
840
end
841
hitpt:Destroy()
842
end)()
843
Effects.Block(TEC9.CFrame*CFrame.new(-.05,.465,-.9),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.1)
844
shots = shots - 1
845
for i=0,1 do
846
swait()
847
PlayAnimationFromTable({		
848
CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
849
CFrame.new(0.0674266815, 1.48262143, -0.0571227223, 0.939692736, 0.0593910702, -0.33682391, 0, 0.984807849, 0.173647985, 0.342019886, -0.163175747, 0.925416768),
850
CFrame.new(1.62663007, 0.722141325, -0.273156077, 0.883022428, -0.342019916, 0.321393609, 0.342019916, 0, -0.939692736, 0.321393609, 0.939692736, 0.116977602)*CFrame.Angles(math.rad(math.random(-5,5)),math.rad(math.random(-5,5)),math.rad(math.random(-5,5))),
851
CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
852
CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
853
CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
854
}, .3, false)
855
end
856
until zhold == false or shots == 0
857
swait(5)
858
ref:Destroy()
859
for i=0,1,.25 do
860
swait()
861
PlayAnimationFromTable({		
862
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
863
CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
864
CFrame.new(1.39502811, 0.908103704, 0.515749812, -0.213331953, -0.84539932, -0.489683062, 0.875778735, 0.056671422, -0.479374528, 0.433013916, -0.531119943, 0.728292942),
865
CFrame.new(-1.5091548, 0.323206276, -0.384231716, 0.750000238, 0.433013409, -0.499999136, -0.500000179, 0.866025388, 6.10661004e-07, 0.433012158, 0.249999225, 0.866025925),
866
CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
867
CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
868
}, .4, false)
869
end
870
so(1159825801,TEC9,1,1)
871
swait(15)
872
so(211134014,TEC9,1,1)
873
for i=0,1,.1 do
874
swait()
875
PlayAnimationFromTable({		
876
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
877
CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
878
CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
879
CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
880
CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
881
CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
882
}, .3, false)
883
end
884
TEC9.Transparency = 1
885
Humanoid.WalkSpeed = 8
886
attack = false
887
end
888
889
function dbshoot()
890
attack = true
891
so(169799883,DBarrel,1,1)
892
for i=0,1,.1 do
893
swait()
894
PlayAnimationFromTable({		
895
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
896
CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
897
CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
898
CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
899
CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
900
CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
901
}, .3, false)
902
end
903
Humanoid.WalkSpeed = 2
904
DBarrel.Transparency = 0
905
for i=0,1,.1 do
906
swait()
907
PlayAnimationFromTable({		
908
CFrame.new(0, 0.0149096567, 0.133909225, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
909
CFrame.new(0, 1.43158329, -0.187937319, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
910
CFrame.new(1.0840646, 0.399937928, -0.718070745, 0.868691146, 0.495353371, 0.000888805604, -0.0877529308, 0.15565595, -0.983905911, -0.487519473, 0.854632378, 0.17868565),
911
CFrame.new(-1.35562694, -0.0255649146, 0.396688521, 0.939692378, -0.116977789, 0.321394831, -2.60770321e-07, 0.939692855, 0.342019856, -0.342021167, -0.321393549, 0.883021951),
912
CFrame.new(0.499995321, -2.00755072, 0.218008161, 0.939692736, 0, -0.342019886, 0.0593910702, 0.984807849, 0.163175747, 0.33682391, -0.173647985, 0.925416768),
913
CFrame.new(-0.499996126, -2.00755, 0.218011439, 0.939692736, 0, 0.342019886, -0.0593910702, 0.984807849, 0.163175747, -0.33682391, -0.173647985, 0.925416768),
914
}, .3, false)
915
end
916
swait(5)
917
so(132455829,DBarrel,1,1)
918
local ref = Instance.new("Part",chara)
919
ref.Size = Vector3.new(0,0,0)
920
ref.Anchored = true
921
ref.CanCollide = false
922
ref.Transparency = 1
923
ref.CFrame = RootPart.CFrame*CFrame.new(0,0,-6)
924
MagnitudeDmg(ref,4,100,0,RootPart.CFrame.lookVector*12,true,"Shot",.1)
925
Effects.Block(DBarrel.CFrame*CFrame.new(.1,.3,1.1),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.05)
926
Effects.Block(DBarrel.CFrame*CFrame.new(-.1,.3,1.1),Vector3.new(1,1,1),Vector3.new(),Vector3.new(.1,.1,.1),"Neon","Bright yellow",true,false,.05)
927
ref:Destroy()
928
for i=0,1,.1 do
929
swait()
930
PlayAnimationFromTable({		
931
CFrame.new(0, 0.0149102025, 0.133909985, 1, 0, 0, 0, 0.984812796, -0.173648849, 0, 0.173648849, 0.984812796),
932
CFrame.new(0, 1.43158948, 0.0120660895, 1, 0, 0, 0, 1.00000262, -1.1920929e-07, 0, 1.1920929e-07, 1.00000262),
933
CFrame.new(1.20370889, 0.765974879, -0.570772648, 0.868689418, 0.319091678, -0.378892303, -0.0877506882, -0.653664529, -0.751683295, -0.48752436, 0.686227262, -0.539830863),
934
CFrame.new(-1.49794042, 0.21531868, 0.355185598, 0.923031092, 0.211469814, 0.321394384, -0.321394086, 0.883024752, 0.342021078, -0.211472049, -0.418990374, 0.883024335),
935
CFrame.new(0.499998927, -2.00757003, 0.218012124, 0.939692736, 0, -0.342019886, 0.0593913682, 0.984812796, 0.163176581, 0.336825609, -0.173648849, 0.925421476),
936
CFrame.new(-0.500004649, -2.00756979, 0.218013197, 0.939692736, 0, 0.342019886, -0.0593913682, 0.984812796, 0.163176581, -0.336825609, -0.173648849, 0.925421476),
937
}, .3, false)
938
end
939
swait(10)
940
for i=0,1,.25 do
941
swait()
942
PlayAnimationFromTable({		
943
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
944
CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
945
CFrame.new(1.39502811, 0.908103704, 0.515749812, -0.213331953, -0.84539932, -0.489683062, 0.875778735, 0.056671422, -0.479374528, 0.433013916, -0.531119943, 0.728292942),
946
CFrame.new(-1.5091548, 0.323206276, -0.384231716, 0.750000238, 0.433013409, -0.499999136, -0.500000179, 0.866025388, 6.10661004e-07, 0.433012158, 0.249999225, 0.866025925),
947
CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
948
CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
949
}, .4, false)
950
end
951
for i=1,2 do
952
so(1159825801,DBarrel,1,1)
953
local hitpt = Instance.new("Part",EffectModel)
954
hitpt.Size = Vector3.new(0,0,.3)
955
hitpt.CFrame = TEC9.CFrame * CFrame.Angles(math.rad(90),0,0)
956
hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
957
local hitm = Instance.new("SpecialMesh",hitpt)
958
hitm.MeshId = "rbxassetid://94248124"
959
hitm.TextureId = "rbxassetid://94219470"
960
hitm.Scale = Vector3.new(1.2,1.2,1.2)
961
coroutine.wrap(function()
962
swait(30)
963
for i = 0,1,.1 do
964
swait()
965
hitpt.Transparency = i
966
end
967
hitpt:Destroy()
968
end)()
969
swait()
970
end
971
swait(15)
972
so(211134014,DBarrel,1,1)
973
for i=0,1,.1 do
974
swait()
975
PlayAnimationFromTable({		
976
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
977
CFrame.new(0.0838357508, 1.42719412, -0.166348219, 0.857789159, 0.297403604, -0.419224113, -0.141315028, 0.920631945, 0.363959879, 0.49419412, -0.252958179, 0.83173573),
978
CFrame.new(1.22406256, -0.130654663, 0.277106255, 0.941511214, 0.33170712, 0.0593906641, -0.33170709, 0.881204426, 0.336822212, 0.0593910143, -0.336822152, 0.939693391),
979
CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
980
CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
981
CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
982
}, .3, false)
983
end
984
DBarrel.Transparency = 1
985
Humanoid.WalkSpeed = 8
986
attack = false
987
end
988
989
Mouse.Button1Down:connect(function()
990
if attack == false then
991
smek()
992
end
993
end)
994
995
local sprintt = 0
996
Mouse.KeyDown:connect(function(k)
997
k = k:lower()
998
if k=='m' then
999
if mus.IsPlaying == true then
1000
mus:Stop()
1001
elseif mus.IsPaused == true then
1002
mus:Play()
1003
end
1004
end
1005
if attack == false then
1006
if k == 'z' then
1007
zhold = true
1008
shoot()
1009
elseif k == 'x' then
1010
dbshoot()
1011
end
1012
end
1013
end)
1014
1015
Mouse.KeyUp:connect(function(k)
1016
k = k:lower()
1017
if k == 'z' then
1018
zhold = false
1019
end
1020
end)
1021
1022
coroutine.wrap(function()
1023
while 1 do
1024
swait()
1025
if doe <= 360 then
1026
doe = doe + 2
1027
else
1028
doe = 0
1029
end
1030
end
1031
end)()
1032
while true do
1033
swait()
1034
while true do
1035
swait()
1036
if Head:FindFirstChild("mus")==nil then
1037
mus = Instance.new("Sound",Head)
1038
mus.Name = "mus"
1039
mus.SoundId = "rbxassetid://581195737"
1040
mus.Looped = true
1041
mus.Volume = 1
1042
mus:Play()
1043
end
1044
if sprintt >= 1 then
1045
sprintt = sprintt - 1
1046
end
1047
Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
1048
velocity = RootPart.Velocity.y
1049
sine = sine + change
1050
local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
1051
if RootPart.Velocity.y > 1 and hit == nil then 
1052
Anim = "Jump"
1053
if attack == false then
1054
PlayAnimationFromTable({
1055
CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
1056
CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
1057
CFrame.new(1.20945489, -0.213504896, 3.55388607e-07, 0.939692736, 0.342019916, 1.53461215e-07, -0.342019945, 0.939692736, 1.93715096e-07, -8.56816769e-08, -2.23517418e-07, 1.00000012),
1058
CFrame.new(-1.20945573, -0.213503733, 5.0439985e-07, 0.939692736, -0.342019916, -1.53461215e-07, 0.342019945, 0.939692736, 1.93715096e-07, 8.56816769e-08, -2.23517418e-07, 1.00000012),
1059
CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
1060
CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
1061
}, .3, false)
1062
end
1063
elseif RootPart.Velocity.y < -1 and hit == nil then 
1064
Anim = "Fall"
1065
if attack == false then
1066
PlayAnimationFromTable({
1067
CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
1068
CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
1069
CFrame.new(1.55285025, 0.466259956, -9.26282269e-08, 0.766043842, -0.642788351, -6.46188241e-08, 0.642788291, 0.766043961, -7.4505806e-08, 1.04308128e-07, 1.49011612e-08, 1.00000012),
1070
CFrame.new(-1.5605253, 0.475036323, -2.10609159e-07, 0.766043842, 0.642788351, 6.46188241e-08, -0.642788291, 0.766043961, -7.4505806e-08, -1.04308128e-07, 1.49011612e-08, 1.00000012),
1071
CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
1072
CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
1073
}, .3, false)
1074
end
1075
elseif Torsovelocity < 1 and hit ~= nil then
1076
Anim = "Idle"
1077
if attack == false then
1078
change = 1
1079
PlayAnimationFromTable({
1080
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
1081
CFrame.new(0, 1.48262823, -0.0984786302, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
1082
CFrame.new(1.20945334, -0.213505104, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
1083
CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
1084
CFrame.new(0.499997705, -2, -2.77906656e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
1085
CFrame.new(-0.50000149, -2, -2.11596489e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849) * CFrame.new(0,-.05 * math.cos((sine)/10), 0),
1086
}, .3, false)
1087
end
1088
elseif Torsovelocity > 2 and hit ~= nil then
1089
Anim = "Walk"
1090
if attack == false then
1091
Humanoid.WalkSpeed = 8
1092
PlayAnimationFromTable({
1093
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0- .08 * math.cos((sine) / 5), 0) * CFrame.Angles(0, 0, 0),
1094
CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
1095
CFrame.new(1.5, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0, 0, -.5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), 
1096
CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
1097
CFrame.new(0.540300786, -1.99793816, -9.82598067e-07, 0.998698533, -0.0510031395, 6.36324955e-07, 0.0510031395, 0.998698533, -1.00461093e-05, -8.35937328e-08, 1.08393433e-05, 1.00000024) * CFrame.new(0, 0, 0+ .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 - 30 * math.cos((sine) / 10)), 0, 0), 
1098
CFrame.new(-0.539563596, -1.99794078, 1.12228372e-06, 0.998635888, 0.0523072146, -1.77852357e-07, -0.0523072146, 0.998635888, -1.00715051e-05, -3.89727461e-07, 1.08406466e-05, 1.00000024) * CFrame.new(0, 0, 0- .5 * math.cos((sine) / 10)) * CFrame.Angles(math.rad(0 + 30 * math.cos((sine) / 10)), 0, 0), 
1099
}, .3, false)
1100
end
1101
end
1102
end
1103
end