View difference between Paste ID: 7GbCwLcW and XBUW6bm1
SHOW: | | - or go back to the newest paste.
1
plr = game:GetService("Players").LocalPlayer
2
char = plr.Character
3
hum = char.Humanoid
4
local cam = game.Workspace.CurrentCamera
5
local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
6
Camera = cam
7
local CamInterrupt = false
8
local TwoD = false
9
local TargetInfo = {nil, nil}
10
cam.CameraType = "Custom"
11
t = char.Torso
12
h = char.Head
13
ra = char["Right Arm"]
14
la = char["Left Arm"]
15
rl = char["Right Leg"]
16
ll = char["Left Leg"]
17
tors = char.Torso
18
lleg = char["Left Leg"]
19
root = char.HumanoidRootPart
20
hed = char.Head
21
rleg = char["Right Leg"]
22
rarm = char["Right Arm"]
23
larm = char["Left Arm"]
24
radian = math.rad
25
random = math.random
26
Vec3 = Vector3.new
27
Inst = Instance.new
28
cFrame = CFrame.new
29
Euler = CFrame.fromEulerAnglesXYZ
30
vt = Vector3.new
31
bc = BrickColor.new
32
br = BrickColor.random
33
it = Instance.new
34
cf = CFrame.new
35
local eff = true
36
local shielding = false
37
 
38
local Booleans = {
39
  CamFollow = true,
40
  GyroUse = true
41
}
42
 
43
function lerp(object, newCFrame, alpha)
44
  return object:lerp(newCFrame, alpha)
45
end
46
 
47
local Directer = Inst("BodyGyro", root)
48
Directer.MaxTorque = Vec3(0, 0, 0)
49
Directer.P = 600000
50
local CPart = Inst("Part")
51
CPart.Anchored = true
52
CPart.CanCollide = false
53
CPart.Locked = true
54
CPart.Transparency = 1
55
 
56
local rainbowmode = false
57
local chaosmode = false
58
 
59
kan = Instance.new("Sound",char)
60
kan.Volume = 1.25
61
kan.TimePosition = 0
62
kan.PlaybackSpeed = 1
63
kan.Pitch = 1
64
kan.SoundId = "rbxassetid://0"
65
kan.Name = "wrecked"
66
kan.Looped = true
67
kan:Play()
68
 
69
function newTheme(ID,timepos,pitch,vol)
70
local kanz = kan
71
--kanz:Stop()
72
--kanz.Volume = vol
73
--kanz.TimePosition = timepos
74
kanz.PlaybackSpeed = pitch
75
kanz.Pitch = pitch
76
kanz.SoundId = ID
77
kanz.Name = "wrecked"
78
kanz.Looped = true
79
kanz.Volume = 0.3
80
--kanz:Play()
81
--coroutine.resume(coroutine.create(function()
82
--wait(0.05)
83
--end))
84
end
85
 
86
function newThemeCust(ID,timepos,pitch,vol)
87
local kanz = kan
88
kanz:Stop()
89
kanz.Volume = vol
90
kanz.TimePosition = timepos
91
kanz.PlaybackSpeed = pitch
92
kanz.Pitch = pitch
93
kanz.SoundId = ID
94
kanz.Name = "wrecked"
95
kanz.Looped = true
96
kanz:Play()
97
coroutine.resume(coroutine.create(function()
98
wait(0.05)
99
end))
100
end
101
 
102
 
103
 
104
function CameraShake(Times, Power, PlayerTarget)
105
coroutine.resume(coroutine.create(function()
106
FV = Instance.new("BoolValue", PlayerTarget)
107
FV.Name = "CameraShake"
108
for ShakeNum=1,Times do
109
swait()
110
local ef=Power
111
  if ef>=1 then
112
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
113
  else
114
   ef=Power*10
115
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
116
  end  
117
end
118
Humanoid.CameraOffset = Vector3.new(0,0,0)
119
FV:Destroy()
120
end))
121
end
122
 
123
function CameraEnshaking(Length,Intensity)
124
coroutine.resume(coroutine.create(function()
125
      local intensity = 1*Intensity
126
      local rotM = 0.01*Intensity
127
for i = 0, Length, 0.1 do
128
swait()
129
intensity = intensity - 0.05*Intensity/Length
130
rotM = rotM - 0.0005*Intensity/Length
131
      hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
132
      cam.CFrame = cam.CFrame * cFrame(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity))) * Euler(radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM, radian(random(-intensity, intensity)) * rotM)
133
end
134
Humanoid.CameraOffset = Vec3(0, 0, 0)
135
end))
136
end
137
CamShake=function(Part,Distan,Power,Times)
138
local de=Part.Position
139
for i,v in pairs(workspace:children()) do
140
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
141
for _,c in pairs(v:children()) do
142
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
143
local Noob=v.Humanoid
144
if Noob~=nil then
145
coroutine.resume(coroutine.create(function()
146
FV = Instance.new("BoolValue", Noob)
147
FV.Name = "CameraShake"
148
for ShakeNum=1,Times do
149
swait()
150
local ef=Power
151
  if ef>=1 then
152
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
153
  else
154
   ef=Power*10
155
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
156
  end  
157
end
158
Humanoid.CameraOffset = Vector3.new(0,0,0)
159
FV:Destroy()
160
end))
161
CameraShake(Times, Power, Noob)
162
end
163
end
164
end
165
end
166
end
167
end
168
 
169
function chatfunc(text,color)
170
local chat = coroutine.wrap(function()
171
if Character:FindFirstChild("TalkingBillBoard")~= nil then
172
Character:FindFirstChild("TalkingBillBoard"):destroy()
173
end
174
local naeeym2 = Instance.new("BillboardGui",Character)
175
naeeym2.Size = UDim2.new(0,100,0,40)
176
naeeym2.StudsOffset = Vector3.new(0,3,0)
177
naeeym2.Adornee = Character.Head
178
naeeym2.Name = "TalkingBillBoard"
179
local tecks2 = Instance.new("TextLabel",naeeym2)
180
tecks2.BackgroundTransparency = 1
181
tecks2.BorderSizePixel = 0
182
tecks2.Text = ""
183
tecks2.Font = "SciFi"
184
tecks2.TextSize = 30
185
tecks2.TextStrokeTransparency = 0
186
tecks2.TextColor3 = color
187
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
188
tecks2.Size = UDim2.new(1,0,0.5,0)
189
local tecks3 = Instance.new("TextLabel",naeeym2)
190
tecks3.BackgroundTransparency = 1
191
tecks3.BorderSizePixel = 0
192
tecks3.Text = ""
193
tecks3.Font = "SciFi"
194
tecks3.TextSize = 30
195
tecks3.TextStrokeTransparency = 0
196
tecks3.TextColor3 = Color3.new(0,0,0)
197
tecks3.TextStrokeColor3 = color
198
tecks3.Size = UDim2.new(1,0,0.5,0)
199
coroutine.resume(coroutine.create(function()
200
while true do
201
swait(1)
202
plr.Character.wrecked.Volume = 0.3
203
if chaosmode == true then
204
tecks2.TextColor3 = BrickColor.random().Color
205
tecks3.TextStrokeColor3 = BrickColor.random().Color
206
end
207
tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
208
tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
209
tecks2.Rotation = math.random(-5,5)
210
tecks3.Rotation = math.random(-5,5)
211
end
212
end))
213
for i = 1,string.len(text),1 do
214
CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
215
tecks2.Text = string.sub(text,1,i)
216
tecks3.Text = string.sub(text,1,i)
217
swait(1)
218
end
219
wait(1)
220
local randomrot = math.random(1,2)
221
if randomrot == 1 then
222
for i = 1, 50 do
223
swait()
224
tecks2.Rotation = tecks2.Rotation - .75
225
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
226
tecks2.TextTransparency = tecks2.TextTransparency + .04
227
tecks3.Rotation = tecks2.Rotation + .75
228
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
229
tecks3.TextTransparency = tecks2.TextTransparency + .04
230
end
231
elseif randomrot == 2 then
232
    for i = 1, 50 do
233
swait()
234
tecks2.Rotation = tecks2.Rotation + .75
235
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
236
tecks2.TextTransparency = tecks2.TextTransparency + .04
237
tecks3.Rotation = tecks2.Rotation - .75
238
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
239
tecks3.TextTransparency = tecks2.TextTransparency + .04
240
end
241
end
242
naeeym2:Destroy()
243
end)
244
chat()
245
end
246
 
247
 
248
local Create = LoadLibrary("RbxUtility").Create
249
 
250
CFuncs = {
251
    ["Part"] = {
252
        Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
253
            local Part = Create("Part"){
254
                Parent = Parent,
255
                Reflectance = Reflectance,
256
                Transparency = Transparency,
257
                CanCollide = false,
258
                Locked = true,
259
                BrickColor = BrickColor.new(tostring(BColor)),
260
                Name = Name,
261
                Size = Size,
262
                Material = Material,
263
            }
264
            RemoveOutlines(Part)
265
            return Part
266
        end;
267
    };
268
   
269
    ["Mesh"] = {
270
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
271
            local Msh = Create(Mesh){
272
                Parent = Part,
273
                Offset = OffSet,
274
                Scale = Scale,
275
            }
276
            if Mesh == "SpecialMesh" then
277
                Msh.MeshType = MeshType
278
                Msh.MeshId = MeshId
279
            end
280
            return Msh
281
        end;
282
    };
283
   
284
    ["Mesh"] = {
285
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
286
            local Msh = Create(Mesh){
287
                Parent = Part,
288
                Offset = OffSet,
289
                Scale = Scale,
290
            }
291
            if Mesh == "SpecialMesh" then
292
                Msh.MeshType = MeshType
293
                Msh.MeshId = MeshId
294
            end
295
            return Msh
296
        end;
297
    };
298
   
299
    ["Weld"] = {
300
        Create = function(Parent, Part0, Part1, C0, C1)
301
            local Weld = Create("Weld"){
302
                Parent = Parent,
303
                Part0 = Part0,
304
                Part1 = Part1,
305
                C0 = C0,
306
                C1 = C1,
307
            }
308
            return Weld
309
        end;
310
    };
311
 
312
    ["Sound"] = {
313
        Create = function(id, par, vol, pit)
314
            coroutine.resume(coroutine.create(function()
315
                local S = Create("Sound"){
316
                    Volume = vol,
317
                                        Name = "EffectSoundo",
318
                    Pitch = pit or 1,
319
                    SoundId = id,
320
                    Parent = par or workspace,
321
                }
322
                wait()
323
                S:play()
324
                game:GetService("Debris"):AddItem(S, 10)
325
            end))
326
        end;
327
    };
328
 
329
["LongSound"] = {
330
        Create = function(id, par, vol, pit)
331
            coroutine.resume(coroutine.create(function()
332
                local S = Create("Sound"){
333
                    Volume = vol,
334
                    Pitch = pit or 1,
335
                    SoundId = id,
336
                    Parent = par or workspace,
337
                }
338
                wait()
339
                S:play()
340
                game:GetService("Debris"):AddItem(S, 30)
341
            end))
342
        end;
343
    };
344
   
345
    ["ParticleEmitter"] = {
346
        Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
347
            local fp = Create("ParticleEmitter"){
348
                Parent = Parent,
349
                Color = ColorSequence.new(Color1, Color2),
350
                LightEmission = LightEmission,
351
                Size = Size,
352
                Texture = Texture,
353
                Transparency = Transparency,
354
                ZOffset = ZOffset,
355
                Acceleration = Accel,
356
                Drag = Drag,
357
                LockedToPart = LockedToPart,
358
                VelocityInheritance = VelocityInheritance,
359
                EmissionDirection = EmissionDirection,
360
                Enabled = Enabled,
361
                Lifetime = LifeTime,
362
                Rate = Rate,
363
                Rotation = Rotation,
364
                RotSpeed = RotSpeed,
365
                Speed = Speed,
366
                VelocitySpread = VelocitySpread,
367
            }
368
            return fp
369
        end;
370
    };
371
 
372
    CreateTemplate = {
373
   
374
    };
375
}
376
 
377
 
378
 
379
New = function(Object, Parent, Name, Data)
380
    local Object = Instance.new(Object)
381
    for Index, Value in pairs(Data or {}) do
382
        Object[Index] = Value
383
    end
384
    Object.Parent = Parent
385
    Object.Name = Name
386
    return Object
387
end
388
local halocolor = BrickColor.new("Dark blue")
389
local halocolor2 = BrickColor.new("Dark blue")
390
local starcolor = BrickColor.new("Dark blue")
391
local lunacolor = BrickColor.new("Dark blue")
392
local lunacolor2 = BrickColor.new("Dark blue")
393
local wepcolor = BrickColor.new("Dark blue")
394
local maincolor = BrickColor.new("Dark blue")
395
local m = Instance.new("Model",char)
396
local m2 = Instance.new("Model",char)
397
local m3 = Instance.new("Model",char)
398
local mw1 = Instance.new("Model",char)
399
local mw2 = Instance.new("Model",char)
400
 
401
local extrawingmod1 = Instance.new("Model",char)
402
local extrawingmod2 = Instance.new("Model",char)
403
 
404
function CreateParta(parent,transparency,reflectance,material,brickcolor)
405
local p = Instance.new("Part")
406
p.TopSurface = 0
407
p.BottomSurface = 0
408
p.Parent = parent
409
p.Size = Vector3.new(0.1,0.1,0.1)
410
p.Transparency = transparency
411
p.Reflectance = reflectance
412
p.CanCollide = false
413
p.Locked = true
414
p.BrickColor = brickcolor
415
p.Material = material
416
return p
417
end
418
 
419
function CreateMesh(parent,meshtype,x1,y1,z1)
420
local mesh = Instance.new("SpecialMesh",parent)
421
mesh.MeshType = meshtype
422
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
423
return mesh
424
end
425
 
426
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
427
local mesh = Instance.new("SpecialMesh",parent)
428
mesh.MeshType = "FileMesh"
429
mesh.MeshId = meshid
430
mesh.Scale = Vector3.new(x1,y1,z1)
431
return mesh
432
end
433
 
434
 
435
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
436
local mesh = Instance.new("SpecialMesh",parent)
437
mesh.MeshType = "FileMesh"
438
mesh.MeshId = meshid
439
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
440
mesh.Scale = Vector3.new(x1,y1,z1)
441
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
442
return mesh
443
end
444
 
445
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
446
local weld = Instance.new("Weld")
447
weld.Parent = parent
448
weld.Part0 = part0
449
weld.Part1 = part1
450
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
451
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
452
return weld
453
end
454
 
455
 
