View difference between Paste ID: nFi4PVTU and QZB5yAtr
SHOW: | | - or go back to the newest paste.
1
--https://github.com/Mokiros/roblox-FE-compatibility
2
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
3
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
4
local RealPlayer = Player
5-
local Controller = plr.PlayerScripts:WaitForChild("ControlScript")
5+
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
6
plr = game:GetService("Players").LocalPlayer
7
char = plr.Character
8
hum = char.Humanoid
9
local cam = game.Workspace.CurrentCamera
10
Camera = cam
11
local CamInterrupt = false
12
local TwoD = false
13
local TargetInfo = {nil, nil}
14
cam.CameraType = "Custom"
15
t = char.Torso
16
h = char.Head
17
ra = char["Right Arm"]
18
la = char["Left Arm"]
19
rl = char["Right Leg"]
20
ll = char["Left Leg"]
21
tors = char.Torso
22
lleg = char["Left Leg"]
23
root = char.HumanoidRootPart
24
hed = char.Head
25
rleg = char["Right Leg"]
26
rarm = char["Right Arm"]
27
larm = char["Left Arm"]
28
radian = math.rad
29
random = math.random
30
Vec3 = Vector3.new
31
Inst = Instance.new
32
cFrame = CFrame.new
33
Euler = CFrame.fromEulerAnglesXYZ
34
vt = Vector3.new
35
bc = BrickColor.new
36
br = BrickColor.random
37
it = Instance.new
38
cf = CFrame.new
39
local eff = true
40
local shielding = false
41
 
42
local Booleans = {
43
  CamFollow = true,
44
  GyroUse = true
45
}
46
 
47
function lerp(object, newCFrame, alpha)
48
  return object:lerp(newCFrame, alpha)
49
end
50
 
51
local Directer = Inst("BodyGyro", root)
52
Directer.MaxTorque = Vec3(0, 0, 0)
53
Directer.P = 600000
54
local CPart = Inst("Part")
55
CPart.Anchored = true
56
CPart.CanCollide = false
57
CPart.Locked = true
58
CPart.Transparency = 1
59
 
60
local rainbowmode = false
61
local chaosmode = false
62
 
63
kan = Instance.new("Sound",char)
64
kan.Volume = 1.25
65
kan.TimePosition = 0
66
kan.PlaybackSpeed = 1
67
kan.Pitch = 1
68
kan.SoundId = "rbxassetid://0"
69
kan.Name = "wrecked"
70
kan.Looped = true
71
kan:Play()
72
 
73
function newTheme(ID,timepos,pitch,vol)
74
local kanz = kan
75
--kanz:Stop()
76
--kanz.Volume = vol
77
--kanz.TimePosition = timepos
78
kanz.PlaybackSpeed = pitch
79
kanz.Pitch = pitch
80
kanz.SoundId = ID
81
kanz.Name = "wrecked"
82
kanz.Looped = true
83
kanz.Volume = 0.3
84
--kanz:Play()
85
--coroutine.resume(coroutine.create(function()
86
--wait(0.05)
87
--end))
88
end
89
 
90
function newThemeCust(ID,timepos,pitch,vol)
91
local kanz = kan
92
kanz:Stop()
93
kanz.Volume = vol
94
kanz.TimePosition = timepos
95
kanz.PlaybackSpeed = pitch
96
kanz.Pitch = pitch
97
kanz.SoundId = ID
98
kanz.Name = "wrecked"
99
kanz.Looped = true
100
kanz:Play()
101
coroutine.resume(coroutine.create(function()
102
wait(0.05)
103
end))
104
end
105
 
106
 
107
 
108
function CameraShake(Times, Power, PlayerTarget)
109
coroutine.resume(coroutine.create(function()
110
FV = Instance.new("BoolValue", PlayerTarget)
111
FV.Name = "CameraShake"
112
for ShakeNum=1,Times do
113
swait()
114
local ef=Power
115
  if ef>=1 then
116
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
117
  else
118
   ef=Power*10
119
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
120
  end  
121
end
122
Humanoid.CameraOffset = Vector3.new(0,0,0)
123
FV:Destroy()
124
end))
125
end
126
 
127
function CameraEnshaking(Length,Intensity)
128
coroutine.resume(coroutine.create(function()
129
      local intensity = 1*Intensity
130
      local rotM = 0.01*Intensity
131
for i = 0, Length, 0.1 do
132
swait()
133
intensity = intensity - 0.05*Intensity/Length
134
rotM = rotM - 0.0005*Intensity/Length
135
      hum.CameraOffset = Vec3(radian(random(-intensity, intensity)), radian(random(-intensity, intensity)), radian(random(-intensity, intensity)))
136
      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)
137
end
138
Humanoid.CameraOffset = Vec3(0, 0, 0)
139
end))
140
end
141
CamShake=function(Part,Distan,Power,Times)
142
local de=Part.Position
143
for i,v in pairs(workspace:children()) do
144
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
145
for _,c in pairs(v:children()) do
146
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
147
local Noob=v.Humanoid
148
if Noob~=nil then
149
coroutine.resume(coroutine.create(function()
150
FV = Instance.new("BoolValue", Noob)
151
FV.Name = "CameraShake"
152
for ShakeNum=1,Times do
153
swait()
154
local ef=Power
155
  if ef>=1 then
156
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
157
  else
158
   ef=Power*10
159
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
160
  end  
161
end
162
Humanoid.CameraOffset = Vector3.new(0,0,0)
163
FV:Destroy()
164
end))
165
CameraShake(Times, Power, Noob)
166
end
167
end
168
end
169
end
170
end
171
end
172
 
173
function chatfunc(text,color)
174
local chat = coroutine.wrap(function()
175
if Character:FindFirstChild("TalkingBillBoard")~= nil then
176
Character:FindFirstChild("TalkingBillBoard"):destroy()
177
end
178
local naeeym2 = Instance.new("BillboardGui",Character)
179
naeeym2.Size = UDim2.new(0,100,0,40)
180
naeeym2.StudsOffset = Vector3.new(0,3,0)
181
naeeym2.Adornee = Character.Head
182
naeeym2.Name = "TalkingBillBoard"
183
local tecks2 = Instance.new("TextLabel",naeeym2)
184
tecks2.BackgroundTransparency = 1
185
tecks2.BorderSizePixel = 0
186
tecks2.Text = ""
187
tecks2.Font = "SciFi"
188
tecks2.TextSize = 30
189
tecks2.TextStrokeTransparency = 0
190
tecks2.TextColor3 = color
191
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
192
tecks2.Size = UDim2.new(1,0,0.5,0)
193
local tecks3 = Instance.new("TextLabel",naeeym2)
194
tecks3.BackgroundTransparency = 1
195
tecks3.BorderSizePixel = 0
196
tecks3.Text = ""
197
tecks3.Font = "SciFi"
198
tecks3.TextSize = 30
199
tecks3.TextStrokeTransparency = 0
200
tecks3.TextColor3 = Color3.new(0,0,0)
201
tecks3.TextStrokeColor3 = color
202
tecks3.Size = UDim2.new(1,0,0.5,0)
203
coroutine.resume(coroutine.create(function()
204
while true do
205
swait(1)
206
plr.Character.wrecked.Volume = 0.3
207
if chaosmode == true then
208
tecks2.TextColor3 = BrickColor.random().Color
209
tecks3.TextStrokeColor3 = BrickColor.random().Color
210
end
211
tecks2.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
212
tecks3.Position = UDim2.new(0,math.random(-5,5),0,math.random(-5,5))
213
tecks2.Rotation = math.random(-5,5)
214
tecks3.Rotation = math.random(-5,5)
215
end
216
end))
217
for i = 1,string.len(text),1 do
218
CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
219
tecks2.Text = string.sub(text,1,i)
220
tecks3.Text = string.sub(text,1,i)
221
swait(1)
222
end
223
wait(1)
224
local randomrot = math.random(1,2)
225
if randomrot == 1 then
226
for i = 1, 50 do
227
swait()
228
tecks2.Rotation = tecks2.Rotation - .75
229
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
230
tecks2.TextTransparency = tecks2.TextTransparency + .04
231
tecks3.Rotation = tecks2.Rotation + .75
232
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
233
tecks3.TextTransparency = tecks2.TextTransparency + .04
234
end
235
elseif randomrot == 2 then
236
    for i = 1, 50 do
237
swait()
238
tecks2.Rotation = tecks2.Rotation + .75
239
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
240
tecks2.TextTransparency = tecks2.TextTransparency + .04
241
tecks3.Rotation = tecks2.Rotation - .75
242
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
243
tecks3.TextTransparency = tecks2.TextTransparency + .04
244
end
245
end
246
naeeym2:Destroy()
247
end)
248
chat()
249
end
250
 
251
 
252
local Create = LoadLibrary("RbxUtility").Create
253
 
254
CFuncs = {
255
    ["Part"] = {
256
        Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
257
            local Part = Create("Part"){
258
                Parent = Parent,
259
                Reflectance = Reflectance,
260
                Transparency = Transparency,
261
                CanCollide = false,
262
                Locked = true,
263
                BrickColor = BrickColor.new(tostring(BColor)),
264
                Name = Name,
265
                Size = Size,
266
                Material = Material,
267
            }
268
            RemoveOutlines(Part)
269
            return Part
270
        end;
271
    };
272
   
273
    ["Mesh"] = {
274
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
275
            local Msh = Create(Mesh){
276
                Parent = Part,
277
                Offset = OffSet,
278
                Scale = Scale,
279
            }
280
            if Mesh == "SpecialMesh" then
281
                Msh.MeshType = MeshType
282
                Msh.MeshId = MeshId
283
            end
284
            return Msh
285
        end;
286
    };
287
   
288
    ["Mesh"] = {
289
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
290
            local Msh = Create(Mesh){
291
                Parent = Part,
292
                Offset = OffSet,
293
                Scale = Scale,
294
            }
295
            if Mesh == "SpecialMesh" then
296
                Msh.MeshType = MeshType
297
                Msh.MeshId = MeshId
298
            end
299
            return Msh
300
        end;
301
    };
302
   
303
    ["Weld"] = {
304
        Create = function(Parent, Part0, Part1, C0, C1)
305
            local Weld = Create("Weld"){
306
                Parent = Parent,
307
                Part0 = Part0,
308
                Part1 = Part1,
309
                C0 = C0,
310
                C1 = C1,
311
            }
312
            return Weld
313
        end;
314
    };
315
 
316
    ["Sound"] = {
317
        Create = function(id, par, vol, pit)
318
            coroutine.resume(coroutine.create(function()
319
                local S = Create("Sound"){
320
                    Volume = vol,
321
                                        Name = "EffectSoundo",
322
                    Pitch = pit or 1,
323
                    SoundId = id,
324
                    Parent = par or workspace,
325
                }
326
                wait()
327
                S:play()
328
                game:GetService("Debris"):AddItem(S, 10)
329
            end))
330
        end;
331
    };
332
 
333
["LongSound"] = {
334
        Create = function(id, par, vol, pit)
335
            coroutine.resume(coroutine.create(function()
336
                local S = Create("Sound"){
337
                    Volume = vol,
338
                    Pitch = pit or 1,
339
                    SoundId = id,
340
                    Parent = par or workspace,
341
                }
342
                wait()
343
                S:play()
344
                game:GetService("Debris"):AddItem(S, 30)
345
            end))
346
        end;
347
    };
348
   
349
    ["ParticleEmitter"] = {
350
        Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
351
            local fp = Create("ParticleEmitter"){
352
                Parent = Parent,
353
                Color = ColorSequence.new(Color1, Color2),
354
                LightEmission = LightEmission,
355
                Size = Size,
356
                Texture = Texture,
357
                Transparency = Transparency,
358
                ZOffset = ZOffset,
359
                Acceleration = Accel,
360
                Drag = Drag,
361
                LockedToPart = LockedToPart,
362
                VelocityInheritance = VelocityInheritance,
363
                EmissionDirection = EmissionDirection,
364
                Enabled = Enabled,
365
                Lifetime = LifeTime,
366
                Rate = Rate,
367
                Rotation = Rotation,
368
                RotSpeed = RotSpeed,
369
                Speed = Speed,
370
                VelocitySpread = VelocitySpread,
371
            }
372
            return fp
373
        end;
374
    };
375
 
376
    CreateTemplate = {
377
   
378
    };
379
}
380
 
