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