456
--------------
457
local secondchar = Instance.new("Model",char)
458
local GhostCol = BrickColor.new("Dark blue")
459
local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
460
CreateMesh(sectors,"Brick",2*8,2*8,1*8)
461
local torsweld = CreateWeld(sectors,root,sectors,1,-1,-2,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
462
 
463
local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
464
CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
465
local larmsweld = CreateWeld(seclarm,sectors,seclarm,1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
466
 
467
local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
468
CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
469
local rarmsweld = CreateWeld(secrarm,sectors,secrarm,-1.5,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
470
 
471
local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
472
CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
473
local llegsweld = CreateWeld(seclleg,sectors,seclleg,0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
474
 
475
local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
476
CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
477
local rlegsweld = CreateWeld(secrleg,sectors,secrleg,-0.5,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
478
 
479
local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
480
CreateMesh(seched,"Brick",1*8,1*8,1*8)
481
local hedsweld = CreateWeld(seched,sectors,seched,0,-1.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
482
--------------
483
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
484
CreateWeld(sorb,rarm,sorb,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
485
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
486
CreateWeld(sorb2,larm,sorb2,0,1,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
487
 
488
local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
489
CreateMesh(handle,"Brick",0,0,0)
490
local handlexweld = CreateWeld(handlex,tors,handlex,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
491
local valuaring = 10
492
for i = 0, 49 do
493
    valuaring = valuaring + 10
494
rn = CreateParta(mw2,0,0,"Neon",halocolor)
495
CreateMesh(rn,"Brick",0.25,0.1,0.1)
496
CreateWeld(rn,handlex,rn,0,1,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
497
end
498
 
499
handlex = CreateParta(mw2,1,1,"Neon",maincolor)
500
CreateMesh(handle,"Brick",0,0,0)
501
CreateWeld(handlex,tors,handlex,0,-3,-2.1,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
502
local valuaring = 10
503
for i = 0, 49 do
504
    valuaring = valuaring + 10
505
rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
506
CreateMesh(rn,"Brick",0.5,0.2,0.2)
507
CreateWeld(rn,handlex,rn,0,2,0,math.rad(0),math.rad(0),math.rad(valuaring),0,0,0,math.rad(0),math.rad(0),math.rad(0))
508
end
509
 
510
 
511
local handle = CreateParta(m,1,1,"Neon",maincolor)
512
CreateMesh(handle,"Brick",0.5,0.5,0.5)
513
local handleweld = CreateWeld(handle,tors,handle,0,-1.5,-1.05,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
514
 
515
--- Left wing.
516
 
517
local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
518
CreateMesh(handle,"Brick",0.5,0.5,0.5)
519
local lwing1weld = CreateWeld(lwing1,handle,lwing1,3,0,0,math.rad(5),math.rad(0),math.rad(12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
520
 
521
wed = CreateParta(mw1,0,0,"Neon",halocolor)
522
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
523
CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
524
wed = CreateParta(mw1,0,0,"Neon",halocolor)
525
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
526
CreateWeld(wed,lwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
527
A0 = Instance.new('Attachment',wed)
528
wed = CreateParta(mw1,0,0,"Neon",halocolor)
529
CreateMesh(wed,"Wedge",0.05,0.5,3)
530
CreateWeld(wed,lwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
531
A1 = Instance.new('Attachment',wed)
532
wed = CreateParta(mw1,0,0,"Neon",halocolor)
533
CreateMesh(wed,"Wedge",0.05,3,0.5)
534
CreateWeld(wed,lwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
535
 
536
tl1 = Instance.new('Trail',wed)
537
tl1.Attachment0 = A0
538
tl1.Attachment1 = A1
539
--tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
540
tl1.LightEmission = 1
541
tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
542
tl1.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
543
tl1.Lifetime = 0.6
544
 
545
 
546
local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
547
CreateMesh(handle,"Brick",0.5,0.5,0.5)
548
local lwing2weld = CreateWeld(lwing2,handle,lwing2,4,1,0,math.rad(10),math.rad(0),math.rad(25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
549
 
550
wed = CreateParta(mw1,0,0,"Neon",halocolor)
551
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
552
CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
553
wed = CreateParta(mw1,0,0,"Neon",halocolor)
554
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
555
CreateWeld(wed,lwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
556
A0 = Instance.new('Attachment',wed)
557
wed = CreateParta(mw1,0,0,"Neon",halocolor)
558
CreateMesh(wed,"Wedge",0.05,0.5,3)
559
CreateWeld(wed,lwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
560
A1 = Instance.new('Attachment',wed)
561
wed = CreateParta(mw1,0,0,"Neon",halocolor)
562
CreateMesh(wed,"Wedge",0.05,3,0.5)
563
CreateWeld(wed,lwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
564
 
565
tl2 = Instance.new('Trail',wed)
566
tl2.Attachment0 = A0
567
tl2.Attachment1 = A1
568
--tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
569
tl2.LightEmission = 1
570
tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
571
tl2.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
572
tl2.Lifetime = 0.6
573
 
574
local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
575
CreateMesh(handle,"Brick",0.5,0.5,0.5)
576
local lwing3weld = CreateWeld(lwing3,handle,lwing3,4.75,2,0,math.rad(15),math.rad(0),math.rad(37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
577
 
578
wed = CreateParta(mw1,0,0,"Neon",halocolor)
579
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
580
CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
581
wed = CreateParta(mw1,0,0,"Neon",halocolor)
582
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
583
CreateWeld(wed,lwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
584
A0 = Instance.new('Attachment',wed)
585
wed = CreateParta(mw1,0,0,"Neon",halocolor)
586
CreateMesh(wed,"Wedge",0.05,0.5,3)
587
CreateWeld(wed,lwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
588
A1 = Instance.new('Attachment',wed)
589
wed = CreateParta(mw1,0,0,"Neon",halocolor)
590
CreateMesh(wed,"Wedge",0.05,3,0.5)
591
CreateWeld(wed,lwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
592
 
593
tl3 = Instance.new('Trail',wed)
594
tl3.Attachment0 = A0
595
tl3.Attachment1 = A1
596
--tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
597
tl3.LightEmission = 1
598
tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
599
tl3.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
600
tl3.Lifetime = 0.6
601
 
602
tl1.Enabled = false
603
tl2.Enabled = false
604
tl3.Enabled = false
605
local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
606
CreateMesh(handle,"Brick",0.5,0.5,0.5)
607
local lwing4weld = CreateWeld(lwing4,handle,lwing4,5.75,3,0,math.rad(20),math.rad(0),math.rad(50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
608
 
609
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
610
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
611
CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
612
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
613
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
614
CreateWeld(wed,lwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
615
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
616
CreateMesh(wed,"Wedge",0.05,0.5,3)
617
CreateWeld(wed,lwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
618
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
619
CreateMesh(wed,"Wedge",0.05,3,0.5)
620
CreateWeld(wed,lwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
621
 
622
local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
623
CreateMesh(handle,"Brick",0.5,0.5,0.5)
624
local lwing5weld = CreateWeld(lwing5,handle,lwing5,6.75,4,0,math.rad(25),math.rad(0),math.rad(62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
625
 
626
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
627
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
628
CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
629
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
630
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
631
CreateWeld(wed,lwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
632
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
633
CreateMesh(wed,"Wedge",0.05,0.5,3)
634
CreateWeld(wed,lwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
635
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
636
CreateMesh(wed,"Wedge",0.05,3,0.5)
637
CreateWeld(wed,lwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
638
 
639
local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
640
CreateMesh(handle,"Brick",0.5,0.5,0.5)
641
local lwing6weld = CreateWeld(lwing6,handle,lwing6,7.75,5,0,math.rad(30),math.rad(0),math.rad(75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
642
 
643
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
644
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
645
CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
646
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
647
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
648
CreateWeld(wed,lwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
649
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
650
CreateMesh(wed,"Wedge",0.05,0.5,3)
651
CreateWeld(wed,lwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
652
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
653
CreateMesh(wed,"Wedge",0.05,3,0.5)
654
CreateWeld(wed,lwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
655
 
656
-- Right wing.
657
 
658
local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
659
CreateMesh(handle,"Brick",0.5,0.5,0.5)
660
local rwing1weld = CreateWeld(rwing1,handle,rwing1,-3,0,0,math.rad(5),math.rad(0),math.rad(-12.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
661
 
662
wed = CreateParta(mw2,0,0,"Neon",halocolor)
663
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
664
CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
665
A0 = Instance.new('Attachment',wed)
666
wed = CreateParta(mw2,0,0,"Neon",halocolor)
667
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
668
CreateWeld(wed,rwing1,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
669
wed = CreateParta(mw2,0,0,"Neon",halocolor)
670
CreateMesh(wed,"Wedge",0.05,0.5,3)
671
CreateWeld(wed,rwing1,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
672
wed = CreateParta(mw2,0,0,"Neon",halocolor)
673
CreateMesh(wed,"Wedge",0.05,3,0.5)
674
CreateWeld(wed,rwing1,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
675
A1 = Instance.new('Attachment',wed)
676
 
677
tr1 = Instance.new('Trail',wed)
678
tr1.Attachment0 = A0
679
tr1.Attachment1 = A1
680
--tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
681
tr1.LightEmission = 1
682
tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
683
tr1.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
684
tr1.Lifetime = 0.6
685
 
686
local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
687
CreateMesh(handle,"Brick",0.5,0.5,0.5)
688
local rwing2weld = CreateWeld(rwing2,handle,rwing2,-4,1,0,math.rad(10),math.rad(0),math.rad(-25),0,0,0,math.rad(0),math.rad(0),math.rad(0))
689
 
690
wed = CreateParta(mw2,0,0,"Neon",halocolor)
691
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
692
CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
693
A0 = Instance.new('Attachment',wed)
694
wed = CreateParta(mw2,0,0,"Neon",halocolor)
695
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
696
CreateWeld(wed,rwing2,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
697
wed = CreateParta(mw2,0,0,"Neon",halocolor)
698
CreateMesh(wed,"Wedge",0.05,0.5,3)
699
CreateWeld(wed,rwing2,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
700
wed = CreateParta(mw2,0,0,"Neon",halocolor)
701
CreateMesh(wed,"Wedge",0.05,3,0.5)
702
CreateWeld(wed,rwing2,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
703
A1 = Instance.new('Attachment',wed)
704
 
705
tr2 = Instance.new('Trail',wed)
706
tr2.Attachment0 = A0
707
tr2.Attachment1 = A1
708
--tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
709
tr2.LightEmission = 1
710
tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
711
tr2.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
712
tr2.Lifetime = 0.6
713
 
714
local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
715
CreateMesh(handle,"Brick",0.5,0.5,0.5)
716
local rwing3weld = CreateWeld(rwing3,handle,rwing3,-4.75,2,0,math.rad(15),math.rad(0),math.rad(-37.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
717
 
718
wed = CreateParta(mw2,0,0,"Neon",halocolor)
719
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
720
CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
721
A0 = Instance.new('Attachment',wed)
722
wed = CreateParta(mw2,0,0,"Neon",halocolor)
723
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
724
CreateWeld(wed,rwing3,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
725
wed = CreateParta(mw2,0,0,"Neon",halocolor)
726
CreateMesh(wed,"Wedge",0.05,0.5,3)
727
CreateWeld(wed,rwing3,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
728
wed = CreateParta(mw2,0,0,"Neon",halocolor)
729
CreateMesh(wed,"Wedge",0.05,3,0.5)
730
CreateWeld(wed,rwing3,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
731
A1 = Instance.new('Attachment',wed)
732
 
733
tr3 = Instance.new('Trail',wed)
734
tr3.Attachment0 = A0
735
tr3.Attachment1 = A1
736
--tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
737
tr3.LightEmission = 1
738
tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
739
tr3.Color = ColorSequence.new(BrickColor.new('Dark blue').Color)
740
tr3.Lifetime = 0.6
741
 
742
 
743
local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
744
CreateMesh(handle,"Brick",0.5,0.5,0.5)
745
local rwing4weld = CreateWeld(rwing4,handle,rwing4,-5.75,3,0,math.rad(20),math.rad(0),math.rad(-50),0,0,0,math.rad(0),math.rad(0),math.rad(0))
746
 
747
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
748
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
749
CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
750
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
751
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
752
CreateWeld(wed,rwing4,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
753
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
754
CreateMesh(wed,"Wedge",0.05,0.5,3)
755
CreateWeld(wed,rwing4,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
756
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
757
CreateMesh(wed,"Wedge",0.05,3,0.5)
758
CreateWeld(wed,rwing4,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
759
 
760
local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
761
CreateMesh(handle,"Brick",0.5,0.5,0.5)
762
local rwing5weld = CreateWeld(rwing5,handle,rwing5,-6.75,4,0,math.rad(25),math.rad(0),math.rad(-62.5),0,0,0,math.rad(0),math.rad(0),math.rad(0))
763
 
764
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
765
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
766
CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
767
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
768
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
769
CreateWeld(wed,rwing5,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
770
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
771
CreateMesh(wed,"Wedge",0.05,0.5,3)
772
CreateWeld(wed,rwing5,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
773
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
774
CreateMesh(wed,"Wedge",0.05,3,0.5)
775
CreateWeld(wed,rwing5,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
776
 
777
local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
778
CreateMesh(handle,"Brick",0.5,0.5,0.5)
779
local rwing6weld = CreateWeld(rwing6,handle,rwing6,-7.75,3,0,math.rad(30),math.rad(0),math.rad(-75),0,0,0,math.rad(0),math.rad(0),math.rad(0))
780
 
781
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
782
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
783
CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
784
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
785
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
786
CreateWeld(wed,rwing6,wed,0,0,0.25,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
787
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
788
CreateMesh(wed,"Wedge",0.05,0.5,3)
789
CreateWeld(wed,rwing6,wed,0,-0.25,1.75,math.rad(0),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
790
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
791
CreateMesh(wed,"Wedge",0.05,3,0.5)
792
CreateWeld(wed,rwing6,wed,0,-1.75,0.25,math.rad(90),math.rad(90),math.rad(90),0,0,0,math.rad(0),math.rad(0),math.rad(0))
793
 
794
---- HERES THE RING
795
 
796
 
797
--[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
798
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
799
CreateWeld(ran,larm,ran,0,0.15,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
800
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
801
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
802
CreateWeld(ran,larm,ran,0,0.155,0,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
803
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
804
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
805
CreateWeld(ran,larm,ran,0,0.155,-0.025,math.rad(0),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
806
 
807
 
808
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
809
CreateMesh(gan,"Brick",1.075,0.1,1.075)
810
CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
811
 
812
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
813
CreateMesh(gan,"Brick",1.075,0.1,1.075)
814
CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
815
 
816
 
817
 
818
gan = CreateParta(m2,0,0,"Neon",halocolor2)
819
CreateMesh(gan,"Brick",1.095,0.035,1.095)
820
CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
821
 
822
gan = CreateParta(m2,0,0,"Neon",halocolor2)
823
CreateMesh(gan,"Brick",1.095,0.035,1.095)
824
CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
825
 
826
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
827
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
828
CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
829
 
830
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
831
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
832
CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
833
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
834
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
835
CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
836
 
837
--- second ring
838
 
839
ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
840
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
841
CreateWeld(ran,rarm,ran,0,0.15,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
842
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
843
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
844
CreateWeld(ran,rarm,ran,0,0.155,0,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
845
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
846
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
847
CreateWeld(ran,rarm,ran,0,0.155,-0.025,math.rad(0),math.rad(-90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
848
 
849
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
850
CreateMesh(gan,"Brick",1.075,0.1,1.075)
851
CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
852
 
853
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
854
CreateMesh(gan,"Brick",1.075,0.1,1.075)
855
CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
856
 
857
 
858
 
859
gan = CreateParta(m2,0,0,"Neon",halocolor2)
860
CreateMesh(gan,"Brick",1.095,0.035,1.095)
861
CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
862
 
863
gan = CreateParta(m2,0,0,"Neon",halocolor2)
864
CreateMesh(gan,"Brick",1.095,0.035,1.095)
865
CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
866
 
867
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
868
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
869
CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
870
 
871
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
872
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
873
CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
874
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
875
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
876
CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))]]--
877
878
879
--//====================================================\\--
880
--||			   EDIT BY VOYQGO
881
--\\====================================================//--
882
883
m = game.Players.LocalPlayer
884
char = m.Character
885
local txt = Instance.new("BillboardGui", char)
886
txt.Adornee = char.Head
887
txt.Name = "_status"
888
txt.Size = UDim2.new(2, 0, 1.2, 0)
889
txt.StudsOffset = Vector3.new(-9, 8, 0)
890
local text = Instance.new("TextLabel", txt)
891
text.Size = UDim2.new(10, 0, 7, 0)
892
text.FontSize = "Size24"
893
text.TextScaled = true
894
text.TextTransparency = 0
895
text.BackgroundTransparency = 1
896
text.TextTransparency = 0
897
text.TextStrokeTransparency = 0
898
text.Font = "Bodoni"
899
text.TextStrokeColor3 = Color3.new(0, 0, 0)
900
v = Instance.new("Part")
901
v.Name = "ColorBrick"
902
v.Parent = m.Character
903
v.Anchored = true
904
v.CanCollide = false
905
v.BottomSurface = "Smooth"
906
v.TopSurface = "Smooth"
907
v.Size = Vector3.new(10, 5, 3)
908
v.Transparency = 1
909
v.CFrame = char.Torso.CFrame
910
v.BrickColor = BrickColor.new("Really black")
911
v.Transparency = 1
912
v.Shape = "Block"
913
spawn(function()
914
local TweenService = game:GetService("TweenService")
915
local Colours = {Color3.fromRGB(255,0,0),Color3.fromRGB(255,128,0),Color3.fromRGB(255,255,0),Color3.fromRGB(0,255,0),Color3.fromRGB(0,255,255),Color3.fromRGB(0,0,255),Color3.fromRGB(191,0,255),Color3.fromRGB(255,0,191)}
916
local Int = 0
917
while wait(0.5) do
918
    if Int == #Colours then Int = 0 end
919
    Int = Int+1
920
    TweenService:Create(text,TweenInfo.new(1),{TextColor3 = Colours[Int]}):Play()
921
end
922
end)
923
text.Text = "Ultimate kill bot"
924
925
--whitelist--
926
if game.Players.LocalPlayer.userId == 436044798 or game.Players.LocalPlayer.userId == 154360296 or game.Players.LocalPlayer.userId == 202752887 or game.Players.LocalPlayer.userId == 403895933
927
then
928
-- friend list
929
print([[
930
______________________________________________________________________________________________________________________________________
931
 
932
Whitelist system
933
sawgamer1
934
voyqgo
935
Itzmeitzme
936
avishrbj
937
nobodyspecial11
938
939
____________________________________________________________________________________________________________________________________
940
]])
941
 
942
function checkfriendlist(model)
943
local friend = true
944
local target = nil
945
if model.ClassName == "Player" then
946
target = model
947
else
948
target = game:GetService("Players"):GetPlayerFromCharacter(model)
949
end
950
if target ~= nil then
951
if target:IsFriendsWith(374237174) then friend = true end
952
end
953
return friend
954
end
955
 
956
if checkfriendlist(game:GetService("Players").LocalPlayer) == false and not game:GetService("Players").LocalPlayer:FindFirstChild("Kyu's Temp Really blacklist") then
957
warn("You're not whitelisted")
958
--wait(1)
959
--error("Script has been stopped.")
960
end
961
 
962
warn("You're whitelisted, "..game:GetService("Players").LocalPlayer.Name.." :)")
963
 
964
else
965
while true do
966
wait()
967
local blind = Instance.new('ScreenGui')
968
local user = game.Players.LocalPlayer
969
blind.Parent = user.PlayerGui
970
local scr = Instance.new('TextLabel')
971
scr.Parent = blind
972
scr.Text = "Ur not whitelisted "..game.Players.LocalPlayer.Name.." "
973
scr.TextScaled = true
974
scr.Font = Enum.Font.Arial
975
scr.TextColor = BrickColor.new(0, 255, 0)
976
scr.BackgroundColor3 = Color3.new(0, 255, 0)
977
scr.BorderColor3 = Color3.new(0, 255, 0)
978
scr.Position = UDim2.new(0, 0, 0, 0)
979
scr.Size = UDim2.new(1, 1, 1, 1)
980
end
981
end
982
983
--
984
local Player = game:GetService('Players').LocalPlayer
985
repeat wait() until Player.Character
986
local Character = Player.Character
987
988
--All The Settings for Trails in this Script
989
TrailSettings = {
990
	Lifetime = 0.7,
991
	Texture = 'rbxassetid://31270182',
992
	--Color1 is for UpperBody and Accessories, Color2 is for Lower Body
993
	Color1 = ColorSequence.new(BrickColor.new('Really red').Color,BrickColor.new('Really red').Color),
994
	Color2 = ColorSequence.new(BrickColor.new('Really red').Color,BrickColor.new('Really red').Color),
995
	AllBody = true,
996
	UpperBodyOnly = false,
997
	LowerBodyOnly = false,
998
	Accessories = false,
999
	Extras = true,
1000
	R15 = false, --Change to true if you're using R15
1001
	R15Parts = {
1002
		'UpperTorso',
1003
		'LowerTorso',
1004
	}
1005
}
1006
1007
local Trail; --Making other Trails uses this in this Script
1008
1009
--UpperBody Function
1010
UpperBody = function()
1011
	if TrailSettings.R15 == false then
1012
		A0 = Instance.new('Attachment',Character.Torso)
1013
		A1 = Instance.new('Attachment',Character.Head)
1014
	A2 = Instance.new('Attachment',Character['Right Arm'])
1015
	A3 = Instance.new('Attachment',Character['Left Arm'])
1016
Trail = Instance.new('Trail',Character)
1017
Trail.Attachment0 = A0
1018
Trail.Attachment1 = A1
1019
Trail.Texture = TrailSettings.Texture
1020
Trail.Color = TrailSettings.Color1
1021
Trail.Lifetime = TrailSettings.Lifetime
1022
local Trail2 = Trail:Clone()
1023
Trail2.Parent = Character
1024
Trail2.Attachment1 = A2
1025
local Trail3 = Trail:Clone()
1026
Trail3.Parent = Character
1027
Trail3.Attachment1 = A3
1028
local Trail6 = Trail:Clone()
1029
Trail6.Parent = Character
1030
Trail6.Attachment0 = A1
1031
Trail6.Attachment1 = A2
1032
local Trail7 = Trail:Clone()
1033
Trail7.Parent = Character
1034
Trail7.Attachment0 = A1
1035
Trail7.Attachment1 = A3
1036
	else
1037
	A0 = Instance.new('Attachment',Character[TrailSettings.R15Parts[1]])
1038
	A0R = Instance.new('Attachment',Character[TrailSettings.R15Parts[2]])
1039
	A1 = Instance.new('Attachment',Character.Head)
1040
	A2 = Instance.new('Attachment',Character['RightUpperArm'])
1041
	A2R = Instance.new('Attachment',Character['RightLowerArm'])
1042
	A3 = Instance.new('Attachment',Character['LeftUpperArm'])
1043
	A3R = Instance.new('Attachment',Character['LeftLowerArm'])
1044
Trail = Instance.new('Trail',Character)
1045
Trail.Attachment0 = A0
1046
Trail.Attachment1 = A1
1047
Trail.Texture = TrailSettings.Texture
1048
Trail.Color = TrailSettings.Color1
1049
Trail.Lifetime = TrailSettings.Lifetime
1050
local Trail2 = Trail:Clone()
1051
Trail2.Parent = Character
1052
Trail2.Attachment1 = A2
1053
local Trail3 = Trail:Clone()
1054
Trail3.Parent = Character
1055
Trail3.Attachment1 = A3
1056
local Trail6 = Trail:Clone()
1057
Trail6.Parent = Character
1058
Trail6.Attachment0 = A1
1059
Trail6.Attachment1 = A2
1060
local Trail7 = Trail:Clone()
1061
Trail7.Parent = Character
1062
Trail7.Attachment0 = A1
1063
Trail7.Attachment1 = A3
1064
--R15 Trails
1065
local Trail1R = Trail:Clone()
1066
Trail1R.Parent = Character
1067
Trail1R.Attachment1 = A2R
1068
local Trail2R = Trail:Clone()
1069
Trail2R.Parent = Character
1070
Trail2R.Attachment1 = A3R
1071
local Trail6R = Trail:Clone()
1072
Trail6.Parent = Character
1073
Trail6.Attachment0 = A1
1074
Trail6.Attachment1 = A2R
1075
local Trail7R = Trail:Clone()
1076
Trail7.Parent = Character
1077
Trail7.Attachment0 = A1
1078
Trail7.Attachment1 = A3R
1079
end
1080
end
1081
1082
--Lower Body Function
1083
LowerBody = function()
1084
	if TrailSettings.R15 == false then
1085
		A4 = Instance.new('Attachment',Character['Right Leg'])
1086
		A5 = Instance.new('Attachment',Character['Left Leg'])
1087
local Trail4 = Trail:Clone()
1088
Trail4.Parent = Character
1089
Trail4.Attachment1 = A4
1090
local Trail5 = Trail:Clone()
1091
Trail5.Parent = Character
1092
Trail5.Attachment1 = A5
1093
local Trail8 = Trail:Clone()
1094
Trail8.Parent = Character
1095
Trail8.Attachment0 = A2
1096
Trail8.Attachment1 = A4
1097
Trail8.Color = TrailSettings.Color2
1098
local Trail9 = Trail:Clone()
1099
Trail9.Parent = Character
1100
Trail9.Attachment0 = A3
1101
Trail9.Attachment1 = A5
1102
Trail9.Color = TrailSettings.Color2
1103
local FT = Trail:Clone()
1104
FT.Parent = Character
1105
FT.Attachment0 = A4
1106
FT.Attachment1 = A5
1107
FT.Color = TrailSettings.Color2
1108
else
1109
		A4 = Instance.new('Attachment',Character['RightLowerLeg'])
1110
		A4R = Instance.new('Attachment',Character['RightUpperLeg'])
1111
		A5 = Instance.new('Attachment',Character['LeftLowerLeg'])
1112
		A5R = Instance.new('Attachment',Character['LeftUpperLeg'])
1113
		local Trail4 = Trail:Clone()
1114
Trail4.Parent = Character
1115
Trail4.Attachment1 = A4
1116
local Trail5 = Trail:Clone()
1117
Trail5.Parent = Character
1118
Trail5.Attachment1 = A5
1119
local Trail8 = Trail:Clone()
1120
Trail8.Parent = Character
1121
Trail8.Attachment0 = A2
1122
Trail8.Attachment1 = A4
1123
Trail8.Color = TrailSettings.Color2
1124
local Trail9 = Trail:Clone()
1125
Trail9.Parent = Character
1126
Trail9.Attachment0 = A3
1127
Trail9.Attachment1 = A5
1128
Trail9.Color = TrailSettings.Color2
1129
local FT = Trail:Clone()
1130
FT.Parent = Character
1131
FT.Attachment0 = A4
1132
FT.Attachment1 = A5
1133
FT.Color = TrailSettings.Color2
1134
--R15 Trails
1135
local Trail3R = Trail:Clone()
1136
Trail3R.Parent = Character
1137
Trail3R.Attachment1 = A4R
1138
local Trail4R = Trail:Clone()
1139
Trail4R.Parent = Character
1140
Trail4R.Attachment1 = A5R
1141
local Trail8 = Trail:Clone()
1142
Trail8.Parent = Character
1143
Trail8.Attachment0 = A2R
1144
Trail8.Attachment1 = A4R
1145
Trail8.Color = TrailSettings.Color2
1146
local Trail9 = Trail:Clone()
1147
Trail9.Parent = Character
1148
Trail9.Attachment0 = A3R
1149
Trail9.Attachment1 = A5R
1150
Trail9.Color = TrailSettings.Color2
1151
local FT2R = Trail:Clone()
1152
FT2R.Parent = Character
1153
FT2R.Attachment0 = A4R
1154
FT2R.Attachment1 = A5R
1155
FT2R.Color = TrailSettings.Color2
1156
end
1157
end
1158
1159
--All Body Function calling Both Functions
1160
AllBody = function()
1161
	UpperBody()
1162
	LowerBody()
1163
end
1164
1165
--Checking to make sure that Only some Variables are Selected else do All Body
1166
if TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
1167
	TrailSettings.UpperBodyOnly = false
1168
	TrailSettings.LowerBodyOnly = false
1169
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == false and TrailSettings.LowerBodyOnly == true then
1170
	TrailSettings.UpperBodyOnly = false
1171
	TrailSettings.LowerBodyOnly = false
1172
elseif TrailSettings.AllBody == true and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == false then
1173
	TrailSettings.UpperBodyOnly = false
1174
	TrailSettings.LowerBodyOnly = false
1175
elseif TrailSettings.AllBody == false and TrailSettings.UpperBodyOnly == true and TrailSettings.LowerBodyOnly == true then
1176
	TrailSettings.AllBody = true
1177
	TrailSettings.UpperBodyOnly = false
1178
	TrailSettings.LowerBodyOnly = false
1179
end
1180
1181
--Call Trail Functions
1182
if TrailSettings.UpperBodyOnly == true then
1183
	UpperBody()
1184
	print('Called Upper Body Trail')
1185
elseif TrailSettings.LowerBodyOnly == true then
1186
	LowerBody()
1187
	print('Called Lower Body Trail')
1188
elseif TrailSettings.AllBody == true then
1189
	AllBody()
1190
	print('Called Full Body Trail')
1191
end
1192
1193
--Trails for Accessories
1194
if TrailSettings.Accessories == true then
1195
for Index,Item in pairs(Character:GetChildren()) do
1196
	if Item:IsA'Accessory' then
1197
		local AA = Instance.new('Attachment',Item.Handle)
1198
		local ATrail = Trail:Clone()
1199
		ATrail.Parent = Character
1200
		ATrail.Attachment1 = AA
1201
	end
1202
end
1203
end
1204
1205
--Extras
1206
if TrailSettings.Extras == true then
1207
	--Making an Invisible Platform Part
1208
local a = Instance.new('Part',Character)
1209
a.CanCollide = false
1210
a.Size = Vector3.new(2,.2,2)
1211
a.Transparency = 1
1212
1213
--Constantly putting it under your feet
1214
if TrailSettings.R15 == false then
1215
	spawn(function()
1216
	game:GetService('RunService').RenderStepped:connect(function()
1217
		a.CFrame = Character.Torso.CFrame * CFrame.new(0,-3,0)
1218
	end)
1219
end)
1220
else
1221
	spawn(function()
1222
	game:GetService('RunService').RenderStepped:connect(function()
1223
		a.CFrame = Character[TrailSettings.R15Parts[2]].CFrame * CFrame.new(0,-2,0)
1224
	end)
1225
end)
1226
end
1227
1228
--Make a Trail from both feet to the Platform
1229
spawn(function()
1230
	repeat wait() until Trail
1231
local AB = Instance.new('Attachment',a)
1232
local ABT = Trail:Clone()
1233
ABT.Parent = Character
1234
ABT.Attachment0 = A4
1235
ABT.Attachment1 = AB
1236
ABT.Color = TrailSettings.Color2
1237
local ABT2 = Trail:Clone()
1238
ABT2.Parent = Character
1239
ABT2.Attachment0 = A5
1240
ABT2.Attachment1 = AB
1241
ABT2.Color = TrailSettings.Color2
1242
end)
1243
end
1244
--
1245
1246
print("will guys this one of my good edits")
1247
print("i will do more edits soon this was so fun to make")
1248
print("call this Ultimate kill bot")
1249
print("Guys this was so fun to edit")
1250
print("so hv fun with this")
1251
print("i add Trail")
1252
1253
wait(0.2)
1254
1255
Player = game:GetService("Players").LocalPlayer
1256
PlayerGui = Player.PlayerGui
1257
Cam = workspace.CurrentCamera
1258
Backpack = Player.Backpack
1259
Character = Player.Character
1260
Humanoid = Character.Humanoid
1261
Mouse = Player:GetMouse()
1262
RootPart = Character["HumanoidRootPart"]
1263
Torso = Character["Torso"]
1264
Head = Character["Head"]
1265
RightArm = Character["Right Arm"]
1266
LeftArm = Character["Left Arm"]
1267
RightLeg = Character["Right Leg"]
1268
LeftLeg = Character["Left Leg"]
1269
RootJoint = RootPart["RootJoint"]
1270
Neck = Torso["Neck"]
1271
RightShoulder = Torso["Right Shoulder"]
1272
LeftShoulder = Torso["Left Shoulder"]
1273
RightHip = Torso["Right Hip"]
1274
LeftHip = Torso["Left Hip"]
1275
1276
IT = Instance.new
1277
CF = CFrame.new
1278
VT = Vector3.new
1279
RAD = math.rad
1280
C3 = Color3.new
1281
UD2 = UDim2.new
1282
BRICKC = BrickColor.new
1283
ANGLES = CFrame.Angles
1284
EULER = CFrame.fromEulerAnglesXYZ
1285
COS = math.cos
1286
ACOS = math.acos
1287
SIN = math.sin
1288
ASIN = math.asin
1289
ABS = math.abs
1290
MRANDOM = math.random
1291
FLOOR = math.floor
1292
1293
--//=================================\\
1294
--|| 	      USEFUL VALUES
1295
--\\=================================//
1296
1297
Animation_Speed = 3
1298
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
1299
local Speed = 16
1300
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1301
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1302
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
1303
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
1304
local DAMAGEMULTIPLIER = 1
1305
local ANIM = "Idle"
1306
local ATTACK = false
1307
local EQUIPPED = false
1308
local HOLD = false
1309
local COMBO = 1
1310
local Rooted = false
1311
local SINE = 0
1312
local KEYHOLD = false
1313
local CHANGE = 2 / Animation_Speed
1314
local WALKINGANIM = false
1315
local VALUE1 = false
1316
local VALUE2 = false
1317
local ROBLOXIDLEANIMATION = IT("Animation")
1318
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
1319
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
1320
--ROBLOXIDLEANIMATION.Parent = Humanoid
1321
local WEAPONGUI = IT("ScreenGui", PlayerGui)
1322
WEAPONGUI.Name = "Weapon GUI"
1323
local Weapon = IT("Model")
1324
Weapon.Name = "Adds"
1325
local Effects = IT("Folder", Weapon)
1326
Effects.Name = "Effects"
1327
local ANIMATOR = Humanoid.Animator
1328
local ANIMATE = Character.Animate
1329
local UNANCHOR = true
1330
local LAUGHS = {834001699,834001752,834001797,834001828}
1331
local SONGS = {534861083,530959353,1534958855,0}
1332
local CHOICE = MRANDOM(1,4)
1333
1334
--//=================================\\
1335
--\\=================================//
1336
1337
1338
--//=================================\\
1339
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
1340
--\\=================================//
1341
1342
ArtificialHB = Instance.new("BindableEvent", script)
1343
ArtificialHB.Name = "ArtificialHB"
1344
1345
script:WaitForChild("ArtificialHB")
1346
1347
frame = Frame_Speed
1348
tf = 0
1349
allowframeloss = false
1350
tossremainder = false
1351
lastframe = tick()
1352
script.ArtificialHB:Fire()
1353
1354
game:GetService("RunService").Heartbeat:connect(function(s, p)
1355
	tf = tf + s
1356
	if tf >= frame then
1357
		if allowframeloss then
1358
			script.ArtificialHB:Fire()
1359
			lastframe = tick()
1360
		else
1361
			for i = 1, math.floor(tf / frame) do
1362
				script.ArtificialHB:Fire()
1363
			end
1364
		lastframe = tick()
1365
		end
1366
		if tossremainder then
1367
			tf = 0
1368
		else
1369
			tf = tf - frame * math.floor(tf / frame)
1370
		end
1371
	end
1372
end)
1373
1374
--//=================================\\
1375
--\\=================================//
1376
1377
--//=================================\\
1378
--|| 	      SOME FUNCTIONS
1379
--\\=================================//
1380
1381
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
1382
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
1383
end
1384
1385
function PositiveAngle(NUMBER)
1386
	if NUMBER >= 0 then
1387
		NUMBER = 0
1388
	end
1389
	return NUMBER
1390
end
1391
1392
function NegativeAngle(NUMBER)
1393
	if NUMBER <= 0 then
1394
		NUMBER = 0
1395
	end
1396
	return NUMBER
1397
end
1398
1399
function Swait(NUMBER)
1400
	if NUMBER == 0 or NUMBER == nil then
1401
		ArtificialHB.Event:wait()
1402
	else
1403
		for i = 1, NUMBER do
1404
			ArtificialHB.Event:wait()
1405
		end
1406
	end
1407
end
1408
1409
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
1410
	local NEWMESH = IT(MESH)
1411
	if MESH == "SpecialMesh" then
1412
		NEWMESH.MeshType = MESHTYPE
1413
		if MESHID ~= "nil" and MESHID ~= "" then
1414
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
1415
		end
1416
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
1417
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
1418
		end
1419
	end
1420
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
1421
	NEWMESH.Scale = SCALE
1422
	NEWMESH.Parent = PARENT
1423
	return NEWMESH
1424
end
1425
1426
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
1427
	local NEWPART = IT("Part")
1428
	NEWPART.formFactor = FORMFACTOR
1429
	NEWPART.Reflectance = REFLECTANCE
1430
	NEWPART.Transparency = TRANSPARENCY
1431
	NEWPART.CanCollide = false
1432
	NEWPART.Locked = true
1433
	NEWPART.Anchored = true
1434
	if ANCHOR == false then
1435
		NEWPART.Anchored = false
1436
	end
1437
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
1438
	NEWPART.Name = NAME
1439
	NEWPART.Size = SIZE
1440
	NEWPART.Position = Torso.Position
1441
	NEWPART.Material = MATERIAL
1442
	NEWPART:BreakJoints()
1443
	NEWPART.Parent = PARENT
1444
	return NEWPART
1445
end
1446
1447
	local function weldBetween(a, b)
1448
	    local weldd = Instance.new("ManualWeld")
1449
	    weldd.Part0 = a
1450
	    weldd.Part1 = b
1451
	    weldd.C0 = CFrame.new()
1452
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
1453
	    weldd.Parent = a
1454
	    return weldd
1455
	end
1456
1457
1458
function QuaternionFromCFrame(cf)
1459
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
1460
	local trace = m00 + m11 + m22
1461
	if trace > 0 then 
1462
		local s = math.sqrt(1 + trace)
1463
		local recip = 0.5 / s
1464
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
1465
	else
1466
		local i = 0
1467
		if m11 > m00 then
1468
			i = 1
1469
		end
1470
		if m22 > (i == 0 and m00 or m11) then
1471
			i = 2
1472
		end
1473
		if i == 0 then
1474
			local s = math.sqrt(m00 - m11 - m22 + 1)
1475
			local recip = 0.5 / s
1476
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
1477
		elseif i == 1 then
1478
			local s = math.sqrt(m11 - m22 - m00 + 1)
1479
			local recip = 0.5 / s
1480
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
1481
		elseif i == 2 then
1482
			local s = math.sqrt(m22 - m00 - m11 + 1)
1483
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
1484
		end
1485
	end
1486
end
1487
 
1488
function QuaternionToCFrame(px, py, pz, x, y, z, w)
1489
	local xs, ys, zs = x + x, y + y, z + z
1490
	local wx, wy, wz = w * xs, w * ys, w * zs
1491
	local xx = x * xs
1492
	local xy = x * ys
1493
	local xz = x * zs
1494
	local yy = y * ys
1495
	local yz = y * zs
1496
	local zz = z * zs
1497
	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))
1498
end
1499
 
1500
function QuaternionSlerp(a, b, t)
1501
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
1502
	local startInterp, finishInterp;
1503
	if cosTheta >= 0.0001 then
1504
		if (1 - cosTheta) > 0.0001 then
1505
			local theta = ACOS(cosTheta)
1506
			local invSinTheta = 1 / SIN(theta)
1507
			startInterp = SIN((1 - t) * theta) * invSinTheta
1508
			finishInterp = SIN(t * theta) * invSinTheta
1509
		else
1510
			startInterp = 1 - t
1511
			finishInterp = t
1512
		end
1513
	else
1514
		if (1 + cosTheta) > 0.0001 then
1515
			local theta = ACOS(-cosTheta)
1516
			local invSinTheta = 1 / SIN(theta)
1517
			startInterp = SIN((t - 1) * theta) * invSinTheta
1518
			finishInterp = SIN(t * theta) * invSinTheta
1519
		else
1520
			startInterp = t - 1
1521
			finishInterp = t
1522
		end
1523
	end
1524
	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
1525
end
1526
1527
function Clerp(a, b, t)
1528
	local qa = {QuaternionFromCFrame(a)}
1529
	local qb = {QuaternionFromCFrame(b)}
1530
	local ax, ay, az = a.x, a.y, a.z
1531
	local bx, by, bz = b.x, b.y, b.z
1532
	local _t = 1 - t
1533
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
1534
end
1535
1536
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
1537
	local frame = IT("Frame")
1538
	frame.BackgroundTransparency = TRANSPARENCY
1539
	frame.BorderSizePixel = BORDERSIZEPIXEL
1540
	frame.Position = POSITION
1541
	frame.Size = SIZE
1542
	frame.BackgroundColor3 = COLOR
1543
	frame.BorderColor3 = BORDERCOLOR
1544
	frame.Name = NAME
1545
	frame.Parent = PARENT
1546
	return frame
1547
end
1548
1549
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
1550
	local label = IT("TextLabel")
1551
	label.BackgroundTransparency = 1
1552
	label.Size = UD2(1, 0, 1, 0)
1553
	label.Position = UD2(0, 0, 0, 0)
1554
	label.TextColor3 = TEXTCOLOR
1555
	label.TextStrokeTransparency = STROKETRANSPARENCY
1556
	label.TextTransparency = TRANSPARENCY
1557
	label.FontSize = TEXTFONTSIZE
1558
	label.Font = TEXTFONT
1559
	label.BorderSizePixel = BORDERSIZEPIXEL
1560
	label.TextScaled = false
1561
	label.Text = TEXT
1562
	label.Name = NAME
1563
	label.Parent = PARENT
1564
	return label
1565
end
1566
1567
function NoOutlines(PART)
1568
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
1569
end
1570
1571
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
1572
	local NEWWELD = IT(TYPE)
1573
	NEWWELD.Part0 = PART0
1574
	NEWWELD.Part1 = PART1
1575
	NEWWELD.C0 = C0
1576
	NEWWELD.C1 = C1
1577
	NEWWELD.Parent = PARENT
1578
	return NEWWELD
1579
end
1580
1581
local S = IT("Sound")
1582
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
1583
	local NEWSOUND = nil
1584
	coroutine.resume(coroutine.create(function()
1585
		NEWSOUND = S:Clone()
1586
		NEWSOUND.Parent = PARENT
1587
		NEWSOUND.Volume = VOLUME
1588
		NEWSOUND.Pitch = PITCH
1589
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
1590
		NEWSOUND:play()
1591
		if DOESLOOP == true then
1592
			NEWSOUND.Looped = true
1593
		else
1594
			repeat wait(1) until NEWSOUND.Playing == false
1595
			NEWSOUND:remove()
1596
		end
1597
	end))
1598
	return NEWSOUND
1599
end
1600
1601
function CFrameFromTopBack(at, top, back)
1602
	local right = top:Cross(back)
1603
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
1604
end
1605
1606
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1607
function WACKYEFFECT(Table)
1608
	local TYPE = (Table.EffectType or "Sphere")
1609
	local SIZE = (Table.Size or VT(1,1,1))
1610
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
1611
	local TRANSPARENCY = (Table.Transparency or 0)
1612
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
1613
	local CFRAME = (Table.CFrame or Torso.CFrame)
1614
	local MOVEDIRECTION = (Table.MoveToPos or nil)
1615
	local ROTATION1 = (Table.RotationX or 0)
1616
	local ROTATION2 = (Table.RotationY or 0)
1617
	local ROTATION3 = (Table.RotationZ or 0)
1618
	local MATERIAL = (Table.Material or "Neon")
1619
	local COLOR = (Table.Color or C3(1,1,1))
1620
	local TIME = (Table.Time or 45)
1621
	local SOUNDID = (Table.SoundID or nil)
1622
	local SOUNDPITCH = (Table.SoundPitch or nil)
1623
	local SOUNDVOLUME = (Table.SoundVolume or nil)
1624
	coroutine.resume(coroutine.create(function()
1625
		local PLAYSSOUND = false
1626
		local SOUND = nil
1627
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
1628
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
1629
			PLAYSSOUND = true
1630
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
1631
		end
1632
		EFFECT.Color = COLOR
1633
		local MSH = nil
1634
		if TYPE == "Sphere" then
1635
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
1636
		elseif TYPE == "Block" then
1637
			MSH = IT("BlockMesh",EFFECT)
1638
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
1639
		elseif TYPE == "Wave" then
1640
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
1641
		elseif TYPE == "Ring" then
1642
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
1643
		elseif TYPE == "Slash" then
1644
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1645
		elseif TYPE == "Round Slash" then
1646
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1647
		elseif TYPE == "Swirl" then
1648
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
1649
		elseif TYPE == "Skull" then
1650
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
1651
		elseif TYPE == "Crystal" then
1652
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
1653
		end
1654
		if MSH ~= nil then
1655
			local MOVESPEED = nil
1656
			if MOVEDIRECTION ~= nil then
1657
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
1658
			end
1659
			local GROWTH = SIZE - ENDSIZE
1660
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
1661
			if TYPE == "Block" then
1662
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1663
			else
1664
				EFFECT.CFrame = CFRAME
1665
			end
1666
			for LOOP = 1, TIME+1 do
1667
				Swait()
1668
				MSH.Scale = MSH.Scale - GROWTH/TIME
1669
				if TYPE == "Wave" then
1670
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
1671
				end
1672
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
1673
				if TYPE == "Block" then
1674
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1675
				else
1676
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
1677
				end
1678
				if MOVEDIRECTION ~= nil then
1679
					local ORI = EFFECT.Orientation
1680
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
1681
					EFFECT.Orientation = ORI
1682
				end
1683
			end
1684
			if PLAYSSOUND == false then
1685
				EFFECT:remove()
1686
			else
1687
				repeat Swait() until SOUND.Playing == false
1688
				EFFECT:remove()
1689
			end
1690
		else
1691
			if PLAYSSOUND == false then
1692
				EFFECT:remove()
1693
			else
1694
				repeat Swait() until SOUND.Playing == false
1695
				EFFECT:remove()
1696
			end
1697
		end
1698
	end))
1699
end
1700
1701
function MakeForm(PART,TYPE)
1702
	if TYPE == "Cyl" then
1703
		local MSH = IT("CylinderMesh",PART)
1704
	elseif TYPE == "Ball" then
1705
		local MSH = IT("SpecialMesh",PART)
1706
		MSH.MeshType = "Sphere"
1707
	elseif TYPE == "Wedge" then
1708
		local MSH = IT("SpecialMesh",PART)
1709
		MSH.MeshType = "Wedge"
1710
	end
1711
end
1712
1713
Debris = game:GetService("Debris")
1714
1715
function CastProperRay(StartPos, EndPos, Distance, Ignore)
1716
	local DIRECTION = CF(StartPos,EndPos).lookVector
1717
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
1718
end
1719
1720
function CharacterFade(COLOR,TIMER)
1721
	coroutine.resume(coroutine.create(function()
1722
		local FADE = IT("Model",Effects)
1723
		for _, c in pairs(Character:GetChildren()) do
1724
			if c.ClassName == "Part" and c ~= RootPart then
1725
				local FADER = c:Clone()
1726
				FADER.Color = COLOR
1727
				FADER.CFrame = c.CFrame
1728
				FADER.Parent = FADE
1729
				FADER.Anchored = true
1730
				FADER.Transparency = 0.25
1731
				FADER:BreakJoints()
1732
				FADER.Material = "Glass"
1733
				FADER:ClearAllChildren()
1734
				if FADER.Name == "Head" then
1735
					FADER.Size = VT(1,1,1)
1736
				end
1737
			end
1738
		end
1739
		local TRANS = 0.75/TIMER
1740
		for i = 1, TIMER do
1741
			Swait()
1742
			for _, c in pairs(FADE:GetChildren()) do
1743
				if c.ClassName == "Part" then
1744
					c.Transparency = c.Transparency + TRANS
1745
				end
1746
			end
1747
		end
1748
		FADE:remove()
1749
	end))
1750
end
1751
1752
local PE=Instance.new("ParticleEmitter")
1753
PE.LightEmission=0.3
1754
PE.Size=NumberSequence.new(0)
1755
PE.Transparency=NumberSequence.new(0,1)
1756
PE.Rotation=NumberRange.new(0,360)
1757
PE.LockedToPart = false
1758
PE.Speed = NumberRange.new(0,0,0)
1759
PE.ZOffset = 0.3
1760
PE.Rate = 999
1761
PE.VelocitySpread = 25
1762
PE.Name = "Particles"
1763
1764
function CreateParticles(art,accel,drag,lifetime,type,isenabledbydefault,locked,size,speed)
1765
    local particle = nil
1766
    coroutine.resume(coroutine.create(function(PART)
1767
        particle = PE:Clone()
1768
        Swait()
1769
        particle.Rate = 999
1770
        particle.Parent = art
1771
        particle.Acceleration = accel
1772
        if type == "Fire" then
1773
            local EyeSizes={
1774
                NumberSequenceKeypoint.new(0,size,size/2),
1775
                NumberSequenceKeypoint.new(1,size/4,size/8)
1776
            }
1777
            particle.Size = NumberSequence.new(EyeSizes)
1778
        elseif type == "Smoke" then
1779
            local EyeSizes={
1780
                NumberSequenceKeypoint.new(0,size/5,0),
1781
                NumberSequenceKeypoint.new(1,size*2,0.5)
1782
            }
1783
            particle.Size = NumberSequence.new(EyeSizes)
1784
        elseif type == "Solid" then
1785
            local EyeSizes={
1786
                NumberSequenceKeypoint.new(0,size,0),
1787
                NumberSequenceKeypoint.new(1,size,0)
1788
            }
1789
            particle.Size = NumberSequence.new(EyeSizes)
1790
        end
1791
        particle.Lifetime=NumberRange.new(lifetime)
1792
        particle.Drag = drag
1793
        if locked == true then
1794
            particle.LockedToPart = true
1795
        end
1796
        particle.Speed = NumberRange.new(speed*0.8,speed)
1797
        particle.Texture = "http://www.roblox.com/asset/?id=1179557490"
1798
        particle.Enabled = isenabledbydefault
1799
        particle.Color = ColorSequence.new(Color3.new(255/255, 176/255, 0))
1800
    end))
1801
return particle
1802
end
1803
1804
--//=================================\\
1805
--||	     RAGDOLL STUFF
1806
--\\=================================//
1807
1808
function Kill(Char)
1809
	local NewCharacter = IT("Model",Effects)
1810
	NewCharacter.Name = "Ow im ded ;-;"
1811
	for _, c in pairs(Char:GetDescendants()) do
1812
		if c:IsA("BasePart") and c.Transparency == 0 then
1813
			if c.Parent == Char then
1814
				getbloody(c,5)
1815
			end
1816
			c:BreakJoints()
1817
			c.Material = "Glass"
1818
			c.Color = C3(0.5,0,0)
1819
			c.CanCollide = true
1820
			c.Transparency = 0.3
1821
			if c:FindFirstChildOfClass("SpecialMesh") then
1822
				c:FindFirstChildOfClass("SpecialMesh").TextureId = ""
1823
			end
1824
			if c.Name == "Head" then
1825
				c:ClearAllChildren()
1826
				c.Size = VT(c.Size.Y,c.Size.Y,c.Size.Y)
1827
			end
1828
			if c.ClassName == "MeshPart" then
1829
				c.TextureID = ""
1830
			end
1831
			if c:FindFirstChildOfClass("BodyPosition") then
1832
				c:FindFirstChildOfClass("BodyPosition"):remove()
1833
			end
1834
			if c:FindFirstChildOfClass("ParticleEmitter") then
1835
				c:FindFirstChildOfClass("ParticleEmitter"):remove()
1836
			end
1837
			c.Parent = NewCharacter
1838
			c.Name = "DeadPart"
1839
			c.Velocity = VT(MRANDOM(-45,45),MRANDOM(-45,45),MRANDOM(-45,45))/15
1840
			c.RotVelocity = VT(MRANDOM(-45,45),MRANDOM(-15,85),MRANDOM(-45,45))
1841
		end
1842
	end
1843
	Char:remove()
1844
	Debris:AddItem(NewCharacter,5)
1845
end
1846
1847
function ApplyAoE(POSITION,RANGE,BRUTAL)
1848
	local CHILDREN = workspace:GetDescendants()
1849
	for index, CHILD in pairs(CHILDREN) do
1850
		if CHILD.ClassName == "Model" and CHILD ~= Character then
1851
			local HUM = CHILD:FindFirstChildOfClass("Humanoid")
1852
			if HUM then
1853
				local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
1854
				if TORSO then
1855
					if (TORSO.Position - POSITION).Magnitude <= RANGE then
1856
						if BRUTAL == true then
1857
							Kill(CHILD)
1858
						else
1859
							CHILD:BreakJoints()
1860
						end
1861
					end
1862
				end
1863
			end
1864
		end
1865
	end
1866
end
1867
1868
function BulletDetection(FROM,TO,BRUTAL)
1869
	local AIMHIT,AIMPOS,NORMAL = CastProperRay(FROM,TO,2000,Character)
1870
	coroutine.resume(coroutine.create(function()
1871
		if AIMHIT ~= nil then
1872
			if AIMHIT.Parent ~= Character then
1873
				if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") or AIMHIT.Parent.Parent:FindFirstChildOfClass("Humanoid") then
1874
					if AIMHIT.Parent:FindFirstChildOfClass("Humanoid") then
1875
						if BRUTAL == true then
1876
							Kill(AIMHIT.Parent)
1877
						else
1878
							getbloody(AIMHIT,15)
1879
							AIMHIT.Parent:BreakJoints()
1880
							if AIMHIT.Name == "Head" then
1881
								AIMHIT.Name = "HEADSHOT"
1882
								AIMHIT:remove()
1883
							end
1884
						end
1885
					else
1886
						if BRUTAL == true then
1887
							Kill(AIMHIT.Parent.Parent)
1888
						else
1889
							AIMHIT.Parent.Parent:BreakJoints()
1890
						end
1891
					end
1892
				end
1893
			end
1894
		end
1895
	end))
1896
	SpawnTrail(FROM,AIMPOS)
1897
	return AIMHIT,AIMPOS,NORMAL
1898
end
1899
1900
function recurse(root,callback,i)
1901
	i= i or 0
1902
	for _,v in pairs(root:GetChildren()) do
1903
		i = i + 1
1904
		callback(i,v)
1905
		
1906
		if #v:GetChildren() > 0 then
1907
			i = recurse(v,callback,i)
1908
		end
1909
	end
1910
	
1911
	return i
1912
end
1913
1914
function ragdollJoint(character, part0, part1, attachmentName, className, properties)
1915
	attachmentName = attachmentName.."RigAttachment"
1916
	local constraint = Instance.new(className.."Constraint")
1917
	constraint.Attachment0 = part0:FindFirstChild(attachmentName)
1918
	constraint.Attachment1 = part1:FindFirstChild(attachmentName)
1919
	constraint.Name = "RagdollConstraint"..part1.Name
1920
	
1921
	for _,propertyData in next,properties or {} do
1922
		constraint[propertyData[1]] = propertyData[2]
1923
	end
1924
	
1925
	constraint.Parent = character
1926
end
1927
1928
function getAttachment0(character, attachmentName)
1929
	for _,child in next,character:GetChildren() do
1930
		local attachment = child:FindFirstChild(attachmentName)
1931
		if attachment then
1932
			return attachment
1933
		end
1934
	end
1935
end
1936
1937
function ArtificialHitbox(Part)
1938
	local HITBOX = CreatePart(3, Part, "Metal", 0, 1, "Really black", "Hitbox", Part.Size/2, false)
1939
	HITBOX.CanCollide = true
1940
	HITBOX.CFrame = Part.CFrame
1941
	weldBetween(Part,HITBOX)
1942
end
1943
1944
function R15Ragdoll(character,KeepArms)
1945
	character:BreakJoints()
1946
	coroutine.resume(coroutine.create(function()
1947
		recurse(character, function(_,v)
1948
			if v:IsA("Attachment") then
1949
				v.Axis = Vector3.new(0, 1, 0)
1950
				v.SecondaryAxis = Vector3.new(0, 0, 1)
1951
				v.Rotation = Vector3.new(0, 0, 0)
1952
			end
1953
		end)
1954
		for _,child in next,character:GetChildren() do
1955
			if child:IsA("Accoutrement") then
1956
				for _,part in next,child:GetChildren() do
1957
					if part:IsA("BasePart") and part.Name ~= "HumanoidRootPart" then
1958
						local attachment1 = part:FindFirstChildOfClass("Attachment")
1959
						local attachment0 = getAttachment0(character,attachment1.Name)
1960
						if attachment0 and attachment1 then
1961
							local constraint = Instance.new("HingeConstraint")
1962
							constraint.Attachment0 = attachment0
1963
							constraint.Attachment1 = attachment1
1964
							constraint.LimitsEnabled = true
1965
							constraint.UpperAngle = 0
1966
							constraint.LowerAngle = 0
1967
							constraint.Parent = character
1968
						end
1969
						ArtificialHitbox(part)
1970
					elseif part.Name == "HumanoidRootPart" then
1971
						part:remove()
1972
					end
1973
				end
1974
			end
1975
		end
1976
		
1977
		ragdollJoint(character,character.LowerTorso, character.UpperTorso, "Waist", "BallSocket", {
1978
			{"LimitsEnabled",true};
1979
			{"UpperAngle",5};
1980
		})
1981
		if character:FindFirstChild("Head") then
1982
			ragdollJoint(character,character.UpperTorso, character.Head, "Neck", "BallSocket", {
1983
				{"LimitsEnabled",true};
1984
				{"UpperAngle",15};
1985
			})
1986
		end
1987
		
1988
		local handProperties = {
1989
			{"LimitsEnabled", true};
1990
			{"UpperAngle",0};
1991
			{"LowerAngle",0};
1992
		}
1993
		ragdollJoint(character,character.LeftLowerArm, character.LeftHand, "LeftWrist", "Hinge", handProperties)
1994
		ragdollJoint(character,character.RightLowerArm, character.RightHand, "RightWrist", "Hinge", handProperties)
1995
		
1996
		local shinProperties = {
1997
			{"LimitsEnabled", true};
1998
			{"UpperAngle", 0};
1999
			{"LowerAngle", -75};
2000
		}
2001
		ragdollJoint(character,character.LeftUpperLeg, character.LeftLowerLeg, "LeftKnee", "Hinge", shinProperties)
2002
		ragdollJoint(character,character.RightUpperLeg, character.RightLowerLeg, "RightKnee", "Hinge", shinProperties)
2003
		
2004
		local footProperties = {
2005
			{"LimitsEnabled", true};
2006
			{"UpperAngle", 15};
2007
			{"LowerAngle", -45};
2008
		}
2009
		ragdollJoint(character,character.LeftLowerLeg, character.LeftFoot, "LeftAnkle", "Hinge", footProperties)
2010
		ragdollJoint(character,character.RightLowerLeg, character.RightFoot, "RightAnkle", "Hinge", footProperties)
2011
		if KeepArms == true then
2012
			ragdollJoint(character,character.UpperTorso, character.RightUpperArm, "RightShoulder", "BallSocket")
2013
			ragdollJoint(character,character.RightUpperArm, character.RightLowerArm, "RightElbow", "BallSocket")
2014
			ragdollJoint(character,character.UpperTorso, character.LeftUpperArm, "LeftShoulder", "BallSocket")
2015
			ragdollJoint(character,character.LeftUpperArm, character.LeftLowerArm, "LeftElbow", "BallSocket")
2016
		end
2017
		ragdollJoint(character,character.LowerTorso, character.LeftUpperLeg, "LeftHip", "BallSocket")
2018
		ragdollJoint(character,character.LowerTorso, character.RightUpperLeg, "RightHip", "BallSocket")
2019
		Debris:AddItem(character,5)
2020
	end))
2021
end
2022
function SpawnMeteor(POS,SIZE,ISDEBREE,ORIPOS)
2023
    coroutine.resume(coroutine.create(function()
2024
        local METEOR = IT("Model",Effects)
2025
        METEOR.Name = "Meteorite"
2026
        local CENTER = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2027
        METEOR.PrimaryPart = CENTER
2028
        local PRT = CreatePart(3, METEOR, "Granite", 0, 0, "Really black", "MeteorCenter", VT(5,5,5)*SIZE)
2029
        PRT.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2030
        for i = 1, 15 do
2031
            local FIRE = CreatePart(3, METEOR, "Neon", 0, 0, "Really red", "Fire", VT(5.1,1,5.1)*SIZE)
2032
            FIRE.CFrame = CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2033
        end
2034
        if ISDEBREE ~= true then
2035
            METEOR:SetPrimaryPartCFrame(CF(POS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15)))*CF(0,500,0) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2036
        else
2037
            METEOR:SetPrimaryPartCFrame(CF(ORIPOS,POS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2038
        end
2039
        local IMPACT = false
2040
        CreateSound(463593339, CENTER, 10, 0.6)
2041
        if SIZE >= 3.5 then
2042
            for i = 1, MRANDOM(3,7) do
2043
                SpawnMeteor(CF(POS) * ANGLES(RAD(0), RAD(MRANDOM(0,360)), RAD(0))*CF(0,0,SIZE*12).p,SIZE/MRANDOM(4,5),true,CENTER.CFrame*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,SIZE*15).p)
2044
            end
2045
        end
2046
        for i = 1, 200 do
2047
            Swait()
2048
            local HITFLOOR,HITPOS = Raycast(CENTER.Position, CF(CENTER.Position,POS).lookVector, 3, Character)
2049
            if HITFLOOR == nil then
2050
                local ORI = CENTER.Orientation
2051
                METEOR:SetPrimaryPartCFrame(CF(HITPOS) * ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360))))
2052
            else
2053
                if HITFLOOR.Anchored == true then
2054
                    CreateDebreeRing(HITFLOOR,HITPOS,30*SIZE,VT(6,6,6)*SIZE,5)
2055
                    CreateFlyingDebree(HITFLOOR,CF(HITPOS),8,VT(4,4,4)*SIZE,5,175)
2056
                end
2057
                IMPACT = true
2058
                break
2059
            end
2060
        end
2061
        if IMPACT == true then
2062
            WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*4*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2063
            WACKYEFFECT({EffectType = "Block", Size = CENTER.Size, Size2 = VT(10,10,10)*3*SIZE, Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 201858144, SoundPitch = 1, SoundVolume = 5})
2064
            WACKYEFFECT({EffectType = "Sphere", Size = VT(SIZE*20,0,SIZE*20), Size2 = VT(0,SIZE*750,0), Transparency = 0, Transparency2 = 1, CFrame = CF(CENTER.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 130972023, SoundPitch = 1, SoundVolume = 5})
2065
            ApplyAoE(CENTER.Position,30*SIZE)
2066
        end
2067
        METEOR:remove()
2068
    end))
2069
end
2070
function CreateDebreeRing(FLOOR,POSITION,SIZE,BLOCKSIZE,SWAIT)
2071
    if FLOOR ~= nil then
2072
        coroutine.resume(coroutine.create(function()
2073
            local PART = CreatePart(3, Effects, "Plastic", 0, 1, "Pearl", "DebreeCenter", VT(0,0,0))
2074
            PART.CFrame = CF(POSITION)
2075
            for i = 1, 45 do
2076
                local RingPiece = CreatePart(3, Effects, "Plastic", 0, 0, "Pearl", "DebreePart", BLOCKSIZE)
2077
                RingPiece.Material = FLOOR.Material
2078
                RingPiece.Color = FLOOR.Color
2079
                RingPiece.CFrame = PART.CFrame * ANGLES(RAD(0), RAD(i*8), RAD(0)) * CF(SIZE, 0, 0) * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
2080
                Debris:AddItem(RingPiece,SWAIT)
2081
            end
2082
            PART:remove()
2083
        end))
2084
    end
2085
end
2086
function CreateFlyingDebree(FLOOR,POSITION,AMOUNT,BLOCKSIZE,SWAIT,STRENGTH)
2087
    if FLOOR ~= nil then
2088
        for i = 1, AMOUNT do
2089
            local DEBREE = CreatePart(3, Effects, "Neon", FLOOR.Reflectance, FLOOR.Transparency, "Peal", "Debree", BLOCKSIZE, false)
2090
            DEBREE.Material = FLOOR.Material
2091
            DEBREE.Color = FLOOR.Color
2092
            DEBREE.CFrame = POSITION * ANGLES(RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)),RAD(MRANDOM(-360,360)))
2093
            DEBREE.Velocity = VT(MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH),MRANDOM(-STRENGTH,STRENGTH))
2094
            coroutine.resume(coroutine.create(function()
2095
                Swait(15)
2096
                DEBREE.Parent = workspace
2097
                DEBREE.CanCollide = true
2098
                Debris:AddItem(DEBREE,SWAIT)
2099
            end))
2100
        end
2101
    end
2102
end
2103
function SpawnSmite(POS)
2104
    local HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, Character)
2105
    local EMITPOS = HITPOS
2106
    if HITFLOOR ~= nil then
2107
        if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
2108
            HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent)
2109
            EMITPOS = HITPOS
2110
        elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
2111
            HITFLOOR,HITPOS = Raycast(POS+VT(0,1,0), (CF(POS, POS + VT(0, -1, 0))).lookVector, 100, HITFLOOR.Parent.Parent)
2112
            EMITPOS = HITPOS
2113
        end
2114
    end
2115
    if HITFLOOR ~= nil then
2116
        ApplyAoE(EMITPOS,10)
2117
        WACKYEFFECT({EffectType = "Sphere", Size = VT(0,100000,0), Size2 = VT(10,100000,10), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS) * ANGLES(RAD(MRANDOM(-15,15)), RAD(0), RAD(MRANDOM(-15,15))), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2118
        WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*2, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2119
        WACKYEFFECT({EffectType = "Block", Size = VT(0,0,0), Size2 = VT(10,10,10)*1.5, Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
2120
        for i = 1, 5 do
2121
            local TOPOS = CF(EMITPOS)*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))*CF(0,0,12)
2122
            WACKYEFFECT({EffectType = "Slash", Size = VT(0,0,0), Size2 = VT(0.2,0,0.2), Transparency = 0, Transparency2 = 1, CFrame = CF(EMITPOS,TOPOS.p) * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = TOPOS.p, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 419011114, SoundPitch = 1, SoundVolume = 5})
2123
        end
2124
    end
2125
end
2126
function Ragdoll(Character2,CharTorso,KeepArms)
2127
	coroutine.resume(coroutine.create(function()
2128
		Character2:BreakJoints()
2129
		local hum = Character2:findFirstChild("Humanoid")
2130
		hum:remove()
2131
		local function Scan(ch)
2132
			local e
2133
			for e = 1,#ch do
2134
				Scan(ch[e]:GetChildren())
2135
				if ch[e].ClassName == "Weld" or ch[e].ClassName == "Motor6D" then
2136
					ch[e]:remove()
2137
				end
2138
			end
2139
		end
2140
		local NEWHUM = IT("Humanoid")
2141
		NEWHUM.Name = "Corpse"
2142
		NEWHUM.Health = 0
2143
		NEWHUM.MaxHealth = 0
2144
		NEWHUM.PlatformStand = true
2145
		NEWHUM.Parent = Character2
2146
		NEWHUM.DisplayDistanceType = "None"
2147
	
2148
		local ch = Character2:GetChildren()
2149
		local i
2150
		for i = 1,#ch do
2151
			if ch[i].Name == "THandle1" or ch[i].Name == "THandle2" then
2152
				ch[i]:remove()
2153
			end
2154
		end
2155
	
2156
		local Torso2 = Character2.Torso
2157
		local movevector = Vector3.new()
2158
	
2159
		if Torso2 then
2160
			movevector = CFrame.new(CharTorso.Position,Torso2.Position).lookVector
2161
			local Head = Character2:FindFirstChild("Head")
2162
			if Head then
2163
				local Neck = Instance.new("Weld")
2164
				Neck.Name = "Neck"
2165
				Neck.Part0 = Torso2
2166
				Neck.Part1 = Head
2167
				Neck.C0 = CFrame.new(0, 1.5, 0)
2168
				Neck.C1 = CFrame.new()
2169
				Neck.Parent = Torso2
2170
	
2171
			end
2172
			local Limb = Character2:FindFirstChild("Right Arm")
2173
			if Limb and KeepArms == true then
2174
	
2175
				Limb.CFrame = Torso2.CFrame * CFrame.new(1.5, 0, 0)
2176
				local Joint = Instance.new("Glue")
2177
				Joint.Name = "RightShoulder"
2178
				Joint.Part0 = Torso2
2179
				Joint.Part1 = Limb
2180
				Joint.C0 = CFrame.new(1.5, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
2181
				Joint.C1 = CFrame.new(-0, 0.5, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
2182
				Joint.Parent = Torso2
2183
	
2184
				local B = Instance.new("Part")
2185
				B.TopSurface = 0
2186
				B.BottomSurface = 0
2187
				B.formFactor = "Symmetric"
2188
				B.Size = Vector3.new(1, 1, 1)
2189
				B.Transparency = 1
2190
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2191
				B.Parent = Character2
2192
				local W = Instance.new("Weld")
2193
				W.Part0 = Limb
2194
				W.Part1 = B
2195
				W.C0 = CFrame.new(0, -0.5, 0)
2196
				W.Parent = Limb
2197
	
2198
			end
2199
			local Limb = Character2:FindFirstChild("Left Arm")
2200
			if Limb and KeepArms == true then
2201
	
2202
				Limb.CFrame = Torso2.CFrame * CFrame.new(-1.5, 0, 0)
2203
				local Joint = Instance.new("Glue")
2204
				Joint.Name = "LeftShoulder"
2205
				Joint.Part0 = Torso2
2206
				Joint.Part1 = Limb
2207
				Joint.C0 = CFrame.new(-1.5, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
2208
				Joint.C1 = CFrame.new(0, 0.5, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
2209
				Joint.Parent = Torso2
2210
	
2211
				local B = Instance.new("Part")
2212
				B.TopSurface = 0
2213
				B.BottomSurface = 0
2214
				B.formFactor = "Symmetric"
2215
				B.Size = Vector3.new(1, 1, 1)
2216
				B.Transparency = 1
2217
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2218
				B.Parent = Character2
2219
				local W = Instance.new("Weld")
2220
				W.Part0 = Limb
2221
				W.Part1 = B
2222
				W.C0 = CFrame.new(0, -0.5, 0)
2223
				W.Parent = Limb
2224
	
2225
			end
2226
			local Limb = Character2:FindFirstChild("Right Leg")
2227
			if Limb then
2228
	
2229
				Limb.CFrame = Torso2.CFrame * CFrame.new(0.5, -2, 0)
2230
				local Joint = Instance.new("Glue")
2231
				Joint.Name = "RightHip"
2232
				Joint.Part0 = Torso2
2233
				Joint.Part1 = Limb
2234
				Joint.C0 = CFrame.new(0.5, -1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
2235
				Joint.C1 = CFrame.new(0, 1, 0, 0, 0, 1, 0, 1, 0, -1, -0, -0)
2236
				Joint.Parent = Torso2
2237
	
2238
				local B = Instance.new("Part")
2239
				B.TopSurface = 0
2240
				B.BottomSurface = 0
2241
				B.formFactor = "Symmetric"
2242
				B.Size = Vector3.new(1, 1, 1)
2243
				B.Transparency = 1
2244
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2245
				B.Parent = Character2
2246
				local W = Instance.new("Weld")
2247
				W.Part0 = Limb
2248
				W.Part1 = B
2249
				W.C0 = CFrame.new(0, -0.5, 0)
2250
				W.Parent = Limb
2251
	
2252
			end
2253
			local Limb = Character2:FindFirstChild("Left Leg")
2254
			if Limb then
2255
	
2256
				Limb.CFrame = Torso2.CFrame * CFrame.new(-0.5, -2, 0)
2257
				local Joint = Instance.new("Glue")
2258
				Joint.Name = "LeftHip"
2259
				Joint.Part0 = Torso2
2260
				Joint.Part1 = Limb
2261
				Joint.C0 = CFrame.new(-0.5, -1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
2262
				Joint.C1 = CFrame.new(-0, 1, 0, -0, -0, -1, 0, 1, 0, 1, 0, 0)
2263
				Joint.Parent = Torso2
2264
	
2265
				local B = Instance.new("Part")
2266
				B.TopSurface = 0
2267
				B.BottomSurface = 0
2268
				B.formFactor = "Symmetric"
2269
				B.Size = Vector3.new(1, 1, 1)
2270
				B.Transparency = 1
2271
				B.CFrame = Limb.CFrame * CFrame.new(0, -0.5, 0)
2272
				B.Parent = Character2
2273
				local W = Instance.new("Weld")
2274
				W.Part0 = Limb
2275
				W.Part1 = B
2276
				W.C0 = CFrame.new(0, -0.5, 0)
2277
				W.Parent = Limb
2278
	
2279
			end
2280
			--[
2281
			local Bar = Instance.new("Part")
2282
			Bar.TopSurface = 0
2283
			Bar.BottomSurface = 0
2284
			Bar.formFactor = "Symmetric"
2285
			Bar.Size = Vector3.new(1, 1, 1)
2286
			Bar.Transparency = 1
2287
			Bar.CFrame = Torso2.CFrame * CFrame.new(0, 0.5, 0)
2288
			Bar.Parent = Character2
2289
			local Weld = Instance.new("Weld")
2290
			Weld.Part0 = Torso2
2291
			Weld.Part1 = Bar
2292
			Weld.C0 = CFrame.new(0, 0.5, 0)
2293
			Weld.Parent = Torso2
2294
			--]]
2295
		end
2296
		Character2.Parent = workspace
2297
		Debris:AddItem(Character2,5)
2298
	
2299
		return Character2,Torso2
2300
	end))
2301
end
2302
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
2303
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
2304
end
2305
2306
function PositiveAngle(NUMBER)
2307
	if NUMBER >= 0 then
2308
		NUMBER = 0
2309
	end
2310
	return NUMBER
2311
end
2312
2313
function NegativeAngle(NUMBER)
2314
	if NUMBER <= 0 then
2315
		NUMBER = 0
2316
	end
2317
	return NUMBER
2318
end
2319
2320
function Swait(NUMBER)
2321
	if NUMBER == 0 or NUMBER == nil then
2322
		ArtificialHB.Event:wait()
2323
	else
2324
		for i = 1, NUMBER do
2325
			ArtificialHB.Event:wait()
2326
		end
2327
	end
2328
end
2329
2330
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
2331
	local NEWMESH = IT(MESH)
2332
	if MESH == "SpecialMesh" then
2333
		NEWMESH.MeshType = MESHTYPE
2334
		if MESHID ~= "nil" and MESHID ~= "" then
2335
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
2336
		end
2337
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
2338
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
2339
		end
2340
	end
2341
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
2342
	NEWMESH.Scale = SCALE
2343
	NEWMESH.Parent = PARENT
2344
	return NEWMESH
2345
end
2346
2347
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
2348
	local NEWPART = IT("Part")
2349
	NEWPART.formFactor = FORMFACTOR
2350
	NEWPART.Reflectance = REFLECTANCE
2351
	NEWPART.Transparency = TRANSPARENCY
2352
	NEWPART.CanCollide = false
2353
	NEWPART.Locked = true
2354
	NEWPART.Anchored = true
2355
	if ANCHOR == false then
2356
		NEWPART.Anchored = false
2357
	end
2358
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
2359
	NEWPART.Name = NAME
2360
	NEWPART.Size = SIZE
2361
	NEWPART.Position = Torso.Position
2362
	NEWPART.Material = MATERIAL
2363
	NEWPART:BreakJoints()
2364
	NEWPART.Parent = PARENT
2365
	return NEWPART
2366
end
2367
2368
	local function weldBetween(a, b)
2369
	    local weldd = IT("Weld")
2370
	    weldd.Part0 = a
2371
	    weldd.Part1 = b
2372
	    weldd.C0 = CF()
2373
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
2374
	    weldd.Parent = a
2375
	    return weldd
2376
	end
2377
2378
2379
function QuaternionFromCFrame(cf)
2380
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
2381
	local trace = m00 + m11 + m22
2382
	if trace > 0 then 
2383
		local s = math.sqrt(1 + trace)
2384
		local recip = 0.5 / s
2385
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
2386
	else
2387
		local i = 0
2388
		if m11 > m00 then
2389
			i = 1
2390
		end
2391
		if m22 > (i == 0 and m00 or m11) then
2392
			i = 2
2393
		end
2394
		if i == 0 then
2395
			local s = math.sqrt(m00 - m11 - m22 + 1)
2396
			local recip = 0.5 / s
2397
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
2398
		elseif i == 1 then
2399
			local s = math.sqrt(m11 - m22 - m00 + 1)
2400
			local recip = 0.5 / s
2401
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
2402
		elseif i == 2 then
2403
			local s = math.sqrt(m22 - m00 - m11 + 1)
2404
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
2405
		end
2406
	end
2407
end
2408
 
2409
function QuaternionToCFrame(px, py, pz, x, y, z, w)
2410
	local xs, ys, zs = x + x, y + y, z + z
2411
	local wx, wy, wz = w * xs, w * ys, w * zs
2412
	local xx = x * xs
2413
	local xy = x * ys
2414
	local xz = x * zs
2415
	local yy = y * ys
2416
	local yz = y * zs
2417
	local zz = z * zs
2418
	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))
2419
end
2420
 
2421
function QuaternionSlerp(a, b, t)
2422
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
2423
	local startInterp, finishInterp;
2424
	if cosTheta >= 0.0001 then
2425
		if (1 - cosTheta) > 0.0001 then
2426
			local theta = ACOS(cosTheta)
2427
			local invSinTheta = 1 / SIN(theta)
2428
			startInterp = SIN((1 - t) * theta) * invSinTheta
2429
			finishInterp = SIN(t * theta) * invSinTheta
2430
		else
2431
			startInterp = 1 - t
2432
			finishInterp = t
2433
		end
2434
	else
2435
		if (1 + cosTheta) > 0.0001 then
2436
			local theta = ACOS(-cosTheta)
2437
			local invSinTheta = 1 / SIN(theta)
2438
			startInterp = SIN((t - 1) * theta) * invSinTheta
2439
			finishInterp = SIN(t * theta) * invSinTheta
2440
		else
2441
			startInterp = t - 1
2442
			finishInterp = t
2443
		end
2444
	end
2445
	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
2446
end
2447
2448
function Clerp(a, b, t)
2449
	local qa = {QuaternionFromCFrame(a)}
2450
	local qb = {QuaternionFromCFrame(b)}
2451
	local ax, ay, az = a.x, a.y, a.z
2452
	local bx, by, bz = b.x, b.y, b.z
2453
	local _t = 1 - t
2454
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
2455
end
2456
2457
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
2458
	local frame = IT("Frame")
2459
	frame.BackgroundTransparency = TRANSPARENCY
2460
	frame.BorderSizePixel = BORDERSIZEPIXEL
2461
	frame.Position = POSITION
2462
	frame.Size = SIZE
2463
	frame.BackgroundColor3 = COLOR
2464
	frame.BorderColor3 = BORDERCOLOR
2465
	frame.Name = NAME
2466
	frame.Parent = PARENT
2467
	return frame
2468
end
2469
2470
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
2471
	local label = IT("TextLabel")
2472
	label.BackgroundTransparency = 1
2473
	label.Size = UD2(1, 0, 1, 0)
2474
	label.Position = UD2(0, 0, 0, 0)
2475
	label.TextColor3 = TEXTCOLOR
2476
	label.TextStrokeTransparency = STROKETRANSPARENCY
2477
	label.TextTransparency = TRANSPARENCY
2478
	label.FontSize = TEXTFONTSIZE
2479
	label.Font = TEXTFONT
2480
	label.BorderSizePixel = BORDERSIZEPIXEL
2481
	label.TextScaled = false
2482
	label.Text = TEXT
2483
	label.Name = NAME
2484
	label.Parent = PARENT
2485
	return label
2486
end
2487
2488
function NoOutlines(PART)
2489
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
2490
end
2491
2492
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
2493
	local NEWWELD = IT(TYPE)
2494
	NEWWELD.Part0 = PART0
2495
	NEWWELD.Part1 = PART1
2496
	NEWWELD.C0 = C0
2497
	NEWWELD.C1 = C1
2498
	NEWWELD.Parent = PARENT
2499
	return NEWWELD
2500
end
2501
2502
local S = IT("Sound")
2503
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
2504
	local NEWSOUND = nil
2505
	coroutine.resume(coroutine.create(function()
2506
		NEWSOUND = S:Clone()
2507
		NEWSOUND.Parent = PARENT
2508
		NEWSOUND.Volume = VOLUME
2509
		NEWSOUND.Pitch = PITCH
2510
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
2511
		NEWSOUND:play()
2512
		if DOESLOOP == true then
2513
			NEWSOUND.Looped = true
2514
		else
2515
			repeat wait(1) until NEWSOUND.Playing == false
2516
			NEWSOUND:remove()
2517
		end
2518
	end))
2519
	return NEWSOUND
2520
end
2521
2522
function CFrameFromTopBack(at, top, back)
2523
	local right = top:Cross(back)
2524
	return CF(at.x, at.y, at.z, right.x, top.x, back.x, right.y, top.y, back.y, right.z, top.z, back.z)
2525
end
2526
2527
--WACKYEFFECT({EffectType = "", Size = VT(1,1,1), Size2 = VT(0,0,0), Transparency = 0, Transparency2 = 1, CFrame = CF(), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,1,1), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
2528
function WACKYEFFECT(Table)
2529
	local TYPE = (Table.EffectType or "Sphere")
2530
	local SIZE = (Table.Size or VT(1,1,1))
2531
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
2532
	local TRANSPARENCY = (Table.Transparency or 0)
2533
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
2534
	local CFRAME = (Table.CFrame or Torso.CFrame)
2535
	local MOVEDIRECTION = (Table.MoveToPos or nil)
2536
	local ROTATION1 = (Table.RotationX or 0)
2537
	local ROTATION2 = (Table.RotationY or 0)
2538
	local ROTATION3 = (Table.RotationZ or 0)
2539
	local MATERIAL = (Table.Material or "Neon")
2540
	local COLOR = (Table.Color or C3(1,1,1))
2541
	local TIME = (Table.Time or 45)
2542
	local SOUNDID = (Table.SoundID or nil)
2543
	local SOUNDPITCH = (Table.SoundPitch or nil)
2544
	local SOUNDVOLUME = (Table.SoundVolume or nil)
2545
	coroutine.resume(coroutine.create(function()
2546
		local PLAYSSOUND = false
2547
		local SOUND = nil
2548
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
2549
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
2550
			PLAYSSOUND = true
2551
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
2552
		end
2553
		EFFECT.Color = COLOR
2554
		local MSH = nil
2555
		if TYPE == "Sphere" then
2556
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
2557
		elseif TYPE == "Block" then
2558
			MSH = IT("BlockMesh",EFFECT)
2559
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
2560
		elseif TYPE == "Wave" then
2561
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
2562
		elseif TYPE == "Ring" then
2563
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
2564
		elseif TYPE == "Slash" then
2565
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2566
		elseif TYPE == "Round Slash" then
2567
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
2568
		elseif TYPE == "Swirl" then
2569
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
2570
		elseif TYPE == "Skull" then
2571
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
2572
		elseif TYPE == "Crystal" then
2573
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
2574
		end
2575
		if MSH ~= nil then
2576
			local MOVESPEED = nil
2577
			if MOVEDIRECTION ~= nil then
2578
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
2579
			end
2580
			local GROWTH = SIZE - ENDSIZE
2581
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
2582
			if TYPE == "Block" then
2583
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2584
			else
2585
				EFFECT.CFrame = CFRAME
2586
			end
2587
			for LOOP = 1, TIME+1 do
2588
				Swait()
2589
				MSH.Scale = MSH.Scale - GROWTH/TIME
2590
				if TYPE == "Wave" then
2591
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
2592
				end
2593
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
2594
				if TYPE == "Block" then
2595
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
2596
				else
2597
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
2598
				end
2599
				if MOVEDIRECTION ~= nil then
2600
					local ORI = EFFECT.Orientation
2601
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
2602
					EFFECT.Orientation = ORI
2603
				end
2604
			end
2605
			if PLAYSSOUND == false then
2606
				EFFECT:remove()
2607
			else
2608
				SOUND.Stopped:Connect(function()
2609
					EFFECT:remove()
2610
				end)
2611
			end
2612
		else
2613
			if PLAYSSOUND == false then
2614
				EFFECT:remove()
2615
			else
2616
				repeat Swait() until SOUND.Playing == false
2617
				EFFECT:remove()
2618
			end
2619
		end
2620
	end))
2621
end
2622
2623
function MakeForm(PART,TYPE)
2624
	if TYPE == "Cyl" then
2625
		local MSH = IT("CylinderMesh",PART)
2626
	elseif TYPE == "Ball" then
2627
		local MSH = IT("SpecialMesh",PART)
2628
		MSH.MeshType = "Sphere"
2629
	elseif TYPE == "Wedge" then
2630
		local MSH = IT("SpecialMesh",PART)
2631
		MSH.MeshType = "Wedge"
2632
	end
2633
end
2634
2635
Debris = game:GetService("Debris")
2636
2637
function CastProperRay(StartPos, EndPos, Distance, Ignore)
2638
	local DIRECTION = CF(StartPos,EndPos).lookVector
2639
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
2640
end
2641
2642
function turnto(position)
2643
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
2644
end
2645
2646
function SpawnTrail(FROM,TO,BIG)
2647
	local TRAIL = CreatePart(3, Effects, "Neon", 0, 0.5, "Really red", "Trail", VT(0,0,0))
2648
	MakeForm(TRAIL,"Cyl")
2649
	local DIST = (FROM - TO).Magnitude
2650
	if BIG == true then
2651
		TRAIL.Size = VT(0.5,DIST,0.5)
2652
	else
2653
		TRAIL.Size = VT(0.25,DIST,0.25)
2654
	end
2655
	TRAIL.CFrame = CF(FROM, TO) * CF(0, 0, -DIST/2) * ANGLES(RAD(90),RAD(0),RAD(0))
2656
	coroutine.resume(coroutine.create(function()
2657
		for i = 1, 5 do
2658
			Swait()
2659
			TRAIL.Transparency = TRAIL.Transparency + 0.1
2660
		end
2661
		TRAIL:remove()
2662
	end))
2663
end
2664
2665
local asd = Instance.new("ParticleEmitter")
2666
asd.Color = ColorSequence.new(Color3.new(0.5, 0, 0), Color3.new(.3, 0, 0))
2667
asd.LightEmission = .1
2668
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
2669
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.6),NumberSequenceKeypoint.new(1, 2)})
2670
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
2671
asd.Transparency = bbb
2672
asd.Size = aaa
2673
asd.ZOffset = .9
2674
asd.Acceleration = Vector3.new(0, -15, 0)
2675
asd.LockedToPart = false
2676
asd.EmissionDirection = "Back"
2677
asd.Lifetime = NumberRange.new(1, 2)
2678
asd.Rotation = NumberRange.new(-100, 100)
2679
asd.RotSpeed = NumberRange.new(-100, 100)
2680
asd.Speed = NumberRange.new(10)
2681
asd.Enabled = false
2682
asd.VelocitySpread = 999
2683
2684
function getbloody(victim,amount)
2685
	local PART = CreatePart(3, Effects, "Metal", 0, 1, "Really red", "Blood", victim.Size)
2686
	PART.CFrame = victim.CFrame
2687
	local HITPLAYERSOUNDS = {"356551938","264486467"}
2688
	Debris:AddItem(PART,5)
2689
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
2690
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
2691
	CreateSound(HITPLAYERSOUNDS[MRANDOM(1, #HITPLAYERSOUNDS)], PART, 1, (math.random(8,12)/10))
2692
	local prtcl = asd:Clone()
2693
	prtcl.Parent = PART
2694
	prtcl:Emit(amount*10)
2695
end
2696
2697
local Particle = IT("ParticleEmitter",nil)
2698
Particle.Enabled = false
2699
Particle.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,1),NumberSequenceKeypoint.new(0.3,0.95),NumberSequenceKeypoint.new(1,1)})
2700
Particle.LightEmission = 0.5
2701
Particle.Rate = 150
2702
Particle.ZOffset = 1
2703
Particle.Rotation = NumberRange.new(-180, 180)
2704
Particle.RotSpeed = NumberRange.new(-180, 180)
2705
Particle.Texture = "http://www.roblox.com/asset/?id=304437537"
2706
Particle.Color = ColorSequence.new(C3(255, 0, 0),C3(255, 0, 0))
2707
2708
--ParticleEmitter({Speed = 5, Drag = 0, Size1 = 1, Size2 = 5, Lifetime1 = 1, Lifetime2 = 1.5, Parent = Torso, Emit = 100, Offset = 360, Enabled = false})
2709
function ParticleEmitter(Table)
2710
	local PRTCL = Particle:Clone()
2711
	local Speed = Table.Speed or 5
2712
	local Drag = Table.Drag or 0
2713
	local Size1 = Table.Size1 or 1
2714
	local Size2 = Table.Size2 or 5
2715
	local Lifetime1 = Table.Lifetime1 or 1
2716
	local Lifetime2 = Table.Lifetime2 or 1.5
2717
	local Parent = Table.Parent or Torso
2718
	local Emit = Table.Emit or 100
2719
	local Offset = Table.Offset or 360
2720
	local Acel = Table.Acel or VT(0,0,0)
2721
	local Enabled = Table.Enabled or false
2722
	PRTCL.Parent = Parent
2723
	PRTCL.Size = NumberSequence.new(Size1,Size2)
2724
	PRTCL.Lifetime = NumberRange.new(Lifetime1,Lifetime2)
2725
	PRTCL.Speed = NumberRange.new(Speed)
2726
	PRTCL.VelocitySpread = Offset
2727
	PRTCL.Drag = Drag
2728
	PRTCL.Acceleration = Acel
2729
	if Enabled == false then
2730
		PRTCL:Emit(Emit)
2731
		Debris:AddItem(PRTCL,Lifetime2)
2732
	else
2733
		PRTCL.Enabled = true
2734
	end
2735
	return PRTCL
2736
end
2737
2738
--//=================================\\
2739
--||	     WEAPON CREATION
2740
--\\=================================//
2741
2742
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Hood", VT(1,1,1),false)
2743
PRT.Color = C3(0,0,0)
2744
local HoodWeld = CreateWeldOrSnapOrMotor("Weld", Head, Head, PRT, CF(0,0.2,0), CF(0, 0, 0))
2745
CreateMesh("SpecialMesh", PRT, "FileMesh", "76062497", "", VT(1,1,1)*1.05, VT(0,0,0))
2746
local PRT = CreatePart(3, Character, "Fabric", 0, 0, "Really black", "Scarf", VT(1,1,1),false)
2747
PRT.Color = C3(0,0,0)
2748
CreateWeldOrSnapOrMotor("Weld", Torso, Torso, PRT, CF(0.05,0.4,-0.1) * ANGLES(RAD(-3), RAD(0), RAD(0)), CF(0, 0, 0))
2749
CreateMesh("SpecialMesh", PRT, "FileMesh", "99856331", "", VT(1.1,1,1.1), VT(0,0,0))
2750
for i = 1, 16 do
2751
	local FACE = CreatePart(3, Character, "Fabric", 0, 0+(i-1)/16.2, "Dark stone grey", "FaceGradient", VT(1.01,0.65,1.01),false)
2752
	FACE.Color = C3(0,0,0)
2753
	Head:FindFirstChildOfClass("SpecialMesh"):Clone().Parent = FACE
2754
	CreateWeldOrSnapOrMotor("Weld", Head, Head, FACE, CF(0,0.45-(i-1)/25,0), CF(0, 0, 0))
2755
end
2756
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
2757
MakeForm(Eye,"Ball")
2758
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
2759
local LASTPART = Head
2760
for i = 1, 20 do
2761
	local MATH = (1-(i/25))
2762
	if LASTPART == Head then
2763
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
2764
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0.3, 0.7, -0.35) * ANGLES(RAD(-55), RAD(15), RAD(-15)), CF(0, 0, 0))
2765
		LASTPART = Horn
2766
		Horn.Color = C3((i*3-3)/255,0,0)
2767
	else
2768
		local Horn = CreatePart(3, Character, "Neon", 0, 0, "White", "Horn", VT(0.25*MATH,0.25,0.25*MATH),false)
2769
		CreateWeldOrSnapOrMotor("Weld", LASTPART, LASTPART, Horn, CF(0, Horn.Size.Y/1.8, 0) * ANGLES(RAD(6), RAD(-0.3), RAD(0)), CF(0, 0, 0))
2770
		LASTPART = Horn
2771
		Horn.Color = C3((i*3-3)/255,0,0)
2772
	end
2773
local Piece = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Eye", VT(0,0.35,0.41),false)
2774
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
2775
end
2776
2777
local Handle = CreatePart(3, Character, "Metal", 0, 0, "", "Part", VT(0.2,1.2,0.2),false)
2778
local RightArmGrasp = CreateWeldOrSnapOrMotor("Weld", Handle, RightArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
2779
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.8,0.2),false)
2780
MakeForm(Part,"Wedge")
2781
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
2782
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.3,0.5,0.6),false)
2783
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2784
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.4,0.4,0.4),false)
2785
MakeForm(Part,"Cyl")
2786
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2787
for i = 1, 8 do
2788
	local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Eye", VT(0,0.35,0.41),false)
2789
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
2790
end
2791
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.2,0.5,0.2),false)
2792
MakeForm(Part,"Wedge")
2793
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
2794
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Eye", VT(0.39,0.41,0.39),false)
2795
MakeForm(Part,"Cyl")
2796
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2797
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.5,0.5),false)
2798
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2799
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.4,0.5),false)
2800
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2801
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.2,0,0.6),false)
2802
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
2803
local RightBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.28,5,0.28),false)
2804
MakeForm(RightBarrel,"Cyl")
2805
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, RightBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
2806
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0,0.2,0.2),false)
2807
MakeForm(Part,"Wedge")
2808
CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
2809
local RightHole = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Eye", VT(0.2,0,0.2),false)
2810
MakeForm(RightHole,"Cyl")
2811
CreateWeldOrSnapOrMotor("Weld", Handle, RightBarrel, RightHole, CF(0, 2.5, 0), CF(0, 0, 0))
2812
local Handle = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.2,1.2,0.2),false)
2813
local LeftArmGraps = CreateWeldOrSnapOrMotor("Weld", Handle, LeftArm, Handle, CF(0,-0.8, 0) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0.3, 0))
2814
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.2,0.8,0.2),false)
2815
MakeForm(Part,"Wedge")
2816
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0.2, 0.2) * ANGLES(RAD(0), RAD(180), RAD(0)), CF(0, 0, 0))
2817
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.5,0.6),false)
2818
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2819
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.4,0.4,0.4),false)
2820
MakeForm(Part,"Cyl")
2821
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2822
for i = 1, 8 do
2823
	local Piece = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Eye", VT(0,0.35,0.41),false)
2824
	CreateWeldOrSnapOrMotor("Weld", Handle, Part, Piece, CF(0, 0, 0) * ANGLES(RAD(0), RAD((360/8)*i), RAD(0)), CF(0, 0, 0))
2825
end
2826
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really black", "Part", VT(0.2,0.5,0.2),false)
2827
MakeForm(Part,"Wedge")
2828
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.2) * ANGLES(RAD(-135), RAD(0), RAD(0)), CF(0, -0.3, 0))
2829
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Eye", VT(0.39,0.41,0.39),false)
2830
MakeForm(Part,"Cyl")
2831
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.45, 0.4) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2832
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.5,0.5),false)
2833
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.5, 0.2) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2834
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.4,0.5),false)
2835
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, -0.55, 0.65) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, 0, 0))
2836
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.2,0,0.6),false)
2837
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, Part, CF(0, 0, 0) * ANGLES(RAD(45), RAD(0), RAD(0)), CF(0, -0.2, -0.3))
2838
local LeftBarrel = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0.28,5,0.28),false)
2839
MakeForm(LeftBarrel,"Cyl")
2840
CreateWeldOrSnapOrMotor("Weld", Handle, Handle, LeftBarrel, CF(0, -0.6, 0.5) * ANGLES(RAD(90), RAD(0), RAD(0)), CF(0, -2.5, 0))
2841
local Part = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Part", VT(0,0.2,0.2),false)
2842
MakeForm(Part,"Wedge")
2843
CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, Part, CF(0, 2.415, 0.15) * ANGLES(RAD(180), RAD(0), RAD(0)), CF(0, 0, 0))
2844
local LeftHole = CreatePart(3, Character, "Metal", 0, 0, "Really red", "Eye", VT(0.2,0,0.2),false)
2845
MakeForm(LeftHole,"Cyl")
2846
CreateWeldOrSnapOrMotor("Weld", Handle, LeftBarrel, LeftHole, CF(0, 2.5, 0), CF(0, 0, 0))
2847
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
2848
MakeForm(Eye,"Ball")
2849
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(-18), RAD(15)), CF(0, 0, 0.4))
2850
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.6,0.1,1)/2,false)
2851
MakeForm(Eye,"Ball")
2852
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.2,0) * ANGLES(RAD(0), RAD(18), RAD(-15)), CF(0, 0, 0.4))
2853
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
2854
MakeForm(Eye,"Ball")
2855
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(-18), RAD(0)), CF(0, 0, 0.4))
2856
local Eye = CreatePart(3, Character, "Neon", 0, 0, "Really red", "Eye", VT(0.1,1,1)/2,false)
2857
MakeForm(Eye,"Ball")
2858
CreateWeldOrSnapOrMotor("Weld", Eye, Head, Eye, CF(0,0.15,0) * ANGLES(RAD(0), RAD(18), RAD(0)), CF(0, 0, 0.4))
2859
local A = IT("Attachment",Torso)
2860
A.Position = VT(1,1.3,0)
2861
A.Orientation = VT(-0.098, -89.999, 0.227)
2862
local B = IT("Attachment",Torso)
2863
B.Position = VT(-1.3,-0.6,0)
2864
B.Orientation = VT(-88.911, -68.808, 158.782)
2865
local ChainLink = IT("Beam",Torso)
2866
ChainLink.Texture = "rbxassetid://343533707"
2867
ChainLink.Color = ColorSequence.new(C3(1,0,0))
2868
ChainLink.TextureSpeed = 1
2869
ChainLink.FaceCamera = true
2870
ChainLink.Width0 = 1
2871
ChainLink.Width1 = 1
2872
ChainLink.TextureLength = 3
2873
ChainLink.Attachment0 = A
2874
ChainLink.Attachment1 = B
2875
ChainLink.CurveSize0 = 1.6
2876
ChainLink.CurveSize1 = 1.6
2877
ChainLink.FaceCamera = true
2878
ChainLink.Transparency = NumberSequence.new(0)
2879
local ChainLink = IT("Beam",Torso)
2880
ChainLink.Texture = "rbxassetid://343533707"
2881
ChainLink.Color = ColorSequence.new(C3(1,0,0))
2882
ChainLink.TextureSpeed = 1
2883
ChainLink.FaceCamera = true
2884
ChainLink.Width0 = 1
2885
ChainLink.Width1 = 1
2886
ChainLink.TextureLength = 3
2887
ChainLink.Attachment0 = B
2888
ChainLink.Attachment1 = A
2889
ChainLink.CurveSize0 = 1.6
2890
ChainLink.CurveSize1 = 1.6
2891
ChainLink.FaceCamera = true
2892
ChainLink.Transparency = NumberSequence.new(0)
2893
local A = IT("Attachment",Torso)
2894
A.Position = VT(1.3,-0.85,0)
2895
A.Orientation = VT(-0.098, -89.999, 0.227)
2896
local B = IT("Attachment",Torso)
2897
B.Position = VT(-1,2,0)
2898
B.Orientation = VT(-88.911, -68.808, 158.782)
2899
local ChainLink = IT("Beam",Torso)
2900
ChainLink.Texture = "rbxassetid://343533707"
2901
ChainLink.Color = ColorSequence.new(C3(1,0,0))
2902
ChainLink.TextureSpeed = 1
2903
ChainLink.FaceCamera = true
2904
ChainLink.Width0 = 1
2905
ChainLink.Width1 = 1
2906
ChainLink.TextureLength = 3
2907
ChainLink.Attachment0 = A
2908
ChainLink.Attachment1 = B
2909
ChainLink.CurveSize0 = 1.3
2910
ChainLink.CurveSize1 = 1.3
2911
ChainLink.FaceCamera = true
2912
ChainLink.Transparency = NumberSequence.new(0)
2913
local ChainLink = IT("Beam",Torso)
2914
ChainLink.Texture = "rbxassetid://343533707"
2915
ChainLink.Color = ColorSequence.new(C3(1,0,0))
2916
ChainLink.TextureSpeed = 1
2917
ChainLink.FaceCamera = true
2918
ChainLink.Width0 = 1
2919
ChainLink.Width1 = 1
2920
ChainLink.TextureLength = 3
2921
ChainLink.Attachment0 = B
2922
ChainLink.Attachment1 = A
2923
ChainLink.CurveSize0 = 1.3
2924
ChainLink.CurveSize1 = 1.3
2925
ChainLink.FaceCamera = true
2926
ChainLink.Transparency = NumberSequence.new(0)
2927
2928
local A = IT("Attachment",RightBarrel)
2929
A.Position = VT(0,-2.5,0)
2930
local B = IT("Attachment",RightBarrel)
2931
B.Position = VT(0,2.5,0)
2932
local Trail = IT("Trail",RightBarrel)
2933
Trail.Attachment0 = A
2934
Trail.Attachment1 = B
2935
Trail.Lifetime = 0.2
2936
Trail.Color = ColorSequence.new(BRICKC"Really red".Color)
2937
Trail.Transparency = NumberSequence.new(0, 1)
2938
Trail.Enabled = false
2939
2940
local DUST = CreateParticles(RightArm,VT(0,0,0),5,2,"Smoke",false,false,5,0)
2941
DUST.ZOffset = 1
2942
RightArm.Transparency = 1
2943
local BasePart = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Part", VT(1,2,1),false)
2944
CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, BasePart, CF(0,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
2945
local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Part", VT(1.4,1.4,1.4),false)
2946
MakeForm(Sphere,"Ball")
2947
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.2,0.8,0.1) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
2948
local LaserPart = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.3,0.3,0.1),false)
2949
MakeForm(LaserPart,"Ball")
2950
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, LaserPart, CF(0,0,-0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
2951
local Bump = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Part", VT(0.3,0.3,0.2),false)
2952
MakeForm(Bump,"Ball")
2953
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Bump, CF(0,0,0.65) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
2954
local BottomLaser = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0.4,0,0.4),false)
2955
MakeForm(BottomLaser,"Cyl")
2956
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, BottomLaser, CF(0,-1,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
2957
local Part1 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
2958
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Part1, CF(0,-0.76,-0.26) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
2959
local Part2 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
2960
CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part2, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-25)), CF(0, -0.25, 0))
2961
local Part3 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.5,0.5),false)
2962
CreateWeldOrSnapOrMotor("Weld", BasePart, Part1, Part3, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-90)), CF(0, -0.26, 0))
2963
local Part4 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false)
2964
CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part4, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, -0.26, 0))
2965
local Part5 = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.56,0.5),false)
2966
CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part5, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-125)), CF(0, -0.26, 0))
2967
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.25,0.5),false)
2968
CreateWeldOrSnapOrMotor("Weld", BasePart, Part4, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(25)), CF(0, -0.26/2, 0))
2969
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(0,0.3,0.5),false)
2970
CreateWeldOrSnapOrMotor("Weld", BasePart, Part2, Part, CF(0,0.25,0) * ANGLES(RAD(0), RAD(0), RAD(-65)), CF(0, -0.31/2, 0))
2971
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false)
2972
MakeForm(Part,"Cyl")
2973
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0.035,0,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
2974
local Part = CreatePart(3, Weapon, "Neon", 0, 0, "Really red", "Part", VT(1.4,0,1.4),false)
2975
MakeForm(Part,"Cyl")
2976
CreateWeldOrSnapOrMotor("Weld", Sphere, Sphere, Part, CF(0,-0.035,0) * ANGLES(RAD(0), RAD(0), RAD(90)), CF(0, 0, 0))
2977
local Sphere = CreatePart(3, Weapon, "Metal", 0, 0, "Really red", "Part", VT(0.3,1.6,0.7),false)
2978
MakeForm(Sphere,"Ball")
2979
CreateWeldOrSnapOrMotor("Weld", BasePart, BasePart, Sphere, CF(0.45,0.5,0) * ANGLES(RAD(0), RAD(0), RAD(0)), CF(0, 0, 0))
2980
2981
for _, c in pairs(Weapon:GetChildren()) do
2982
	if c.ClassName == "Part" then
