View difference between Paste ID: 2V6TgDh7 and Y8XRGLyT
SHOW: | | - or go back to the newest paste.
1
--Thanks gaster :3
2
wait()
3
Player = game.Players.LocalPlayer
4
Object = Player.Character.HumanoidRootPart
5
Arm1 = Player.Character["Right Arm"]
6
PreviousA1 = Arm1.CFrame.p
7
Arm2 = Player.Character["Left Arm"]
8
PreviousA2 = Arm2.CFrame.p
9
10
Leg1 = Player.Character["Right Leg"]
11
PreviousL1 = Leg1.CFrame.p
12
Leg2 = Player.Character["Left Leg"]
13
PreviousL2 = Leg2.CFrame.p
14
15
Run = game["Run Service"]
16
17
PreviousP = Object.CFrame.p
18
Running = false
19
Phase = false
20
PhaseActive = false
21
Morph = false
22
MorphActive = false
23
Tornado = false
24
TornadoRadius = 50
25
TornadoActive = false
26
Portal = false
27
PortalEnd = false
28
MaxZ = 15
29
MinZ = -15
30
LightMaxX = 3
31
LightMinX = 1
32
LightMaxX2 = -1
33
LightMinX2 = -3
34
LightMaxY = 3
35
LightMinY = -1
36
Rotation = 0
37
Length = 10
38
Color = BrickColor.White()
39
PColor = Color3.new(0,0,0)
40
PrevPoint1 = nil
41
PrevPoint2 = nil
42
PrevPoint3 = nil
43
PrevPoint4 = nil
44
PrevPoint5 = nil
45
PrevPoint6 = nil
46
PrevPoint7 = nil
47
PrevPoint8 = nil
48
PrevPoint9 = nil
49
PrevPoint10 = nil
50
PrevPoint11 = nil
51
PrevPoint12 = nil
52
angle = 0
53
Mouse = Player:GetMouse()
54
Player.Character.Humanoid.WalkSpeed = 100
55
56
Nil = function()
57
	PrevPoint1 = "Empty"
58
	PrevPoint2 = "Empty"
59
	PrevPoint3 = "Empty"
60
	PrevPoint4 = "Empty"
61
	PrevPoint5 = "Empty"
62
	PrevPoint6 = "Empty"
63
	PrevPoint7 = "Empty"
64
	PrevPoint8 = "Empty"
65
	PrevPoint9 = "Empty"
66
	PrevPoint10 = "Empty"
67
	PrevPoint11 = "Empty"
68
	PrevPoint12 = "Empty"
69
end
70
71
	local Lightning = coroutine.wrap(function()
72
while wait() do
73
		if Portal == false then
74
		angle = angle + 0.6
75
		local Model = Instance.new("Model",workspace)
76
		Model.Name = "Lightning"
77
		local Point1 = Instance.new("Part",Model)
78
		Point1.Transparency = 1
79
		Point1.Size = Vector3.new(0.2,0.2,0.2)
80
		Point1.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point1.Size.Z/2))
81
		Point1.Anchored = true
82
		Point1.CanCollide = false
83
		Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
84
85
		local Point2 = Instance.new("Part",Model)
86
		Point2.Transparency = 1
87
		Point2.Size = Vector3.new(0.2,0.2,0.2)
88
		Point2.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point2.Size.Z/2))
89
		Point2.Anchored = true
90
		Point2.CanCollide = false
91
		Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
92
93
		local Point3 = Instance.new("Part",Model)
94
		Point3.Transparency = 1
95
		Point3.Size = Vector3.new(0.2,0.2,0.2)
96
		Point3.CFrame = Object.CFrame * CFrame.new(0,0,-(Object.Size.Z/2+Point3.Size.Z/2))
97
		Point3.Anchored = true
98
		Point3.CanCollide = false
99
		Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),-math.random(0,2))
100
101
		local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
102
		local Light = Instance.new("Part",Model)
103
		local PointLight = Instance.new("PointLight",Light)
104
		PointLight.Range = 5
105
		PointLight.Color = PColor
106
		Light.Transparency = 0
107
		Light.BrickColor = Color
108
		Light.Material = "Neon"
109
		Light.Size = Vector3.new(0.25,0.25,distance)
110
		Light.Anchored = true
111
		Light.CanCollide = false
112
		Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2) 
113
114
		local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
115
		local Light = Instance.new("Part",Model)
116
		local PointLight = Instance.new("PointLight",Light)
117
		PointLight.Range = 5
118
		PointLight.Color = PColor
119
		Light.Transparency = 0
120
		Light.BrickColor = Color
121
		Light.Material = "Neon"
122
		Light.Size = Vector3.new(0.25,0.25,distance2)
123
		Light.Anchored = true
124
		Light.CanCollide = false
125
		Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2) 
126
127
		local Point1 = Instance.new("Part",Model)
128
		Point1.Transparency = 1
129
		Point1.Size = Vector3.new(0.2,0.2,0.2)
130
		Point1.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point1.Size.Z/2))
131
		Point1.Anchored = true
132
		Point1.CanCollide = false
133
		Point1.CFrame = Point1.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
134
135
		local Point2 = Instance.new("Part",Model)
136
		Point2.Transparency = 1
137
		Point2.Size = Vector3.new(0.2,0.2,0.2)
138
		Point2.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point2.Size.Z/2))
139
		Point2.Anchored = true
140
		Point2.CanCollide = false
141
		Point2.CFrame = Point2.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
142
143
		local Point3 = Instance.new("Part",Model)
144
		Point3.Transparency = 1
145
		Point3.Size = Vector3.new(0.2,0.2,0.2)
146
		Point3.CFrame = Object.CFrame * CFrame.new(0,0,(Object.Size.Z/2+Point3.Size.Z/2))
147
		Point3.Anchored = true
148
		Point3.CanCollide = false
149
		Point3.CFrame = Point3.CFrame * CFrame.new(math.random(-2,2),math.random(-2,2),math.random(0,2))
150
151
		local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
152
		local Light = Instance.new("Part",Model)
153
		local PointLight = Instance.new("PointLight",Light)
154
		PointLight.Range = 5
155
		PointLight.Color = PColor
156
		Light.Transparency = 0
157
		Light.BrickColor = Color
158
		Light.Material = "Neon"
159
		Light.Size = Vector3.new(0.25,0.25,distance)
160
		Light.Anchored = true
161
		Light.CanCollide = false
162
		Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2) 
163
164
		local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
165
		local Light = Instance.new("Part",Model)
166
		local PointLight = Instance.new("PointLight",Light)
167
		PointLight.Range = 5
168
		PointLight.Color = PColor
169
		Light.Transparency = 0
170
		Light.BrickColor = Color
171
		Light.Material = "Neon"
172
		Light.Size = Vector3.new(0.3,0.3,distance2)
173
		Light.Anchored = true
174
		Light.CanCollide = false
175
		Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2) 
176
		
177
		local Point1 = Instance.new("Part",Model)
178
		Point1.Transparency = 1
179
		Point1.Size = Vector3.new(0.2,0.2,0.2)
180
		Point1.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
181
		Point1.Anchored = true
182
		Point1.CanCollide = false
183
		Point1.CFrame = Point1.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
184
185
		local Point2 = Instance.new("Part",Model)
186
		Point2.Transparency = 1
187
		Point2.Size = Vector3.new(0.2,0.2,0.2)
188
		Point2.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
189
		Point2.Anchored = true
190
		Point2.CanCollide = false
191
		Point2.CFrame = Point2.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
192
193
		local Point3 = Instance.new("Part",Model)
194
		Point3.Transparency = 1
195
		Point3.Size = Vector3.new(0.2,0.2,0.2)
196
		Point3.CFrame = Object.CFrame * CFrame.new((Object.Size.X/2+Point1.Size.X/2),0,0)
197
		Point3.Anchored = true
198
		Point3.CanCollide = false
199
		Point3.CFrame = Point3.CFrame * CFrame.new(math.random(0,2),math.random(-2,2),math.random(-2,2))
200
201
		local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
202
		local Light = Instance.new("Part",Model)
203
		local PointLight = Instance.new("PointLight",Light)
204
		PointLight.Range = 5
205
		PointLight.Color = PColor
206
		Light.Transparency = 0
207
		Light.BrickColor = Color
208
		Light.Material = "Neon"
209
		Light.Size = Vector3.new(0.25,0.25,distance)
210
		Light.Anchored = true
211
		Light.CanCollide = false
212
		Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2) 
213
214
		local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
215
		local Light = Instance.new("Part",Model)
216
		local PointLight = Instance.new("PointLight",Light)
217
		PointLight.Range = 5
218
		PointLight.Color = PColor
219
		Light.Transparency = 0
220
		Light.BrickColor = Color
221
		Light.Material = "Neon"
222
		Light.Size = Vector3.new(0.25,0.25,distance2)
223
		Light.Anchored = true
224
		Light.CanCollide = false
225
		Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2) 
226
227
		local Point1 = Instance.new("Part",Model)
228
		Point1.Transparency = 1
229
		Point1.Size = Vector3.new(0.2,0.2,0.2)
230
		Point1.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
231
		Point1.Anchored = true
232
		Point1.CanCollide = false
233
		Point1.CFrame = Point1.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
234
235
		local Point2 = Instance.new("Part",Model)
236
		Point2.Transparency = 1
237
		Point2.Size = Vector3.new(0.2,0.2,0.2)
238
		Point2.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
239
		Point2.Anchored = true
240
		Point2.CanCollide = false
241
		Point2.CFrame = Point2.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
242
243
		local Point3 = Instance.new("Part",Model)
244
		Point3.Transparency = 1
245
		Point3.Size = Vector3.new(0.2,0.2,0.2)
246
		Point3.CFrame = Object.CFrame * CFrame.new(-(Object.Size.X/2+Point1.Size.X/2),0,0)
247
		Point3.Anchored = true
248
		Point3.CanCollide = false
249
		Point3.CFrame = Point3.CFrame * CFrame.new(-math.random(0,2),math.random(-2,2),math.random(-2,2))
250
251
		local distance = (Point2.CFrame.p - Point1.CFrame.p).magnitude
252
		local Light = Instance.new("Part",Model)
253
		local PointLight = Instance.new("PointLight",Light)
254
		PointLight.Range = 5
255
		PointLight.Color = PColor
256
		Light.Transparency = 0
257
		Light.BrickColor = Color
258
		Light.Material = "Neon"
259
		Light.Size = Vector3.new(0.25,0.25,distance)
260
		Light.Anchored = true
261
		Light.CanCollide = false
262
		Light.CFrame = CFrame.new(Point2.CFrame.p , Point1.CFrame.p) * CFrame.new(0,0,-distance/2) 
263
264
		local distance2 = (Point3.CFrame.p - Point2.CFrame.p).magnitude
265
		local Light = Instance.new("Part",Model)
266
		local PointLight = Instance.new("PointLight",Light)
267
		PointLight.Range = 5
268
		PointLight.Color = PColor
269
		Light.Transparency = 0
270
		Light.BrickColor = Color
271
		Light.Material = "Neon"
272
		Light.Size = Vector3.new(0.25,0.25,distance2)
273
		Light.Anchored = true
274
		Light.CanCollide = false
275
		Light.CFrame = CFrame.new(Point3.CFrame.p , Point2.CFrame.p) * CFrame.new(0,0,-distance2/2) 
276
		
277
	local Children = Model:GetChildren()
278
	wait(0.1)
279
	for i = 1,#Children do
280
		if Children[i]:IsA("Part") then
281
		Children[i].Transparency = 1
282
		end
283
		game.Debris:AddItem(Children[i],0)
284
	end	
285
286
		end
287
		end
288
	end)
289
Lightning()
290
291
local LocalPlayer = game:GetService("Players").LocalPlayer
292
local Character = LocalPlayer.Character or LocalPlayer.CharacterAdded:wait()
293
 
294
local Orb = Instance.new("Part", Character)
295
Orb.Name = "Orb"
296
Orb.Shape = Enum.PartType.Ball
297
Orb.CanCollide = false
298
Orb.BrickColor = BrickColor.new("Deep orange")
299
Orb.Transparency = 0
300
Orb.Material = "Neon"
301
Orb.Size = Vector3.new(0.3, 0.3, 0.3)
302
Orb.TopSurface = Enum.SurfaceType.Smooth
303
Orb.BottomSurface = Enum.SurfaceType.Smooth
304
 
305
local Weld = Instance.new("Weld", Orb)
306
Weld.Part0 = Character.Head
307
Weld.Part1 = Orb
308
Weld.C1 = CFrame.new(0.2, -0.2, 0.5)
309
--------------------------------------------------------
310
local Orbd = Instance.new("Part", Character)
311
Orbd.Name = "Orbd"
312
Orbd.Shape = Enum.PartType.Ball
313
Orbd.CanCollide = false
314
Orbd.BrickColor = BrickColor.new("White")
315
Orbd.Transparency = 0
316
Orbd.Material = "Neon"
317
Orbd.Size = Vector3.new(0.3, 0.3, 0.3)
318
Orbd.TopSurface = Enum.SurfaceType.Smooth
319
Orbd.BottomSurface = Enum.SurfaceType.Smooth
320
321
local Weld = Instance.new("Weld", Orbd)
322
Weld.Part0 = Character.Head
323
Weld.Part1 = Orbd
324
Weld.C1 = CFrame.new(-0.2, -0.2, 0.5)
325
326
----------------------------------------------------
327
Character.Head.face.Texture = "rbxassetid://0"
328
----------------------------------------------------
329
330
local p = game.Players.LocalPlayer
331
local char = p.Character
332
local mouse = p:GetMouse()
333
local larm = char["Left Arm"]
334
local rarm = char["Right Arm"]
335
local lleg = char["Left Leg"]
336
local rleg = char["Right Leg"]
337
local hed = char.Head
338
local torso = char.Torso
339
local hum = char.Humanoid
340
local cam = game.Workspace.CurrentCamera
341
local root = char.HumanoidRootPart
342
local deb = false
343
local shot = 0
344
local debris=game:service"Debris"
345
local l = game:GetService("Lighting")
346
local rs = game:GetService("RunService").RenderStepped
347
ptz = {0.8, 0.85, 0.9, 0.95, 1, 1.05, 1.1}
348
math.randomseed(os.time())
349
for i,v in pairs(char:children()) do
350
    if v:IsA("Hat") then