381
 
382
 
383
New = function(Object, Parent, Name, Data)
384
    local Object = Instance.new(Object)
385
    for Index, Value in pairs(Data or {}) do
386
        Object[Index] = Value
387
    end
388
    Object.Parent = Parent
389
    Object.Name = Name
390
    return Object
391
end
392
local halocolor = BrickColor.new("Really black")
393
local halocolor2 = BrickColor.new("Really black")
394
local starcolor = BrickColor.new("Really black")
395
local lunacolor = BrickColor.new("Really black")
396
local lunacolor2 = BrickColor.new("Really black")
397
local wepcolor = BrickColor.new("Really black")
398
local maincolor = BrickColor.new("Really black")
399
local m = Instance.new("Model",char)
400
local m2 = Instance.new("Model",char)
401
local m3 = Instance.new("Model",char)
402
local mw1 = Instance.new("Model",char)
403
local mw2 = Instance.new("Model",char)
404
 
405
local extrawingmod1 = Instance.new("Model",char)
406
local extrawingmod2 = Instance.new("Model",char)
407
 
408
function CreateParta(parent,transparency,reflectance,material,brickcolor)
409
local p = Instance.new("Part")
410
p.TopSurface = 0
411
p.BottomSurface = 0
412
p.Parent = parent
413
p.Size = Vector3.new(0.1,0.1,0.1)
414
p.Transparency = transparency
415
p.Reflectance = reflectance
416
p.CanCollide = false
417
p.Locked = true
418
p.BrickColor = brickcolor
419
p.Material = material
420
return p
421
end
422
 
423
function CreateMesh(parent,meshtype,x1,y1,z1)
424
local mesh = Instance.new("SpecialMesh",parent)
425
mesh.MeshType = meshtype
426
mesh.Scale = Vector3.new(x1*10,y1*10,z1*10)
427
return mesh
428
end
429
 
430
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
431
local mesh = Instance.new("SpecialMesh",parent)
432
mesh.MeshType = "FileMesh"
433
mesh.MeshId = meshid
434
mesh.Scale = Vector3.new(x1,y1,z1)
435
return mesh
436
end
437
 
438
 
439
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
440
local mesh = Instance.new("SpecialMesh",parent)
441
mesh.MeshType = "FileMesh"
442
mesh.MeshId = meshid
443
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
444
mesh.Scale = Vector3.new(x1,y1,z1)
445
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
446
return mesh
447
end
448
 
449
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
450
local weld = Instance.new("Weld")
451
weld.Parent = parent
452
weld.Part0 = part0
453
weld.Part1 = part1
454
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
455
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
456
return weld
457
end
458
 
459
 
460
--------------
461
local secondchar = Instance.new("Model",char)
462
local GhostCol = BrickColor.new("Really black")
463
local sectors = CreateParta(secondchar,1,0,"Neon",GhostCol)
464
CreateMesh(sectors,"Brick",2*8,2*8,1*8)
465
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))
466
 
467
local seclarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
468
CreateMesh(seclarm,"Brick",1*8,2*8,1*8)
469
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))
470
 
471
local secrarm = CreateParta(secondchar,1,0,"Neon",GhostCol)
472
CreateMesh(secrarm,"Brick",1*8,2*8,1*8)
473
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))
474
 
475
local seclleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
476
CreateMesh(seclleg,"Brick",1*8,2*8,1*8)
477
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))
478
 
479
local secrleg = CreateParta(secondchar,1,0,"Neon",GhostCol)
480
CreateMesh(secrleg,"Brick",1*8,2*8,1*8)
481
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))
482
 
483
local seched = CreateParta(secondchar,1,0,"Neon",GhostCol)
484
CreateMesh(seched,"Brick",1*8,1*8,1*8)
485
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))
486
--------------
487
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
488
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))
489
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
490
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))
491
 
492
local handlex = CreateParta(mw2,1,1,"Neon",maincolor)
493
CreateMesh(handle,"Brick",0,0,0)
494
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))
495
local valuaring = 10
496
for i = 0, 49 do
497
    valuaring = valuaring + 10
498
rn = CreateParta(mw2,0,0,"Neon",halocolor)
499
CreateMesh(rn,"Brick",0.25,0.1,0.1)
500
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))
501
end
502
 
503
handlex = CreateParta(mw2,1,1,"Neon",maincolor)
504
CreateMesh(handle,"Brick",0,0,0)
505
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))
506
local valuaring = 10
507
for i = 0, 49 do
508
    valuaring = valuaring + 10
509
rn = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
510
CreateMesh(rn,"Brick",0.5,0.2,0.2)
511
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))
512
end
513
 
514
 
515
local handle = CreateParta(m,1,1,"Neon",maincolor)
516
CreateMesh(handle,"Brick",0.5,0.5,0.5)
517
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))
518
 
519
--- Left wing.
520
 
521
local lwing1 = CreateParta(m,1,1,"Neon",maincolor)
522
CreateMesh(handle,"Brick",0.5,0.5,0.5)
523
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))
524
 
525
wed = CreateParta(mw1,0,0,"Neon",halocolor)
526
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
527
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))
528
wed = CreateParta(mw1,0,0,"Neon",halocolor)
529
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
530
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))
531
A0 = Instance.new('Attachment',wed)
532
wed = CreateParta(mw1,0,0,"Neon",halocolor)
533
CreateMesh(wed,"Wedge",0.05,0.5,3)
534
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))
535
A1 = Instance.new('Attachment',wed)
536
wed = CreateParta(mw1,0,0,"Neon",halocolor)
537
CreateMesh(wed,"Wedge",0.05,3,0.5)
538
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))
539
 
540
tl1 = Instance.new('Trail',wed)
541
tl1.Attachment0 = A0
542
tl1.Attachment1 = A1
543
--tl1.Texture = "http://www.roblox.com/asset/?id=1049219073"
544
tl1.LightEmission = 1
545
tl1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
546
tl1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
547
tl1.Lifetime = 0.6
548
 
549
 
550
local lwing2 = CreateParta(m,1,1,"Neon",maincolor)
551
CreateMesh(handle,"Brick",0.5,0.5,0.5)
552
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))
553
 
554
wed = CreateParta(mw1,0,0,"Neon",halocolor)
555
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
556
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))
557
wed = CreateParta(mw1,0,0,"Neon",halocolor)
558
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
559
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))
560
A0 = Instance.new('Attachment',wed)
561
wed = CreateParta(mw1,0,0,"Neon",halocolor)
562
CreateMesh(wed,"Wedge",0.05,0.5,3)
563
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))
564
A1 = Instance.new('Attachment',wed)
565
wed = CreateParta(mw1,0,0,"Neon",halocolor)
566
CreateMesh(wed,"Wedge",0.05,3,0.5)
567
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))
568
 
569
tl2 = Instance.new('Trail',wed)
570
tl2.Attachment0 = A0
571
tl2.Attachment1 = A1
572
--tl2.Texture = "http://www.roblox.com/asset/?id=1049219073"
573
tl2.LightEmission = 1
574
tl2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
575
tl2.Color = ColorSequence.new(BrickColor.new('Really black').Color)
576
tl2.Lifetime = 0.6
577
 
578
local lwing3 = CreateParta(m,1,1,"Neon",maincolor)
579
CreateMesh(handle,"Brick",0.5,0.5,0.5)
580
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))
581
 
582
wed = CreateParta(mw1,0,0,"Neon",halocolor)
583
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
584
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))
585
wed = CreateParta(mw1,0,0,"Neon",halocolor)
586
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
587
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))
588
A0 = Instance.new('Attachment',wed)
589
wed = CreateParta(mw1,0,0,"Neon",halocolor)
590
CreateMesh(wed,"Wedge",0.05,0.5,3)
591
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))
592
A1 = Instance.new('Attachment',wed)
593
wed = CreateParta(mw1,0,0,"Neon",halocolor)
594
CreateMesh(wed,"Wedge",0.05,3,0.5)
595
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))
596
 
597
tl3 = Instance.new('Trail',wed)
598
tl3.Attachment0 = A0
599
tl3.Attachment1 = A1
600
--tl3.Texture = "http://www.roblox.com/asset/?id=1049219073"
601
tl3.LightEmission = 1
602
tl3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
603
tl3.Color = ColorSequence.new(BrickColor.new('Really black').Color)
604
tl3.Lifetime = 0.6
605
 
606
tl1.Enabled = false
607
tl2.Enabled = false
608
tl3.Enabled = false
609
local lwing4 = CreateParta(m,1,1,"Neon",maincolor)
610
CreateMesh(handle,"Brick",0.5,0.5,0.5)
611
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))
612
 
613
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
614
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
615
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))
616
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
617
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
618
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))
619
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
620
CreateMesh(wed,"Wedge",0.05,0.5,3)
621
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))
622
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
623
CreateMesh(wed,"Wedge",0.05,3,0.5)
624
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))
625
 
626
local lwing5 = CreateParta(m,1,1,"Neon",maincolor)
627
CreateMesh(handle,"Brick",0.5,0.5,0.5)
628
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))
629
 
630
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
631
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
632
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))
633
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
634
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
635
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))
636
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
637
CreateMesh(wed,"Wedge",0.05,0.5,3)
638
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))
639
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
640
CreateMesh(wed,"Wedge",0.05,3,0.5)
641
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))
642
 
643
local lwing6 = CreateParta(m,1,1,"Neon",maincolor)
644
CreateMesh(handle,"Brick",0.5,0.5,0.5)
645
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))
646
 
647
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
648
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
649
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))
650
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
651
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
652
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))
653
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
654
CreateMesh(wed,"Wedge",0.05,0.5,3)
655
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))
656
wed = CreateParta(extrawingmod1,0,0,"Neon",halocolor)
657
CreateMesh(wed,"Wedge",0.05,3,0.5)
658
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))
659
 
660
-- Right wing.
661
 