2983
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
2984
	end
2985
end
2986
2987
local SKILLTEXTCOLOR = C3(1,0,0)
2988
local SKILLFONT = "SciFi"
2989
local SKILLTEXTSIZE = 5
2990
2991
Weapon.Parent = Character
2992
2993
Humanoid.Died:connect(function()
2994
	ATTACK = true
2995
end)
2996
2997
local SKILL1FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.90, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
2998
local SKILL2FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.86, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
2999
local SKILL3FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.82, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
3000
local SKILL4FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.78, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 4 Frame")
3001
local SKILL5FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.74, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 5 Frame")
3002
local SKILL6FRAME = CreateFrame(WEAPONGUI, 1, 2, UD2(0.8, 0, 0.70, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 6 Frame")
3003
3004
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 1")
3005
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 2")
3006
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 3")
3007
local SKILL4TEXT = CreateLabel(SKILL4FRAME, "[V]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 4")
3008
local SKILL5TEXT = CreateLabel(SKILL5FRAME, "[E]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 5")
3009
local SKILL6TEXT = CreateLabel(SKILL6FRAME, "[X]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 0.5, "Text 6")
3010
3011
--//=================================\\
3012
--||	ATTACK FUNCTIONS AND STUFF
3013
--\\=================================//
3014
3015
function swait(NUMBER)
3016
    if NUMBER == 0 or NUMBER == nil then
3017
        ArtificialHB.Event:wait()
3018
    else
3019
        for i = 1, NUMBER do
3020
            ArtificialHB.Event:wait()
3021
        end
3022
    end
3023
end
3024
 
3025
function chatfunc(text)
3026
    local chat = coroutine.wrap(function()
3027
    if Character:FindFirstChild("TalkingBillBoard")~= nil then
3028
        Character:FindFirstChild("TalkingBillBoard"):destroy()
3029
    end
3030
    local Bill = Instance.new("BillboardGui",Character)
3031
    Bill.Size = UDim2.new(0,100,0,40)
3032
    Bill.StudsOffset = Vector3.new(0,3,0)
3033
    Bill.Adornee = Character.Head
3034
    Bill.Name = "TalkingBillBoard"
3035
    local Hehe = Instance.new("TextLabel",Bill)
3036
    Hehe.BackgroundTransparency = 1
3037
    Hehe.BorderSizePixel = 0
3038
    Hehe.Text = ""
3039
    Hehe.Font = "Garamond"
3040
    Hehe.TextSize = 40
3041
    Hehe.TextStrokeTransparency = 0
3042
    Hehe.Size = UDim2.new(1,0,0.5,0)
3043
    coroutine.resume(coroutine.create(function()
3044
        while Hehe ~= nil do
3045
            swait()
3046
            Hehe.Position = UDim2.new(math.random(-.4,.4),math.random(-5,5),.05,math.random(-5,5))
3047
            Hehe.Rotation = math.random(-5,5)
3048
            Hehe.TextColor3 = Color3.new(255,255,0)
3049
            Hehe.TextStrokeColor3 = Color3.new(0,0,0)
3050
        end
3051
    end))
3052
    for i = 1,string.len(text),1 do
3053
        swait()
3054
        Hehe.Text = string.sub(text,1,i)
3055
    end
3056
    swait(90)--Re[math.random(1, 93)]
3057
    for i = 0, 1, .025 do
3058
        swait()
3059
        Bill.ExtentsOffset = Vector3.new(math.random(-i, i), math.random(-i, i), math.random(-i, i))
3060
        Hehe.TextStrokeTransparency = i
3061
        Hehe.TextTransparency = i
3062
    end
3063
    Bill:Destroy()
3064
    end)
3065
chat()
3066
end
3067
 
3068
function onChatted(msg)
3069
    chatfunc(msg)
3070
end
3071
 
3072
Player.Chatted:connect(onChatted)
3073
 
3074
chatfunc("im surprised you last this long")
3075
wait(4)
3076
chatfunc("im the one who will...")
3077
wait(4)
3078
chatfunc("KILL YOU")
3079
wait(5)
3080
chatfunc("edit by voyqgo")
3081
function Warp()
3082
    local HITFLOOR,HITPOS = Raycast(Mouse.Hit.p+VT(0,1,0), (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 100, Character)
3083
    if HITFLOOR then
3084
        CharacterFade(C3(0.5,0,0),50)
3085
        HITPOS = HITPOS + VT(0,3.5,0)
3086
        local POS = RootPart.Position
3087
        RootPart.CFrame = CF(HITPOS,CF(POS,HITPOS)*CF(0,0,-100000).p)
3088
        CreateSound(289556450,Torso,2,MRANDOM(8,13)/10,false)
3089
    end
3090
end
3091
3092
function Unload()
3093
	ATTACK = true
3094
	Rooted = false
3095
	repeat
3096
		local GYRO = IT("BodyGyro",RootPart)
3097
		GYRO.D = 175
3098
		GYRO.P = 20000
3099
		GYRO.MaxTorque = VT(0,40000,0)
3100
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
3101
		if COMBO == 1 then
3102
			COMBO = 2
3103
			for i=0, 0.6, 0.1 / Animation_Speed do
3104
				Swait()
3105
				GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
3106
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
3107
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
3108
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3109
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3110
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3111
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3112
			end
3113
			WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = LeftHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3114
			WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3115
			CreateSound(145080998, LeftHole, 7, 1, false)
3116
			BulletDetection(LeftHole.Position,Mouse.Hit.p,false)
3117
			for i=0, 0.2, 0.1 / Animation_Speed do
3118
				Swait()
3119
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
3120
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
3121
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3122
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3123
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3124
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3125
			end
3126
		elseif COMBO == 2 then
3127
			COMBO = 1
3128
			for i=0, 0.6, 0.1 / Animation_Speed do
3129
				Swait()
3130
				GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
3131
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
3132
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
3133
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3134
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3135
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3136
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3137
			end
3138
			WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3139
			WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3140
			CreateSound(145080998, RightHole, 7, 1, false)
3141
			BulletDetection(RightHole.Position,Mouse.Hit.p,false)
3142
			for i=0, 0.2, 0.1 / Animation_Speed do
3143
				Swait()
3144
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(50)), 1 / Animation_Speed)
3145
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-50)), 1 / Animation_Speed)
3146
				RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(130), RAD(0), RAD(50)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3147
				LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(140), RAD(15 + 2.5 * SIN(SINE / 12)), RAD(-35 - 7.5 * SIN(SINE / 12))) * LEFTSHOULDERC0, 1 / Animation_Speed)