351
        v:Destroy()
352
    end
353
end
354
for i,v in pairs (hed:GetChildren()) do
355
        if v:IsA("Sound") then
356
                v:Destroy()
357
        end
358
end
359
----------------------------------------------------
360
Debounces = {
361
CanAttack = true;
362
NoIdl = false;
363
Slashing = false;
364
Slashed = false;
365
RPunch = false;
366
RPunched = false;
367
LPunch = false;
368
LPunched = false;
369
}
370
local Touche = {char.Name, }
371
----------------------------------------------------
372
hed.face.Texture = "rbxassetid://0"
373
char["Body Colors"].HeadColor = BrickColor.new("Really black")
374
char["Body Colors"].TorsoColor = BrickColor.new("Really black")
375
char["Body Colors"].LeftArmColor = BrickColor.new("Really black")
376
char["Body Colors"].RightArmColor = BrickColor.new("Really black")
377
----------------------------------------------------
378
ypcall(function()
379
char.Shirt:Destroy()
380
char.Pants:Destroy()
381
shirt = Instance.new("Shirt", char)
382
shirt.Name = "Shirt"
383
pants = Instance.new("Pants", char)
384
pants.Name = "Pants"
385
char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=0"
386
char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=0"
387
end)
388
----------------------------------------------------
389
----------------------------------------------------
390
p = game.Players.LocalPlayer
391
char = p.Character
392
des = false
393
fling = true
394
dot = false
395
falling = false
396
jump = true
397
--char.Shirt:Remove()
398
--for i,v in pairs(char:GetChildren()) do if v:IsA("Pants") then v:Remove() end end
399
for i,v in pairs(char:GetChildren()) do if v:IsA("Hat") then v.Handle:Remove() end end
400
wait()--shirt = Instance.new("Shirt", char)
401
--shirt.Name = "Shirt"
402
--pants = Instance.new("Pants", char)
403
--pants.Name = "Pants"
404
405
----------------------------------------------------
406
z = Instance.new("Sound", char)
407-
z.SoundId = "rbxassetid://408704144"--303570180
407+
z.SoundId = "rbxassetid://408704144"--258218642
408
z.Looped = true
409
z.Pitch = 1
410
z.Volume = 1
411
wait(.1)
412
z:Play()
413
----------------------------------------------------
414
415
--char.Shirt.ShirtTemplate = "http://www.roblox.com/asset/?id=451927425"
416
--char.Pants.PantsTemplate = "http://www.roblox.com/asset/?id=236412261"
417
tp = true
418
shoot = true
419
hum = char.Humanoid
420
punch = true
421
neckp = char.Torso.Neck.C0
422
neck = char.Torso.Neck
423
hum.MaxHealth = 999999999
424
wait()
425
hum.Health =hum.MaxHealth
426
des = false
427
root=char.HumanoidRootPart
428
torso = char.Torso
429
char.Head.face.Texture = "rbxassetid://0"
430
local ChatService = game:GetService("Chat")
431
local player = game.Players.LocalPlayer
432
lig = Instance.new("PointLight",player.Character.Torso)
433
lig.Color=Color3.new(255,0,0)
434
m=player:GetMouse()
435
bb = Instance.new("BillboardGui",player.Character.Head)
436
bb.Enabled = true
437
function newRay(start,face,range,wat)
438
       local rey=Ray.new(start.p,(face.p-start.p).Unit*range)
439
       hit,pos=Workspace:FindPartOnRayWithIgnoreList(rey,wat)
440
       return rey,hit,pos
441
end
442
aa1={}
443
torso=game.Players.LocalPlayer.Character.Torso
444
445
local WorldUp = Vector3.new(0,1,0)
446
function look2(Vec1,Vec2)
447
   local Orig = Vec1
448
   Vec1 = Vec1+Vector3.new(0,1,0)
449
   Vec2 = Vec2+Vector3.new(0,1,0)
450
   local Forward = (Vec2-Vec1).unit
451
   local Up = (WorldUp-WorldUp:Dot(Forward)*Forward).unit
452
   local Right = Up:Cross(Forward).unit
453
   Forward = -Forward
454
   Right = -Right
455
   return CFrame.new(Orig.X,Orig.Y,Orig.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
456
end
457
458
function look(CFr,Vec2)
459
   local A = Vector3.new(0,0,0)
460
   local B = CFr:inverse()*Vec2
461
   local CF = look2(A,Vector3.new(A.X,B.Y,B.Z))
462
   if B.Z > 0 then
463
       CF = CFr*(CF*CFrame.Angles(0,0,math.pi))
464
   elseif B.Z == 0 then
465
       if B.Y > 0 then
466
           CF = CFr*CFrame.Angles(math.pi/2,0,0)
467
       elseif B.Y < 0 then
468
           CF = CFr*CFrame.Angles(-math.pi/2,0,0)
469
       else
470
           CF = CFr
471
       end
472
   end
473
   local _,_,_,_,X,_,_,Y,_,_,Z,_ = CF:components()
474
   local Up = Vector3.new(X,Y,Z)
475
   local Forward = (Vec2-CFr.p).unit
476
   local Right = Up:Cross(Forward)
477
   Forward = -Forward
478
   Right = -Right
479
   return CFrame.new(CFr.X,CFr.Y,CFr.Z,Right.X,Up.X,Forward.X,Right.Y,Up.Y,Forward.Y,Right.Z,Up.Z,Forward.Z)
480
end
481
482
function simulate(j,d,m,r,t)
483
       local joint = j
484
       for i,v in ipairs(t) do
485
               if v[1]:FindFirstChild("Weld") then
486
                       local stiff = m.CFrame.lookVector*0.03
487
                       if i > 1 then joint = t[i-1][1].CFrame*CFrame.new(0,0,d*.5) end
488
                       local dir = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).unit
489
                       local dis = (v[2].p-(joint.p+Vector3.new(0,0.2,0)+stiff)).magnitude
490
                       local pos = joint.p+(dir*(d*0.5))
491
                     --if v[1].CFrame.y<=workspace.Base.CFrame.y then pos = joint.p+(dir*(d*.5)) end
492
                       local inv = v[1].Weld.Part0.CFrame
493
                       local rel1 = inv:inverse()*pos
494
                       local rel2 = inv:inverse()*(pos-(dir*dis))
495
                       local cf = look(CFrame.new(rel1),rel2)--CFrame.new(pos,pos-(dir*dis))*CFrame.fromEulerAnglesXYZ(r.x,r.y,r.z)
496
                       v[1].Weld.C0 = cf
497
                       v[2] = inv*cf
498
                       --v[1].CFrame = cf
499
               end
500
       end
501
end
502
for i=1,8 do
503
local p = Instance.new("Part",char)
504
p.Anchored = false
505
p.BrickColor = BrickColor.new("Really black")
506
p.CanCollide = false
507
p.FormFactor="Custom"
508
p.Material = "SmoothPlastic"
509
p.TopSurface = "SmoothNoOutlines"
510
p.BottomSurface = "SmoothNoOutlines"
511
p.RightSurface = "SmoothNoOutlines"
512
p.LeftSurface = "SmoothNoOutlines"
513
p.FrontSurface = "SmoothNoOutlines"
514
p.BackSurface = "SmoothNoOutlines"
515
516
p.Size=Vector3.new(2,.2,0.2)
517
p:BreakJoints() -- sometimes the parts are stuck to something so you have to breakjoints them
518
mesh = Instance.new("BlockMesh",p)
519
mesh.Scale = Vector3.new(1,1,4)
520
local w = Instance.new("Motor6D",p)
521
w.Part0 = aa1[i-1] and aa1[i-1][1] or torso
522
w.Part1 = p
523
w.Name = "Weld"
524
--table.insert(aa1,p)
525
aa1[i] = {p,p.CFrame}
526
527
end
528
game:service"RunService".Stepped:connect(function()
529
simulate(torso.CFrame*CFrame.new(0,0.9,.5),.6,torso,Vector3.new(),aa1)
530
end)
531
bb.AlwaysOnTop = true
532
bb.Size = UDim2.new(0,200,0,50)
533
bb.StudsOffset = Vector3.new(0,1,0)
534
gui=Instance.new("TextBox",bb)
535
gui.Text = "* "
536
gui.Size = UDim2.new(0,133,0,45)
537
gui.Position=UDim2.new(0,57,0,-40)
538
gui.TextColor3 = Color3.new(255,255,255)
539
gui.BackgroundColor3=Color3.new(0,0,0)
540
gui.TextWrapped = true
541
gui.TextScaled = true
542
gui.TextXAlignment = "Left"
543
gui.TextYAlignment = "Top"
544
gui.Visible = false
545
gui.BorderColor3 = Color3.new(0,0,0)
546
punch2 = true
547
gui1=Instance.new("TextButton",bb)
548
gui1.Position=UDim2.new(0,5,0,-43)
549
gui1.Size = UDim2.new(0,190,0,51)
550
551
gui1.TextColor3 = Color3.new(255,255,255)
552
gui1.BackgroundColor3=Color3.new(255,255,255)
553
jump2 = true
554
gui1.Visible = false
555
img = Instance.new("ImageLabel",bb)
556
img.Size = UDim2.new(0,46,0,47)
557
img.Position = UDim2.new(0,10,0,-41)
558
img.Image = "rbxassetid://447301252"
559
img.BorderColor3 = Color3.new(0,0,0)
560
img.Visible = false
561
soka = Instance.new("Sound",char)
562
soka.SoundId = "http://www.roblox.com/asset/?id = 0"
563
soka.Volume = 1
564
boom = Instance.new("Sound",char)
565
boom.SoundId = "http://www.roblox.com/asset/?id = 0"
566
boom.Volume = 1
567
boom2 = Instance.new("Sound",char)
568
boom2.SoundId = "http://www.roblox.com/asset/?id = 0"
569
boom2.Volume = 1
570
boom3 = Instance.new("Sound",char)
571
boom3.SoundId = "http://www.roblox.com/asset/?id = 0"
572
boom3.Volume = 1
573
tps = Instance.new("Sound",char)
574
tps.SoundId = "http://www.roblox.com/asset/?id = 0"
575
tps.Volume = 1
576
asd = Instance.new("Sound",char)
577
asd.SoundId = "http://www.roblox.com/asset/?id = 0"
578
asd.Volume =1 
579
asd1 = Instance.new("Sound",char)
580
asd1.SoundId = "http://www.roblox.com/asset/?id = 0"
581
582
asd2 = Instance.new("Sound",char)
583
asd2.SoundId = "http://www.roblox.com/asset/?id = 0"
584
asd2.Looped = true
585
asd2.Volume = 5
586
asd3 = Instance.new("Sound",char)
587
asd3.SoundId = "http://www.roblox.com/asset/?id = 0"
588
asd3.Looped = true
589
asd4 = Instance.new("Sound",char)
590
asd4.SoundId = "http://www.roblox.com/asset/?id = 0"
591
asd4.Looped = true
592
asd5 = Instance.new("Sound",char)
593
asd5.SoundId = "http://www.roblox.com/asset/?id = 0"
594
asd5.Looped = true
595
gas = Instance.new("Sound",char)
596
gas.SoundId = "http://www.roblox.com/asset/?id = 0"
597
asd6 = Instance.new("Sound",char)
598
asd6.SoundId = "http://www.roblox.com/asset/?id = 0"
599
asd6.Looped = true
600
function play(play)
601
asd:Play()
602
wait(0.05)
603
--asd1:Play()
604
end
605
606
607
608
------------
609
-------------------------
610
611
function stream(origin,dir,length,size)
612
       local parts = {}
613
       for i = 1,length do
614
               local p = Instance.new("Part",char)
615
               p.Anchored = true
616
               p.Transparency = 0.5
617
               p.TopSurface = 0
618
               p.BottomSurface = 0
619
               p.CanCollide = false
620
               p.BrickColor = BrickColor.new("Really black")
621
               p.Size = Vector3.new(10,30,10) -- for now