662
local rwing1 = CreateParta(m,1,1,"Neon",maincolor)
663
CreateMesh(handle,"Brick",0.5,0.5,0.5)
664
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))
665
 
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
A0 = Instance.new('Attachment',wed)
670
wed = CreateParta(mw2,0,0,"Neon",halocolor)
671
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
672
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))
673
wed = CreateParta(mw2,0,0,"Neon",halocolor)
674
CreateMesh(wed,"Wedge",0.05,0.5,3)
675
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))
676
wed = CreateParta(mw2,0,0,"Neon",halocolor)
677
CreateMesh(wed,"Wedge",0.05,3,0.5)
678
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))
679
A1 = Instance.new('Attachment',wed)
680
 
681
tr1 = Instance.new('Trail',wed)
682
tr1.Attachment0 = A0
683
tr1.Attachment1 = A1
684
--tr1.Texture = "http://www.roblox.com/asset/?id=1049219073"
685
tr1.LightEmission = 1
686
tr1.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
687
tr1.Color = ColorSequence.new(BrickColor.new('Really black').Color)
688
tr1.Lifetime = 0.6
689
 
690
local rwing2 = CreateParta(m,1,1,"Neon",maincolor)
691
CreateMesh(handle,"Brick",0.5,0.5,0.5)
692
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))
693
 
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
A0 = Instance.new('Attachment',wed)
698
wed = CreateParta(mw2,0,0,"Neon",halocolor)
699
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
700
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))
701
wed = CreateParta(mw2,0,0,"Neon",halocolor)
702
CreateMesh(wed,"Wedge",0.05,0.5,3)
703
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))
704
wed = CreateParta(mw2,0,0,"Neon",halocolor)
705
CreateMesh(wed,"Wedge",0.05,3,0.5)
706
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))
707
A1 = Instance.new('Attachment',wed)
708
 
709
tr2 = Instance.new('Trail',wed)
710
tr2.Attachment0 = A0
711
tr2.Attachment1 = A1
712
--tr2.Texture = "http://www.roblox.com/asset/?id=1049219073"
713
tr2.LightEmission = 1
714
tr2.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
715
tr2.Color = ColorSequence.new(BrickColor.new('Really black').Color)
716
tr2.Lifetime = 0.6
717
 
718
local rwing3 = CreateParta(m,1,1,"Neon",maincolor)
719
CreateMesh(handle,"Brick",0.5,0.5,0.5)
720
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))
721
 
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
A0 = Instance.new('Attachment',wed)
726
wed = CreateParta(mw2,0,0,"Neon",halocolor)
727
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
728
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))
729
wed = CreateParta(mw2,0,0,"Neon",halocolor)
730
CreateMesh(wed,"Wedge",0.05,0.5,3)
731
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))
732
wed = CreateParta(mw2,0,0,"Neon",halocolor)
733
CreateMesh(wed,"Wedge",0.05,3,0.5)
734
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))
735
A1 = Instance.new('Attachment',wed)
736
 
737
tr3 = Instance.new('Trail',wed)
738
tr3.Attachment0 = A0
739
tr3.Attachment1 = A1
740
--tr3.Texture = "http://www.roblox.com/asset/?id=1049219073"
741
tr3.LightEmission = 1
742
tr3.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0, 0),NumberSequenceKeypoint.new(1, 1)})
743
tr3.Color = ColorSequence.new(BrickColor.new('Really black').Color)
744
tr3.Lifetime = 0.6
745
 
746
 
747
local rwing4 = CreateParta(m,1,1,"Neon",maincolor)
748
CreateMesh(handle,"Brick",0.5,0.5,0.5)
749
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))
750
 
751
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
752
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
753
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))
754
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
755
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
756
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))
757
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
758
CreateMesh(wed,"Wedge",0.05,0.5,3)
759
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))
760
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
761
CreateMesh(wed,"Wedge",0.05,3,0.5)
762
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))
763
 
764
local rwing5 = CreateParta(m,1,1,"Neon",maincolor)
765
CreateMesh(handle,"Brick",0.5,0.5,0.5)
766
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))
767
 
768
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
769
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
770
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))
771
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
772
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
773
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))
774
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
775
CreateMesh(wed,"Wedge",0.05,0.5,3)
776
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))
777
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
778
CreateMesh(wed,"Wedge",0.05,3,0.5)
779
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))
780
 
781
local rwing6 = CreateParta(m,1,1,"Neon",maincolor)
782
CreateMesh(handle,"Brick",0.5,0.5,0.5)
783
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))
784
 
785
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
786
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
787
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))
788
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
789
CreateMesh(wed,"Wedge",0.05,0.5,0.5)
790
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))
791
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
792
CreateMesh(wed,"Wedge",0.05,0.5,3)
793
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))
794
wed = CreateParta(extrawingmod2,0,0,"Neon",halocolor)
795
CreateMesh(wed,"Wedge",0.05,3,0.5)
796
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))
797
 
798
---- HERES THE RING
799
 
800
 
801
--[[ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
802
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
803
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))
804
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
805
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
806
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))
807
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
808
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
809
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))
810
 
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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
815
 
816
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
817
CreateMesh(gan,"Brick",1.075,0.1,1.075)
818
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))
819
 
820
 
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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
825
 
826
gan = CreateParta(m2,0,0,"Neon",halocolor2)
827
CreateMesh(gan,"Brick",1.095,0.035,1.095)
828
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))
829
 
830
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
831
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
832
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))
833
 
834
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
835
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
836
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))
837
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
838
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
839
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))
840
 
841
--- second ring
842
 
843
ran = CreateParta(m2,0,0,"SmoothPlastic",wepcolor)
844
CreateMesh(ran,"Wedge",1.02,1.02,1.02)
845
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))
846
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
847
CreateMesh(ran,"Wedge",0.9,0.9,1.025)
848
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))
849
ran = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
850
CreateMesh(ran,"Wedge",1.025,0.9,0.9)
851
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))
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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
856
 
857
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
858
CreateMesh(gan,"Brick",1.075,0.1,1.075)
859
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))
860
 
861
 
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.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
866
 
867
gan = CreateParta(m2,0,0,"Neon",halocolor2)
868
CreateMesh(gan,"Brick",1.095,0.035,1.095)
869
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))
870
 
871
gane = CreateParta(m3,0,0,"SmoothPlastic",lunacolor2)
872
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
873
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))
874
 
875
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
876
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
877
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))
878
starl = CreateParta(m3,0,0,"SmoothPlastic",starcolor)
879
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
880
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))]]--
881
 
882
 
883
 