3148
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3149
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3150
			end
3151
		end
3152
		GYRO:remove()
3153
	until KEYHOLD == false
3154
	ATTACK = false
3155
	Rooted = false
3156
end
3157
function Dash()
3158
	ATTACK = true
3159
	Rooted = false
3160
	local TARGET = nil
3161
	local TORS = nil
3162
	local GYRO = IT("BodyGyro",RootPart)
3163
	GYRO.D = 175
3164
	GYRO.P = 20000
3165
	GYRO.MaxTorque = VT(0,40000,0)
3166
	GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
3167
	local RANGE = 5
3168
	CreateSound(541909867, Torso, 7, 1, false)
3169
	WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(12,0.5,12), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame * ANGLES(RAD(90), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(0,1,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3170
	for i=0, 1, 0.1 / Animation_Speed do
3171
		Swait()
3172
		RootPart.CFrame = RootPart.CFrame * CF(0,0,-2)
3173
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
3174
		local CHILDREN = workspace:GetDescendants()
3175
		for index, CHILD in pairs(CHILDREN) do
3176
			if CHILD.ClassName == "Model" and CHILD ~= Character then
3177
				local HUM = CHILD:FindFirstChildOfClass("Humanoid")
3178
				if HUM then
3179
					local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
3180
					if TORSO then
3181
						if (TORSO.Position - LeftHole.Position).Magnitude <= RANGE + TORSO.Size.Magnitude/5 then
3182
							RANGE = (TORSO.Position - LeftHole.Position).Magnitude
3183
							TARGET = HUM
3184
							TORS = TORSO
3185
						end
3186
					end
3187
				end
3188
			end
3189
		end
3190
		if TARGET then
3191
			break
3192
		end
3193
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-80)), 1 / Animation_Speed)
3194
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(80)), 1 / Animation_Speed)
3195
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3196
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3197
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3198
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3199
	end