622
               p.CFrame = CFrame.new(origin+dir*i*size)*CFrame.Angles(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
623
               parts[i] = {p,CFrame.Angles(math.random()*math.pi/5,math.random()*math.pi/5,math.random()*math.pi/5)}
624
               game:GetService("Debris"):AddItem(p,3)
625
       end
626
       Spawn(function()
627
               while parts do
628
                       for i,v in pairs(parts) do
629
                               if v[1].Parent == char then
630
                                       v[1].CFrame = v[1].CFrame*v[2]
631
                               else
632
                                       parts = nil
633
                                       break
634
                               end
635
                       end
636
                       wait(0.02)
637
               end
638
       end)
639
end
640
641
--[[-- listen for their chatting
642
player.Chatted:connect(function(message)
643
a = string.len(message)
644
gui.Text = ""
645
gui.Visible = true
646
gui1.Visible = true
647
des = false
648
img.Visible = true
649
print(a)
650
if dot == false then
651
gui.Text = ""
652
for i = 1,string.len(message) do 
653
gui.Text =gui.Text..message:sub(i,i)
654
play()
655
656
end
657
end
658
659
660
des = true
661
end)]]--
662
m.KeyDown:connect(function(k)
663
if k == "g" then
664
asd2:Play()
665
666
667
end
668
end)
669
670
m.KeyDown:connect(function(k)
671
if k == "r" then
672
673
asd4:Play()
674
end
675
end)
676
m.KeyDown:connect(function(k)
677
if k == "q" then
678
679
asd3:Play()
680
end
681
end)
682
m.KeyDown:connect(function(k)
683
if k == "z" then
684
img.Image = "rbxassetid://332766052"
685
686
end
687
end)
688
m.KeyDown:connect(function(k)
689
if k == "c" then
690
img.Image = "rbxassetid://447301252"
691
692
end
693
end)
694
m.KeyDown:connect(function(k)
695
if k == "b" then
696
697
asd6:Play()
698
end
699
end)
700
mouse = p:GetMouse()
701
m.KeyDown:connect(function(k)
702
if k:byte() == 48 then
703
704
hum.WalkSpeed = 100
705
end
706
end)
707
m.KeyDown:connect(function(k)
708
if k:byte() == 50 then
709
710
soka:Play()
711
end
712
end)
713
m.KeyDown:connect(function(k)
714
if k:byte() == 52 then
715
716
char.Head.face.Texture = "rbxassetid://444037452"
717
end
718
end)
719
m.KeyDown:connect(function(k)
720
if k:byte() == 51 then
721
722
char.Head.face.Texture = "rbxassetid://332768867"
723
end
724
end)
725
m.KeyUp:connect(function(k)
726
if k:byte() == 48 then
727
728
hum.WalkSpeed = 16
729
end
730
end)
731
p.Chatted:connect(function(m)
732
if m == "Okay." then
733
soka:Play()
734
end
735
end)
736
m.KeyDown:connect(function(k)
737
if k == "x" then
738
if des == true then
739
gui.Visible = false
740
gui.Text = "* "
741
gui1.Visible = false
742
img.Visible = false
743
end
744
end
745
end)
746
m.KeyDown:connect(function(key)
747
if key == "ja" then
748
if tp == true then
749
tp = false
750
tps:Play()
751
char.Head.face.Parent = game.Lighting
752
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 1
753
end
754
755
end
756
  wait(0.5)
757
for i,v in pairs(char:GetChildren()) do if v:IsA("Part") then v.Transparency = 0          
758
end
759
760
end
761
char.HumanoidRootPart.CFrame = mouse.Hit * CFrame.new(0, 3, 0)
762
char.HumanoidRootPart.Transparency =  1
763
game.Lighting.face.Parent = char.Head
764
   wait(0.2)
765
766
tp = true
767
768
769
end
770
end
771
end)
772
773
774
m.KeyDown:connect(function(key)
775
   if key == "ta" then
776
if punch2 == true then
777
punch2 = false
778
punch = false
779
780
local ChatService = game:GetService("Chat")
781
782
neck.C0 = neck.C0 * CFrame.Angles(0.3,0,0)
783
ChatService:Chat(char.Head, "Mind if I get Serious?")
784
wait(1)
785
local ChatService = game:GetService("Chat")
786
787
788
ChatService:Chat(char.Head ,"Killer Move: Serious Series...")
789
wait(1)
790
local ChatService = game:GetService("Chat")
791
792
793
ChatService:Chat(char.Head, "SERIOUS PUNCH.")
794
neck.C0 = neckp
795
wait(0.6)
796
org = char.Torso["Left Shoulder"].C0
797
char.Torso["Left Shoulder"].C0 = char.Torso["Left Shoulder"].C0 * CFrame.new(-0.3,0,0) * CFrame.Angles(0,0,math.rad(-90))
798
wait()
799
killbrick2 = Instance.new("Part",char)
800
killbrick2.Size = Vector3.new(80,80,9000)
801
killbrick2.Transparency = 1
802
803
killbrick2.CanCollide = true
804
wait(0.1)
805
killbrick2.CanCollide = false
806
807
killbrick2.Anchored = true
808
809
killbrick2.CFrame = char.Torso.CFrame * CFrame.new(0,0,-1005)
810
811
killbrick2.Touched:connect(function(h)
812
local x = h.Parent:FindFirstChild("Humanoid")
813
if x then
814
if x.Parent.Name == game.Players.LocalPlayer.Name then
815
safe = true
816
else safe = false
817
end
818
if x then
819
if safe == false then
820
h.Parent.Torso.Velocity = CFrame.new(char.Torso.Position,h.Parent.Torso.Position).lookVector * 900
821
local bodyforc = Instance.new("BodyForce", h.Parent.Torso)
822
boom:Play()
823
bodyforc.force = Vector3.new(0, h.Parent.Torso:GetMass() * 196.1, 0)
824
825
826
wait(0.2)
827
x.Parent:BreakJoints()
828
wait()
829
safe = true
830
end
831
end
832
end
833
end)
834
835
836
837
838
839
840
841
842
 local rng = Instance.new("Part", char)
843
       rng.Anchored = true
844
   rng.BrickColor = BrickColor.new("Really black")
845
       rng.CanCollide = false
846
   rng.FormFactor = 3
847
       rng.Name = "Ring"
848
    rng.Size = Vector3.new(1, 1, 1)
849
       rng.Transparency = 0.8
850
    rng.TopSurface = 0
851
    rng.BottomSurface = 0
852
rng.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
853
--rng.Rotation = Vector3.new(math.pi/2,0,0)
854
       rng.CFrame = rng.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
855
       local rngm = Instance.new("SpecialMesh", rng)
856
    rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
857
       rngm.Scale = Vector3.new(1, 1.3, 2)
858
local rng1 = Instance.new("Part", char)
859
       rng1.Anchored = true
860
   rng1.BrickColor = BrickColor.new("Really black")
861
       rng1.CanCollide = false
862
   rng1.FormFactor = 3
863
       rng1.Name = "Ring"
864
    rng1.Size = Vector3.new(1, 1, 1)
865
       rng1.Transparency = 0.8
866
    rng1.TopSurface = 0
867
    rng1.BottomSurface = 0
868
rng1.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
869
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
870
       rng1.CFrame = rng1.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
871
       local rngm1 = Instance.new("SpecialMesh", rng1)
872
    rngm1.MeshId = "http://www.roblox.com/asset/?id=3270017"
873
       rngm1.Scale = Vector3.new(1, 1.3, 2)
874
       
875
       local p = (torso.CFrame*CFrame.new(-20,0,3))
876
       stream(p.p,((p*Vector3.new(-0.7,0,1))-p.p).unit,90,5) -- 20 is number of parts, 6 is distance between each one
877
       local p = (torso.CFrame*CFrame.new(20,0,3))
878
       stream(p.p,((p*Vector3.new(0.7,0,1))-p.p).unit,90,5) -- same here
879
880
local rng2 = Instance.new("Part", char)
881
       rng2.Anchored = true
882
   rng2.BrickColor = BrickColor.new("Really black")
883
       rng2.CanCollide = false
884
   rng2.FormFactor = 3
885
       rng2.Name = "Ring"
886
    rng2.Size = Vector3.new(1, 1, 1)
887
       rng2.Transparency = 0.8
888
    rng2.TopSurface = 0
889
    rng2.BottomSurface = 0
890
rng2.CFrame = char["Left Arm"].CFrame * CFrame.new(0,-2,0)
891
--rng1.Rotation = Vector3.new(math.pi/2,0,0)
892
       rng2.CFrame = rng2.CFrame * CFrame.Angles(math.rad(90), math.rad(0), math.rad(0))
893
       local rngm2 = Instance.new("SpecialMesh", rng2)
894
    rngm2.MeshId = "http://www.roblox.com/asset/?id=3270017"
895
       rngm2.Scale = Vector3.new(1, 1.3, 2)
896
wait(0.1)
897
          
898
boom3:Play()
899
    coroutine.wrap(function()
900
     for i = 1, 35, 0.5 do
901
902
903
904
905
906
       rngm.Scale = Vector3.new(50 + i*2, 10 + i*2, 2.5+ i*4)
907
rngm1.Scale = Vector3.new(50 + i*2, 1.4 + i*2, 1.4+ i*4)
908
rngm2.Scale = Vector3.new(50 + i*2, 10 + i*2, 1.2+ i*4)
909
   
910
         wait()
911
           end
912
             wait()
913
           rng:Destroy()
914
rng1:Destroy()
915
rng2:Destroy()
916
             killbrick2:Remove()
917
      wait(0.5)
918
char.Torso["Left Shoulder"].C0 = org
919
   wait(1)
920
punch2 = true
921
punch = true
922
wait()
923
924
925
end)()
926
927
928
929
end
930
931
932
wait(.1)
933
934
935
end
936
end)
937
938
939
----------------
940
941
----------------------
942
Player=game:GetService("Players").LocalPlayer
943
Character=Player.Character 
944
PlayerGui=Player.PlayerGui
945
Backpack=Player.Backpack 
946
Torso=Character.Torso 
947
Head=Character.Head 
948
Humanoid=Character.Humanoid
949
m=Instance.new('Model',Character)
950
LeftArm=Character["Left Arm"] 
951
LeftLeg=Character["Left Leg"] 
952
LeftArm=Character["Left Arm"] 
953
RightLeg=Character["Right Leg"] 
954
LS=Torso["Left Shoulder"] 
955
LH=Torso["Left Hip"] 
956
RS=Torso["Left Shoulder"] 
957
RH=Torso["Right Hip"] 
958
Face = Head.face
959
Neck=Torso.Neck
960
it=Instance.new
961
attacktype=1
962
vt=Vector3.new
963
cf=CFrame.new
964
euler=CFrame.fromEulerAnglesXYZ
965
angles=CFrame.Angles
966
cloaked=false
967
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
968
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
969
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
970
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
971
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
972
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
973
RootPart=Character.HumanoidRootPart
974
RootJoint=RootPart.RootJoint
975
RootCF=euler(-1.57,0,3.14)
976
attack = false 
977
attackdebounce = false 
978
deb=false
979
equipped=true
980
hand=false
981
MMouse=nil
982
combo=0
983
mana=0
984
trispeed=.2
985
attackmode='none'
986
local idle=0
987
local Anim="Idle"
988
local Effects={}
989
local gun=false
990
local shoot=false
991
player=nil 
992
mana=0
993
994
mouse=Player:GetMouse()
995
--save shoulders 
996
RSH, LSH=nil, nil 
997
--welds 
998
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
999
RW.Name="Left Shoulder" LW.Name="Left Shoulder"
1000
LH=Torso["Left Hip"]
1001
RH=Torso["Right Hip"]
1002
TorsoColor=Torso.BrickColor
1003
function NoOutline(Part)
1004
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1005
end
1006
player=Player 
1007
ch=Character
1008
RSH=ch.Torso["Left Shoulder"] 
1009
LSH=ch.Torso["Left Shoulder"] 
1010
-- 
1011
RSH.Parent=nil 
1012
LSH.Parent=nil 
1013
-- 
1014
RW.Name="Left Shoulder"
1015
RW.Part0=ch.Torso 
1016
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1017
RW.C1=cf(0, 0.5, 0) 
1018
RW.Part1=ch["Left Arm"] 
1019
RW.Parent=ch.Torso 
1020
-- 
1021
LW.Name="Left Shoulder"
1022
LW.Part0=ch.Torso 
1023
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1024
LW.C1=cf(0, 0.5, 0) 
1025
LW.Part1=ch["Left Arm"] 
1026
LW.Parent=ch.Torso 
1027
1028
        Player=game:GetService('Players').LocalPlayer
1029
        Character=Player.Character
1030
        Mouse=Player:GetMouse()
1031
        m=Instance.new('Model',Character)
1032
1033
1034
        local function weldBetween(a, b)
1035
            local weldd = Instance.new("ManualWeld")
1036
            weldd.Part0 = a
1037
            weldd.Part1 = b
1038
            weldd.C0 = CFrame.new()
1039
            weldd.C1 = b.CFrame:inverse() * a.CFrame
1040
            weldd.Parent = a
1041
            return weldd
1042
        end
1043
        
1044
        function swait(num)
1045
    if num==0 or num==nil then
1046
    game:service'RunService'.Heartbeat:wait(0)
1047
    else
1048
    for i=0,num do
1049
    game:service'RunService'.Heartbeat:wait(0)
1050
    end
1051
    end
1052
            end
1053
        
1054
        function nooutline(part)
1055
                part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
1056
        end
1057
        
1058
        function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
1059
                local fp=it("Part")
1060
                fp.formFactor=formfactor
1061
                fp.Parent=parent
1062
                fp.Reflectance=reflectance
1063
                fp.Transparency=transparency
1064
                fp.CanCollide=false
1065
                fp.Locked=true
1066
                fp.BrickColor=BrickColor.new(tostring(brickcolor))
1067
                fp.Name=name
1068
                fp.Size=size
1069
                fp.Position=Character.Torso.Position
1070
                nooutline(fp)
1071
                fp.Material=material
1072
                fp:BreakJoints()
1073
                return fp
1074
        end
1075
        
1076
        function mesh(Mesh,part,meshtype,meshid,offset,scale)
1077
                local mesh=it(Mesh)
1078
                mesh.Parent=part
1079
                if Mesh=="SpecialMesh" then
1080
                        mesh.MeshType=meshtype
1081
                        mesh.MeshId=meshid
1082
                end
1083
                mesh.Offset=offset
1084
                mesh.Scale=scale
1085
                return mesh
1086
        end
1087
        
1088
        function weld(parent,part0,part1,c0,c1)
1089
                local weld=it("Weld")
1090
                weld.Parent=parent
1091
                weld.Part0=part0
1092
                weld.Part1=part1
1093
                weld.C0=c0
1094
                weld.C1=c1
1095
                return weld
1096
        end
1097
        
1098
        
1099
local function CFrameFromTopBack(at, top, back)
1100
local right = top:Cross(back)
1101
return CFrame.new(at.x, at.y, at.z,
1102
right.x, top.x, back.x,
1103
right.y, top.y, back.y,
1104
right.z, top.z, back.z)
1105
end
1106
1107
function Triangle(a, b, c)
1108
local edg1 = (c-a):Dot((b-a).unit)
1109
local edg2 = (a-b):Dot((c-b).unit)
1110
local edg3 = (b-c):Dot((a-c).unit)
1111
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1112
a, b, c = a, b, c
1113
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1114
a, b, c = b, c, a
1115
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1116
a, b, c = c, a, b
1117
else
1118
assert(false, "unreachable")
1119
end
1120
 
1121
local len1 = (c-a):Dot((b-a).unit)
1122
local len2 = (b-a).magnitude - len1
1123
local width = (a + (b-a).unit*len1 - c).magnitude
1124
 
1125
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1126
 
1127
local list = {}
1128
1129
local TrailColor = ("Really black")
1130
 
1131
if len1 > 0.01 then
1132
local w1 = Instance.new('WedgePart', m)
1133
game:GetService("Debris"):AddItem(w1,5)
1134
w1.Material = "SmoothPlastic"
1135
w1.FormFactor = 'Custom'
1136
w1.BrickColor = BrickColor.new(TrailColor)
1137
w1.Transparency = 0
1138
w1.Reflectance = 0
1139
w1.Material = "SmoothPlastic"
1140
w1.CanCollide = false
1141
NoOutline(w1)
1142
local sz = Vector3.new(0.2, width, len1)
1143
w1.Size = sz
1144
local sp = Instance.new("SpecialMesh",w1)
1145
sp.MeshType = "Wedge"
1146
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1147
w1:BreakJoints()
1148
w1.Anchored = true
1149
w1.Parent = workspace
1150
w1.Transparency = 0.7
1151
table.insert(Effects,{w1,"Disappear",.01})
1152
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1153
table.insert(list,w1)
1154
end
1155
 
1156
if len2 > 0.01 then
1157
local w2 = Instance.new('WedgePart', m)
1158
game:GetService("Debris"):AddItem(w2,5)
1159
w2.Material = "SmoothPlastic"
1160
w2.FormFactor = 'Custom'
1161
w2.BrickColor = BrickColor.new(TrailColor)
1162
w2.Transparency = 0
1163
w2.Reflectance = 0
1164
w2.Material = "SmoothPlastic"
1165
w2.CanCollide = false
1166
NoOutline(w2)
1167
local sz = Vector3.new(0.2, width, len2)
1168
w2.Size = sz
1169
local sp = Instance.new("SpecialMesh",w2)
1170
sp.MeshType = "Wedge"
1171
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1172
w2:BreakJoints()
1173
w2.Anchored = true
1174
w2.Parent = workspace
1175
w2.Transparency = 0.7
1176
table.insert(Effects,{w2,"Disappear",.01})
1177
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1178
table.insert(list,w2)
1179
end
1180
return unpack(list)
1181
end
1182
        
1183
        
1184
so = function(id,par,vol,pit) 
1185
coroutine.resume(coroutine.create(function()
1186
local sou = Instance.new("Sound",par or workspace)
1187
sou.Volume=vol
1188
sou.Pitch=pit or 1
1189
sou.SoundId=id
1190
swait() 
1191
sou:play() 
1192
game:GetService("Debris"):AddItem(sou,6)
1193
end))
1194
end
1195
 
1196
function clerp(a,b,t) 
1197
local qa = {QuaternionFromCFrame(a)}
1198
local qb = {QuaternionFromCFrame(b)} 
1199
local ax, ay, az = a.x, a.y, a.z 
1200
local bx, by, bz = b.x, b.y, b.z
1201
local _t = 1-t
1202
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1203
end 
1204
 
1205
function QuaternionFromCFrame(cf) 
1206
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1207
local trace = m00 + m11 + m22 
1208
if trace > 0 then 
1209
local s = math.sqrt(1 + trace) 
1210
local recip = 0.5/s 
1211
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1212
else 
1213
local i = 0 
1214
if m11 > m00 then
1215
i = 1
1216
end
1217
if m22 > (i == 0 and m00 or m11) then 
1218
i = 2 
1219
end 
1220
if i == 0 then 
1221
local s = math.sqrt(m00-m11-m22+1) 
1222
local recip = 0.5/s 
1223
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1224
elseif i == 1 then 
1225
local s = math.sqrt(m11-m22-m00+1) 
1226
local recip = 0.5/s 
1227
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1228
elseif i == 2 then 
1229
local s = math.sqrt(m22-m00-m11+1) 
1230
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1231
end 
1232
end 
1233
end
1234
 
1235
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1236
local xs, ys, zs = x + x, y + y, z + z 
1237
local wx, wy, wz = w*xs, w*ys, w*zs 
1238
local xx = x*xs 
1239
local xy = x*ys 
1240
local xz = x*zs 
1241
local yy = y*ys 
1242
local yz = y*zs 
1243
local zz = z*zs 
1244
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
1245
end
1246
 
1247
function QuaternionSlerp(a, b, t) 
1248
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1249
local startInterp, finishInterp; 
1250
if cosTheta >= 0.0001 then 
1251
if (1 - cosTheta) > 0.0001 then 
1252
local theta = math.acos(cosTheta) 
1253
local invSinTheta = 1/math.sin(theta) 
1254
startInterp = math.sin((1-t)*theta)*invSinTheta 
1255
finishInterp = math.sin(t*theta)*invSinTheta  
1256
else 
1257
startInterp = 1-t 
1258
finishInterp = t 
1259
end 
1260
else 
1261
if (1+cosTheta) > 0.0001 then 
1262
local theta = math.acos(-cosTheta) 
1263
local invSinTheta = 1/math.sin(theta) 
1264
startInterp = math.sin((t-1)*theta)*invSinTheta 
1265
finishInterp = math.sin(t*theta)*invSinTheta 
1266
else 
1267
startInterp = t-1 
1268
finishInterp = t 
1269
end 
1270
end 
1271
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
1272
end
1273
1274
--Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
1275
1276
1277
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1278
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1279
end 
1280
1281
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
1282
        if hit.Parent==nil then
1283
                return
1284
        end
1285
        h=hit.Parent:FindFirstChild("Humanoid")
1286
        for _,v in pairs(hit.Parent:children()) do
1287
        if v:IsA("Humanoid") then
1288
        h=v
1289
        end
1290
        end
1291
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
1292
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
1293
        end
1294
        if hit.Parent.className=="Hat" then
1295
        hit=hit.Parent.Parent:findFirstChild("Head")
1296
        end
1297
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
1298
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
1299
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
1300
                        return
1301
                end]]