884
for i, v in pairs(m:GetChildren()) do
885
if v:IsA("Part") then
886
v.BrickColor = BrickColor.new("Really black")
887
v.Material = "Glass"
888
end
889
end
890
for i, v in pairs(m2:GetChildren()) do
891
if v:IsA("Part") then
892
v.BrickColor = BrickColor.new("Really black")
893
v.Material = "Granite"
894
end
895
end
896
for i, v in pairs(m3:GetChildren()) do
897
if v:IsA("Part") then
898
v.BrickColor = BrickColor.new("Really black")
899
v.Material = "Neon"
900
end
901
end
902
for i, v in pairs(mw2:GetChildren()) do
903
if v:IsA("Part") then
904
v.BrickColor = BrickColor.new("Really black")
905
v.Material = "Neon"
906
end
907
end
908
for i, v in pairs(mw1:GetChildren()) do
909
if v:IsA("Part") then
910
v.Transparency = 1
911
v.BrickColor = BrickColor.new("Really black")
912
v.Material = "Neon"
913
end
914
end
915
for i, v in pairs(extrawingmod1:GetChildren()) do
916
if v:IsA("Part") then
917
v.Transparency = 1
918
v.BrickColor = BrickColor.new("Really black")
919
v.Material = "Neon"
920
end
921
end
922
for i, v in pairs(extrawingmod2:GetChildren()) do
923
if v:IsA("Part") then
924
v.Transparency = 1
925
v.BrickColor = BrickColor.new("Really black")
926
v.Material = "Neon"
927
end
928
end
929
local MAINRUINCOLOR = BrickColor.new("Really black")
930
-----------
931
for i,v in pairs(char:children()) do
932
if v:IsA("Shirt") and v:IsA("Pants") and v:IsA("Hat") and v:IsA("Accessory") then
933
v:Remove()
934
end
935
end
936
shirt = Instance.new("Shirt", char)
937
shirt.Name = "Shirt"
938
pants = Instance.new("Pants", char)
939
pants.Name = "Pants"
940
char.Shirt.ShirtTemplate = "rbxassetid://791994658"
941
char.Pants.PantsTemplate = "rbxassetid://1029442377"
942
local p = game.Players.LocalPlayer
943
local char = p.Character
944
local mouse = p:GetMouse()
945
-----------------
946
--leaked by ozzak1003 
947
--made by ??????????????
948
wait(0.2)
949
950
Player = game:GetService("Players").LocalPlayer
951
PlayerGui = Player.PlayerGui
952
Cam = workspace.CurrentCamera
953
Backpack = Player.Backpack
954
Character = Player.Character
955
Humanoid = Character.Humanoid
956
Mouse = Player:GetMouse()
957
RootPart = Character["HumanoidRootPart"]
958
Torso = Character["Torso"]
959
Head = Character["Head"]
960
RightArm = Character["Right Arm"]
961
LeftArm = Character["Left Arm"]
962
RightLeg = Character["Right Leg"]
963
LeftLeg = Character["Left Leg"]
964
RootJoint = RootPart["RootJoint"]
965
Neck = Torso["Neck"]
966
RightShoulder = Torso["Right Shoulder"]
967
LeftShoulder = Torso["Left Shoulder"]
968
RightHip = Torso["Right Hip"]
969
LeftHip = Torso["Left Hip"]
970
local sick = Instance.new("Sound",Character)
971
sick.SoundId = "rbxassetid://1392883147"
972
sick.Looped = true
973
sick.Pitch = 1
974
sick.Volume = 1
975
sick:Play()
976
977
IT = Instance.new
978
CF = CFrame.new
979
VT = Vector3.new
980
RAD = math.rad
981
C3 = Color3.new
982
UD2 = UDim2.new
983
BRICKC = BrickColor.new
984
ANGLES = CFrame.Angles
985
EULER = CFrame.fromEulerAnglesXYZ
986
COS = math.cos
987
ACOS = math.acos
988
SIN = math.sin
989
ASIN = math.asin
990
ABS = math.abs
991
MRANDOM = math.random
992
FLOOR = math.floor
993
994
--//=================================\\
995
--|| 	      USEFUL VALUES
996
--\\=================================//
997
998
Animation_Speed = 3
999
Frame_Speed = 1 / 60 -- (1 / 30) OR (1 / 60)
1000
local Speed = 16
1001
local ROOTC0 = CF(0, 0, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1002
local NECKC0 = CF(0, 1, 0) * ANGLES(RAD(-90), RAD(0), RAD(180))
1003
local RIGHTSHOULDERC0 = CF(-0.5, 0, 0) * ANGLES(RAD(0), RAD(90), RAD(0))
1004
local LEFTSHOULDERC0 = CF(0.5, 0, 0) * ANGLES(RAD(0), RAD(-90), RAD(0))
1005
local DAMAGEMULTIPLIER = 1
1006
local ANIM = "Idle"
1007
local ATTACK = false
1008
local EQUIPPED = false
1009
local HOLD = false
1010
local COMBO = 1
1011
local Rooted = false
1012
local SINE = 0
1013
local KEYHOLD = false
1014
local CHANGE = 2 / Animation_Speed
1015
local WALKINGANIM = false
1016
local VALUE1 = false
1017
local VALUE2 = 0
1018
local ROBLOXIDLEANIMATION = IT("Animation")
1019
ROBLOXIDLEANIMATION.Name = "Roblox Idle Animation"
1020
ROBLOXIDLEANIMATION.AnimationId = "http://www.roblox.com/asset/?id=180435571"
1021
--ROBLOXIDLEANIMATION.Parent = Humanoid
1022
local WEAPONGUI = IT("ScreenGui", PlayerGui)
1023
WEAPONGUI.Name = "Weapon GUI"
1024
local Weapon = IT("Model")
1025
Weapon.Name = "Adds"
1026
local Effects = IT("Folder", Character)
1027
Effects.Name = "Effects"
1028
local ANIMATOR = Humanoid.Animator
1029
local ANIMATE = Character.Animate
1030
local UNANCHOR = true
1031
local HITFLOOR = nil
1032
local HITPOS = nil
1033
local DED = false
1034
local SOULWELL = 666
1035
local HITPLAYERSOUNDS = {"199149137", "199149186", "199149221", "199149235", "199149269", "199149297"}
1036
local SLASHSOUNDS = {"28144268","28144277","28144291"}
1037
1038
--//=================================\\
1039
--\\=================================//
1040
1041
1042
--//=================================\\
1043
--|| SAZERENOS' ARTIFICIAL HEARTBEAT
1044
--\\=================================//
1045
1046
ArtificialHB = Instance.new("BindableEvent", script)
1047
ArtificialHB.Name = "ArtificialHB"
1048
1049
script:WaitForChild("ArtificialHB")
1050
1051
frame = Frame_Speed
1052
tf = 0
1053
allowframeloss = false
1054
tossremainder = false
1055
lastframe = tick()
1056
script.ArtificialHB:Fire()
1057
1058
game:GetService("RunService").Heartbeat:connect(function(s, p)
1059
	tf = tf + s
1060
	if tf >= frame then
1061
		if allowframeloss then
1062
			script.ArtificialHB:Fire()
1063
			lastframe = tick()
1064
		else
1065
			for i = 1, math.floor(tf / frame) do
1066
				script.ArtificialHB:Fire()
1067
			end
1068
		lastframe = tick()
1069
		end
1070
		if tossremainder then
1071
			tf = 0
1072
		else
1073
			tf = tf - frame * math.floor(tf / frame)
1074
		end
1075
	end
1076
end)
1077
1078
--//=================================\\
1079
--\\=================================//
1080
1081
--//=================================\\
1082
--|| 	      SOME FUNCTIONS
1083
--\\=================================//
1084
1085
function Raycast(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
1086
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
1087
end
1088
1089
function PositiveAngle(NUMBER)
1090
	if NUMBER >= 0 then
1091
		NUMBER = 0
1092
	end
1093
	return NUMBER
1094
end
1095
1096
function NegativeAngle(NUMBER)
1097
	if NUMBER <= 0 then
1098
		NUMBER = 0
1099
	end
1100
	return NUMBER
1101
end
1102
1103
function Swait(NUMBER)
1104
	if NUMBER == 0 or NUMBER == nil then
1105
		ArtificialHB.Event:wait()
1106
	else
1107
		for i = 1, NUMBER do
1108
			ArtificialHB.Event:wait()
1109
		end
1110
	end
1111
end
1112
1113
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
1114
	local NEWMESH = IT(MESH)
1115
	if MESH == "SpecialMesh" then
1116
		NEWMESH.MeshType = MESHTYPE
1117
		if MESHID ~= "nil" and MESHID ~= "" then
1118
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
1119
		end
1120
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
1121
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
1122
		end
1123
	end
1124
	NEWMESH.Offset = OFFSET or VT(0, 0, 0)
1125
	NEWMESH.Scale = SCALE
1126
	NEWMESH.Parent = PARENT
1127
	return NEWMESH
1128
end
1129
1130
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
1131
	local NEWPART = IT("Part")
1132
	NEWPART.formFactor = FORMFACTOR
1133
	NEWPART.Reflectance = REFLECTANCE
1134
	NEWPART.Transparency = TRANSPARENCY
1135
	NEWPART.CanCollide = false
1136
	NEWPART.Locked = true
1137
	NEWPART.Anchored = true
1138
	if ANCHOR == false then
1139
		NEWPART.Anchored = false
1140
	end
1141
	NEWPART.BrickColor = BRICKC(tostring(BRICKCOLOR))
1142
	NEWPART.Name = NAME
1143
	NEWPART.Size = SIZE
1144
	NEWPART.Position = Torso.Position
1145
	NEWPART.Material = MATERIAL
1146
	NEWPART:BreakJoints()
1147
	NEWPART.Parent = PARENT
1148
	return NEWPART
1149
end
1150
1151
	local function weldBetween(a, b)
1152
	    local weldd = Instance.new("ManualWeld")
1153
	    weldd.Part0 = a
1154
	    weldd.Part1 = b
1155
	    weldd.C0 = CFrame.new()
1156
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
1157
	    weldd.Parent = a
1158
	    return weldd
1159
	end
1160
1161
1162
function QuaternionFromCFrame(cf)
1163
	local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
1164
	local trace = m00 + m11 + m22
1165
	if trace > 0 then 
1166
		local s = math.sqrt(1 + trace)
1167
		local recip = 0.5 / s
1168
		return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
1169
	else
1170
		local i = 0
1171
		if m11 > m00 then
1172
			i = 1
1173
		end
1174
		if m22 > (i == 0 and m00 or m11) then
1175
			i = 2
1176
		end
1177
		if i == 0 then
1178
			local s = math.sqrt(m00 - m11 - m22 + 1)
1179
			local recip = 0.5 / s
1180
			return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
1181
		elseif i == 1 then
1182
			local s = math.sqrt(m11 - m22 - m00 + 1)
1183
			local recip = 0.5 / s
1184
			return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
1185
		elseif i == 2 then
1186
			local s = math.sqrt(m22 - m00 - m11 + 1)
1187
			local recip = 0.5 / s return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
1188
		end
1189
	end
1190
end
1191
 
1192
function QuaternionToCFrame(px, py, pz, x, y, z, w)
1193
	local xs, ys, zs = x + x, y + y, z + z
1194
	local wx, wy, wz = w * xs, w * ys, w * zs
1195
	local xx = x * xs
1196
	local xy = x * ys
1197
	local xz = x * zs
1198
	local yy = y * ys
1199
	local yz = y * zs
1200
	local zz = z * zs
1201
	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))
1202
end
1203
 
1204
function QuaternionSlerp(a, b, t)
1205
	local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
1206
	local startInterp, finishInterp;
1207
	if cosTheta >= 0.0001 then
1208
		if (1 - cosTheta) > 0.0001 then
1209
			local theta = ACOS(cosTheta)
1210
			local invSinTheta = 1 / SIN(theta)
1211
			startInterp = SIN((1 - t) * theta) * invSinTheta
1212
			finishInterp = SIN(t * theta) * invSinTheta
1213
		else
1214
			startInterp = 1 - t
1215
			finishInterp = t
1216
		end
1217
	else
1218
		if (1 + cosTheta) > 0.0001 then
1219
			local theta = ACOS(-cosTheta)
1220
			local invSinTheta = 1 / SIN(theta)
1221
			startInterp = SIN((t - 1) * theta) * invSinTheta
1222
			finishInterp = SIN(t * theta) * invSinTheta
1223
		else
1224
			startInterp = t - 1
1225
			finishInterp = t
1226
		end
1227
	end
1228
	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
1229
end
1230
1231
function Clerp(a, b, t)
1232
	local qa = {QuaternionFromCFrame(a)}
1233
	local qb = {QuaternionFromCFrame(b)}
1234
	local ax, ay, az = a.x, a.y, a.z
1235
	local bx, by, bz = b.x, b.y, b.z
1236
	local _t = 1 - t
1237
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t))
1238
end
1239
1240
function CreateFrame(PARENT, TRANSPARENCY, BORDERSIZEPIXEL, POSITION, SIZE, COLOR, BORDERCOLOR, NAME)
1241
	local frame = IT("Frame")
1242
	frame.BackgroundTransparency = TRANSPARENCY
1243
	frame.BorderSizePixel = BORDERSIZEPIXEL
1244
	frame.Position = POSITION
1245
	frame.Size = SIZE
1246
	frame.BackgroundColor3 = COLOR
1247
	frame.BorderColor3 = BORDERCOLOR
1248
	frame.Name = NAME
1249
	frame.Parent = PARENT
1250
	return frame
1251
end
1252
1253
function CreateLabel(PARENT, TEXT, TEXTCOLOR, TEXTFONTSIZE, TEXTFONT, TRANSPARENCY, BORDERSIZEPIXEL, STROKETRANSPARENCY, NAME)
1254
	local label = IT("TextLabel")
1255
	label.BackgroundTransparency = 1
1256
	label.Size = UD2(1, 0, 1, 0)
1257
	label.Position = UD2(0, 0, 0, 0)
1258
	label.TextColor3 = TEXTCOLOR
1259
	label.TextStrokeTransparency = STROKETRANSPARENCY
1260
	label.TextTransparency = TRANSPARENCY
1261
	label.FontSize = TEXTFONTSIZE
1262
	label.Font = TEXTFONT
1263
	label.BorderSizePixel = BORDERSIZEPIXEL
1264
	label.TextScaled = false
1265
	label.Text = TEXT
1266
	label.Name = NAME
1267
	label.Parent = PARENT
1268
	return label
1269
end
1270
1271
function NoOutlines(PART)
1272
	PART.TopSurface, PART.BottomSurface, PART.LeftSurface, PART.RightSurface, PART.FrontSurface, PART.BackSurface = 10, 10, 10, 10, 10, 10
1273
end
1274
1275
function CreateWeldOrSnapOrMotor(TYPE, PARENT, PART0, PART1, C0, C1)
1276
	local NEWWELD = IT(TYPE)
1277
	NEWWELD.Part0 = PART0
1278
	NEWWELD.Part1 = PART1
1279
	NEWWELD.C0 = C0
1280
	NEWWELD.C1 = C1
1281
	NEWWELD.Parent = PARENT
1282
	return NEWWELD
1283
end
1284
1285
local S = IT("Sound")
1286
function CreateSound(ID, PARENT, VOLUME, PITCH, DOESLOOP)
1287
	local NEWSOUND = nil
1288
	coroutine.resume(coroutine.create(function()
1289
		NEWSOUND = S:Clone()
1290
		NEWSOUND.Parent = PARENT
1291
		NEWSOUND.Volume = VOLUME
1292
		NEWSOUND.Pitch = PITCH
1293
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
1294
		NEWSOUND:play()
1295
		if DOESLOOP == true then
1296
			NEWSOUND.Looped = true
1297
		else
1298
			repeat Swait() until NEWSOUND.Playing == false
1299
			NEWSOUND:remove()
1300
		end
1301
	end))