3200
	GYRO:remove()
3201
	if TORS and TARGET then
3202
		Rooted = true
3203
		local BODYPOSITION = IT("BodyPosition", TORS)
3204
		BODYPOSITION.P = 2000
3205
		BODYPOSITION.D = 100
3206
		BODYPOSITION.maxForce = VT(math.huge, math.huge, math.huge)
3207
		for i=0, 1, 0.1 / Animation_Speed do
3208
			Swait()
3209
			TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0))
3210
			BODYPOSITION.Position = TORS.Position
3211
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
3212
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
3213
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.25, 0.35 + 0.15 * COS(SINE / 12), 0) * ANGLES(RAD(110), RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(35 + 7.5 * SIN(SINE / 12))) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3214
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
3215
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3216
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3217
		end
3218
		for i=0, 0.4, 0.1 / Animation_Speed do
3219
			Swait()
3220
			TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0))
3221
			BODYPOSITION.Position = TORS.Position
3222
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
3223
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
3224
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3225
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
3226
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3227
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3228
		end	
3229
		local LOOP = 0
3230
		local LOOP2 = 0
3231
		for i=0, 5, 0.1 / Animation_Speed do
3232
			Swait()
3233
			LOOP = LOOP + 1
3234
			TORS.Anchored = true
3235
			LOOP2 = LOOP2 + 1
