View difference between Paste ID: tFfG36ZK and Y8FrnuH3
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("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
10
do
11
	script.Parent = owner.Character
12
	local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
13
	local function NewFakeEvent()
14
		local Bind = Instance.new("BindableEvent")
15
		local Fake;Fake = {Connections = {},
16
		fakeEvent=true;
17
		Connect=function(self,Func)
18
			Bind.Event:connect(Func)
19
			self.Connections[Bind] = true
20
			return setmetatable({Connected = true},{
21
			__index = function (self,Index)
22
				if Index:lower() == "disconnect" then
23
					return function() Fake.Connections[Bind] = false;self.Connected = false end
24
				end
25
				return Fake[Index]
26
			end;
27
			__tostring = function() return "Connection" end;
28
		})
29
		end}
30
		Fake.connect = Fake.Connect;return Fake;
31
	end
32
	local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
33
	local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
34
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
35
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
36
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
37
	local function TriggerEvent(self,Event,...)
38
		local Trigger = Mouse[Event]
39
		if Trigger and Trigger.fakeEvent and Trigger.Connections then
40
			for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
41
		end
42
	end
43
	Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
44
	Event.OnServerEvent:Connect(function(FiredBy,Input)
45
		if FiredBy.Name ~= owner.Name then return end
46
		if Input.MouseEvent then
47
			Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
48
		else
49
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
50
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
51
			for _,Action in pairs(ContextActionService.Actions) do
52
				for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
53
			end
54
			Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
55
			UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
56
		end
57
	end)
58
	InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
59
	Event.Parent = NLS([[
60
		local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
61
		local Input = function(Input,gameProcessedEvent)
62
			if gameProcessedEvent then return end
63
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
64
		end
65
		UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
66
		local Hit,Target
67
		while wait(1/30) do
68
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
69
				Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
70
			end
71
		end
72
	]],owner.Character)
73
end
74
RealGame = game;game = setmetatable({},{
75
	__index = function (self,Index)
76
		local Sandbox = function (Thing)
77
			if Thing:IsA("Player") then
78
				local RealPlayer = Thing
79
				return setmetatable({},{
80
					__index = function (self,Index)
81
						local Type = type(RealPlayer[Index])
82
						if Type == "function" then
83
							if Index:lower() == "getmouse" or Index:lower() == "mouse" then
84
								return function (self)return InternalData["Mouse"] end
85
							end
86
							return function (self,...)return RealPlayer[Index](RealPlayer,...) end
87
						end
88
						return RealPlayer[Index]
89
					end;
90
					__tostring = function(self) return RealPlayer.Name end
91
				})
92
			end
93
		end
94
		if RealGame[Index] then
95
			local Type = type(RealGame[Index])
96
			if Type == "function" then
97
				if Index:lower() == "getservice" or Index:lower() == "service" then
98
					return function (self,Service)
99
						local FakeServices = {
100
							["players"] = function()
101
								return setmetatable({},{
102
									__index = function (self2,Index2)
103
										local RealService = RealGame:GetService(Service)
104
										local Type2 = type(Index2)
105
										if Type2 == "function" then
106
											return function (self,...) return RealService[Index2](RealService,...)end
107
										else
108
											if Index2:lower() == "localplayer" then return Sandbox(owner) end
109
											return RealService[Index2]
110
										end
111
									end;
112
									__tostring = function(self) return RealGame:GetService(Service).Name end
113
								})
114
							end;
115
							["contextactionservice"] = function() return InternalData["ContextActionService"] end;
116
							["userinputservice"] = function() return InternalData["UserInputService"] end;
117
							["runservice"] = function()
118
								return setmetatable({},{
119
									__index = function(self2,Index2)
120
										local RealService = RealGame:GetService(Service)
121
										local Type2 = type(Index2)
122
										if Type2 == "function" then
123
											return function (self,...) return RealService[Index2](RealService,...) end
124
										else
125
											local RunServices = {
126
												["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
127
												["renderstepped"] = function() return RealService["Stepped"] end
128
											}
129
											if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
130
											return RealService[Index2]
131
										end
132
									end
133
								})
134
							end
135
						}
136
						if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
137
						return RealGame:GetService(Service)
138
					end
139
				end
140
				return function (self,...) return RealGame[Index](RealGame,...) end
141
			else
142
				if game:GetService(Index) then return game:GetService(Index) end
143
				return RealGame[Index]
144
			end
145
		end
146
		return nil
147
	end
148
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
149
150
wait(1/60)
151
Effects = { }
152
local Player = game:service'Players'.localPlayer
153
local chara = Player.Character
154
local Humanoid = chara:FindFirstChildOfClass("Humanoid")
155
local Mouse = Player:GetMouse()
156
local LeftArm = chara["Left Arm"]
157
local RightArm = chara["Right Arm"]
158
local LeftLeg = chara["Left Leg"]
159
local RightLeg = chara["Right Leg"]
160
local Head = chara.Head
161-
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,})
161+
162
local Camera = workspace.CurrentCamera
163
local RootPart = chara.HumanoidRootPart
164
local RootJoint = RootPart.RootJoint
165
local attack = false
166
local Anim = 'Idle'
167
local attacktype = 1
168
local delays = false
169
local play = true
170
local targetted = nil
171
local Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
172
local velocity = RootPart.Velocity.y
173
local sine = 0
174
local change = 1
175
local doe = 0
176
local Create = LoadLibrary("RbxUtility").Create
177
local debby = game:GetService("Debris")
178
Humanoid.WalkSpeed = 8
179
Humanoid.Animator.Parent = nil
180
chara.Animate.Parent = nil
181
182
local newMotor = function(part0, part1, c0, c1)
183
local w = Create('Motor'){
184
Parent = part0,
185
Part0 = part0,
186
Part1 = part1,
187
C0 = c0,
188
C1 = c1,
189
}
190
return w
191
end
192
193
function clerp(a, b, t)
194
return a:lerp(b, t)
195
end
196
197
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
198
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
199
200
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
201
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
202
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
203
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
204
RootJoint.C1 = CFrame.new(0, 0, 0)
205
RootJoint.C0 = CFrame.new(0, 0, 0)
206
Torso.Neck.C1 = CFrame.new(0, 0, 0)
207
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
208
209
local rarmc1 = RW.C1
210-
sh.ShirtTemplate = "rbxassetid://567462542"
210+
211-
pn.PantsTemplate = "rbxassetid://1521666087"
211+
212
local llegc1 = LH.C1
213
214
local resetc1 = false
215
216
function PlayAnimationFromTable(table, speed, bool)
217
RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
218
Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
219
RW.C0 = clerp(RW.C0, table[3], speed) 
220
LW.C0 = clerp(LW.C0, table[4], speed) 
221
RH.C0 = clerp(RH.C0, table[5], speed) 
222
LH.C0 = clerp(LH.C0, table[6], speed) 
223
if bool == true then
224
if resetc1 == false then
225
resetc1 = true
226
RootJoint.C1 = RootJoint.C1
227
Torso.Neck.C1 = Torso.Neck.C1
228
RW.C1 = rarmc1
229
LW.C1 = larmc1
230
RH.C1 = rlegc1
231
LH.C1 = llegc1
232
end
233
end
234
end
235
236
ArtificialHB = Instance.new("BindableEvent", script)
237
ArtificialHB.Name = "Heartbeat"
238
script:WaitForChild("Heartbeat")
239
frame = 0.03333333333333
240
tf = 0
241
allowframeloss = false
242
tossremainder = false
243
lastframe = tick()
244
script.Heartbeat:Fire()
245
game:GetService("RunService").Heartbeat:connect(function(s, p)
246
tf = tf + s
247
if tf >= frame then
248
if allowframeloss then
249
script.Heartbeat:Fire()
250
lastframe = tick()
251
else
252
for i = 1, math.floor(tf / frame) do
253
script.Heartbeat:Fire()
254
end
255
lastframe = tick()
256
end
257
if tossremainder then
258
tf = 0
259
else
260
tf = tf - frame * math.floor(tf / frame)
261
end
262
end
263
end)
264
function swait(num)
265
if num == 0 or num == nil then
266
ArtificialHB.Event:wait()
267
else
268
for i = 0, num do
269
ArtificialHB.Event:wait()
270
end
271
end
272
end
273
274
function RemoveOutlines(part)
275
part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
276
end
277
278
function so(id,par,pit,vol)
279
local sou = Instance.new("Sound", par or workspace)
280
if par == chara then
281
sou.Parent = chara.Torso
282
end
283
sou.Volume = vol
284
sou.Pitch = pit or 1
285
sou.SoundId = "rbxassetid://" .. id
286
sou.PlayOnRemove = true
287
sou:Destroy()
288
end
289
290
--This is just for builds--
291
New = function(Object, Parent, Name, Data)
292
local Object = Instance.new(Object)
293
for Index, Value in pairs(Data or {}) do
294
Object[Index] = Value
295
end
296
Object.Parent = Parent
297
Object.Name = Name
298
return Object
299
end
300
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),})
301
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://0",TextureId = "rbxassetid://0",MeshType = Enum.MeshType.FileMesh,})
302
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),})
303
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),})
304
Mesh = New("SpecialMesh",TEC9,"Mesh",{Scale = Vector3.new(0.300000012, 0.300000012, 0.300000012),MeshId = "rbxassetid://742046473",TextureId = "rbxassetid://742046691",MeshType = Enum.MeshType.FileMesh,})
305
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),})
306
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),})
307
Mesh = New("SpecialMesh",DBarrel,"Mesh",{Scale = Vector3.new(0.00700000022, 0.00700000022, 0.00700000022),MeshId = "rbxassetid://438826329",TextureId = "rbxassetid://438826340",MeshType = Enum.MeshType.FileMesh,})
308
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),})
309
310
local att1 = Instance.new("Attachment",Naifu)
311
att1.Position = Vector3.new(0,.2,-.2)
312
local att2 = Instance.new("Attachment",Naifu)
313
att2.Position = Vector3.new(0,.1,1.5)
314
local tr1 = Instance.new("Trail",Naifu)
315
tr1.Color = ColorSequence.new(Color3.new(.5,.5,.5),Color3.new(1,1,1))
316
tr1.Transparency = NumberSequence.new(0,1)
317
tr1.Lifetime = .5
318
tr1.Enabled = false
319
tr1.Attachment0 = att1
320
tr1.Attachment1 = att2
321
322
if chara:FindFirstChild("FakeHeadM") then
323
local CorruptFace = New("Decal",chara.FakeHeadM.FakeHead,"Corrupt",{Texture = "rbxassetid://1000657824",})
324
chara.FakeHeadM.FakeHead.Normal:Destroy()
325
chara.FakeHeadM.FakeHead.Lood:Destroy()
326
chara.FakeHeadM.FakeHead.Rooped:Destroy()
327
chara.FaysG:Destroy()
328
chara.FakeHeadM.Ahoge:Destroy()
329
for i,v in pairs(chara:GetDescendants()) do
330
if v.Name == "SpecPart" or v.Name == "Ears1Part" then
331
v:Destroy()
332
elseif v.Name == "Ears2Part" then
333
v.Transparency = 0
334
end
335
end
336
end
337
for i, v in pairs(chara:children()) do
338
if v:IsA("Shirt") or v:IsA("Pants") then
339
v:Destroy()
340
elseif v.Name == "Chest" then
341
for a, b in pairs(v:children()) do
342
if b.Name ~= "Tail" then
343
b.Transparency = 1
344
end
345
end
346
end
347
end
348
local sh = Instance.new("Shirt",chara)
349
local pn = Instance.new("Pants",chara)
350
sh.ShirtTemplate = "rbxassetid://613181358"
351
pn.PantsTemplate = "rbxassetid://613181892"
352
353
local pa = Instance.new("Part",chara)
354
pa.Name = "Hair"
355
356
local me = Instance.new("SpecialMesh",pa)
357
me.MeshType = "FileMesh"
358
me.MeshId = "rbxassetid://248341525"
359
me.TextureId = "rbxassetid://248261757"
360
me.Scale = Vector3.new(1.045, 1.045, 1.045)
361
362
local we = Instance.new("Weld")
363
we.Parent = pa
364
we.Part0 = Head
365
we.Part1 = pa
366
we.C1 = CFrame.new(0.01,-.40,0.0)
367
we.C0 = CFrame.Angles(0,0,0)
368
---------------------------
369
370
function rayCast(Position, Direction, Range, Ignore)
371
return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
372
end 
373
374
function FindNearestTorso(Position, Distance, SinglePlayer)
375
if SinglePlayer then
376
return (SinglePlayer.Head.CFrame.p - Position).magnitude < Distance
377
end
378
local List = {}
379
for i, v in pairs(workspace:GetDescendants()) do
380
if v:IsA("Model") then
381
if v:findFirstChild("Head") then
382
if v ~= chara then
383
if (v.Head.Position - Position).magnitude <= Distance then
384
table.insert(List, v)
385
end 
386
end 
387
end 
388
end 
389
end
390
return List
391
end
392
393
EffectModel = Create("Model"){
394
Parent = chara,
395
Name = "Effects",
396
}
397
398
--Effect Functions--
399
Effects = {
400
401
Block = function(cf,partsize,meshstart,meshadd,matr,colour,spin,inverse,factor)
402
local p = Instance.new("Part",EffectModel)
403
p.BrickColor = BrickColor.new(colour)
404
p.Size = partsize
405
p.Anchored = true
406
p.CanCollide = false
407
p.Material = matr
408
p.CFrame = cf
409
if inverse == true then
410
p.Transparency = 1
411
else
412
p.Transparency = 0
413
end
414
local m = Instance.new("BlockMesh",p)
415
m.Scale = meshstart
416
coroutine.wrap(function()
417
for i=0,1,factor do
418
swait()
419
if inverse == true then
420
p.Transparency = 1-i
421
else
422
p.Transparency = i
423
end
424
m.Scale = m.Scale + meshadd
425
if spin == true then
426
p.CFrame = p.CFrame * CFrame.Angles(math.random(-50,50),math.random(-50,50),math.random(-50,50))
427
end
428
end
429
p:Destroy()
430
end)()
431
return p
432
end,
433
434
Sphere = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
435
local p = Instance.new("Part",EffectModel)
436
p.BrickColor = BrickColor.new(colour)
437
p.Size = partsize
438
p.Anchored = true
439
p.CanCollide = false
440
p.Material = matr
441
p.CFrame = cf
442
if inverse == true then
443
p.Transparency = 1
444
else
445
p.Transparency = 0
446
end
447
local m = Instance.new("SpecialMesh",p)
448
m.MeshType = "Sphere"
449
m.Scale = meshstart
450
coroutine.wrap(function()
451
for i=0,1,factor do
452
swait()
453
if inverse == true then
454
p.Transparency = 1-i
455
else
456
p.Transparency = i
457
end
458
m.Scale = m.Scale + meshadd
459
end
460
p:Destroy()
461
end)()
462
return p
463
end,
464
465
Cylinder = function(cf,partsize,meshstart,meshadd,matr,colour,inverse,factor)
466
local p = Instance.new("Part",EffectModel)
467
p.BrickColor = BrickColor.new(colour)
468
p.Size = partsize
469
p.Anchored = true
470
p.CanCollide = false
471
p.Material = matr
472
p.CFrame = cf
473
if inverse == true then
474
p.Transparency = 1
475
else
476
p.Transparency = 0
477
end
478
local m = Instance.new("CylinderMesh",p)
479
m.Scale = meshstart
480
coroutine.wrap(function()
481
for i=0,1,factor do
482
swait()
483-
tecks2.TextColor3 = Color3.new(0,0,0)
483+
484-
tecks2.TextStrokeColor3 = Color3.new(1,0,0)
484+
485
else
486
p.Transparency = i
487
end
488
m.Scale = m.Scale + meshadd
489
end
490
p:Destroy()
491
end)()
492
return p
493
end,
494
495
Wave = function(cf,meshstart,meshadd,colour,spin,inverse,factor)
496
local p = Instance.new("Part",EffectModel)
497
p.BrickColor = BrickColor.new(colour)
498
p.Size = Vector3.new()
499
p.Anchored = true
500
p.CanCollide = false
501
p.CFrame = cf
502
if inverse == true then
503
p.Transparency = 1
504
else
505
p.Transparency = 0
506
end
507
local m = Instance.new("SpecialMesh",p)
508
m.MeshId = "rbxassetid://20329976"
509
m.Scale = meshstart
510
coroutine.wrap(function()
511
for i=0,1,factor do
512
swait()
513
if inverse == true then
514
p.Transparency = 1-i
515
else
516
p.Transparency = i
517
end
518
m.Scale = m.Scale + meshadd
519
p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
520
end
521
p:Destroy()
522
end)()
523
return p
524
end,
525
526
Ring = function(cf,meshstart,meshadd,colour,inverse,factor)
527
local p = Instance.new("Part",EffectModel)
528
p.BrickColor = BrickColor.new(colour)
529
p.Size = Vector3.new()
530
p.Anchored = true
531
p.CanCollide = false
532
p.CFrame = cf
533
if inverse == true then
534
p.Transparency = 1
535
else
536
p.Transparency = 0
537
end
538-
soaa.SoundId = "rbxassetid://111896685"
538+
539
m.MeshId = "rbxassetid://3270017"
540-
soaa.SoundId = "rbxassetid://535528169"
540+
541
coroutine.wrap(function()
542-
soaa.SoundId = "rbxassetid://1080363252"
542+
543
swait()
544-
soaa.SoundId = "rbxassetid://147758746"
544+
545
p.Transparency = 1-i
546-
soaa.SoundId = "rbxassetid://626777433"
546+
547
p.Transparency = i
548
end
549
m.Scale = m.Scale + meshadd
550
end
551
p:Destroy()
552
end)()
553
return p
554
end,
555
556
Meshed = function(cf,meshstart,meshadd,colour,meshid,textid,spin,inverse,factor)
557
local p = Instance.new("Part",EffectModel)
558
p.BrickColor = BrickColor.new(colour)
559
p.Size = Vector3.new()
560
p.Anchored = true
561
p.CanCollide = false
562
p.CFrame = cf
563
if inverse == true then
564
p.Transparency = 1
565
else
566
p.Transparency = 0
567
end
568-
tecks2.TextColor3 = Color3.new(0,0,0)
568+
569-
tecks2.TextStrokeColor3 = Color3.new(1,0,0)
569+
570
m.TextureId = textid
571
m.Scale = meshstart
572
coroutine.wrap(function()
573
for i=0,1,factor do
574
swait()
575
if inverse == true then
576
p.Transparency = 1-i
577
else
578
p.Transparency = i
579
end
580
m.Scale = m.Scale + meshadd
581
p.CFrame = p.CFrame * CFrame.Angles(0,math.rad(spin),0)
582
end
583
p:Destroy()
584
end)()
585
return p
586
end,
587
588
Explode = function(cf,partsize,meshstart,meshadd,matr,colour,move,inverse,factor)
589
local p = Instance.new("Part",EffectModel)
590
p.BrickColor = BrickColor.new(colour)
591
p.Size = partsize
592
p.Anchored = true
593
p.CanCollide = false
594
p.Material = matr
595
p.CFrame = cf * CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
596
if inverse == true then
597
p.Transparency = 1
598
else
599
p.Transparency = 0
600
end
601
local m = Instance.new("SpecialMesh",p)
602
m.MeshType = "Sphere"
603
m.Scale = meshstart
604
coroutine.wrap(function()
605
for i=0,1,factor do
606
swait()
607
if inverse == true then
608
p.Transparency = 1-i
609
else
610
p.Transparency = i
611
end
612
m.Scale = m.Scale + meshadd
613
p.CFrame = p.CFrame * CFrame.new(0,move,0)
614
end
615
p:Destroy()
616
end)()
617
return p
618
end,
619
620
}
621
622
function chatfunc(text)
623
coroutine.wrap(function()
624
if chara:FindFirstChild("TalkingBillBoard")~= nil then
625
chara:FindFirstChild("TalkingBillBoard"):destroy()
626
end
627
local naeeym2 = Instance.new("BillboardGui",chara)
628
naeeym2.Size = UDim2.new(0,100,0,40)
629
naeeym2.StudsOffset = Vector3.new(0,3,0)
630
naeeym2.Adornee = chara.Head
631
naeeym2.Name = "BLABLABLA"
632
local tecks2 = Instance.new("TextLabel",naeeym2)
633
tecks2.BackgroundTransparency = 1
634
tecks2.BorderSizePixel = 0
635
tecks2.Text = ""
636
tecks2.Font = "Antique"
637
tecks2.FontSize = "Size24"
638
tecks2.TextStrokeTransparency = 0
639
tecks2.TextColor3 = Color3.new(100,100,100)
640
tecks2.TextStrokeColor3 = Color3.new(100,100,100)
641
tecks2.Size = UDim2.new(1,0,0.5,0)coroutine.wrap(function()
642
while tecks2 ~= nil do
643
swait()
644
tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
645
end
646
end)()
647
for i = 1,string.len(text),1 do
648
tecks2.Text = string.sub(text,1,i)
649
swait()
650
end
651
swait(30)
652
for i = 1, 5 do
653
swait()
654
tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
655-
mus.SoundId = "rbxassetid://581195737"
655+
656
tecks2.TextTransparency = tecks2.TextTransparency + .2
657
end
658
naeeym2:Destroy()
659
end)()
660
end
661-
chatfunc("I'm tired of all of this crap..")
661+
662-
swait(90)
662+
663-
chatfunc("Now the day of reckoning has begun..")
663+
664-
swait(90)
664+
665-
chatfunc("This shall be my finest hour..")
665+
666-
swait(90)
666+
667-
chatfunc("ICH BIN GOTT! BERZERKER!")
667+
668
669
function BodyVel(part,faws)
670
local bodyvel = Instance.new("BodyVelocity",part)
671
local pep = 10000000
672
bodyvel.P = pep
673
bodyvel.MaxForce = Vector3.new(pep,pep,pep)
674
bodyvel.Velocity = faws
675
debby:AddItem(bodyvel,.2)
676
end
677
678
function Dmg(dude,dmg,env,faws,trip,efftyp,toim)
679
if dude and dude ~= chara and dude.Name ~= "CKbackup" and dude.Name ~= "Nebula_Zorua" and dude.Name ~= "Salvo_Starly" then
680
if dude:FindFirstChild("HITO") then return end
681
local debounce = Instance.new("BoolValue",dude)
682
debounce.Name = "HITO"
683
debby:AddItem(debounce,toim)
684
local hum = dude:FindFirstChildOfClass("Humanoid")
685
local dam = dmg+math.random(-env,env)
686
local teksu = "-"..dam
687
if hum then
688
local finhel = hum.Health - dam
689
if finhel <= 0 and dude:FindFirstChild("DEATHED")==nil then
690
Instance.new("BoolValue",dude).Name = "DEATHED"
691
local soaa = Instance.new("Sound",dude.Head)
692
local cho = math.random(1,5)
693
if cho == 1 then
694
soaa.SoundId = "rbxassetid://0"
695
elseif cho == 2 then
696
soaa.SoundId = "rbxassetid://0"
697
elseif cho == 3 then
698
soaa.SoundId = "rbxassetid://0"
699
elseif cho == 4 then
700
soaa.SoundId = "rbxassetid://0"
701
elseif cho == 5 then
702
soaa.SoundId = "rbxassetid://0"
703
soaa.Volume = .2
704
soaa.TimePosition = 1
705
end
706
game:service'Debris':AddItem(soaa,6)
707
soaa:Play()
708
end
709
hum.Health = hum.Health - dam
710
end
711
coroutine.wrap(function()
712
local naeeym2 = Instance.new("BillboardGui",dude)
713
naeeym2.Size = UDim2.new(0,100,0,40)
714
naeeym2.StudsOffset = Vector3.new(0,3,0)
715
naeeym2.Adornee = dude:FindFirstChild("Head")
716
naeeym2.Name = "TalkingBillBoard"
717
local tecks2 = Instance.new("TextLabel",naeeym2)
718
tecks2.BackgroundTransparency = 1
719
tecks2.BorderSizePixel = 0
720
tecks2.Text = teksu
721
tecks2.Font = "Antique"
722
tecks2.TextSize = 24
723
tecks2.TextStrokeTransparency = 0
724
tecks2.TextColor3 = Color3.new(100,100,100)
725
tecks2.TextStrokeColor3 = Color3.new(100,100,100)
726
tecks2.Size = UDim2.new(1,0,0.5,0)
727
swait(10)
728
for i = 0,1,.05 do
729
swait()
730
tecks2.Position = tecks2.Position - UDim2.new(0,0,.005,0)
731
tecks2.TextStrokeTransparency = i
732
tecks2.TextTransparency = i
733
end
734
naeeym2:Destroy()
735
end)()
736
local torsy = GetDudesTorso(dude)
737
if torsy then
738
for i=1,dam/5 do
739
local blp = Instance.new("Part",EffectModel)
740
blp.Size = Vector3.new(.3,.3,.3)
741
blp.BrickColor = BrickColor.new("Crimson")
742
blp.CFrame = torsy.CFrame
743
blp.Velocity = torsy.CFrame.lookVector*5
744
coroutine.wrap(function()
745
swait(10)
746
blp.Orientation = Vector3.new(0,blp.Orientation.y,0)
747
for i=0,1,.1  do
748
swait()
749
blp.Transparency = i
750
blp.Size = blp.Size + Vector3.new(.02,-.02,.02)
751
end
752
blp:Destroy()
753
end)()
754
end
755
if efftyp == "Blunt" then
756
puncheff(torsy)
757
elseif efftyp == "Sharp" then
758
slasheff(torsy)
759
end
760
if faws ~= 0 then
761
BodyVel(torsy,faws)
762
end
763
if trip == true then
764
torsy.CFrame = torsy.CFrame * CFrame.Angles(math.rad(-90),0,0)
765
torsy.RotVelocity = Vector3.new(math.random(-50,50),math.random(-50,50),math.random(-50,50))
766
end
767
end
768
end
769
end
770
771
function MagnitudeDmg(par,magni,dmg,env,faws,trip,efftyp,toim)
772
for _, c in pairs(workspace:GetDescendants()) do
773
local hum = c:FindFirstChildOfClass("Humanoid")
774
if hum ~= nil and c:FindFirstChild("IsTeamMateOfCK")==nil and c.Name ~= "CKbackup" and c.Name ~= "Nebula_Zorua" and c.Name ~= "Salvo_Starly" then
775
local head = GetDudesTorso(c)
776
if head ~= nil then
777
local targ = head.Position - par.Position
778
local mag = targ.magnitude
779
if magni >= mag and c ~= chara then
780
Dmg(c,dmg,env,faws,trip,efftyp,toim)
781
end
782
end
783
end
784
end
785
end
786
787
function puncheff(par)
788
if par.Parent:FindFirstChild("DebounceHit")==nil then
789
so(386946017,par,math.random(80,120)/100,1)
790
Effects.Sphere(par.CFrame,Vector3.new(1,1,1),Vector3.new(1,1,1),Vector3.new(2,2,2),"Neon","White",false,.1)
791
end
792
end
793
794
function slasheff(par)
795
if par.Parent:FindFirstChild("DebounceHit")==nil then
796
local cho = math.random(1,3)
797
if cho == 1 then
798
so(444667824,par,1,1)
799
elseif cho == 2 then
800
so(444667844,par,1,1)
801
elseif cho == 3 then
802
so(444667859,par,1,1)
803
end
804
--function(cf,partsize,meshstart,meshadd,matr,colour,factor)
805
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)
806
end
807
end
808
809
local mus = Instance.new("Sound",Head)
810
mus.Name = "mus"
811
mus.SoundId = "rbxassetid://3213612413"
812
mus.Looped = true
813
mus.Volume = 1
814
mus:Play()
815
816
817
function smek()
818
attack = true
819
Humanoid.WalkSpeed = 16
820
for i=0,1,.1 do
821
swait()
822
PlayAnimationFromTable({		
823
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),
824
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),
825
CFrame.new(1.40946591, -0.0135071278, 0, 1.00000012, 0, 0, 0, 1, 0, 0, 0, 1.00000012),
826
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),
827
CFrame.new(0.499983132, -2.00001597, -9.13441181e-06, 0.76604414, 0, -0.642788053, 0, 1, 0, 0.642788053, 0, 0.76604414),
828
CFrame.new(-0.500005186, -2.00001597, -1.22189522e-06, 0.98480773, 0, 0.173648447, 0, 1, 0, -0.173648447, 0, 0.98480773),
829
}, .3, false)
830
end
831
Humanoid.WalkSpeed = 2
832
tr1.Enabled = true
833
so(536642316,Naifu,1,1)
834
for i=0,1.4,.2 do
835
swait()
836
PlayAnimationFromTable({		
837
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),
838
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),
839
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),
840
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),
841
CFrame.new(0.500005841, -2.00003386, -4.52250242e-06, 0.984807551, 0, -0.173649341, 0, 1, 0, 0.173649341, 0, 0.984807551),
842
CFrame.new(-0.499993563, -2.00003386, -1.44541264e-06, 0.64278698, 0, 0.766044974, 0, 1, 0, -0.766044974, 0, 0.64278698),
843
}, .5, false)
844
MagnitudeDmg(Naifu,3,40,3,RootPart.CFrame.lookVector*5,false,"Sharp",.5)
845
end
846
swait(5)
847
Humanoid.WalkSpeed = 8
848
tr1.Enabled = false
849
attack = false
850
end
851
852
zhold = true
853
function shoot()
854
attack = true
855
so(169799883,TEC9,1,1)
856
for i=0,1,.1 do
857
swait()
858
PlayAnimationFromTable({		
859
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
860
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),
861
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),
862
CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
863
CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
864
CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
865
}, .3, false)
866
end
867
Humanoid.WalkSpeed = 2
868
local ref = Instance.new("Part",chara)
869
ref.Size = Vector3.new(0,0,0)
870
ref.Anchored = true
871
ref.CanCollide = false
872
ref.Transparency = 1
873
TEC9.Transparency = 0
874
for i=0,1,.1 do
875
swait()
876
PlayAnimationFromTable({		
877
CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
878
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),
879
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),
880
CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
881
CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
882
CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
883
}, .3, false)
884
end
885
swait(5)
886
local shots = 20
887
repeat
888
so(745308042,TEC9,1,1)
889
ref.CFrame = Mouse.Hit
890
MagnitudeDmg(ref,2,12,2,RootPart.CFrame.lookVector*3,false,"Shot",.1)
891
local hitpt = Instance.new("Part",EffectModel)
892
hitpt.Size = Vector3.new(0,0,.3)
893
hitpt.CFrame = TEC9.CFrame * CFrame.new(0,.465,.1)-- * CFrame.Angles(math.rad(90),0,0)
894
hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
895
local hitm = Instance.new("SpecialMesh",hitpt)
896
hitm.MeshId = "rbxassetid://94295100"
897
hitm.TextureId = "rbxassetid://94287792"
898
hitm.Scale = Vector3.new(3,3,3.5)
899
coroutine.wrap(function()
900
swait(30)
901
for i = 0,1,.1 do
902
swait()
903
hitpt.Transparency = i
904
end
905
hitpt:Destroy()
906
end)()
907
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)
908
shots = shots - 1
909
for i=0,1 do
910
swait()
911
PlayAnimationFromTable({		
912
CFrame.new(-0.0438226089, 0, -0.0217384323, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
913
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),
914
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))),
915
CFrame.new(-1.34998989, 0, 0.259806901, 0.866024911, 0, 0.500000954, 0, 1, 0, -0.500000954, 0, 0.866024852),
916
CFrame.new(0.499997795, -1.99999917, -1.51991844e-06, 0.866025686, 0, -0.499999642, 0, 1, 0, 0.499999642, 0, 0.866025686),
917
CFrame.new(-0.500000119, -1.99999917, 1.50501728e-06, 0.939692438, 0, 0.342020929, 0, 1, 0, -0.342020959, 0, 0.939692438),
918
}, .3, false)
919
end
920
until zhold == false or shots == 0
921
swait(5)
922
ref:Destroy()
923
for i=0,1,.25 do
924
swait()
925
PlayAnimationFromTable({		
926
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
927
CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
928
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),
929
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),
930
CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
931
CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
932
}, .4, false)
933
end
934
so(1159825801,TEC9,1,1)
935
swait(15)
936
so(211134014,TEC9,1,1)
937
for i=0,1,.1 do
938
swait()
939
PlayAnimationFromTable({		
940
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
941
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),
942
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),
943
CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
944
CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
945
CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
946
}, .3, false)
947
end
948
TEC9.Transparency = 1
949
Humanoid.WalkSpeed = 8
950
attack = false
951
end
952
953
function dbshoot()
954
attack = true
955
so(169799883,DBarrel,1,1)
956-
mus.SoundId = "rbxassetid://581195737"
956+
957
swait()
958
PlayAnimationFromTable({		
959
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
960
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),
961
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),
962
CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
963
CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
964
CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
965
}, .3, false)
966
end
967
Humanoid.WalkSpeed = 2
968
DBarrel.Transparency = 0
969
for i=0,1,.1 do
970
swait()
971
PlayAnimationFromTable({		
972
CFrame.new(0, 0.0149096567, 0.133909225, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
973
CFrame.new(0, 1.43158329, -0.187937319, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
974
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),
975
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),
976
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),
977
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),
978
}, .3, false)
979
end
980
swait(5)
981
so(132455829,DBarrel,1,1)
982
local ref = Instance.new("Part",chara)
983
ref.Size = Vector3.new(0,0,0)
984
ref.Anchored = true
985
ref.CanCollide = false
986
ref.Transparency = 1
987
ref.CFrame = RootPart.CFrame*CFrame.new(0,0,-6)
988
MagnitudeDmg(ref,4,100,0,RootPart.CFrame.lookVector*12,true,"Shot",.1)
989
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)
990
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)
991
ref:Destroy()
992
for i=0,1,.1 do
993
swait()
994
PlayAnimationFromTable({		
995
CFrame.new(0, 0.0149102025, 0.133909985, 1, 0, 0, 0, 0.984812796, -0.173648849, 0, 0.173648849, 0.984812796),
996
CFrame.new(0, 1.43158948, 0.0120660895, 1, 0, 0, 0, 1.00000262, -1.1920929e-07, 0, 1.1920929e-07, 1.00000262),
997
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),
998
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),
999
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),
1000
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),
1001
}, .3, false)
1002
end
1003
swait(10)
1004
for i=0,1,.25 do
1005
swait()
1006
PlayAnimationFromTable({		
1007
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
1008
CFrame.new(0, 1.44842434, -0.192443371, 1, 0, 0, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736),
1009
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),
1010
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),
1011
CFrame.new(0.50000149, -1.99999857, -2.11596489e-06, 0.984807849, 0, -0.173647985, 0, 1, 0, 0.173647985, 0, 0.984807849),
1012
CFrame.new(-0.500000834, -1.99999857, 1.63912773e-06, 0.984807849, 0, 0.173647985, 0, 1, 0, -0.173647985, 0, 0.984807849),
1013
}, .4, false)
1014
end
1015
for i=1,2 do
1016
so(1159825801,DBarrel,1,1)
1017
local hitpt = Instance.new("Part",EffectModel)
1018
hitpt.Size = Vector3.new(0,0,.3)
1019
hitpt.CFrame = TEC9.CFrame * CFrame.Angles(math.rad(90),0,0)
1020
hitpt.Velocity = RootPart.CFrame.rightVector*10+Vector3.new(0,5,0)
1021
local hitm = Instance.new("SpecialMesh",hitpt)
1022
hitm.MeshId = "rbxassetid://94248124"
1023
hitm.TextureId = "rbxassetid://94219470"
1024
hitm.Scale = Vector3.new(1.2,1.2,1.2)
1025
coroutine.wrap(function()
1026
swait(30)
1027
for i = 0,1,.1 do
1028
swait()
1029
hitpt.Transparency = i
1030
end
1031
hitpt:Destroy()
1032
end)()
1033
swait()
1034
end
1035
swait(15)
1036
so(211134014,DBarrel,1,1)
1037
for i=0,1,.1 do
1038
swait()
1039
PlayAnimationFromTable({		
1040
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),
1041
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),
1042
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),
1043
CFrame.new(-1.43159902, 0, 0.187939197, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
1044
CFrame.new(0.499998897, -1.99999988, -1.49011612e-06, 0.939692736, 0, -0.342019886, 0, 1, 0, 0.342019916, 0, 0.939692736),
1045
CFrame.new(-0.500001848, -1.99999988, 1.62422657e-06, 0.939692736, 0, 0.342019886, 0, 1, 0, -0.342019916, 0, 0.939692736),
1046
}, .3, false)
1047
end
1048
DBarrel.Transparency = 1
1049
Humanoid.WalkSpeed = 8
1050
attack = false
1051
end
1052
1053
Mouse.Button1Down:connect(function()
1054
if attack == false then
1055
smek()
1056
end
1057
end)
1058
1059
local sprintt = 0
1060
Mouse.KeyDown:connect(function(k)
1061
k = k:lower()
1062
if k=='m' then
1063
if mus.IsPlaying == true then
1064
mus:Stop()
1065
elseif mus.IsPaused == true then
1066
mus:Play()
1067
end
1068
end
1069
if attack == false then
1070
if k == 'z' then
1071
zhold = true
1072
shoot()
1073
elseif k == 'x' then
1074
dbshoot()
1075
end
1076
end
1077
end)
1078
1079
Mouse.KeyUp:connect(function(k)
1080
k = k:lower()
1081
if k == 'z' then
1082
zhold = false
1083
end
1084
end)
1085
1086
coroutine.wrap(function()
1087
while 1 do
1088
swait()
1089
if doe <= 360 then
1090
doe = doe + 2
1091
else
1092
doe = 0
1093
end
1094
end
1095
end)()
1096
while true do
1097
swait()
1098
while true do
1099
swait()
1100
if Head:FindFirstChild("mus")==nil then
1101
mus = Instance.new("Sound",Head)
1102
mus.Name = "mus"
1103
mus.SoundId = "rbxassetid://3213612413"
1104
mus.Looped = true
1105
mus.Volume = 1
1106
mus:Play()
1107
end
1108
if sprintt >= 1 then
1109
sprintt = sprintt - 1
1110
end
1111
Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude
1112
velocity = RootPart.Velocity.y
1113
sine = sine + change
1114
local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, chara)
1115
if RootPart.Velocity.y > 1 and hit == nil then 
1116
Anim = "Jump"
1117
if attack == false then
1118
PlayAnimationFromTable({
1119
CFrame.new(0, 0.0382082276, -0.0403150208, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
1120
CFrame.new(0, 1.46579528, 0.0939689279, 1, 0, 0, 0, 0.939692855, -0.342019796, 0, 0.342019796, 0.939692855),
1121
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),
1122
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),
1123
CFrame.new(0.5, -1.99739456, -0.0180913229, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
1124
CFrame.new(-0.5, -1.30000103, -0.39999947, 1, 0, 0, 0, 0.939692676, 0.342020601, 0, -0.342020601, 0.939692676),
1125
}, .3, false)
1126
end
1127
elseif RootPart.Velocity.y < -1 and hit == nil then 
1128
Anim = "Fall"
1129
if attack == false then
1130
PlayAnimationFromTable({
1131
CFrame.new(0, -0.0646628663, 0.0399149321, 1, 0, 0, 0, 0.984807849, -0.173647985, 0, 0.173647985, 0.984807849),
1132
CFrame.new(0, 1.4913609, -0.128171027, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
1133
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),
1134
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),
1135
CFrame.new(0.500000954, -1.9973948, -0.0180922765, 1, 0, 0, 0, 1.00000012, 0, 0, 0, 1.00000012),
1136
CFrame.new(-0.499999046, -1.30000043, -0.400000483, 1, 0, 0, 0, 0.939692855, 0.342019796, 0, -0.342019796, 0.939692855),
1137
}, .3, false)
1138
end
1139
elseif Torsovelocity < 1 and hit ~= nil then
1140
Anim = "Idle"
1141
if attack == false then
1142
change = 1
1143
PlayAnimationFromTable({
1144
CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1) * CFrame.new(0,.05 * math.cos((sine)/10), 0),
1145
CFrame.new(0, 1.48262823, -0.0984786302, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
1146
CFrame.new(1.20945334, -0.213505104, 0, 0.939692736, 0.342019886, 0, -0.342019916, 0.939692736, 0, 0, 0, 1),
1147
CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
1148
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),
1149
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),
1150
}, .3, false)
1151
end
1152
elseif Torsovelocity > 2 and hit ~= nil then
1153
Anim = "Walk"
1154
if attack == false then
1155
Humanoid.WalkSpeed = 8
1156
PlayAnimationFromTable({
1157
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),
1158
CFrame.new(0, 1.48263013, -0.0984808952, 1, 0, 0, 0, 0.984807849, 0.173647985, 0, -0.173647985, 0.984807849),
1159
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), 
1160
CFrame.new(-1.37076354, 0, -0.304326713, 0.866025388, 0, -0.500000238, 0, 1, 0, 0.500000238, 0, 0.866025388),
1161
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), 
1162
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), 
1163
}, .3, false)
1164
end
1165
end
1166
end
1167
end