1302
	return NEWSOUND
1303
end
1304
1305
function CFrameFromTopBack(at, top, back)
1306
	local right = top:Cross(back)
1307
	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)
1308
end
1309
1310
--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})
1311
function WACKYEFFECT(Table)
1312
	local TYPE = (Table.EffectType or "Sphere")
1313
	local SIZE = (Table.Size or VT(1,1,1))
1314
	local ENDSIZE = (Table.Size2 or VT(0,0,0))
1315
	local TRANSPARENCY = (Table.Transparency or 0)
1316
	local ENDTRANSPARENCY = (Table.Transparency2 or 1)
1317
	local CFRAME = (Table.CFrame or Torso.CFrame)
1318
	local MOVEDIRECTION = (Table.MoveToPos or nil)
1319
	local ROTATION1 = (Table.RotationX or 0)
1320
	local ROTATION2 = (Table.RotationY or 0)
1321
	local ROTATION3 = (Table.RotationZ or 0)
1322
	local MATERIAL = (Table.Material or "Neon")
1323
	local COLOR = (Table.Color or C3(1,1,1))
1324
	local TIME = (Table.Time or 45)
1325
	local SOUNDID = (Table.SoundID or nil)
1326
	local SOUNDPITCH = (Table.SoundPitch or nil)
1327
	local SOUNDVOLUME = (Table.SoundVolume or nil)
1328
	coroutine.resume(coroutine.create(function()
1329
		local PLAYSSOUND = false
1330
		local SOUND = nil
1331
		local EFFECT = CreatePart(3, Effects, MATERIAL, 0, TRANSPARENCY, BRICKC("Pearl"), "Effect", VT(1,1,1), true)
1332
		if SOUNDID ~= nil and SOUNDPITCH ~= nil and SOUNDVOLUME ~= nil then
1333
			PLAYSSOUND = true
1334
			SOUND = CreateSound(SOUNDID, EFFECT, SOUNDVOLUME, SOUNDPITCH, false)
1335
		end
1336
		EFFECT.Color = COLOR
1337
		local MSH = nil
1338
		if TYPE == "Sphere" then
1339
			MSH = CreateMesh("SpecialMesh", EFFECT, "Sphere", "", "", SIZE, VT(0,0,0))
1340
		elseif TYPE == "Block" then
1341
			MSH = IT("BlockMesh",EFFECT)
1342
			MSH.Scale = VT(SIZE.X,SIZE.X,SIZE.X)
1343
		elseif TYPE == "Wave" then
1344
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "20329976", "", SIZE, VT(0,0,-SIZE.X/8))
1345
		elseif TYPE == "Ring" then
1346
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "559831844", "", VT(SIZE.X,SIZE.X,0.1), VT(0,0,0))
1347
		elseif TYPE == "Slash" then
1348
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662586858", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1349
		elseif TYPE == "Round Slash" then
1350
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "662585058", "", VT(SIZE.X/10,0,SIZE.X/10), VT(0,0,0))
1351
		elseif TYPE == "Swirl" then
1352
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "1051557", "", SIZE, VT(0,0,0))
1353
		elseif TYPE == "Skull" then
1354
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "4770583", "", SIZE, VT(0,0,0))
1355
		elseif TYPE == "Crystal" then
1356
			MSH = CreateMesh("SpecialMesh", EFFECT, "FileMesh", "9756362", "", SIZE, VT(0,0,0))
1357
		end
1358
		if MSH ~= nil then
1359
			local MOVESPEED = nil
1360
			if MOVEDIRECTION ~= nil then
1361
				MOVESPEED = (CFRAME.p - MOVEDIRECTION).Magnitude/TIME
1362
			end
1363
			local GROWTH = SIZE - ENDSIZE
1364
			local TRANS = TRANSPARENCY - ENDTRANSPARENCY
1365
			if TYPE == "Block" then
1366
				EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1367
			else
1368
				EFFECT.CFrame = CFRAME
1369
			end
1370
			for LOOP = 1, TIME do
1371
				Swait()
1372
				MSH.Scale = MSH.Scale - GROWTH/TIME
1373
				if TYPE == "Wave" then
1374
					MSH.Offset = VT(0,0,-MSH.Scale.X/8)
1375
				end
1376
				EFFECT.Transparency = EFFECT.Transparency - TRANS/TIME
1377
				if TYPE == "Block" then
1378
					EFFECT.CFrame = CFRAME*ANGLES(RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)),RAD(MRANDOM(0,360)))
1379
				else
1380
					EFFECT.CFrame = EFFECT.CFrame*ANGLES(RAD(ROTATION1),RAD(ROTATION2),RAD(ROTATION3))
1381
				end
1382
				if MOVEDIRECTION ~= nil then
1383
					local ORI = EFFECT.Orientation
1384
					EFFECT.CFrame = CF(EFFECT.Position,MOVEDIRECTION)*CF(0,0,-MOVESPEED)
1385
					EFFECT.Orientation = ORI
1386
				end
1387
			end
1388
			if PLAYSSOUND == false then
1389
				EFFECT:remove()
1390
			else
1391
				repeat Swait() until SOUND.Playing == false
1392
				EFFECT:remove()
1393
			end
1394
		else
1395
			if PLAYSSOUND == false then
1396
				EFFECT:remove()
1397
			else
1398
				repeat Swait() until SOUND.Playing == false
1399
				EFFECT:remove()
1400
			end
1401
		end
1402
	end))
1403
end
1404
1405
Debris = game:GetService("Debris")
1406
1407
function SpawnSoul(Humanoid)
1408
	coroutine.resume(coroutine.create(function()
1409
		local TORSO = Humanoid.Parent:FindFirstChild("Torso") or Humanoid.Parent:FindFirstChild("UpperTorso")
1410
		local SOULMODEL = IT("Model",Effects)
1411
		SOULMODEL.Name = Humanoid.Parent.Name.."'s Soul"
1412
		local SOUL = CreatePart(3, SOULMODEL, "Neon", 0, 0, "Really red", "Head", VT(0.5,0.5,0.5))
1413
		SOUL.CFrame = CF(TORSO.Position)
1414
	 	local A1 = IT("Attachment",SOUL)
1415
	 	A1.Position = Vector3.new(0, 0.25, 0)
1416
	 	local A2 = IT("Attachment",SOUL)
1417
	    A2.Position = Vector3.new(0, -0.25, 0)
1418
	 	local Trail = IT("Trail",SOUL)
1419
	    Trail.LightEmission = 0.3
1420
	    Trail.FaceCamera = true
1421
	    Trail.Texture = "rbxassetid://945758042"
1422
	    Trail.Attachment0 = A1
1423
	    Trail.Attachment1 = A2
1424
	    Trail.Lifetime = 0.5
1425
	    Trail.MinLength = 0
1426
	    Trail.Transparency = NumberSequence.new(0)
1427
	    Trail.Color = ColorSequence.new(SOUL.Color)
1428
		MakeForm(SOUL,"Ball")
1429
		local DISTANCE = nil
1430
		local HUM = IT("Humanoid",SOULMODEL)
1431
		repeat
1432
			Swait()
1433
			SOUL.CFrame = CF(SOUL.Position,Torso.Position)*CF(0,0,-0.2)
1434
			DISTANCE = (SOUL.Position - Torso.Position).Magnitude
1435
		until DISTANCE < 0.4
1436
		WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(6,6,6), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = 2})
1437
		SOUL.Transparency = 1
1438
		A1.Parent = Torso
1439
		A2.Parent = Torso
1440
		Trail.Parent = Torso
1441
		Debris:AddItem(SOULMODEL,10)
1442
		SOULWELL = SOULWELL + 1
1443
		for i = 1, 100 do
1444
			Swait()
1445
			Trail.Transparency = NumberSequence.new(i/100)
1446
		end
1447
		A1:remove()
1448
		A2:remove()
1449
		Trail:remove()
1450
	end))
1451
end
1452
1453
function Shatter(Part)
1454
	if Part.Transparency == 0 then
1455
		local SOUNDPART = CreatePart(3, Effects, "Glass", 0, 1, Part.BrickColor, "OOF", VT(0,0,0))
1456
		Debris:AddItem(SOUNDPART,5)
1457
		CreateSound("626807593", SOUNDPART, 3, MRANDOM(8,12)/10, false)
1458
		local SIZE = Part.Size.X + Part.Size.Y + Part.Size.Z
1459
		local SIZESET = SIZE/4
1460
		local XOffset = Part.Size.X*1.5/SIZESET
1461
		local YOffset = Part.Size.Y*1.5/SIZESET
1462
		local ZOffset = Part.Size.Z*1.5/SIZESET
1463
		for x = 1, math.ceil(XOffset) do
1464
			for y = 1, math.ceil(YOffset) do
1465
				for z = 1, math.ceil(ZOffset) do
1466
					local SHARD = CreatePart(3, Effects, "Glass", 0, 0.15, Part.BrickColor, "Shard", VT(SIZE,SIZE,SIZE)/10, false)
1467
					SHARD.CanCollide = true
1468
					SHARD.CFrame = Part.CFrame*CF((Part.Size.X/2-Part.Size.X/4),(Part.Size.Y/2-Part.Size.Y/4),(Part.Size.Z/2-Part.Size.Z/4))
1469
					SHARD.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))*3
1470
					Debris:AddItem(SHARD,MRANDOM(10,25)/10)
1471
					for _, c in pairs(Part:GetChildren()) do
1472
						if c.ClassName == "ParticleEmitter" or c.ClassName == "PointLight" or c.ClassName == "Fire" then
1473
							c:Clone().Parent = SHARD
1474
						end
1475
					end
1476
				end
1477
			end
1478
		end
1479
	end
1480
	Part:remove()
1481
end
1482
1483
function MakeForm(PART,TYPE)
1484
	if TYPE == "Cyl" then
1485
		local MSH = IT("CylinderMesh",PART)
1486
	elseif TYPE == "Ball" then
1487
		local MSH = IT("SpecialMesh",PART)
1488
		MSH.MeshType = "Sphere"
1489
	elseif TYPE == "Wedge" then
1490
		local MSH = IT("SpecialMesh",PART)
1491
		MSH.MeshType = "Wedge"
1492
	end
1493
end
1494
1495
function CastProperRay(StartPos, EndPos, Distance, Ignore)
1496
	local DIRECTION = CF(StartPos,EndPos).lookVector
1497
	return Raycast(StartPos, DIRECTION, Distance, Ignore)
1498
end
1499
1500
function turnto(position)
1501
	RootPart.CFrame=CFrame.new(RootPart.CFrame.p,VT(position.X,RootPart.Position.Y,position.Z)) * CFrame.new(0, 0, 0)