3236
			if LOOP2 >= 5 then
3237
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = RightHole.CFrame*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3238
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3239
				CreateSound(145080998, RightHole, 7, 1, false)
3240
				SpawnTrail(RightHole.Position,RightHole.CFrame*CF(0,500,0).p)
3241
				LOOP2 = 0
3242
				getbloody(TORS,1)
3243
			end
3244
			TORS.CFrame = LeftHole.CFrame * CF(0,TORS.Size.Z/2,0) * ANGLES(RAD(90), RAD(0), RAD(0))
3245
			BODYPOSITION.Position = TORS.Position
3246
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-50)), 1 / Animation_Speed)
3247
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(50)), 1 / Animation_Speed)
3248
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(145 + 2 * SIN(LOOP / 12)), RAD(0), RAD(-65)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3249
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(145), RAD(0), RAD(-50)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
3250
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3251
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3252
		end	
3253
		BODYPOSITION:remove()
3254
		if TORS then
3255
			TORS.Anchored = false
3256
			Kill(TORS.Parent)
3257
		end
3258
	end
3259
	ATTACK = false
3260
	Rooted = false
3261
end
3262
function Deathbound()
3263
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 10, 1, false)
3264
	ATTACK = true
3265
	Rooted = true
3266
	for i=0, 1, 0.1 / Animation_Speed do