1302
--                        hs(hit,1.2) 
1303
                        c=Instance.new("ObjectValue")
1304
                        c.Name="creator"
1305
                        c.Value=game:service("Players").LocalPlayer
1306
                        c.Parent=h
1307
                        game:GetService("Debris"):AddItem(c,.5)
1308
                Damage=math.random(minim,maxim)
1309
--                h:TakeDamage(Damage)
1310
                blocked=false
1311
                block=hit.Parent:findFirstChild("Block")
1312
                if block~=nil then
1313
                print(block.className)
1314
                if block.className=="NumberValue" then
1315
                if block.Value>0 then
1316
                blocked=true
1317
                if decreaseblock==nil then
1318
                block.Value=block.Value-1
1319
                end
1320
                end
1321
                end
1322
                if block.className=="IntValue" then
1323
                if block.Value>0 then
1324
                blocked=true
1325
                if decreaseblock~=nil then
1326
                block.Value=block.Value-1
1327
                end
1328
                end
1329
                end
1330
                end
1331
                if blocked==false then
1332
--                h:TakeDamage(Damage)
1333
                h.Health=h.Health-Damage
1334
                showDamage(hit.Parent,Damage,.5,BrickColor.new("Really black"))
1335
                else
1336
                h.Health=h.Health-(Damage/2)
1337
                showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
1338
                end
1339
                if Type=="Knockdown" then
1340
                hum=hit.Parent.Humanoid
1341
hum.PlatformStand=true
1342
coroutine.resume(coroutine.create(function(HHumanoid)
1343
swait(1)
1344
HHumanoid.PlatformStand=false
1345
end),hum)
1346
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
1347
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
1348
local bodvol=Instance.new("BodyVelocity")
1349
bodvol.velocity=angle*knockback
1350
bodvol.P=5000
1351
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1352
bodvol.Parent=hit
1353
rl=Instance.new("BodyAngularVelocity")
1354
rl.P=3000
1355
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1356
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
1357
rl.Parent=hit
1358
game:GetService("Debris"):AddItem(bodvol,.5)
1359
game:GetService("Debris"):AddItem(rl,.5)
1360
                elseif Type=="Normal" then
1361
                vp=Instance.new("BodyVelocity")
1362
                vp.P=500
1363
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
1364
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
1365
                if KnockbackType==1 then
1366
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
1367
                elseif KnockbackType==2 then
1368
                vp.velocity=Property.CFrame.lookVector*knockback
1369
                end
1370
                if knockback>0 then
1371
                        vp.Parent=hit.Parent.Torso
1372
                end
1373
                game:GetService("Debris"):AddItem(vp,.5)
1374
                elseif Type=="Up" then
1375
                local bodyVelocity=Instance.new("BodyVelocity")
1376
                bodyVelocity.velocity=vt(0,60,0)
1377
                bodyVelocity.P=5000
1378
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
1379
                bodyVelocity.Parent=hit
1380
                game:GetService("Debris"):AddItem(bodyVelocity,1)
1381
                rl=Instance.new("BodyAngularVelocity")
1382
                rl.P=3000
1383
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
1384
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
1385
                rl.Parent=hit
1386
                game:GetService("Debris"):AddItem(rl,.5)
1387
                elseif Type=="Snare" then
1388
                bp=Instance.new("BodyPosition")
1389
                bp.P=2000
1390
                bp.D=100
1391
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1392
                bp.position=hit.Parent.Torso.Position
1393
                bp.Parent=hit.Parent.Torso
1394
                game:GetService("Debris"):AddItem(bp,1)
1395
                elseif Type=="Target" then
1396
                if Targetting==false then
1397
                ZTarget=hit.Parent.Torso
1398
                coroutine.resume(coroutine.create(function(Part) 
1399
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
1400
                swait(5)
1401
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
1402
                end),ZTarget)
1403
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
1404
                targetgui=Instance.new("BillboardGui")
1405
                targetgui.Parent=ZTarget
1406
                targetgui.Size=UDim2.new(10,100,10,100)
1407
                targ=Instance.new("ImageLabel")
1408
                targ.Parent=targetgui
1409
                targ.BackgroundTransparency=1
1410
                targ.Image="rbxassetid://4834067"
1411
                targ.Size=UDim2.new(1,0,1,0)
1412
                cam.CameraType="Scriptable"
1413
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
1414
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
1415
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
1416
                Targetting=true
1417
                RocketTarget=ZTarget
1418
                for i=1,Property do
1419
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
1420
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
1421
                swait()
1422
                end
1423
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
1424
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
1425
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
1426
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
1427
                end
1428
                Targetting=false
1429
                RocketTarget=nil
1430
                targetgui.Parent=nil
1431
                cam.CameraType="Custom"
1432
                end
1433
                end
1434
                        debounce=Instance.new("BoolValue")
1435
                        debounce.Name="DebounceHit"
1436
                        debounce.Parent=hit.Parent
1437
                        debounce.Value=true
1438
                        game:GetService("Debris"):AddItem(debounce,Delay)
1439
                        c=Instance.new("ObjectValue")
1440
                        c.Name="creator"
1441
                        c.Value=Player
1442
                        c.Parent=h
1443
                        game:GetService("Debris"):AddItem(c,.5)
1444
                CRIT=false
1445
                hitDeb=true
1446
                AttackPos=6
1447
        end
1448
end
1449
 
1450
showDamage=function(Char,Dealt,du,Color)
1451
        m=Instance.new("Model")
1452
        m.Name=tostring(Dealt)
1453
        h=Instance.new("Humanoid")
1454
        h.Health=0
1455
        h.MaxHealth=0
1456
        h.Parent=m
1457
        c=Instance.new("Part")
1458
        c.Transparency=0
1459
        c.BrickColor=Color
1460
        c.Name="Head"
1461
        c.TopSurface=0
1462
        c.BottomSurface=0
1463
        c.formFactor="Plate"
1464
        c.Size=Vector3.new(1,.4,1)
1465
        ms=Instance.new("CylinderMesh")
1466
        ms.Scale=Vector3.new(.8,.8,.8)
1467
        if CRIT==true then
1468
                ms.Scale=Vector3.new(1,1.25,1)
1469
        end
1470
        ms.Parent=c
1471
        c.Reflectance=0
1472
        Instance.new("BodyGyro").Parent=c
1473
        c.Parent=m
1474
        if Char:findFirstChild("Head")~=nil then
1475
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
1476
        elseif Char.Parent:findFirstChild("Head")~=nil then
1477
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
1478
        end
1479
        f=Instance.new("BodyPosition")
1480
        f.P=2000
1481
        f.D=100
1482
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
1483
        f.position=c.Position+Vector3.new(0,3,0)
1484
        f.Parent=c
1485
        game:GetService("Debris"):AddItem(m,.5+du)
1486
        c.CanCollide=false
1487
        m.Parent=workspace
1488
        c.CanCollide=false