1502
end
1503
1504
--//=================================\\
1505
--||	     WEAPON CREATION
1506
--\\=================================//
1507
1508
local HAT = CreatePart(3, Character, "SmoothPlastic", 0, 0, "Really black", "Tophat", VT(1,1,1),false)
1509
local Hatweld = CreateWeldOrSnapOrMotor("Weld", Head, Head, HAT, CF(0,1,0), CF(0, 0, 0))
1510
CreateMesh("SpecialMesh", HAT, "FileMesh", "97094619", "97094572", VT(1,1,1), VT(0,0,0))
1511
1512
local HandlePart = CreatePart(3, Weapon, "SmoothPlastic", 0, 0, "Really black", "Tophat", VT(1,1,1),false)
1513
local HandleWeld = CreateWeldOrSnapOrMotor("Weld", RightArm, RightArm, HandlePart, CF(0, -2, -5.5) * ANGLES(RAD(-90), RAD(-90), RAD(0)), CF(0, 0, 0))
1514
CreateMesh("SpecialMesh", HandlePart, "FileMesh", "95891318", "95891299", VT(1,1,1), VT(0,0,0))
1515
1516
for _, c in pairs(Weapon:GetChildren()) do
1517
	if c.ClassName == "Part" then
1518
		c.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1519
	end
1520
end
1521
1522
local EyeSizes={
1523
	NumberSequenceKeypoint.new(0,1,0),
1524
	NumberSequenceKeypoint.new(1,0,0)
1525
}
1526
local Trans={
1527
	NumberSequenceKeypoint.new(0,0.5,0),
1528
	NumberSequenceKeypoint.new(1,1,0)
1529
}
1530
local PE=Instance.new("ParticleEmitter")
1531
PE.LightEmission=.8
1532
PE.Color = ColorSequence.new(BRICKC("Really red").Color)
1533
PE.Size=NumberSequence.new(EyeSizes)
1534
PE.Lifetime=NumberRange.new(0.35,0.35,0.35)
1535
PE.Rotation=NumberRange.new(0,360)
1536
PE.Transparency = NumberSequence.new(Trans)
1537
PE.Rate=999
1538
PE.VelocitySpread = 10000
1539
PE.Acceleration = Vector3.new(0,75,0)
1540
PE.Drag = 5
1541
PE.Speed = NumberRange.new(6,6)
1542
PE.Texture="http://www.roblox.com/asset/?id=241936182"
1543
PE.ZOffset = -1.5
1544
PE.Name = "Rage"
1545
PE.Enabled = false
1546
1547
function particles(art)
1548
	PE:Clone().Parent = art
1549
end
1550
1551
for _, c in pairs(Character:GetChildren()) do
1552
	if c.ClassName == "Part" and c ~= RootPart then
1553
		particles(c)
1554
	end
1555
end
1556
1557
local SKILLTEXTCOLOR = C3(0,0,0)
1558
local SKILLFONT = "Antique"
1559
local SKILLTEXTSIZE = 7
1560
1561
Weapon.Parent = Character
1562
1563
Humanoid.Died:connect(function()
1564
	if SOULWELL > 0 then
1565
		SOULWELL = SOULWELL - 1
1566
		Humanoid.Parent = nil
1567
		Humanoid.MaxHealth = "inf"
1568
		Humanoid.Health = "inf"
1569
		refit()
1570
		Humanoid.Parent = Character
1571
	else
1572
		DED = true
1573
		sick:Destroy()
1574
		ATTACK = true
1575
		wait(2)
1576
		for _, c in pairs(Character:GetChildren()) do
1577
			if c.ClassName == "Part" then
1578
				c.Velocity = VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))
1579
			end
1580
		end
1581
		for _, c in pairs(Character:GetChildren()) do
1582
			if c.ClassName == "Part" then
1583
				Shatter(c)
1584
			end
1585
		end
1586
	end
1587
end)
1588
1589
function refit()
1590
	Character.Parent = nil
1591
	Weapon.Parent = Character
1592
	HandlePart.Parent = Weapon
1593
	HandleWeld.Parent = RightArm
1594
	HAT.Parent = Character
1595
	Hatweld.Parent = Character
1596
	RootJoint.Parent = RootPart
1597
	Neck.Parent = Torso
1598
	RightShoulder.Parent = Torso
1599
	LeftShoulder.Parent = Torso
1600
	RightHip.Parent = Torso
1601
	LeftHip.Parent = Torso
1602
	RootPart.Parent = Character
1603
	LeftArm.Parent = Character
1604
	RightArm.Parent = Character
1605
	RightLeg.Parent = Character
1606
	LeftLeg.Parent = Character
1607
	Torso.Parent = Character
1608
	Head.Parent = Character
1609
	Character.Parent = workspace
1610
end
1611
1612
local SKILL1FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.100, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 1 Frame")
1613
local SKILL2FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 2 Frame")
1614
local SKILL3FRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.631, 0, 0.9, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Skill 3 Frame")
1615
1616
local SOULFRAME = CreateFrame(WEAPONGUI, 0.75, 2, UD2(0.365, 0, 0.815, 0), UD2(0.26, 0, 0.07, 0), C3(0,0,0), C3(0, 0, 0), "Soul Frame")
1617
1618
local SKILL1TEXT = CreateLabel(SKILL1FRAME, "[Z] Spire Wave", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 1")
1619
local SKILL2TEXT = CreateLabel(SKILL2FRAME, "[B] Soul Bomb", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 2")
1620
local SKILL3TEXT = CreateLabel(SKILL3FRAME, "[C] Soul Rage", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Text 3")
1621
1622
local SOULTEXT = CreateLabel(SOULFRAME, "Souls : [0]", SKILLTEXTCOLOR, SKILLTEXTSIZE, SKILLFONT, 0, 2, 1, "Souls")
1623
1624
--//=================================\\
1625
--||	     DAMAGE FUNCTIONS
1626
--\\=================================//
1627
1628
function StatLabel(CFRAME, TEXT, COLOR)
1629
	local STATPART = CreatePart(3, Effects, "SmoothPlastic", 0, 1, "Really black", "Effect", VT())
1630
	STATPART.CFrame = CF(CFRAME.p,CFRAME.p+VT(MRANDOM(-5,5),MRANDOM(0,5),MRANDOM(-5,5)))
1631
	local BODYGYRO = IT("BodyGyro", STATPART)
1632
	game:GetService("Debris"):AddItem(STATPART ,5)
1633
	local BILLBOARDGUI = Instance.new("BillboardGui", STATPART)
1634
	BILLBOARDGUI.Adornee = STATPART
1635
	BILLBOARDGUI.Size = UD2(2.5, 0, 2.5 ,0)
1636
	BILLBOARDGUI.StudsOffset = VT(-2, 2, 0)
1637
	BILLBOARDGUI.AlwaysOnTop = false
1638
	local TEXTLABEL = Instance.new("TextLabel", BILLBOARDGUI)
1639
	TEXTLABEL.BackgroundTransparency = 1
1640
	TEXTLABEL.Size = UD2(2.5, 0, 2.5, 0)
1641
	TEXTLABEL.Text = TEXT
1642
	TEXTLABEL.Font = SKILLFONT
1643
	TEXTLABEL.FontSize="Size42"
1644
	TEXTLABEL.TextColor3 = COLOR
1645
	TEXTLABEL.TextStrokeTransparency = 1
1646
	TEXTLABEL.TextScaled = true
1647
	TEXTLABEL.TextWrapped = true
1648
	coroutine.resume(coroutine.create(function(THEPART, THEBODYPOSITION, THETEXTLABEL)
1649
		for i = 1, 50 do
1650
			Swait()
1651
			STATPART.CFrame = STATPART.CFrame * CF(0,0,-0.2)
1652
			TEXTLABEL.TextTransparency = TEXTLABEL.TextTransparency + (1/50)
1653
		end
1654
		THEPART.Parent = nil
1655
	end),STATPART, TEXTLABEL)
1656
end
1657
1658
--//=================================\\
1659
--||			DAMAGING
1660
--\\=================================//
1661
1662
function ApplyDamage(Humanoid,Damage,CritRate,CritMultiplier,DoesOneShot)
1663
	coroutine.resume(coroutine.create(function()
1664
		local defence = Instance.new("BoolValue",Humanoid.Parent)
1665
		defence.Name = ("HitBy"..Player.Name)
1666
		game:GetService("Debris"):AddItem(defence, 0.001)
1667
		Damage = Damage * DAMAGEMULTIPLIER
1668
		if Humanoid.Health ~= 0 then
1669
			local CritChance = MRANDOM(1,100)
1670
			if CritChance < CritRate + 1 then
1671
				Damage = Damage*CritMultiplier
1672
			end
1673
			if Damage > Humanoid.Health then
1674
				Damage = math.ceil(Humanoid.Health)
1675
				if Damage == 0 then
1676
					Damage = 0.1
1677
				end
1678
			end
1679
			if DoesOneShot == false then
1680
				for _, c in pairs(Humanoid.Parent:GetChildren()) do
1681
					if c.Name ~= "HumanoidRootPart" and c.Name ~= "Torso" and c.Name ~= "Head" and c.Name ~= "UpperTorso" and c.Name ~= "LowerTorso" then
1682
						if c.ClassName == "Part" or c.ClassName == "MeshPart" then
1683
							if MRANDOM(1,20) == 1 then
1684
								Shatter(c)
1685
							end
1686
						end
1687
					end
1688
				end
1689
				Humanoid.Health = Humanoid.Health - Damage
1690
				if Humanoid.Parent:FindFirstChild("Head") then
1691
					CreateSound(HITPLAYERSOUNDS[MRANDOM(1,#HITPLAYERSOUNDS)], Humanoid.Parent.Head, 5, 1)
1692
					if CritChance < CritRate + 1 then
1693
						StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "CRIT//"..Damage, C3(1, 0, 0))
1694
					else
1695
						StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), Damage, C3(0, 0, 0))
1696
					end
1697
				end
1698
			elseif DoesOneShot == true then
1699
				--print("["..Humanoid.Parent.Name.."]: One shot!? Really!?!?")
1700
				Humanoid.Parent:BreakJoints()
1701
				if Humanoid.Parent:FindFirstChild("Head") then
1702
					StatLabel(Humanoid.Parent.Head.CFrame * CF(0, 0 + (Humanoid.Parent.Head.Size.z - 1), 0), "INF", C3(1, 0, 0))
1703
				end
1704
				for _, c in pairs(Humanoid.Parent:GetChildren()) do
1705
					if c.ClassName == "Part" or c.ClassName == "MeshPart" then
1706
						Shatter(c)
1707
					end
1708
				end
1709
			end
1710
			if Humanoid.Health == 0 then
1711
				--print("["..Humanoid.Parent.Name.."]: It's like stepping on glass, but worse!")
1712
				SpawnSoul(Humanoid)
1713
				for _, c in pairs(Humanoid.Parent:GetChildren()) do
1714
					if c.ClassName == "Part" or c.ClassName == "MeshPart" then
1715
						Shatter(c)
1716
					end
1717
				end
1718
			end
1719
		end
1720
	end))
1721
end
1722
1723
function AoEDamage(position,radius,min,max,maxstrength,critrate,critmultiplier,BESERK)
1724
	local dmg = math.random(10000,100000)
1725
	for i,v in ipairs(workspace:GetChildren()) do
1726
	if v:FindFirstChild("HitBy"..Player.Name) == nil then
1727
		local body = v:GetChildren()
1728
			for part = 1, #body do
1729
				if(v:FindFirstChild("HitBy"..Player.Name) == nil and (body[part].ClassName == "Part" or body[part].ClassName == "MeshPart") and v ~= Character) then
1730
					if(body[part].Position - position).Magnitude < radius then
1731
						if v.ClassName == "Model" then
1732
							if v:FindFirstChildOfClass("Humanoid") then
1733
								ApplyDamage(v:FindFirstChildOfClass("Humanoid"),dmg,critrate,critmultiplier,BESERK)
1734
								local bv = Instance.new("BodyVelocity") 
1735
								bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
1736
								bv.velocity = CF(position,body[part].Position).lookVector*maxstrength
1737
								bv.Parent = body[part]
1738
								Debris:AddItem(bv,0.2)
1739
							end
1740
						end
1741
					end
1742
				end
1743
			end
1744
		end
1745
		if v:FindFirstChild("HitBy"..Player.Name) then
1746
			v:FindFirstChild("HitBy"..Player.Name):remove()
1747
		end
1748
	end
1749
end
1750
1751
--//=================================\\
1752
--||	ATTACK FUNCTIONS AND STUFF
1753
--\\=================================//
1754
1755
function Slash()
1756
	ATTACK = true
1757
	Rooted = false
1758
	for i=0, 0.2, 0.1 / Animation_Speed do
1759
		Swait()
1760
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(25)), 2 / Animation_Speed)
1761
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-25)), 2 / Animation_Speed)
1762
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1763
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1764
1765
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(40), RAD(65), RAD(12)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1766
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(-20)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1767
		HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1768
	end