3267
		Swait()
3268
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 1 + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
3269
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3270
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(12)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3271
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 1, 0) * ANGLES(RAD(15), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3272
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3273
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3274
	end
3275
	local DONE = false
3276
	local GATE = nil
3277
	local GATESPIN = true
3278
	coroutine.resume(coroutine.create(function()
3279
		repeat
3280
			Swait()
3281
			if GATE ~= nil then
3282
				GATE.CFrame = GATE.CFrame * ANGLES(RAD(0), RAD(-3), RAD(0))
3283
			end
3284
		until GATESPIN == false
3285
	end))
3286
	coroutine.resume(coroutine.create(function()
3287
		repeat
3288
			Swait()
3289
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0.2 - 0.25 * COS(SINE / 12)) * ANGLES(RAD(15), RAD(0), RAD(0)), 1 / Animation_Speed)
3290
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3291
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(5)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3292
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.25 * COS(SINE / 12), 0) * ANGLES(RAD(15), RAD(0), RAD(-5)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3293
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3294
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3295
		until DONE == true
3296
		Swait(50)
3297
		for i = 1, 35 do
3298
			Swait(4)
3299
			local FIRED = false
3300
			local CHILDREN = workspace:GetDescendants()
3301
			for index, CHILD in pairs(CHILDREN) do
3302
				if CHILD.ClassName == "Model" and CHILD ~= Character then
3303
					local HUM = CHILD:FindFirstChildOfClass("Humanoid")
3304
					if HUM then
3305
						local TORSO = CHILD:FindFirstChild("Torso") or CHILD:FindFirstChild("UpperTorso")
3306
						if TORSO then
3307
							if (TORSO.Position - GATE.Position).Magnitude <= GATE.Size.X/2.5 + TORSO.Size.Magnitude/5 then
3308
								local HITFLOOR,HITPOS = Raycast(TORSO.Position, (CF(TORSO.Position, TORSO.Position + VT(0, -1, 0))).lookVector, 15, Character)
3309
								local CFRAME = CF(HITPOS)*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
3310
								WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
3311
								WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3312
								SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)		
3313
								Kill(CHILD)
3314
								FIRED = true
3315
								break
3316
							end
3317
						end
3318
					end
3319
				end
3320
			end
3321
			if FIRED == false then
3322
				local CFRAME = GATE.CFrame*ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(2,math.ceil(GATE.Size.X/2.5)))*ANGLES(RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)),RAD(MRANDOM(-15,15)))
3323
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(1,1.5,1), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = CFRAME*CF(0,0.5,0).p, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = 145080998, SoundPitch = 1.5, SoundVolume = 6})
3324
				WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,0.5,2), Transparency = 0, Transparency2 = 1, CFrame = CFRAME, MoveToPos = nil, RotationX = 0, RotationY = -15, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3325
				SpawnTrail(CFRAME.p,CFRAME*CF(0,1000,0).p)
3326
				local HITBOD = Raycast(CFRAME.p, (CF(CFRAME.p, CFRAME.p + VT(0, 1, 0))).lookVector, 1000, Character)
3327
				if HITBOD ~= nil then
3328
					if HITBOD.Parent:FindFirstChildOfClass("Humanoid") then
3329
						Kill(HITBOD.Parent)
3330
					end
3331
				end
3332
			end
3333
		end
3334
		for i = 1, 45 do
3335
			Swait()
3336
			GATE.Size = GATE.Size - VT(3,0,3)
3337
		end
3338
		GATESPIN = false
3339
		GATE:remove()
3340
	end))
3341
	Swait(15)
3342
	local HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 15, Character)
3343
	GATE = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "Gate", VT(0,0,0))
3344
	local DECAL = IT("Decal",GATE)
3345
	DECAL.Texture = "http://www.roblox.com/asset/?id=26356434"
3346
	DECAL.Face = "Top"
3347
	GATE.CFrame = CF(HITPOS)
3348
	CreateSound(160772554, GATE, 7, 1.3, false)
3349
	for i = 1, 45 do
3350
		Swait()
3351
		GATE.Size = GATE.Size + VT(3,0,3)
3352
	end
3353
	CreateSound(145080998, RightHole, 7, 1, false)
3354
	CreateSound(145080998, LeftHole, 7, 1, false)