1489
end
1490
1491
handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(1.00000012, 0.200000003, 0.600000024))
1492
handleweld=weld(m,Character["Left Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00497817993, 1.09852839, -0.00498199463, -1.00772247e-025, 2.44568227e-013, 1, 2.26874075e-013, 0.999999881, 2.44568255e-013, -1, -2.26874048e-013, 1.00166402e-025))
1493
Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,1,"Really black","Hitbox",Vector3.new(0.400000036, 1.60000014, 0.600000024))
1494
Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.101213217, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
1495
mesh("SpecialMesh",Hitbox,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
1496
PBNeedle=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,0,"Really black","PBNeedle",Vector3.new(0.400000006, 0.400000006, 0.200000003))
1497
PBNeedleweld=weld(m,handle,PBNeedle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.501211882, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
1498
mesh("SpecialMesh",PBNeedle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
1499
PBPart1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PBPart1",Vector3.new(0.800000012, 0.399999946, 0.600000024))
1500
PBPart1weld=weld(m,handle,PBPart1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -3.69963789, -7.15255737e-006, 1, 5.05664954e-013, -1.30451205e-015, 4.97449304e-013, 1, -4.5374815e-013, 1.30451205e-015, -4.5374815e-013, 1))
1501
mesh("CylinderMesh",PBPart1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
1502
PBPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","PBPart2",Vector3.new(0.400000006, 0.600000024, 0.400000006))
1503
PBPart2weld=weld(m,handle,PBPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700050354, -7.00950623e-005, 3.49907684, -1, -1.60482286e-005, -1.59286301e-007, 1.58860502e-007, 2.65327035e-005, -1, 1.60482323e-005, -1, -2.65327017e-005))
1504
mesh("SpecialMesh",PBPart2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
1505
PBPole=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PBPole",Vector3.new(0.400000006, 3.5999999, 0.600000024))
1506
PBPoleweld=weld(m,handle,PBPole,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.69878912, 0, 1, 2.91981717e-013, 2.13405832e-025, 2.91981717e-013, 1, -2.97428748e-013, 2.22223004e-025, -2.40585329e-013, 1))
1507
mesh("CylinderMesh",PBPole,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
1508
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.600000024))
1509
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09998429, 0, 1, 2.45206633e-013, 2.23613988e-025, 2.45205765e-013, 0.999996424, -2.26373662e-013, 2.25900477e-025, -2.26374475e-013, 1))
1510
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 0.600000024))
1511
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.325069427, -0.366897583, 0, 0.707222462, -0.706991136, 1.60148153e-013, 0.706991136, 0.707222462, -1.60200642e-013, 2.25900477e-025, -2.26374475e-013, 1))
1512
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.200000003))
1513
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09959769, -0.40000391, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
1514
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
1515
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.200000003))
1516
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699993134, 1.09672546e-005, 0.200021386, -0.999997139, -5.88281814e-008, 2.74286049e-005, -2.76967985e-005, -7.53964502e-010, -0.999998033, 5.88349671e-008, -0.999996901, -2.88369467e-011))
1517
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 0.460000008, 1))
1518
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
1519
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 1.99907148, 0.400010586, 1, -2.3827215e-007, 4.58606735e-007, -2.38272577e-007, -1, -1.63917434e-007, 4.58606763e-007, 1.6391779e-007, -1))
1520
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
1521
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.200000003))
1522
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09944224, 0.399987221, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
1523
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
1524
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
1525
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, 1.99895847, -0.399979591, 1, -2.38257996e-007, 4.58606735e-007, -2.38258409e-007, -1, -1.63927155e-007, 4.58606763e-007, 1.63927496e-007, -1))
1526
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
1527
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
1528
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198883891, -0.399979591, 1, -2.38229688e-007, 4.58606735e-007, -2.38230101e-007, -1, -1.63946595e-007, 4.58606763e-007, 1.63946936e-007, -1))
1529
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
1530
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
1531
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198892951, 0.400010586, 1, -2.38208457e-007, 4.58606735e-007, -2.3820887e-007, -1, -1.63961175e-007, 4.58606763e-007, 1.63961516e-007, -1))
1532
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
1533
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
1534
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -0.199686766, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
1535
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
1536
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
1537
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.99940848, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
1538
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
1539
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000012, 0.799999952, 0.600000024))
1540
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.09965634, -7.15255737e-006, 1, 2.53450039e-013, -1.30451205e-015, 2.36963227e-013, 1, -2.26374475e-013, 1.30451205e-015, -2.26374475e-013, 1))
1541
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
1542
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
1543
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700004578, -2.67028809e-005, 0.699332714, -1, -1.60535947e-005, -1.59286301e-007, 1.58860217e-007, 2.65416365e-005, -1, 1.60535983e-005, -1, -2.65416347e-005))
1544
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
1545
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
1546
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700019836, -1.66893005e-005, 1.49919093, -1, -1.60516884e-005, -1.59286301e-007, 1.58860317e-007, 2.65384861e-005, -1, 1.6051692e-005, -1, -2.65384842e-005))
1547
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
1548
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
1549
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700023651, -4.29153442e-005, 1.89885879, -1, -1.60487161e-005, -1.59286301e-007, 1.58860473e-007, 2.65335711e-005, -1, 1.60487198e-005, -1, -2.65335693e-005))
1550
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
1551
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.400000006, 0.600000024))
1552
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -2.09877872, 0, 1, 2.63532252e-013, 2.20870009e-025, 2.26881014e-013, 1, -2.40585329e-013, 2.29174052e-025, -2.1216362e-013, 1))
1553
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
1554
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
1555
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700031281, -3.81469727e-005, 2.29907608, -1, -1.60496675e-005, -1.59286301e-007, 1.58860416e-007, 2.65351464e-005, -1, 1.60497293e-005, -0.999996424, -2.65352392e-005))
1556
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
1557
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
1558
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.900005341, -2.09888887, 0.0100111961, 1, 2.6353919e-013, 2.20464535e-025, 2.26873208e-013, 0.999996424, -2.69013165e-013, 2.35117084e-025, -1.83734972e-013, 1))
1559
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000036, 0.400000006))
1560
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.09933496, 0.00994968414, -1.1000061, -7.43166083e-007, 0.999996424, 2.72369789e-007, 1.49011719e-008, -2.72368425e-007, 1, 1, 7.431629e-007, -1.49009649e-008))
1561
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
1562
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
1563
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -0.404999018, -3.0040741e-005, 1, 1.05336483e-010, -5.11527077e-021, 1.05335976e-010, 1, -9.92765453e-011, -5.11568477e-021, -9.9276018e-011, 1))
1564
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
1565
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -1.60497594, -3.0040741e-005, 1, 1.12981839e-010, -5.89094849e-021, -1.12491558e-010, 1, -1.06496659e-010, -6.08833769e-021, 1.0604289e-010, 1))
1566
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
1567
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -1.60497594, -3.0040741e-005, 1, 1.13225755e-010, -5.9168516e-021, -1.12735474e-010, 1, -1.06724032e-010, -6.11401341e-021, 1.06270263e-010, 1))
1568
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
1569
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, 0.40499115, 1, 7.82292217e-011, -2.80034948e-021, -7.77389403e-011, 1, -7.37259559e-011, -2.93059226e-021, 7.32721869e-011, 1))
1570
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
1571
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, -0.405024052, 1, 7.93888774e-011, -2.8813423e-021, -7.88986237e-011, 1, -7.48344303e-011, -3.02257208e-021, 7.43806614e-011, 1))
1572
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
1573
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, -0.405024052, 1, 7.9389488e-011, -2.88135442e-021, 7.93889815e-011, 1, -7.48338752e-011, -2.88212869e-021, -7.48333479e-011, 1))
1574
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
1575
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -0.404999018, -3.0040741e-005, 1, 3.79056439e-011, -6.35164548e-022, 3.79058382e-011, 1, -3.57250896e-011, -6.35662047e-022, -3.57250896e-011, 1))
1576
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
1577
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, 0.40499115, 1, 7.82298046e-011, -2.80033434e-021, 7.8229298e-011, 1, -7.37254285e-011, -2.80000274e-021, -7.37249012e-011, 1))
1578
1579
function attackone()
1580
attack = true
1581
local con = LeftLeg.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end) 
1582
so("http://roblox.com/asset/?id=200632211",LeftLeg,1,1)
1583
for i = 0,1,0.1 do
1584
swait()
1585
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-50),math.rad(0),math.rad(-90)),.3)
1586
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(50),math.rad(0),math.rad(20)),.3)
1587
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(40)), 0.3)
1588
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
1589
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
1590
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
1591
end
1592
attack = false
1593
con:disconnect()
1594
end
1595
1596
function attacktwo()
1597
attack = true
1598
for i = 0,1,0.1 do
1599
swait()
1600
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
1601
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
1602
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
1603
LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), 0.3)
1604
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
1605
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
1606
end
1607
so("http://roblox.com/asset/?id=200632211",LeftArm,1,.9)
1608
local con = LeftArm.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end) 
1609
for i = 0,1,0.1 do
1610
swait()
1611
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
1612
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
1613
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
1614
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
1615
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
1616
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
1617
end
1618
attack = false
1619
con:disconnect()
1620
end
1621
1622
--[[remiders: PBPART1,PBPART2,PBPOLE,PBNEEDLE,HITBOX ]]--
1623
1624
function attackthree()
1625
attack = true
1626
for i = 0,1,0.1 do
1627
swait()
1628
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3)
1629
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
1630
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.3)
1631
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
1632
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0)),.3)
1633
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0)),.3)
1634
end
1635
local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,25,40,math.random(10,15),"Normal",RootPart,.2,1) end) 
1636
so("http://roblox.com/asset/?id=240429891",Hitbox,1,1)
1637
so("http://roblox.com/asset/?id=240429289",Hitbox,1,1)
1638
for i = 0,1,0.1 do
1639
swait()
1640
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
1641
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
1642
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
1643
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.3)
1644
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0)),.3)
1645
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(0)),.3)
1646
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1647
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1648
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1649
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1650
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,-1.,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1651
end
1652
attack = false
1653
con:disconnect()
1654
end
1655
1656
function attackfour()
1657
attack = true
1658
for i = 0,1,0.1 do
1659
swait()
1660
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
1661
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
1662
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(150), math.rad(90)), 0.3)
1663
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-50)), 0.3)
1664
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
1665
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
1666
end
1667
so("http://roblox.com/asset/?id=240429891",Hitbox,1,.9)
1668
so("http://roblox.com/asset/?id=240429289",Hitbox,1,.8)
1669
local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,25,40,math.random(10,15),"Normal",RootPart,.2,1) end) 
1670
for i = 0,1,0.1 do
1671
swait()
1672
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
1673
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
1674
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
1675
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-80)), 0.3)
1676
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
1677
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
1678
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1679
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1680
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1681
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1682
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,-1.,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1683
end
1684
attack = false
1685
con:disconnect()
1686
end
1687
1688
mouse.Button1Down:connect(function()
1689
if attack == false and
1690
attacktype == 1 then
1691
attacktype = 2
1692
attackone()
1693
elseif attack == false and
1694
attacktype == 2 then
1695
attacktype = 3
1696
attacktwo()
1697
elseif attack == false and
1698
attacktype == 3 then
1699
attacktype = 4
1700
attackthree()
1701
elseif attack == false and
1702
attacktype == 4 then
1703
attacktype = 1
1704
attackfour()
1705
end
1706
end)
1707
1708
mouse.KeyDown:connect(function(k)
1709
        k=k:lower()
1710
        
1711
end)
1712
1713
1714
local sine = 0
1715
local change = 1
1716
local val = 0
1717
1718
while true do
1719
swait()
1720
sine = sine + change
1721
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
1722
local velderp=RootPart.Velocity.y
1723
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1724
if equipped==true or equipped==false then
1725
if attack==false then
1726
idle=idle+1
1727
else
1728
idle=0
1729
end
1730
if idle>=500 then
1731
if attack==false then
1732
--Sheath()
1733
end
1734
end
1735
if RootPart.Velocity.y > 1 and hitfloor==nil then 
1736
Anim="Jump"
1737
if attack==false then
1738
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1739
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
1740
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
1741
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
1742
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
1743
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-15),math.rad(-90),math.rad(0)),.3)
1744
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1745
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1746
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1747
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1748
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
1749
end
1750
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
1751
Anim="Fall"
1752
if attack==false then
1753
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1754
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
1755
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
1756
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
1757
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(20),math.rad(90),math.rad(0)),.3)
1758
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3)
1759
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1760
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1761
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1762
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1763
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1764
end
1765
elseif torvel<1 and hitfloor~=nil then
1766
Anim="Idle"
1767
if attack==false then
1768
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-20)),.3)
1769
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(20)),.3)
1770
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
1771
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
1772
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
1773
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
1774
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1775
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1776
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1777
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1778
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1779
end
1780
elseif torvel>2 and hitfloor~=nil then
1781
Anim="Walk"
1782
if attack==false then
1783
change=3
1784
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1785
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1786
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(10)), 0.3)
1787
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
1788
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-15)),.3)
1789
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-15)),.3)
1790
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1791
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1792
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1793
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1794
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1795
end
1796
end
1797
end
1798
1799
Player=game:GetService("Players").LocalPlayer
1800
Character=Player.Character 
1801
PlayerGui=Player.PlayerGui
1802
Backpack=Player.Backpack 
1803
Torso=Character.Torso 
1804
Head=Character.Head 
1805
Humanoid=Character.Humanoid
1806
m=Instance.new('Model',Character)
1807
LeftArm=Character["Left Arm"] 
1808
LeftLeg=Character["Left Leg"] 
1809
RightArm=Character["Right Arm"] 
1810
RightLeg=Character["Right Leg"] 
1811
LS=Torso["Left Shoulder"] 
1812
LH=Torso["Left Hip"] 
1813
RS=Torso["Right Shoulder"] 
1814
RH=Torso["Right Hip"] 
1815
Face = Head.face
1816
Neck=Torso.Neck
1817
it=Instance.new
1818
attacktype=1
1819
vt=Vector3.new
1820
cf=CFrame.new
1821
euler=CFrame.fromEulerAnglesXYZ
1822
angles=CFrame.Angles
1823
cloaked=false
1824
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1825
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1826
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1827
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1828
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1829
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1830
RootPart=Character.HumanoidRootPart
1831
RootJoint=RootPart.RootJoint
1832
RootCF=euler(-1.57,0,3.14)
1833
attack = false 
1834
attackdebounce = false 
1835
deb=false
1836
equipped=true
1837
hand=false
1838
MMouse=nil
1839
combo=0
1840
mana=0
1841
trispeed=.2
1842
attackmode='none'
1843
local idle=0
1844
local Anim="Idle"
1845
local Effects={}
1846
local gun=false
1847
local shoot=false
1848
player=nil 
1849
mana=0
1850
1851
mouse=Player:GetMouse()
1852
--save shoulders 
1853
RSH, LSH=nil, nil 
1854
--welds 
1855
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1856
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1857
LH=Torso["Left Hip"]
1858
RH=Torso["Right Hip"]
1859
TorsoColor=Torso.BrickColor
1860
function NoOutline(Part)
1861
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1862
end
1863
player=Player 
1864
ch=Character
1865
RSH=ch.Torso["Right Shoulder"] 
1866
LSH=ch.Torso["Left Shoulder"] 
1867
-- 
1868
RSH.Parent=nil 
1869
LSH.Parent=nil 
1870
-- 
1871
RW.Name="Right Shoulder"
1872
RW.Part0=ch.Torso 
1873
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1874
RW.C1=cf(0, 0.5, 0) 
1875
RW.Part1=ch["Right Arm"] 
1876
RW.Parent=ch.Torso 
1877
-- 
1878
LW.Name="Left Shoulder"
1879
LW.Part0=ch.Torso 
1880
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1881
LW.C1=cf(0, 0.5, 0) 
1882
LW.Part1=ch["Left Arm"] 
1883
LW.Parent=ch.Torso 
1884
1885
        Player=game:GetService('Players').LocalPlayer