1769
	CreateSound(SLASHSOUNDS[MRANDOM(1,#SLASHSOUNDS)], HandlePart, 5, 1)
1770
	if COMBO == 1 then
1771
		COMBO = 2
1772
		for i=0, 0.1, 0.1 / Animation_Speed do
1773
			RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.1)
1774
			Swait()
1775
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-65)), 1 / Animation_Speed)
1776
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(65)), 1 / Animation_Speed)
1777
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1778
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 1 / Animation_Speed)
1779
	
1780
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(40), RAD(65), RAD(62)) * RIGHTSHOULDERC0, 1 / Animation_Speed)
1781
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1.5) * ANGLES(RAD(120), RAD(0), RAD(30)) * LEFTSHOULDERC0, 1 / Animation_Speed)
1782
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1783
		end
1784
		AoEDamage(HandlePart.Position,5,5,15,5,2,2,VALUE1)
1785
		for i=0, 0.15, 0.1 / Animation_Speed do
1786
			RootPart.CFrame = RootPart.CFrame*CF(0,0,-0.12)
1787
			Swait()
1788
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-75)), 2 / Animation_Speed)
1789
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(75)), 2 / Animation_Speed)
1790
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
1791
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 2 / Animation_Speed)
1792
	
1793
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(40), RAD(65), RAD(62)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1794
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -1.5) * ANGLES(RAD(120), RAD(0), RAD(30)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1795
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 2 / Animation_Speed)
1796
		end
1797
	elseif COMBO == 2 then
1798
		COMBO = 1
1799
		for i=0, 0.2, 0.1 / Animation_Speed do
1800
			Swait()
1801
			RootPart.CFrame = RootPart.CFrame*CF(0,0,0.1)
1802
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
1803
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
1804
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1805
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1806
	
1807
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1808
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1809
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(7, -6, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed)
1810
		end
1811
		AoEDamage(HandlePart.Position,5,5,15,5,2,2,VALUE1)
1812
		for i=0, 0.1, 0.1 / Animation_Speed do
1813
			Swait()
1814
			RootPart.CFrame = RootPart.CFrame*CF(0,0,0.15)
1815
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(90)), 2 / Animation_Speed)
1816
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(-90)), 2 / Animation_Speed)
1817
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1818
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
1819
	
1820
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, -0.3) * ANGLES(RAD(0), RAD(0), RAD(90)) * RIGHTSHOULDERC0, 2 / Animation_Speed)
1821
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(-25), RAD(0), RAD(-35)) * LEFTSHOULDERC0, 2 / Animation_Speed)
1822
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(7, -6, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)), 2 / Animation_Speed)
1823
		end
1824
	end
1825
	ATTACK = false
1826
	Rooted = false
1827
end
1828
1829
function SpireWave()
1830
	if HITFLOOR ~= nil then
1831
		ATTACK = true
1832
		Rooted = false
1833
		local GYRO = IT("BodyGyro",RootPart)
1834
		GYRO.D = 100
1835
		GYRO.P = 2000
1836
		GYRO.MaxTorque = VT(0,4000000,0)
1837
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1838
		for i=0, 1, 0.1 / Animation_Speed do
1839
			Swait()
1840
			WACKYEFFECT({Time = 100, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(1.8,1.8,1.8), Transparency = 0.8, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(90),RAD(0),RAD(90))*ANGLES(RAD(0),RAD(180),RAD(0)), MoveToPos = LeftArm.CFrame*CF(0,-1,0)*CF(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15)).p, RotationX = MRANDOM(-25,25)/15, RotationY = MRANDOM(-25,25)/15, RotationZ = MRANDOM(-25,25)/15, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1841
			GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1842
			RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(-90)), 0.5 / Animation_Speed)
1843
			Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(0 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(90)), 0.5 / Animation_Speed)
1844
			RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1845
			LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1846
	
1847
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1848
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, 0) * ANGLES(RAD(0), RAD(0), RAD(-90)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1849
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1850
		end
1851
		WACKYEFFECT({Time = 100, EffectType = "Skull", Size = VT(0,0,0), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = LeftArm.CFrame*CF(0,-1,0)*ANGLES(RAD(90),RAD(0),RAD(90))*ANGLES(RAD(0),RAD(180),RAD(0)), MoveToPos = nil, RotationX = 0.2, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "305685800", SoundPitch = 1, SoundVolume = 3})
1852
		GYRO:remove()
1853
		coroutine.resume(coroutine.create(function()
1854
			local PITS = {}
1855
			local FRAME = RootPart.CFrame
1856
			for i = 1, 120 do
1857
				Swait()
1858
				local CFRAME = FRAME*CF(MRANDOM(-10,10)/10,0,5-(i)).p
1859
				local HITFLOOR,HITPOS,NORMAL = Raycast(CFRAME, (CF(CFRAME, CFRAME + VT(0, -1, 0))).lookVector, 25, Character)
1860
				if HITFLOOR ~= nil then
1861
					if MRANDOM(1, 2) == 1 then
1862
						local ICICLE = IT("CornerWedgePart",Effects)
1863
						ICICLE.Locked = true
1864
						ICICLE.CanCollide = false
1865
						ICICLE.Anchored = true
1866
						ICICLE.BrickColor = BRICKC"Brick yellow"
1867
						ICICLE.Material = "Marble"
1868
						ICICLE.Size = VT(i/10,i/2,i/10)
1869
						ICICLE.CFrame = CF(HITPOS)*CF(MRANDOM(-i/10,i/10),0,MRANDOM(-i/10,i/10))*ANGLES(RAD(MRANDOM(-25,25)),RAD(MRANDOM(-180,180)),RAD(MRANDOM(-25,25)))
1870
						table.insert(PITS,ICICLE)
1871
						--CreateSound("588693156", ICICLE, 3, MRANDOM(8,12)/10, false)
1872
						AoEDamage(ICICLE.Position,ICICLE.Size.X,5,15,5,2,2,VALUE1)
1873
						WACKYEFFECT({EffectType = "Wave", Size = VT(ICICLE.Size.X*3,2,ICICLE.Size.X*3), Size2 = VT(0,6,0), Transparency = 1, Transparency2 = 0, CFrame = CF(HITPOS), MoveToPos = nil, RotationX = 0, RotationY = 15, RotationZ = 0, Material = "Fabric", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1874
					end
1875
				else
1876
					break
1877
				end
1878
			end
1879
			wait(2)
1880
			coroutine.resume(coroutine.create(function()
1881
				for i = 1, 10 do
1882
					Swait()
1883
					for e=1,#PITS do
1884
						if PITS[e]~=nil then
1885
							local E = PITS[e]
1886
							E.Transparency = E.Transparency + 0.1
1887
						end
1888
					end
1889
				end
1890
				for e=1,#PITS do
1891
					if PITS[e]~=nil then
1892
						local E = PITS[e]
1893
						E:remove()
1894
					end
1895
				end
1896
			end))
1897
		end))
1898
		ATTACK = false
1899
		Rooted = false
1900
	end
1901
end
1902
1903
function SoulBomb()
1904
	ATTACK = true
1905
	Rooted = false
1906
	local GYRO = IT("BodyGyro",RootPart)
1907
	GYRO.D = 100
1908
	GYRO.P = 2000
1909
	GYRO.MaxTorque = VT(0,4000000,0)
1910
	GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1911
	local BOMB = CreatePart(3, Effects, "Neon", 0, 1, "Really red", "SkullBomb", VT(0,0,0))
1912
	for i=0, 2, 0.1 / Animation_Speed do
1913
		BOMB.CFrame = RootPart.CFrame*CF(0,5,0)
1914
		Swait()
1915
		WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,3,0), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position+VT(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15))), MoveToPos = BOMB.Position, RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = nil})
1916
		WACKYEFFECT({Time = 100, EffectType = "Skull", Size = VT(6,6,6), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.Position+VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))/10, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "305685800", SoundPitch = 1, SoundVolume = nil})
1917
		GYRO.cframe = CF(RootPart.Position,Mouse.Hit.p)
1918
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1919
		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.5 / Animation_Speed)
1920
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1921
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1922
	