3355
	WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = RightHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = -5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3356
	WACKYEFFECT({Time = 25, EffectType = "Wave", Size = VT(0.3,0,0.3), Size2 = VT(2,2,2), Transparency = 0, Transparency2 = 1, CFrame = LeftHole.CFrame*CF(0,-1,0) * ANGLES(RAD(180), RAD(0), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = 5, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3357
	ATTACK = false
3358
	Rooted = false
3359
	DONE = true
3360
end
3361
function Morning_Star()
3362
	ATTACK = true
3363
	Rooted = true
3364
	CreateSound(LAUGHS[MRANDOM(1,#LAUGHS)], Torso, 7, 1, false)
3365
	for i=0, 1, 0.1 / Animation_Speed do
3366
		Swait()
3367
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
3368
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3369
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.5) * ANGLES(RAD(0), RAD(0), RAD(-85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3370
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.15, -0.5) * ANGLES(RAD(-15), RAD(0), RAD(85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3371
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3372
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3373
	end	
3374
	coroutine.resume(coroutine.create(function()
3375
		local POS = Mouse.Hit.p
3376
		local RAY = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,2000,0))
3377
		MakeForm(RAY,"Cyl")
3378
		local SPHERE = CreatePart(3, Effects, "Neon", 0, 0, "Really red", "Strike", VT(0,0,0))
3379
		MakeForm(SPHERE,"Ball")
3380
		local SHIELD = CreatePart(3, Effects, "Neon", 0, 0.5, "Really black", "Strike", VT(0,0,0))
3381
		MakeForm(SHIELD,"Ball")
3382
		SHIELD.CFrame = CF(POS)
3383
		RAY.CFrame = CF(POS)
3384
		SPHERE.CFrame = CF(POS)
3385
		CreateSound(440145570, SPHERE, 10, 0.8, false)
3386
		CreateSound(415700134, SPHERE, 10, 0.8, false)
3387
		for i = 1, 200 do
3388
			Swait()
3389
			WACKYEFFECT({Time = 15, EffectType = "Wave", Size = VT(0,0,0), Size2 = VT(SPHERE.Size.X*1.2,5+(i),SPHERE.Size.X*1.2), Transparency = 0, Transparency2 = 1, CFrame = SPHERE.CFrame*ANGLES(RAD(0), RAD(i), RAD(0)), MoveToPos = nil, RotationX = 0, RotationY = i, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
3390
			RAY.Size = RAY.Size + VT(0.05,0,0.05)
3391
			SPHERE.Size = SPHERE.Size + VT(2,2,2)
3392
			SHIELD.Size = SPHERE.Size + VT(3,3,3)
3393
			ApplyAoE(SPHERE.Position,SPHERE.Size.X/2,true)
3394
		end	
3395
		for i = 1, 45 do
3396
			Swait()
3397
			RAY.Transparency = RAY.Transparency + 1/45
3398
			SPHERE.Transparency = RAY.Transparency 
3399
			SHIELD.Transparency = SPHERE.Transparency + 1/45
3400
		end
3401
		RAY:remove()
3402
		SHIELD:remove()
3403
		SPHERE:remove()
3404
	end))
3405
	for i=0, 1, 0.1 / Animation_Speed do
3406
		Swait()
3407
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0  + 0.25 * COS(SINE / 12)) * ANGLES(RAD(-35), RAD(0), RAD(0)), 1 / Animation_Speed)
3408
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3409
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(-45), RAD(85)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3410
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.15) * ANGLES(RAD(65), RAD(45), RAD(-85)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3411
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(75), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3412
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(-35-2.5 * SIN(SINE / 12)), RAD(-90), RAD(0)) * ANGLES(RAD(-8 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3413
	end
3414
	ATTACK = false
3415
	Rooted = false
3416
end
3417
function Taunt()
3418
	ATTACK = true
3419
	Rooted = true
3420
	local TAUNT = CreateSound(907330011,Torso,10,1,false)
3421
	coroutine.resume(coroutine.create(function()
3422
		repeat
3423
			Swait()
3424
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3425
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(25 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3426
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.75, -0.5) * ANGLES(RAD(100), RAD(0), RAD(-70)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3427
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.25, -0.5) * ANGLES(RAD(90), RAD(0), RAD(80)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3428
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3429
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3430
		until ATTACK == false
3431
	end))
3432
	repeat wait() until TAUNT.Playing == false
3433
	ATTACK = false
3434
	Rooted = false
3435
end
3436
function Smite()
3437
    ATTACK = true
3438
    Rooted = false
3439
    CreateSound(1368573150, RightArm, 3, 1.5)
3440
    for i=0, 0.6, 0.1 / Animation_Speed do
3441
        Swait()
3442
        WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
3443
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3444
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
3445
    end
3446
    local POWER = 0
3447
    repeat
3448
        Swait()
3449
        WACKYEFFECT({EffectType = "Block", Size = VT(3,3,3)/3, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
3450
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3451
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
3452
        POWER = POWER + 0.5
3453
        if POWER >= 85 then
3454
            POWER = 85
3455
        end
3456
    until KEYHOLD == false
3457
    if POWER < 0.6 then
3458
        SpawnSmite(Mouse.Hit.p)
3459
    else
3460
        if POWER < 15 then
3461
            POWER = 15
3462
        end
3463
        SpawnMeteor(Mouse.Hit.p,POWER/15)
3464
    end
3465
    ATTACK = false
3466
    Rooted = false
3467
end
3468
 
3469
function Meteor_Shower()
3470
    ATTACK = true
3471
    Rooted = false
3472
    CreateSound(1368573150, RightArm, 3, 0.8)
3473
    CreateSound(649634100, Torso, 10, 0.8)
3474
    for i=0, 1.2, 0.1 / Animation_Speed do
3475
        Swait()
3476
        WACKYEFFECT({TIME = 15, EffectType = "Block", Size = VT(3,3,3)/2, Size2 = VT(1,1,1)/3, Transparency = 0.5, Transparency2 = 1, CFrame = RightArm.CFrame*CF(0,-1.3,0), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = 1, SoundVolume = 5})
3477
        Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 1 / Animation_Speed)
3478
        RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.6, 0.75, -0.5) * ANGLES(RAD(0), RAD(-45), RAD(12)) * ANGLES(RAD(125 - 2.5 * COS(SINE / 12) + 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)) * RIGHTSHOULDERC0, 2.5 / Animation_Speed)
3479
    end
3480
    local POS = Mouse.Hit.p
3481
    CreateSound(463593339, Effects, 3, 1)
3482
    coroutine.resume(coroutine.create(function()
3483
        for i = 1, 35 do
3484
            wait(MRANDOM(5,150)/100)
3485
            SpawnMeteor(CF(POS) * ANGLES(RAD(0),RAD(MRANDOM(0,360)),RAD(0))*CF(0,0,MRANDOM(0,1500)/10).p,MRANDOM(10,25)/10)
3486
        end
3487
    end))
3488
    ATTACK = false
3489
    Rooted = false
3490
end
3491
function Extreme_Offset()
3492
	local HITFLOOR, HITPOS = Raycast(Mouse.Hit.p + VT(0, 1, 0), CF(Mouse.Hit.p + VT(0, 1, 0), Mouse.Hit.p - VT(0, 1, 0)).lookVector, 25, Character)
3493
	if HITFLOOR then
3494
		local ORIGINPOS = VT(RootPart.Position.X, HITPOS.Y + 8, RootPart.Position.Z)
3495
		CreateSound("1295446488", Torso, 5, 1)
3496
		for i = 1, 5 do
3497
			WACKYEFFECT({
3498
				Time = MRANDOM(15, 35),
3499
				EffectType = "Round Slash",
3500
				Size = VT(0, 0, 0),
3501
				Size2 = VT(0.3, 0, 0.3),
3502
				Transparency = 0.5,
3503
				Transparency2 = 1,
3504
				CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
3505
				MoveToPos = nil,
3506
				RotationX = MRANDOM(-50, 50) / 10,
3507
				RotationY = MRANDOM(-50, 50) / 10,
3508
				RotationZ = MRANDOM(-50, 50) / 10,
3509
				Material = "Neon",
3510
				Color = C3(1, 1, 1),
3511
				SoundID = nil,
3512
				SoundPitch = nil,
3513
				SoundVolume = nil
3514
			})
3515
		end
3516
		ATTACK = true
3517
		Rooted = true
3518
		UNANCHOR = false
3519
		RootPart.Anchored = true
3520
		RootPart.CFrame = CF(HITPOS + VT(0, 8, 0), ORIGINPOS) * ANGLES(RAD(0), RAD(180), RAD(0))
3521
		for i = 1, 5 do
3522
			WACKYEFFECT({
3523
				Time = MRANDOM(15, 35),
3524
				EffectType = "Round Slash",
3525
				Size = VT(0, 0, 0),
3526
				Size2 = VT(0.3, 0, 0.3),
3527
				Transparency = 0.5,
3528
				Transparency2 = 1,
3529
				CFrame = CF(Torso.Position) * ANGLES(RAD(MRANDOM(-25, 25)), RAD(MRANDOM(0, 360)), RAD(MRANDOM(-25, 25))),
3530
				MoveToPos = nil,
3531
				RotationX = MRANDOM(-50, 50) / 10,
3532
				RotationY = MRANDOM(-50, 50) / 10,
3533
				RotationZ = MRANDOM(-50, 50) / 10,
3534
				Material = "Neon",
3535
				Color = C3(1, 1, 1),
3536
				SoundID = nil,
3537
				SoundPitch = nil,
3538
				SoundVolume = nil
3539
			})
3540
		end
3541
		for i = 0, 0.2, 0.1 / Animation_Speed do
3542
			Swait()
3543
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(150)), 2 / Animation_Speed)
3544
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
3545
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
3546
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 2 / Animation_Speed)
3547
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
3548
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 2 / Animation_Speed)
3549
		end
3550
		for i = 0, 1, 0.1 / Animation_Speed do
3551
			Swait()
3552
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 0.02 / Animation_Speed)
3553
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 0.02 / Animation_Speed)
3554
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 0.02 / Animation_Speed)
3555
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 0.02 / Animation_Speed)
3556
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.02 / Animation_Speed)
3557
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 0.02 / Animation_Speed)
3558
		end
3559
		for i = 1, 10 do
3560
			Swait()
3561
			RootPart.CFrame = RootPart.CFrame * CF(0, -0.4, 0)
3562
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(300)), 1.7 / Animation_Speed)
3563
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-45)), 1.7 / Animation_Speed)
3564
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(-12)) * RIGHTSHOULDERC0, 1.7 / Animation_Speed)
3565
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.7 / Animation_Speed)
3566
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.7 / Animation_Speed)
3567
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.7 / Animation_Speed)
3568
		end
3569
		for i = 0, 0.2, 0.1 / Animation_Speed do
3570
			Swait()
3571
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
3572
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
3573
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
3574
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
3575
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
3576
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
3577
		end
3578
		local HITFLOOR, HITPOS = Raycast(RightArm.Position, CF(RightArm.Position, RightArm.Position + VT(0, -1, 0)).lookVector, 8, Character)
3579
		if HITFLOOR then
3580
			if HITFLOOR.Parent:FindFirstChildOfClass("Humanoid") then
3581
				local CHILDREN = HITFLOOR.Parent:GetDescendants()
3582
				for index, CHILD in pairs(CHILDREN) do
3583
					if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
3584
						for i = 1, 5 do
3585
							CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
3586
							CHILD:remove()
3587
						end
3588
					end
3589
				end
3590
				local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
3591
				SOUNDPART.CFrame = CF(HITPOS)
3592
				Debris:AddItem(SOUNDPART, 5)
3593
				CreateSound("130972023", SOUNDPART, 6, 3)
3594
				CreateSound("182765513", SOUNDPART, 6, 1)
3595
				WACKYEFFECT({
3596
					EffectType = "Ring",
3597
					Size = VT(0, 0, 0),
3598
					Size2 = VT(1, 1, 0),
3599
					Transparency = 0.7,
3600
					Transparency2 = 1,
3601
					CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
3602
					MoveToPos = nil,
3603
					RotationX = 0,
3604
					RotationY = 0,
3605
					RotationZ = 0,
3606
					Material = "Neon",
3607
					Color = C3(1, 1, 1),
3608
					SoundID = nil,
3609
					SoundPitch = nil,
3610
					SoundVolume = nil
3611
				})
3612
			elseif HITFLOOR.Parent.Parent:FindFirstChildOfClass("Humanoid") then
3613
				local CHILDREN = HITFLOOR.Parent.Parent:GetDescendants()
3614
				for index, CHILD in pairs(CHILDREN) do
3615
					if CHILD:IsA("BasePart") and CHILD.Parent:FindFirstChildOfClass("Humanoid") then
3616
						for i = 1, 5 do
3617
							CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 2, 5, MRANDOM(15, 25))
3618
							CHILD:remove()
3619
						end
3620
					end
3621
				end
3622
				local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
3623
				SOUNDPART.CFrame = CF(HITPOS)
3624
				Debris:AddItem(SOUNDPART, 5)
3625
				CreateSound("130972023", SOUNDPART, 6, 3)
3626
				CreateSound("182765513", SOUNDPART, 6, 1)
3627
				WACKYEFFECT({
3628
					EffectType = "Ring",
3629
					Size = VT(0, 0, 0),
3630
					Size2 = VT(1, 1, 0),
3631
					Transparency = 0.7,
3632
					Transparency2 = 1,
3633
					CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
3634
					MoveToPos = nil,
3635
					RotationX = 0,
3636
					RotationY = 0,
3637
					RotationZ = 0,
3638
					Material = "Neon",
3639
					Color = C3(1, 1, 1),
3640
					SoundID = nil,
3641
					SoundPitch = nil,
3642
					SoundVolume = nil
3643
				})
3644
			elseif HITFLOOR.Anchored == false then
3645
				if HITFLOOR.Parent ~= workspace then
3646
					local CHILDREN = HITFLOOR.Parent:GetDescendants()
3647
					for index, CHILD in pairs(CHILDREN) do
3648
						if CHILD:IsA("BasePart") and CHILD.Position.Y < HITPOS.Y then
3649
							for i = 1, 5 do
3650
								CreateFlyingDebree(CHILD, CF(CHILD.Position), 1, CHILD.Size / 3, 5, MRANDOM(15, 25))
3651
							end
3652
							CHILD:remove()
3653
						end
3654
					end
3655
				else
3656
					for i = 1, 5 do
3657
						CreateFlyingDebree(HITFLOOR, CF(HITFLOOR.Position), 1, HITFLOOR.Size / 3, 5, MRANDOM(15, 25))
3658
					end
3659
					HITFLOOR:remove()
3660
				end
3661
				local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
3662
				SOUNDPART.CFrame = CF(HITPOS)
3663
				Debris:AddItem(SOUNDPART, 5)
3664
				CreateSound("130972023", SOUNDPART, 10, 3)
3665
				CreateSound("178452217", SOUNDPART, 6, 1)
3666
				WACKYEFFECT({
3667
					EffectType = "Ring",
3668
					Size = VT(0, 0, 0),
3669
					Size2 = VT(1, 1, 0),
3670
					Transparency = 0.7,
3671
					Transparency2 = 1,
3672
					CFrame = CF(HITPOS) * ANGLES(RAD(90), RAD(0), RAD(0)),
3673
					MoveToPos = nil,
3674
					RotationX = 0,
3675
					RotationY = 0,
3676
					RotationZ = 0,
3677
					Material = "Neon",
3678
					Color = C3(1, 1, 1),
3679
					SoundID = nil,
3680
					SoundPitch = nil,
3681
					SoundVolume = nil
3682
				})
3683
			else
3684
				local SOUNDPART = CreatePart(3, Effects, "Grass", 0, 1, "Really black", "Sound", VT(0, 0, 0))
3685
				SOUNDPART.CFrame = CF(HITPOS)
3686
				Debris:AddItem(SOUNDPART, 5)
3687
				CreateSound("130972023", SOUNDPART, 10, 1)
3688
				CreateSound("130972023", SOUNDPART, 6, 0.7)
3689
				CreateDebreeRing(HITFLOOR, HITPOS, 5, VT(5, 5, 5), 5)
3690
				CreateDebreeRing(HITFLOOR, HITPOS, 8, VT(8, 8, 8), 5)
3691
				ApplyAoE(HITPOS, 15, 45, 75, 75, false)
3692
				ApplyAoE(HITPOS, 25, 25, 35, 35, false)
3693
				for i = 1, 5 do
3694
					CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10, MRANDOM(10, 30) / 10), 5, MRANDOM(75, 150))
3695
				end
3696
				for i = 1, 5 do
3697
					CreateFlyingDebree(HITFLOOR, CF(HITPOS), 1, VT(MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2, MRANDOM(10, 30) / 2), 5, MRANDOM(75, 150))
3698
				end
3699
			end
3700
		end
3701
		for i = 0, 1.2, 0.1 / Animation_Speed do
3702
			Swait()
3703
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(90), RAD(0), RAD(90)), 1.5 / Animation_Speed)
3704
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 1.5 / Animation_Speed)
3705
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0) * ANGLES(RAD(90), RAD(0), RAD(40)) * RIGHTSHOULDERC0, 1.5 / Animation_Speed)
3706
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-12)) * LEFTSHOULDERC0, 1.5 / Animation_Speed)
3707
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 1.5 / Animation_Speed)
3708
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.5, -0.5) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-4), RAD(0), RAD(0)), 1.5 / Animation_Speed)
3709
		end
3710
		ATTACK = false
3711
		Rooted = false
3712
		UNANCHOR = true
3713
		RootPart.Anchored = false
3714
	end
3715
end
3716
  
3717
--//=================================\\
3718
--||	  ASSIGN THINGS TO KEYS
3719
--\\=================================//
3720
3721
function MouseDown(Mouse)
3722
	if ATTACK == false then
3723
	end
3724
end
3725
3726
function MouseUp(Mouse)
3727
HOLD = false
3728
end
3729
3730
function KeyDown(Key)
3731
	KEYHOLD = true
3732
	if Key == "z" and ATTACK == false then
3733
		Unload()
3734
	end
3735
3736
	if Key == "b" and ATTACK == false then
3737
		Dash()
3738
	end
3739
3740
	if Key == "c" and ATTACK == false then
3741
		Smite()
3742
	end
3743
3744
	if Key == "v" and ATTACK == false then
3745
		Deathbound()
3746
	end
3747
3748
	if Key == "e" and ATTACK == false then
3749
		Extreme_Offset()
3750
	end
3751
3752
	if Key == "x" and ATTACK == false then
3753
		Morning_Star()
3754
	end
3755
3756
	if Key == "t" and ATTACK == false then
3757
		Taunt()
3758
	end
3759
end
3760
3761
function KeyUp(Key)
3762
	KEYHOLD = false
3763
end
3764
3765
	Mouse.Button1Down:connect(function(NEWKEY)
3766
		MouseDown(NEWKEY)
3767
	end)
3768
	Mouse.Button1Up:connect(function(NEWKEY)
3769
		MouseUp(NEWKEY)
3770
	end)
3771
	Mouse.KeyDown:connect(function(NEWKEY)
3772
		KeyDown(NEWKEY)
3773
	end)
3774
	Mouse.KeyUp:connect(function(NEWKEY)
3775
		KeyUp(NEWKEY)
3776
	end)
3777
3778
--//=================================\\
3779
--\\=================================//
3780
3781
function AntiTimeStop()
3782
	for _, c in pairs(Character:GetChildren()) do
3783
		if c:IsA("BasePart") then
3784
			c.Anchored = false
3785
		end
3786
	end
3787
	for _, c in pairs(Weapon:GetChildren()) do
3788
		if c:IsA("BasePart") then
3789
			c.Anchored = false
3790
		end
3791
	end
3792
end
3793
3794
--//=================================\\
3795
--||	WRAP THE WHOLE SCRIPT UP
3796
--\\=================================//
3797
3798
Humanoid.Changed:connect(function(Jump)
3799
	if Jump == "Jump" and (Disable_Jump == true) then
3800
		Humanoid.Jump = false
3801
	end
3802
end)
3803
3804
local sick = IT("Sound")
3805
3806
while true do
3807
	Swait()
3808
	script.Parent = WEAPONGUI
3809
	ANIMATE.Parent = nil
3810
	for _,v in next, Humanoid:GetPlayingAnimationTracks() do
3811
	    v:Stop();
3812
	end
3813
	SINE = SINE + CHANGE
3814
	local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
3815
	local TORSOVERTICALVELOCITY = RootPart.Velocity.y
3816
	local HITFLOOR = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
3817
	local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
3818
	if ANIM == "Walk" and TORSOVELOCITY > 1 then
3819
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, -0.15 * COS(SINE / (WALKSPEEDVALUE / 2))) * ANGLES(RAD(0), RAD(0) - RootPart.RotVelocity.Y / 75, RAD(0)), 2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
3820
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(2.5 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0) - Head.RotVelocity.Y / 30), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
3821
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 0.875 - 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), -0.125 * COS(SINE / WALKSPEEDVALUE) +0.2- 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0) - RightLeg.RotVelocity.Y / 75, RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
3822
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 0.875 + 0.125 * SIN(SINE / WALKSPEEDVALUE) - 0.15 * COS(SINE / WALKSPEEDVALUE*2), 0.125 * COS(SINE / WALKSPEEDVALUE) +0.2+ 0.2 * COS(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0) + LeftLeg.RotVelocity.Y / 75, RAD(0), RAD(90 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
3823
	elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
3824
		RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
3825
		Neck.C1 = Clerp(Neck.C1, CF(0, -0.5, 0) * ANGLES(RAD(-90), RAD(0), RAD(180)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
3826
		RightHip.C1 = Clerp(RightHip.C1, CF(0.5, 1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
3827
		LeftHip.C1 = Clerp(LeftHip.C1, CF(-0.5, 1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
3828
	end
3829
	if HITFLOOR == nil then
3830
		ANIM = "Midair"
3831
		if ATTACK == false then
3832
			RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 1 / Animation_Speed)
3833
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 1 / Animation_Speed)
3834
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(25)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
3835
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.75, 0) * ANGLES(RAD(-15), RAD(0), RAD(-25)) * LEFTSHOULDERC0, 1 / Animation_Speed)
3836
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -0.2, -0.6) * ANGLES(RAD(15), RAD(70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
3837
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -0.2, -0.6) * ANGLES(RAD(15), RAD(-70), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(0)), 1 / Animation_Speed)
3838
		end
3839
	elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
3840
		ANIM = "Idle"
3841
		if ATTACK == false then
3842
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.1 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3843
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.15 / Animation_Speed)
3844
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5 + 0.35 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(10 - 15 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.15 / Animation_Speed)
3845
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5 + 0.35 * SIN(SINE / 12), 0) * ANGLES(RAD(0), RAD(0), RAD(-10 + 15 * COS(SINE / 12))) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.15 / Animation_Speed)
3846
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
3847
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(-3), RAD(0), RAD(0)), 1 / Animation_Speed)
3848
		end
3849
	elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
3850
		ANIM = "Walk"
3851
		if ATTACK == false then
3852
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
3853
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5), RAD(0), RAD(-10 * COS(SINE / WALKSPEEDVALUE))), 0.5 / Animation_Speed)
3854
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(5)) * ANGLES(RAD(0), RAD(-15), RAD(0)) * RIGHTSHOULDERC0, 0.8 / Animation_Speed)
3855
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5 * SIN(SINE / WALKSPEEDVALUE)) * ANGLES(RAD(-60 * COS(SINE / WALKSPEEDVALUE)), RAD(0), RAD(-5)) * ANGLES(RAD(0), RAD(15), RAD(0)) * LEFTSHOULDERC0, 0.8 / Animation_Speed)
3856
			RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
3857
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-80), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
3858
	end
3859
    end
3860-
    Humanoid.MaxHealth = 10e10
3860+
3861-
    Humanoid.Health = 10e10
3861+
    if Head:FindFirstChild("face") then
3862
        Head.face.Texture = "rbxassetid://120463437"
3863-
    sick.Looped = true
3863+
3864-
    sick.Pitch = 1
3864+
3865-
    sick.Volume = 2
3865+
3866-
    sick.Playing = true
3866+
    Humanoid.MaxHealth = "inf"
3867-
    sick.Parent = Effects
3867+
    Humanoid.Health = "inf"
3868-
    AntiTimeStop()
3868+
3869
        Disable_Jump = false
3870
        Humanoid.WalkSpeed = Speed
3871
    elseif Rooted == true then
3872
        Disable_Jump = true
3873
        Humanoid.WalkSpeed = 0
3874
    end
3875
    sick.Parent = Torso
3876-
    Humanoid.Name = "Ultimate kill bot"
3876+
    sick:resume()
3877
    sick.Volume = 6.5
3878
    sick.Pitch = 0.40
3879
    sick.SoundId = "rbxassetid://1696854181"
3880
    sick.Name = ""
3881
end
3882
3883
--//=================================\\
3884
--\\=================================//
3885
3886
--//====================================================\\--
3887
--||			  		 END OF SCRIPT
3888
--\\====================================================//--