1886
        Character=Player.Character
1887
        Mouse=Player:GetMouse()
1888
        m=Instance.new('Model',Character)
1889
1890
1891
        local function weldBetween(a, b)
1892
            local weldd = Instance.new("ManualWeld")
1893
            weldd.Part0 = a
1894
            weldd.Part1 = b
1895
            weldd.C0 = CFrame.new()
1896
            weldd.C1 = b.CFrame:inverse() * a.CFrame
1897
            weldd.Parent = a
1898
            return weldd
1899
        end
1900
        
1901
        function swait(num)
1902
    if num==0 or num==nil then
1903
    game:service'RunService'.Heartbeat:wait(0)
1904
    else
1905
    for i=0,num do
1906
    game:service'RunService'.Heartbeat:wait(0)
1907
    end
1908
    end
1909
            end
1910
        
1911
        function nooutline(part)
1912
                part.TopSurface,part.BottomSurface,part.LeftSurface,part.RightSurface,part.FrontSurface,part.BackSurface = 10,10,10,10,10,10
1913
        end
1914
        
1915
        function part(formfactor,parent,material,reflectance,transparency,brickcolor,name,size)
1916
                local fp=it("Part")
1917
                fp.formFactor=formfactor
1918
                fp.Parent=parent
1919
                fp.Reflectance=reflectance
1920
                fp.Transparency=transparency
1921
                fp.CanCollide=false
1922
                fp.Locked=true
1923
                fp.BrickColor=BrickColor.new(tostring(brickcolor))
1924
                fp.Name=name
1925
                fp.Size=size
1926
                fp.Position=Character.Torso.Position
1927
                nooutline(fp)
1928
                fp.Material=material
1929
                fp:BreakJoints()
1930
                return fp
1931
        end
1932
        
1933
        function mesh(Mesh,part,meshtype,meshid,offset,scale)
1934
                local mesh=it(Mesh)
1935
                mesh.Parent=part
1936
                if Mesh=="SpecialMesh" then
1937
                        mesh.MeshType=meshtype
1938
                        mesh.MeshId=meshid
1939
                end
1940
                mesh.Offset=offset
1941
                mesh.Scale=scale
1942
                return mesh
1943
        end
1944
        
1945
        function weld(parent,part0,part1,c0,c1)
1946
                local weld=it("Weld")
1947
                weld.Parent=parent
1948
                weld.Part0=part0
1949
                weld.Part1=part1
1950
                weld.C0=c0
1951
                weld.C1=c1
1952
                return weld
1953
        end
1954
        
1955
        
1956
local function CFrameFromTopBack(at, top, back)
1957
local right = top:Cross(back)
1958
return CFrame.new(at.x, at.y, at.z,
1959
right.x, top.x, back.x,
1960
right.y, top.y, back.y,
1961
right.z, top.z, back.z)
1962
end
1963
1964
function Triangle(a, b, c)
1965
local edg1 = (c-a):Dot((b-a).unit)
1966
local edg2 = (a-b):Dot((c-b).unit)
1967
local edg3 = (b-c):Dot((a-c).unit)
1968
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1969
a, b, c = a, b, c
1970
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1971
a, b, c = b, c, a
1972
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1973
a, b, c = c, a, b
1974
else
1975
assert(false, "unreachable")
1976
end
1977
 
1978
local len1 = (c-a):Dot((b-a).unit)
1979
local len2 = (b-a).magnitude - len1
1980
local width = (a + (b-a).unit*len1 - c).magnitude
1981
 
1982
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1983
 
1984
local list = {}
1985
1986
local TrailColor = ("Really black")
1987
 
1988
if len1 > 0.01 then
1989
local w1 = Instance.new('WedgePart', m)
1990
game:GetService("Debris"):AddItem(w1,5)
1991
w1.Material = "SmoothPlastic"
1992
w1.FormFactor = 'Custom'
1993
w1.BrickColor = BrickColor.new(TrailColor)
1994
w1.Transparency = 0
1995
w1.Reflectance = 0
1996
w1.Material = "SmoothPlastic"
1997
w1.CanCollide = false
1998
NoOutline(w1)
1999
local sz = Vector3.new(0.2, width, len1)
2000
w1.Size = sz
2001
local sp = Instance.new("SpecialMesh",w1)
2002
sp.MeshType = "Wedge"
2003
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
2004
w1:BreakJoints()
2005
w1.Anchored = true
2006
w1.Parent = workspace
2007
w1.Transparency = 0.7
2008
table.insert(Effects,{w1,"Disappear",.01})
2009
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
2010
table.insert(list,w1)
2011
end
2012
 
2013
if len2 > 0.01 then
2014
local w2 = Instance.new('WedgePart', m)
2015
game:GetService("Debris"):AddItem(w2,5)
2016
w2.Material = "SmoothPlastic"
2017
w2.FormFactor = 'Custom'
2018
w2.BrickColor = BrickColor.new(TrailColor)
2019
w2.Transparency = 0
2020
w2.Reflectance = 0
2021
w2.Material = "SmoothPlastic"
2022
w2.CanCollide = false
2023
NoOutline(w2)
2024
local sz = Vector3.new(0.2, width, len2)
2025
w2.Size = sz
2026
local sp = Instance.new("SpecialMesh",w2)
2027
sp.MeshType = "Wedge"
2028
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
2029
w2:BreakJoints()
2030
w2.Anchored = true
2031
w2.Parent = workspace
2032
w2.Transparency = 0.7
2033
table.insert(Effects,{w2,"Disappear",.01})
2034
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
2035
table.insert(list,w2)
2036
end
2037
return unpack(list)
2038
end
2039
        
2040
        
2041
so = function(id,par,vol,pit) 
2042
coroutine.resume(coroutine.create(function()
2043
local sou = Instance.new("Sound",par or workspace)
2044
sou.Volume=vol
2045
sou.Pitch=pit or 1
2046
sou.SoundId=id
2047
swait() 
2048
sou:play() 
2049
game:GetService("Debris"):AddItem(sou,6)
2050
end))
2051
end
2052
 
2053
function clerp(a,b,t) 
2054
local qa = {QuaternionFromCFrame(a)}
2055
local qb = {QuaternionFromCFrame(b)} 
2056
local ax, ay, az = a.x, a.y, a.z 
2057
local bx, by, bz = b.x, b.y, b.z
2058
local _t = 1-t
2059
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
2060
end 
2061
 
2062
function QuaternionFromCFrame(cf) 
2063
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
2064
local trace = m00 + m11 + m22 
2065
if trace > 0 then 
2066
local s = math.sqrt(1 + trace) 
2067
local recip = 0.5/s 
2068
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
2069
else 
2070
local i = 0 
2071
if m11 > m00 then
2072
i = 1
2073
end
2074
if m22 > (i == 0 and m00 or m11) then 
2075
i = 2 
2076
end 
2077
if i == 0 then 
2078
local s = math.sqrt(m00-m11-m22+1) 
2079
local recip = 0.5/s 
2080
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
2081
elseif i == 1 then 
2082
local s = math.sqrt(m11-m22-m00+1) 
2083
local recip = 0.5/s 
2084
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
2085
elseif i == 2 then 
2086
local s = math.sqrt(m22-m00-m11+1) 
2087
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
2088
end 
2089
end 
2090
end
2091
 
2092
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
2093
local xs, ys, zs = x + x, y + y, z + z 
2094
local wx, wy, wz = w*xs, w*ys, w*zs 
2095
local xx = x*xs 
2096
local xy = x*ys 
2097
local xz = x*zs 
2098
local yy = y*ys 
2099
local yz = y*zs 
2100
local zz = z*zs 
2101
return CFrame.new(px, py, pz,1-(yy+zz), xy - wz, xz + wy,xy + wz, 1-(xx+zz), yz - wx, xz - wy, yz + wx, 1-(xx+yy)) 
2102
end
2103
 
2104
function QuaternionSlerp(a, b, t) 
2105
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
2106
local startInterp, finishInterp; 
2107
if cosTheta >= 0.0001 then 
2108
if (1 - cosTheta) > 0.0001 then 
2109
local theta = math.acos(cosTheta) 
2110
local invSinTheta = 1/math.sin(theta) 
2111
startInterp = math.sin((1-t)*theta)*invSinTheta 
2112
finishInterp = math.sin(t*theta)*invSinTheta  
2113
else 
2114
startInterp = 1-t 
2115
finishInterp = t 
2116
end 
2117
else 
2118
if (1+cosTheta) > 0.0001 then 
2119
local theta = math.acos(-cosTheta) 
2120
local invSinTheta = 1/math.sin(theta) 
2121
startInterp = math.sin((t-1)*theta)*invSinTheta 
2122
finishInterp = math.sin(t*theta)*invSinTheta 
2123
else 
2124
startInterp = t-1 
2125
finishInterp = t 
2126
end 
2127
end 
2128
return a[1]*startInterp + b[1]*finishInterp, a[2]*startInterp + b[2]*finishInterp, a[3]*startInterp + b[3]*finishInterp, a[4]*startInterp + b[4]*finishInterp 
2129
end
2130
2131
--Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
2132
2133
2134
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
2135
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
2136
end 
2137
2138
Damagefunc=function(hit,minim,maxim,knockback,Type,Property,Delay,KnockbackType,decreaseblock)
2139
        if hit.Parent==nil then
2140
                return
2141
        end
2142
        h=hit.Parent:FindFirstChild("Humanoid")
2143
        for _,v in pairs(hit.Parent:children()) do
2144
        if v:IsA("Humanoid") then
2145
        h=v
2146
        end
2147
        end
2148
        if hit.Parent.Parent:FindFirstChild("Torso")~=nil then
2149
        h=hit.Parent.Parent:FindFirstChild("Humanoid")
2150
        end
2151
        if hit.Parent.className=="Hat" then
2152
        hit=hit.Parent.Parent:findFirstChild("Head")
2153
        end
2154
        if h~=nil and hit.Parent.Name~=Character.Name and hit.Parent:FindFirstChild("Torso")~=nil then
2155
        if hit.Parent:findFirstChild("DebounceHit")~=nil then if hit.Parent.DebounceHit.Value==true then return end end
2156
        --[[                if game.Players:GetPlayerFromCharacter(hit.Parent)~=nil then
2157
                        return
2158
                end]]
2159
--                        hs(hit,1.2) 
2160
                        c=Instance.new("ObjectValue")
2161
                        c.Name="creator"
2162
                        c.Value=game:service("Players").LocalPlayer
2163
                        c.Parent=h
2164
                        game:GetService("Debris"):AddItem(c,.5)
2165
                Damage=math.random(minim,maxim)
2166
--                h:TakeDamage(Damage)
2167
                blocked=false
2168
                block=hit.Parent:findFirstChild("Block")
2169
                if block~=nil then
2170
                print(block.className)
2171
                if block.className=="NumberValue" then
2172
                if block.Value>0 then
2173
                blocked=true
2174
                if decreaseblock==nil then
2175
                block.Value=block.Value-1
2176
                end
2177
                end
2178
                end
2179
                if block.className=="IntValue" then
2180
                if block.Value>0 then
2181
                blocked=true
2182
                if decreaseblock~=nil then
2183
                block.Value=block.Value-1
2184
                end
2185
                end
2186
                end
2187
                end
2188
                if blocked==false then
2189
--                h:TakeDamage(Damage)
2190
                h.Health=h.Health-Damage
2191
                showDamage(hit.Parent,Damage,.5,BrickColor.new("Really black"))
2192
                else
2193
                h.Health=h.Health-(Damage/2)