1923
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(0), RAD(0), RAD(15)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1924
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 1, 0) * ANGLES(RAD(160), RAD(0), RAD(15)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1925
		HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1926
	end
1927
	GYRO:remove()
1928
	coroutine.resume(coroutine.create(function()
1929
		BOMB.CFrame = CF(BOMB.Position,Mouse.Hit.p)
1930
		local IMPACT = false
1931
		for i = 1,150 do
1932
			Swait()
1933
			if MRANDOM(1,5) == 1 then
1934
				WACKYEFFECT({Time = 50, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(1.8,1.8,1.8), Transparency = 0.8, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.CFrame*CF(MRANDOM(-15,15),MRANDOM(-15,15),MRANDOM(-15,15)).p, RotationX = MRANDOM(-25,25)/15, RotationY = MRANDOM(-25,25)/15, RotationZ = MRANDOM(-25,25)/15, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1935
			end
1936
			WACKYEFFECT({Time = 10, EffectType = "Skull", Size = VT(5,5,5), Size2 = VT(8,8,8), Transparency = 0, Transparency2 = 1, CFrame = BOMB.CFrame, MoveToPos = BOMB.Position+VT(MRANDOM(-5,5),MRANDOM(-5,5),MRANDOM(-5,5))/10, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = "305685800", SoundPitch = 1, SoundVolume = nil})
1937
			BOMB.CFrame = BOMB.CFrame*CF(0,0,-1)
1938
			local HIT = Raycast(BOMB.Position, BOMB.CFrame.lookVector, 2, Character)
1939
			if HIT ~= nil then
1940
				IMPACT = true
1941
				break
1942
			end
1943
		end
1944
		if IMPACT == true then
1945
			AoEDamage(BOMB.Position,15,15,25,5,2,2,VALUE1)
1946
			WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(5,5,5), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1947
			WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(10,10,10), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1948
			WACKYEFFECT({EffectType = "Block", Size = VT(1,1,1), Size2 = VT(15,15,15), Transparency = 0, Transparency2 = 1, CFrame = CF(BOMB.Position), MoveToPos = nil, RotationX = 0, RotationY = 0, RotationZ = 0, Material = "Neon", Color = C3(1,0,0), SoundID = nil, SoundPitch = nil, SoundVolume = nil})
1949
		else
1950
			BOMB:remove()
1951
		end
1952
	end))
1953
	ATTACK = false
1954
	Rooted = false
1955
end
1956
1957
function SoulRage()
1958
	ATTACK = true
1959
	Rooted = true
1960
	for i=0, 1, 0.1 / Animation_Speed do
1961
		Swait()
1962
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1963
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1964
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1965
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1966
1967
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1968
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1969
		HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1970
	end
1971
	local WELL = math.ceil(SOULWELL/2)
1972
	for i=1, SOULWELL do
1973
		Swait()
1974
		SOULWELL = SOULWELL - 1
1975
		WACKYEFFECT({EffectType = "Sphere", Size = VT(1,1,1), Size2 = VT(0,3,0), Transparency = 0, Transparency2 = 1, CFrame = Torso.CFrame, MoveToPos = Torso.Position+VT(MRANDOM(-15,15),MRANDOM(-2,15),MRANDOM(-15,15)), RotationX = MRANDOM(-15,15), RotationY = MRANDOM(-15,15), RotationZ = MRANDOM(-15,15), Material = "Neon", Color = C3(1,0,0), SoundID = "444667859", SoundPitch = 2, SoundVolume = 2})
1976
		RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, 0 + 0.05 * COS(SINE / 12)) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1977
		Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(15 - 2.5 * SIN(SINE / 12)), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1978
		RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1979
		LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1980
1981
		RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(-45)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
1982
		LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.15, 0.5, -0.5) * ANGLES(RAD(90), RAD(0), RAD(45)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
1983
		HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 2, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
1984
	end
1985
	ATTACK = false
1986
	Rooted = false
1987
	VALUE1 = true
1988
	VALUE2 = WELL
1989
	for i = 1, WELL do
1990
		wait(1)
1991
		VALUE2 = VALUE2 - 1
1992
	end
1993
	VALUE1 = false
1994
end
1995
1996
1997
--//=================================\\
1998
--||	  ASSIGN THINGS TO KEYS
1999
--\\=================================//
2000
2001
function MouseDown(Mouse)
2002
	if ATTACK == false then
2003
		Slash()
2004
	end
2005
end
2006
2007
function MouseUp(Mouse)
2008
HOLD = false
2009
end
2010
2011
function KeyDown(Key)
2012
	KEYHOLD = true
2013
	if Key == "z" and ATTACK == false then
2014
		SpireWave()
2015
	end
2016
2017
	if Key == "b" and ATTACK == false then
2018
		SoulBomb()
2019
	end
2020
2021
	if Key == "c" and ATTACK == false and VALUE1 == false then
2022
		if SOULWELL > 1 then
2023
			SoulRage()
2024
		end
2025
	end
2026
end
2027
2028
function KeyUp(Key)
2029
	KEYHOLD = false
2030
end
2031
2032
	Mouse.Button1Down:connect(function(NEWKEY)
2033
		MouseDown(NEWKEY)
2034
	end)
2035
	Mouse.Button1Up:connect(function(NEWKEY)
2036
		MouseUp(NEWKEY)
2037
	end)
2038
	Mouse.KeyDown:connect(function(NEWKEY)
2039
		KeyDown(NEWKEY)
2040
	end)
2041
	Mouse.KeyUp:connect(function(NEWKEY)
2042
		KeyUp(NEWKEY)
2043
	end)
2044
2045
--//=================================\\
2046
--\\=================================//
2047
2048
2049
function unanchor()
2050
	if UNANCHOR == true then
2051
		g = Character:GetChildren()
2052
		for i = 1, #g do
2053
			if g[i].ClassName == "Part" then
2054
				g[i].Anchored = false
2055
			end
2056
		end
2057
	end
2058
end
2059
2060
2061
--//=================================\\
2062
--||	WRAP THE WHOLE SCRIPT UP
2063
--\\=================================//
2064
2065
Humanoid.Changed:connect(function(Jump)
2066
	if Jump == "Jump" and (Disable_Jump == true) then
2067
		Humanoid.Jump = false
2068
	end
2069
end)
2070
2071
while true do
2072
	Swait()
2073
	if DED == false then
2074
		Character.Parent = workspace
2075
		Humanoid.Parent = Character
2076
		ANIMATE.Parent = nil
2077
		local IDLEANIMATION = Humanoid:LoadAnimation(ROBLOXIDLEANIMATION)
2078
		IDLEANIMATION:Play()
2079
		SINE = SINE + CHANGE
2080
		local TORSOVELOCITY = (RootPart.Velocity * VT(1, 0, 1)).magnitude
2081
		local TORSOVERTICALVELOCITY = RootPart.Velocity.y
2082
		HITFLOOR,HITPOS = Raycast(RootPart.Position, (CF(RootPart.Position, RootPart.Position + VT(0, -1, 0))).lookVector, 4, Character)
2083
		local WALKSPEEDVALUE = 6 / (Humanoid.WalkSpeed / 16)
2084
		if ATTACK == false then
2085
			RightShoulder.C0 = Clerp(RightShoulder.C0, CF(1.5, 0.5, 0.3) * ANGLES(RAD(40), RAD(65), RAD(32)) * RIGHTSHOULDERC0, 0.5 / Animation_Speed)
2086
			LeftShoulder.C0 = Clerp(LeftShoulder.C0, CF(-1.5, 0.5, -0.5) * ANGLES(RAD(120), RAD(0), RAD(0)) * LEFTSHOULDERC0, 0.5 / Animation_Speed)
2087
			HandleWeld.C1 = Clerp(HandleWeld.C1, CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.5 / Animation_Speed)
2088
		end
2089
		if ANIM == "Walk" and TORSOVELOCITY > 1 then
2090
			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)
2091
			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)
2092
			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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2093
			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(76 * COS(SINE / WALKSPEEDVALUE))), 0.2 * (Humanoid.WalkSpeed / 16) / Animation_Speed)
2094
		elseif (ANIM ~= "Walk") or (TORSOVELOCITY < 1) then
2095
			RootJoint.C1 = Clerp(RootJoint.C1, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2096
			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)
2097
			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)
2098
			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)
2099
		end
2100
		if TORSOVERTICALVELOCITY > 1 and HITFLOOR == nil then
2101
			ANIM = "Jump"
2102
			if ATTACK == false then
2103
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2104
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(-20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2105
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, -0.3) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(-20)), 0.2 / Animation_Speed)
2106
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, -0.3) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-5), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2107
		    end
2108
		elseif TORSOVERTICALVELOCITY < -1 and HITFLOOR == nil then
2109
			ANIM = "Fall"
2110
			if ATTACK == false then
2111
				RootJoint.C0 = Clerp(RootJoint.C0, ROOTC0 * CF(0, 0, 0 ) * ANGLES(RAD(0), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2112
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0 , 0 + ((1) - 1)) * ANGLES(RAD(20), RAD(0), RAD(0)), 0.2 / Animation_Speed)
2113
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(20)), 0.2 / Animation_Speed)
2114
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(10)), 0.2 / Animation_Speed)
2115
			end
2116
		elseif TORSOVELOCITY < 1 and HITFLOOR ~= nil then
2117
			ANIM = "Idle"
2118
			if ATTACK == false then
2119
				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)
2120
				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)
2121
				RightHip.C0 = Clerp(RightHip.C0, CF(1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2122
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1 - 0.05 * COS(SINE / 12), -0.01) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(-8), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2123
			end
2124
		elseif TORSOVELOCITY > 1 and HITFLOOR ~= nil then
2125
			ANIM = "Walk"
2126
			if ATTACK == false then
2127
				RootJoint.C0 = Clerp(RootJoint.C0,ROOTC0 * CF(0, 0, -0.1) * ANGLES(RAD(5), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2128
				Neck.C0 = Clerp(Neck.C0, NECKC0 * CF(0, 0, 0 + ((1) - 1)) * ANGLES(RAD(5 - 8 * SIN(SINE / (WALKSPEEDVALUE / 2))), RAD(0), RAD(0)), 0.15 / Animation_Speed)
2129
				RightHip.C0 = Clerp(RightHip.C0, CF(1 , -1, 0) * ANGLES(RAD(0), RAD(90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(-15)), 2 / Animation_Speed)
2130
				LeftHip.C0 = Clerp(LeftHip.C0, CF(-1, -1, 0) * ANGLES(RAD(0), RAD(-90), RAD(0)) * ANGLES(RAD(0), RAD(0), RAD(15)), 2 / Animation_Speed)
2131
			end
2132
		end
2133
		unanchor()
2134
		Humanoid.MaxHealth = "inf"
2135
		Humanoid.Health = "inf"
2136
		if Rooted == false then
2137
			Disable_Jump = false
2138
			Humanoid.WalkSpeed = Speed
2139
		elseif Rooted == true then
2140
			Disable_Jump = true
2141
			Humanoid.WalkSpeed = 0
2142
		end
2143
		for _, c in pairs(Character:GetChildren()) do
2144
			if c.ClassName == "Part" then
2145
				for _, q in pairs(c:GetChildren()) do
2146
					if q.ClassName == "ParticleEmitter" and q.Name ~= "Rage" then
2147
						q:remove()
2148
					elseif q.ClassName == "ParticleEmitter" and q.Name == "Rage" then
2149
						q.Enabled = VALUE1
2150
					end
2151
				end
2152
				if c:FindFirstChildOfClass("Fire") then
2153
					c:FindFirstChildOfClass("Fire"):remove()
2154
				end
2155
				if c == Head then
2156
					if c:FindFirstChild("Hood") == nil then
2157
						local M = CreateMesh("SpecialMesh", Head, "FileMesh", "181343290", "181343313", VT(1,1,1), VT(0,0,0))
2158
						M.VertexColor = VT(1, 0.85, 0.62)
2159
						M.Name = "Hood"
2160
					end
2161
					if c:FindFirstChild("face") then
2162
						c.face:remove()
2163
					end
2164
				end
2165
			elseif c.ClassName == "CharacterMesh" or c.ClassName == "Accessory" or c.Name == "Body Colors" then
2166
				c:remove()
2167
			end
2168
		end
2169
		script.Parent = WEAPONGUI
2170
		SOULTEXT.Text = "Souls : ["..SOULWELL.."]"
2171
		if VALUE1 == false then
2172
			SKILL3TEXT.Text = "[C] Soul Rage"
2173
		else
2174
			SKILL3TEXT.Text = "["..VALUE2.."] Soul Rage"
2175
		end
2176
		Humanoid.DisplayDistanceType = "None"
2177
		Humanoid.Name = "Reaper"
2178
	end
2179
end
2180
2181
--//=================================\\
2182
--\\=================================//
2183
2184
2185
2186
2187
2188
--//====================================================\\--
2189
--||			  		 END OF SCRIPT
2190
--\\====================================================//--