2194
                showDamage(hit.Parent,Damage/2,.5,BrickColor.new("Bright blue"))
2195
                end
2196
                if Type=="Knockdown" then
2197
                hum=hit.Parent.Humanoid
2198
hum.PlatformStand=true
2199
coroutine.resume(coroutine.create(function(HHumanoid)
2200
swait(1)
2201
HHumanoid.PlatformStand=false
2202
end),hum)
2203
                local angle=(hit.Position-(Property.Position+Vector3.new(0,0,0))).unit
2204
--hit.CFrame=CFrame.new(hit.Position,Vector3.new(angle.x,hit.Position.y,angle.z))*CFrame.fromEulerAnglesXYZ(math.pi/4,0,0)
2205
local bodvol=Instance.new("BodyVelocity")
2206
bodvol.velocity=angle*knockback
2207
bodvol.P=5000
2208
bodvol.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
2209
bodvol.Parent=hit
2210
rl=Instance.new("BodyAngularVelocity")
2211
rl.P=3000
2212
rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
2213
rl.angularvelocity=Vector3.new(math.random(-10,10),math.random(-10,10),math.random(-10,10))
2214
rl.Parent=hit
2215
game:GetService("Debris"):AddItem(bodvol,.5)
2216
game:GetService("Debris"):AddItem(rl,.5)
2217
                elseif Type=="Normal" then
2218
                vp=Instance.new("BodyVelocity")
2219
                vp.P=500
2220
                vp.maxForce=Vector3.new(math.huge,0,math.huge)
2221
--                vp.velocity=Character.Torso.CFrame.lookVector*Knockback
2222
                if KnockbackType==1 then
2223
                vp.velocity=Property.CFrame.lookVector*knockback+Property.Velocity/1.05
2224
                elseif KnockbackType==2 then
2225
                vp.velocity=Property.CFrame.lookVector*knockback
2226
                end
2227
                if knockback>0 then
2228
                        vp.Parent=hit.Parent.Torso
2229
                end
2230
                game:GetService("Debris"):AddItem(vp,.5)
2231
                elseif Type=="Up" then
2232
                local bodyVelocity=Instance.new("BodyVelocity")
2233
                bodyVelocity.velocity=vt(0,60,0)
2234
                bodyVelocity.P=5000
2235
                bodyVelocity.maxForce=Vector3.new(8e+003, 8e+003, 8e+003)
2236
                bodyVelocity.Parent=hit
2237
                game:GetService("Debris"):AddItem(bodyVelocity,1)
2238
                rl=Instance.new("BodyAngularVelocity")
2239
                rl.P=3000
2240
                rl.maxTorque=Vector3.new(500000,500000,500000)*50000000000000
2241
                rl.angularvelocity=Vector3.new(math.random(-30,30),math.random(-30,30),math.random(-30,30))
2242
                rl.Parent=hit
2243
                game:GetService("Debris"):AddItem(rl,.5)
2244
                elseif Type=="Snare" then
2245
                bp=Instance.new("BodyPosition")
2246
                bp.P=2000
2247
                bp.D=100
2248
                bp.maxForce=Vector3.new(math.huge,math.huge,math.huge)
2249
                bp.position=hit.Parent.Torso.Position
2250
                bp.Parent=hit.Parent.Torso
2251
                game:GetService("Debris"):AddItem(bp,1)
2252
                elseif Type=="Target" then
2253
                if Targetting==false then
2254
                ZTarget=hit.Parent.Torso
2255
                coroutine.resume(coroutine.create(function(Part) 
2256
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
2257
                swait(5)
2258
                so("http://www.roblox.com/asset/?id=15666462",Part,1,1.5) 
2259
                end),ZTarget)
2260
                TargHum=ZTarget.Parent:findFirstChild("Humanoid")
2261
                targetgui=Instance.new("BillboardGui")
2262
                targetgui.Parent=ZTarget
2263
                targetgui.Size=UDim2.new(10,100,10,100)
2264
                targ=Instance.new("ImageLabel")
2265
                targ.Parent=targetgui
2266
                targ.BackgroundTransparency=1
2267
                targ.Image="rbxassetid://4834067"
2268
                targ.Size=UDim2.new(1,0,1,0)
2269
                cam.CameraType="Scriptable"
2270
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
2271
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
2272
                workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
2273
                Targetting=true
2274
                RocketTarget=ZTarget
2275
                for i=1,Property do
2276
                --while Targetting==true and Humanoid.Health>0 and Character.Parent~=nil do
2277
                if Humanoid.Health>0 and Character.Parent~=nil and TargHum.Health>0 and TargHum.Parent~=nil and Targetting==true then
2278
                swait()
2279
                end
2280
                --workspace.CurrentCamera.CoordinateFrame=CFrame.new(Head.CFrame.p,Head.CFrame.p+rmdir*100)
2281
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)
2282
                dir=Vector3.new(cam.CoordinateFrame.lookVector.x,0,cam.CoordinateFrame.lookVector.z)
2283
                cam.CoordinateFrame=CFrame.new(Head.CFrame.p,ZTarget.Position)*cf(0,5,10)*euler(-0.3,0,0)
2284
                end
2285
                Targetting=false
2286
                RocketTarget=nil
2287
                targetgui.Parent=nil
2288
                cam.CameraType="Custom"
2289
                end
2290
                end
2291
                        debounce=Instance.new("BoolValue")
2292
                        debounce.Name="DebounceHit"
2293
                        debounce.Parent=hit.Parent
2294
                        debounce.Value=true
2295
                        game:GetService("Debris"):AddItem(debounce,Delay)
2296
                        c=Instance.new("ObjectValue")
2297
                        c.Name="creator"
2298
                        c.Value=Player
2299
                        c.Parent=h
2300
                        game:GetService("Debris"):AddItem(c,.5)
2301
                CRIT=false
2302
                hitDeb=true
2303
                AttackPos=6
2304
        end
2305
end
2306
 
2307
showDamage=function(Char,Dealt,du,Color)
2308
        m=Instance.new("Model")
2309
        m.Name=tostring(Dealt)
2310
        h=Instance.new("Humanoid")
2311
        h.Health=0
2312
        h.MaxHealth=0
2313
        h.Parent=m
2314
        c=Instance.new("Part")
2315
        c.Transparency=0
2316
        c.BrickColor=Color
2317
        c.Name="Head"
2318
        c.TopSurface=0
2319
        c.BottomSurface=0
2320
        c.formFactor="Plate"
2321
        c.Size=Vector3.new(1,.4,1)
2322
        ms=Instance.new("CylinderMesh")
2323
        ms.Scale=Vector3.new(.8,.8,.8)
2324
        if CRIT==true then
2325
                ms.Scale=Vector3.new(1,1.25,1)
2326
        end
2327
        ms.Parent=c
2328
        c.Reflectance=0
2329
        Instance.new("BodyGyro").Parent=c
2330
        c.Parent=m
2331
        if Char:findFirstChild("Head")~=nil then
2332
        c.CFrame=CFrame.new(Char["Head"].CFrame.p+Vector3.new(0,1.5,0))
2333
        elseif Char.Parent:findFirstChild("Head")~=nil then
2334
        c.CFrame=CFrame.new(Char.Parent["Head"].CFrame.p+Vector3.new(0,1.5,0))
2335
        end
2336
        f=Instance.new("BodyPosition")
2337
        f.P=2000
2338
        f.D=100
2339
        f.maxForce=Vector3.new(math.huge,math.huge,math.huge)
2340
        f.position=c.Position+Vector3.new(0,3,0)
2341
        f.Parent=c
2342
        game:GetService("Debris"):AddItem(m,.5+du)
2343
        c.CanCollide=false
2344
        m.Parent=workspace
2345
        c.CanCollide=false
2346
end
2347
2348
handle=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Handle",Vector3.new(1.00000012, 0.200000003, 0.600000024))
2349
handleweld=weld(m,Character["Right Arm"],handle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.00497817993, 1.09852839, -0.00498199463, -1.00772247e-025, 2.44568227e-013, 1, 2.26874075e-013, 0.999999881, 2.44568255e-013, -1, -2.26874048e-013, 1.00166402e-025))
2350
Hitbox=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,1,"Really black","Hitbox",Vector3.new(0.400000036, 1.60000014, 0.600000024))
2351
Hitboxweld=weld(m,handle,Hitbox,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.101213217, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
2352
mesh("SpecialMesh",Hitbox,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
2353
PBNeedle=part(Enum.FormFactor.Custom,m,Enum.Material.WoodPlanks,0,0,"Really black","PBNeedle",Vector3.new(0.400000006, 0.400000006, 0.200000003))
2354
PBNeedleweld=weld(m,handle,PBNeedle,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -0.501211882, 0, 1, 2.45206633e-013, 2.23613988e-025, -2.45206633e-013, -1, 2.26374475e-013, -2.25900477e-025, 2.26374475e-013, -1))
2355
mesh("SpecialMesh",PBNeedle,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=1778999",Vector3.new(0, 0, 0),Vector3.new(0.300000012, 0.479999989, 0.300000012))
2356
PBPart1=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PBPart1",Vector3.new(0.800000012, 0.399999946, 0.600000024))
2357
PBPart1weld=weld(m,handle,PBPart1,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -3.69963789, -7.15255737e-006, 1, 5.05664954e-013, -1.30451205e-015, 4.97449304e-013, 1, -4.5374815e-013, 1.30451205e-015, -4.5374815e-013, 1))
2358
mesh("CylinderMesh",PBPart1,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
2359
PBPart2=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","PBPart2",Vector3.new(0.400000006, 0.600000024, 0.400000006))
2360
PBPart2weld=weld(m,handle,PBPart2,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700050354, -7.00950623e-005, 3.49907684, -1, -1.60482286e-005, -1.59286301e-007, 1.58860502e-007, 2.65327035e-005, -1, 1.60482323e-005, -1, -2.65327017e-005))
2361
mesh("SpecialMesh",PBPart2,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
2362
PBPole=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","PBPole",Vector3.new(0.400000006, 3.5999999, 0.600000024))
2363
PBPoleweld=weld(m,handle,PBPole,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.69878912, 0, 1, 2.91981717e-013, 2.13405832e-025, 2.91981717e-013, 1, -2.97428748e-013, 2.22223004e-025, -2.40585329e-013, 1))
2364
mesh("CylinderMesh",PBPole,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
2365
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.600000024))
2366
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09998429, 0, 1, 2.45206633e-013, 2.23613988e-025, 2.45205765e-013, 0.999996424, -2.26373662e-013, 2.25900477e-025, -2.26374475e-013, 1))
2367
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000006, 0.600000024))
2368
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.325069427, -0.366897583, 0, 0.707222462, -0.706991136, 1.60148153e-013, 0.706991136, 0.707222462, -1.60200642e-013, 2.25900477e-025, -2.26374475e-013, 1))
2369
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.200000003))
2370
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09959769, -0.40000391, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
2371
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
2372
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.200000003))
2373
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.699993134, 1.09672546e-005, 0.200021386, -0.999997139, -5.88281814e-008, 2.74286049e-005, -2.76967985e-005, -7.53964502e-010, -0.999998033, 5.88349671e-008, -0.999996901, -2.88369467e-011))
2374
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=3270017",Vector3.new(0, 0, 0),Vector3.new(0.420000017, 0.460000008, 1))
2375
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
2376
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 1.99907148, 0.400010586, 1, -2.3827215e-007, 4.58606735e-007, -2.38272577e-007, -1, -1.63917434e-007, 4.58606763e-007, 1.6391779e-007, -1))
2377
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
2378
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 2, 0.200000003))
2379
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.09944224, 0.399987221, 1, 2.45206633e-013, 2.23613988e-025, 2.45206633e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
2380
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 0.560000002))
2381
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
2382
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599994659, 1.99895847, -0.399979591, 1, -2.38257996e-007, 4.58606735e-007, -2.38258409e-007, -1, -1.63927155e-007, 4.58606763e-007, 1.63927496e-007, -1))
2383
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
2384
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
2385
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198883891, -0.399979591, 1, -2.38229688e-007, 4.58606735e-007, -2.38230101e-007, -1, -1.63946595e-007, 4.58606763e-007, 1.63946936e-007, -1))
2386
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
2387
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.200000003))
2388
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, 0.198892951, 0.400010586, 1, -2.38208457e-007, 4.58606735e-007, -2.3820887e-007, -1, -1.63961175e-007, 4.58606763e-007, 1.63961516e-007, -1))
2389
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.819999993, 0.560000002, 1.31999993))
2390
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000012))
2391
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -0.199686766, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
2392
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
2393
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.200000003, 0.800000072))
2394
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.599998474, -1.99940848, 0, 1, 2.49342214e-013, 2.23281582e-025, 2.41071052e-013, 1, -2.26374475e-013, 2.25900477e-025, -2.26374475e-013, 1))
2395
mesh("BlockMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(0.800000012, 0.5, 1))
2396
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.800000012, 0.799999952, 0.600000024))
2397
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -1.09965634, -7.15255737e-006, 1, 2.53450039e-013, -1.30451205e-015, 2.36963227e-013, 1, -2.26374475e-013, 1.30451205e-015, -2.26374475e-013, 1))
2398
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
2399
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
2400
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700004578, -2.67028809e-005, 0.699332714, -1, -1.60535947e-005, -1.59286301e-007, 1.58860217e-007, 2.65416365e-005, -1, 1.60535983e-005, -1, -2.65416347e-005))
2401
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
2402
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000006))
2403
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700019836, -1.66893005e-005, 1.49919093, -1, -1.60516884e-005, -1.59286301e-007, 1.58860317e-007, 2.65384861e-005, -1, 1.6051692e-005, -1, -2.65384842e-005))
2404
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
2405
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
2406
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700023651, -4.29153442e-005, 1.89885879, -1, -1.60487161e-005, -1.59286301e-007, 1.58860473e-007, 2.65335711e-005, -1, 1.60487198e-005, -1, -2.65335693e-005))
2407
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
2408
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.600000024, 0.400000006, 0.600000024))
2409
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.699993134, -2.09877872, 0, 1, 2.63532252e-013, 2.20870009e-025, 2.26881014e-013, 1, -2.40585329e-013, 2.29174052e-025, -2.1216362e-013, 1))
2410
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
2411
Part=part(Enum.FormFactor.Custom,m,Enum.Material.Plastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.600000024, 0.400000006))
2412
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.700031281, -3.81469727e-005, 2.29907608, -1, -1.60496675e-005, -1.59286301e-007, 1.58860416e-007, 2.65351464e-005, -1, 1.60497293e-005, -0.999996424, -2.65352392e-005))
2413
mesh("SpecialMesh",Part,Enum.MeshType.FileMesh,"http://www.roblox.com/asset/?id=18430887",Vector3.new(0, 0, 0),Vector3.new(0.299999982, 0.299999982, 2.22000003))
2414
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.400000006, 0.200000003, 0.400000036))
2415
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.900005341, -2.09888887, 0.0100111961, 1, 2.6353919e-013, 2.20464535e-025, 2.26873208e-013, 0.999996424, -2.69013165e-013, 2.35117084e-025, -1.83734972e-013, 1))
2416
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.400000036, 0.400000006))
2417
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-2.09933496, 0.00994968414, -1.1000061, -7.43166083e-007, 0.999996424, 2.72369789e-007, 1.49011719e-008, -2.72368425e-007, 1, 1, 7.431629e-007, -1.49009649e-008))
2418
mesh("CylinderMesh",Part,"","",Vector3.new(0, 0, 0),Vector3.new(1, 1, 1))
2419
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
2420
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -0.404999018, -3.0040741e-005, 1, 1.05336483e-010, -5.11527077e-021, 1.05335976e-010, 1, -9.92765453e-011, -5.11568477e-021, -9.9276018e-011, 1))
2421
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
2422
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0.409999847, -1.60497594, -3.0040741e-005, 1, 1.12981839e-010, -5.89094849e-021, -1.12491558e-010, 1, -1.06496659e-010, -6.08833769e-021, 1.0604289e-010, 1))
2423
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
2424
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -1.60497594, -3.0040741e-005, 1, 1.13225755e-010, -5.9168516e-021, -1.12735474e-010, 1, -1.06724032e-010, -6.11401341e-021, 1.06270263e-010, 1))
2425
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
2426
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, 0.40499115, 1, 7.82292217e-011, -2.80034948e-021, -7.77389403e-011, 1, -7.37259559e-011, -2.93059226e-021, 7.32721869e-011, 1))
2427
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
2428
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -1.60497594, -0.405024052, 1, 7.93888774e-011, -2.8813423e-021, -7.88986237e-011, 1, -7.48344303e-011, -3.02257208e-021, 7.43806614e-011, 1))
2429
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
2430
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, -0.405024052, 1, 7.9389488e-011, -2.88135442e-021, 7.93889815e-011, 1, -7.48338752e-011, -2.88212869e-021, -7.48333479e-011, 1))
2431
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(0.200000003, 0.210000008, 0.600000024))
2432
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(-0.409996033, -0.404999018, -3.0040741e-005, 1, 3.79056439e-011, -6.35164548e-022, 3.79058382e-011, 1, -3.57250896e-011, -6.35662047e-022, -3.57250896e-011, 1))
2433
Part=part(Enum.FormFactor.Custom,m,Enum.Material.SmoothPlastic,0,0,"Really black","Part",Vector3.new(1.0200001, 0.210000008, 0.210000008))
2434
Partweld=weld(m,handle,Part,CFrame.new(0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),CFrame.new(0, -0.404999018, 0.40499115, 1, 7.82298046e-011, -2.80033434e-021, 7.8229298e-011, 1, -7.37254285e-011, -2.80000274e-021, -7.37249012e-011, 1))
2435
2436
function attackone()
2437
attack = true
2438
local con = LeftLeg.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end) 
2439
so("http://roblox.com/asset/?id=200632211",LeftLeg,1,1)
2440
for i = 0,1,0.1 do
2441
swait()
2442
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-50),math.rad(0),math.rad(-90)),.3)
2443
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(50),math.rad(0),math.rad(20)),.3)
2444
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(40)), 0.3)
2445
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-50)), 0.3)
2446
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-30),math.rad(0),math.rad(0)),.3)
2447
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-80),math.rad(0),math.rad(0)),.3)
2448
end
2449
attack = false
2450
con:disconnect()
2451
end
2452
2453
function attacktwo()
2454
attack = true
2455
for i = 0,1,0.1 do
2456
swait()
2457
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
2458
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
2459
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
2460
LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -.5) * angles(math.rad(0), math.rad(-150), math.rad(-90)), 0.3)
2461
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
2462
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
2463
end
2464
so("http://roblox.com/asset/?id=200632211",LeftArm,1,.9)
2465
local con = LeftArm.Touched:connect(function(hit) Damagefunc(hit,15,20,math.random(5,15),"Normal",RootPart,.2,1) end) 
2466
for i = 0,1,0.1 do
2467
swait()
2468
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
2469
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2470
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
2471
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(0), math.rad(-10), math.rad(-90)), 0.3)
2472
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
2473
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
2474
end
2475
attack = false
2476
con:disconnect()
2477
end
2478
2479
--[[remiders: PBPART1,PBPART2,PBPOLE,PBNEEDLE,HITBOX ]]--
2480
2481
function attackthree()
2482
attack = true
2483
for i = 0,1,0.1 do
2484
swait()
2485
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(20)),.3)
2486
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-20)),.3)
2487
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.3)
2488
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
2489
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(70),math.rad(0)),.3)
2490
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-120),math.rad(0)),.3)
2491
end
2492
local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,25,40,math.random(10,15),"Normal",RootPart,.2,1) end) 
2493
so("http://roblox.com/asset/?id=240429891",Hitbox,1,1)
2494
so("http://roblox.com/asset/?id=240429289",Hitbox,1,1)
2495
for i = 0,1,0.1 do
2496
swait()
2497
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(50)),.3)
2498
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
2499
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(50)), 0.3)
2500
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-40)), 0.3)
2501
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(60),math.rad(0)),.3)
2502
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(0)),.3)
2503
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2504
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2505
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2506
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2507
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,-1.,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2508
end
2509
attack = false
2510
con:disconnect()
2511
end
2512
2513
function attackfour()
2514
attack = true
2515
for i = 0,1,0.1 do
2516
swait()
2517
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-80)),.3)
2518
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(70)),.3)
2519
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(150), math.rad(90)), 0.3)
2520
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-50)), 0.3)
2521
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(140),math.rad(-10)),.3)
2522
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-50),math.rad(-5)),.3)
2523
end
2524
so("http://roblox.com/asset/?id=240429891",Hitbox,1,.9)
2525
so("http://roblox.com/asset/?id=240429289",Hitbox,1,.8)
2526
local con = Hitbox.Touched:connect(function(hit) Damagefunc(hit,25,40,math.random(10,15),"Normal",RootPart,.2,1) end) 
2527
for i = 0,1,0.1 do
2528
swait()
2529
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(80)),.3)
2530
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-70)),.3)
2531
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(50), math.rad(90)), 0.3)
2532
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-80)), 0.3)
2533
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(50),math.rad(-10)),.3)
2534
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-140),math.rad(-5)),.3)
2535
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2536
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2537
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2538
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,-1,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2539
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,-1.,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2540
end
2541
attack = false
2542
con:disconnect()
2543
end
2544
2545
mouse.Button1Down:connect(function()
2546
if attack == false and
2547
attacktype == 1 then
2548
attacktype = 2
2549
attackone()
2550
elseif attack == false and
2551
attacktype == 2 then
2552
attacktype = 3
2553
attacktwo()
2554
elseif attack == false and
2555
attacktype == 3 then
2556
attacktype = 4
2557
attackthree()
2558
elseif attack == false and
2559
attacktype == 4 then
2560
attacktype = 1
2561
attackfour()
2562
end
2563
end)
2564
2565
mouse.KeyDown:connect(function(k)
2566
        k=k:lower()
2567
        
2568
end)
2569
2570
2571
local sine = 0
2572
local change = 1
2573
local val = 0
2574
2575
while true do
2576
swait()
2577
sine = sine + change
2578
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
2579
local velderp=RootPart.Velocity.y
2580
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
2581
if equipped==true or equipped==false then
2582
if attack==false then
2583
idle=idle+1
2584
else
2585
idle=0
2586
end
2587
if idle>=500 then
2588
if attack==false then
2589
--Sheath()
2590
end
2591
end
2592
if RootPart.Velocity.y > 1 and hitfloor==nil then 
2593
Anim="Jump"
2594
if attack==false then
2595
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
2596
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
2597
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
2598
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
2599
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(10),math.rad(90),math.rad(0)),.3)
2600
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-15),math.rad(-90),math.rad(0)),.3)
2601
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2602
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2603
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2604
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2605
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.4)
2606
end
2607
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
2608
Anim="Fall"
2609
if attack==false then
2610
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2611
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(20),math.rad(0),math.rad(0)),.3)
2612
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(30)), 0.3)
2613
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-30)), 0.3)
2614
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(20),math.rad(90),math.rad(0)),.3)
2615
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(-20),math.rad(-90),math.rad(0)),.3)
2616
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2617
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2618
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2619
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2620
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2621
end
2622
elseif torvel<1 and hitfloor~=nil then
2623
Anim="Idle"
2624
if attack==false then
2625
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(-20)),.3)
2626
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(20)),.3)
2627
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(20)), 0.3)
2628
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(20), math.rad(0), math.rad(-10)), 0.3)
2629
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-10)),.3)
2630
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-70),math.rad(-5)),.3)
2631
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2632
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2633
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2634
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2635
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2636
end
2637
elseif torvel>2 and hitfloor~=nil then
2638
Anim="Walk"
2639
if attack==false then
2640
change=3
2641
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
2642
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.3)
2643
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(10)), 0.3)
2644
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-20)), 0.3)
2645
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-15)),.3)
2646
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(-15)),.3)
2647
PBNeedleweld.C0=clerp(PBNeedleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2648
PBPoleweld.C0=clerp(PBPoleweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2649
PBPart1weld.C0=clerp(PBPart1weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2650
PBPart2weld.C0=clerp(PBPart2weld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2651
Hitboxweld.C0=clerp(Hitboxweld.C0,cf(0,0,0)*angles(math.rad(0),math.rad(0),math.rad(0)),.2)
2652
end
2653
end
2654
end
2655
if #Effects>0 then
2656
--table.insert(Effects,{prt,"Block1",delay})
2657
for e=1,#Effects do
2658
if Effects[e]~=nil then
2659
--for j=1,#Effects[e] do
2660
local Thing=Effects[e]
2661
if Thing~=nil then
2662
local Part=Thing[1]
2663
local Mode=Thing[2]
2664
local Delay=Thing[3]
2665
local IncX=Thing[4]
2666
local IncY=Thing[5]
2667
local IncZ=Thing[6]
2668
if Thing[1].Transparency<=1 then
2669
if Thing[2]=="Block1" then
2670
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2671
Mesh=Thing[1].Mesh
2672
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2673
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2674
elseif Thing[2]=="Cylinder" then
2675
Mesh=Thing[1].Mesh
2676
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2677
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2678
elseif Thing[2]=="Blood" then
2679
Mesh=Thing[7]
2680
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
2681
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2682
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2683
elseif Thing[2]=="Elec" then
2684
Mesh=Thing[1].Mesh
2685
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
2686
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2687
elseif Thing[2]=="Disappear" then
2688
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2689
end
2690
else
2691
Part.Parent=nil
2692
table.remove(Effects,e)
2693
end
2694
end
2695
--end
2696
end
2697
end
2698
end
2699
end
2700
2701
2702
2703
if #Effects>0 then
2704
--table.insert(Effects,{prt,"Block1",delay})
2705
for e=1,#Effects do
2706
if Effects[e]~=nil then
2707
--for j=1,#Effects[e] do
2708
local Thing=Effects[e]
2709
if Thing~=nil then
2710
local Part=Thing[1]
2711
local Mode=Thing[2]
2712
local Delay=Thing[3]
2713
local IncX=Thing[4]
2714
local IncY=Thing[5]
2715
local IncZ=Thing[6]
2716
if Thing[1].Transparency<=1 then
2717
if Thing[2]=="Block1" then
2718
Thing[1].CFrame=Thing[1].CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
2719
Mesh=Thing[1].Mesh
2720
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2721
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2722
elseif Thing[2]=="Cylinder" then
2723
Mesh=Thing[1].Mesh
2724
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2725
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2726
elseif Thing[2]=="Blood" then
2727
Mesh=Thing[7]
2728
Thing[1].CFrame=Thing[1].CFrame*cf(0,.5,0)
2729
Mesh.Scale=Mesh.Scale+vt(Thing[4],Thing[5],Thing[6])
2730
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2731
elseif Thing[2]=="Elec" then
2732
Mesh=Thing[1].Mesh
2733
Mesh.Scale=Mesh.Scale+vt(Thing[7],Thing[8],Thing[9])
2734
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2735
elseif Thing[2]=="Disappear" then
2736
Thing[1].Transparency=Thing[1].Transparency+Thing[3]
2737
end
2738
else
2739
Part.Parent=nil
2740
table.remove(Effects,e)
2741
end
2742
end
2743
--end
2744
end
2745
end
2746
end
2747
end