View difference between Paste ID: 5nZkQamJ and UZ97AH8a
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
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
--[[Magic Unknown, By KillerDarkness0105/Codex#6685.]]--
7
8
9
10
11
12
Player=game:GetService("Players").LocalPlayer
13
Character=Player.Character
14
PlayerGui=Player.PlayerGui
15
Backpack=Player.Backpack
16
Torso=Character.Torso
17
Head=Character.Head
18
Humanoid=Character.Humanoid
19
LeftArm=Character["Left Arm"]
20
LeftLeg=Character["Left Leg"]
21
RightArm=Character["Right Arm"]
22
RightLeg=Character["Right Leg"]
23
LS=Torso["Left Shoulder"]
24
LH=Torso["Left Hip"]
25
RS=Torso["Right Shoulder"]
26
RH=Torso["Right Hip"]
27
Face = Head.face
28
Neck=Torso.Neck
29
it=Instance.new
30
attacktype=1
31
attacktype2=1
32
vt=Vector3.new
33
it=Instance.new
34
cf=CFrame.new
35
cn=CFrame.new
36
euler=CFrame.fromEulerAnglesXYZ
37
angles=CFrame.Angles
38
combo = 0
39
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
40
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
41
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
42
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
43
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
44
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
45
RootPart=Character.HumanoidRootPart
46
RootJoint=RootPart.RootJoint
47
RootCF=euler(-1.57,0,3.14)
48
attack = false
49
attackdebounce = false
50
trispeed=.2
51
attackmode='none'
52
local idle=0
53
local Anim="Idle"
54
stance = false
55
local ff = 2
56
noleg = false
57
evadecooldown = false
58
Humanoid.Animator.Parent = nil
59
local equip = false
60
local Effects = {}
61
 attackspeed = 0.14 
62
 df = false
63
 Swing = 1
64
local sine = 0
65
local change = 1
66
local val = 0
67
local speed = 0
68
local rs = game:GetService("RunService").RenderStepped
69
cam = workspace.CurrentCamera
70
local RbxUtility = LoadLibrary("RbxUtility")
71
local Create = RbxUtility.Create
72
deb = game:GetService("Debris")
73
Face:Destroy()
74
75
--game.Lighting.TimeOfDay = 210
76
77
		        local eye1 = Instance.new("Part")
78
eye1.Parent = Character
79
eye1.Size = Vector3.new(0.2,0.2,0.2)
80
eye1.Archivable = true
81
eye1.Transparency = 0
82
eye1.CanCollide = false
83
eye1.Material = "Neon"
84
eye1.Color = Color3.fromRGB(48,0,211)
85
local eye1mesh = Instance.new("SpecialMesh",eye1)
86
eye1mesh.MeshType = "Sphere"
87
eye1mesh.Scale = Vector3.new(0.66,1.22,0.66)
88
ko2 = eye1mesh.Scale
89
local eye1weld = Instance.new("Weld")
90
eye1weld.Parent = eye1
91
eye1weld.Part0 = Head
92
eye1weld.Part1 = eye1
93
eye1weld.C0 = CFrame.new(.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
94
		eye1weld.Part0 = Head
95
 
96
97
98
99
local eye2 = Instance.new("Part")
100
eye2.Parent = Character
101
eye2.Size = Vector3.new(0.2,0.2,0.2)
102
eye2.Archivable = true
103
eye2.Transparency = 0
104
eye2.CanCollide = false
105
eye2.Material = "Neon"
106
eye2.Color = Color3.fromRGB(48,0,211)
107
local eye2mesh = Instance.new("SpecialMesh",eye2)
108
eye2mesh.MeshType = "Sphere"
109
eye2mesh.Scale = Vector3.new(0.66,1.22,0.66)
110
local eye2weld = Instance.new("Weld")
111
eye2weld.Parent = eye2
112
eye2weld.Part0 = Head
113
eye2weld.Part1 = eye2
114
eye2weld.C0 = CFrame.new(-.13,.19,-.55)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
115
		eye2weld.Part0 = Head
116
		
117
118
119
120
		music = Instance.new("Sound",PlayerGui)
121
		music.Volume = 1
122
		music.TimePosition = 0
123
		music.Pitch = 1
124
		music.SoundId = "rbxassetid://1849245030"
125
		music.Looped = true
126
		music:Play()
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
		
147
				       so = function(id,par,vol,pit)
148
		coroutine.resume(coroutine.create(function()
149
		local sou = Instance.new("Sound",par or workspace)
150
		sou.Volume=vol
151
		sou.Pitch=pit or 1
152
		sou.SoundId=id
153
		sou:play()
154
		game:GetService("Debris"):AddItem(sou,8)
155
		end))
156
		end
157
		
158
		--save shoulders
159
		RSH, LSH=nil, nil
160
		--welds
161
		RW, LW=Instance.new("Weld"), Instance.new("Weld")
162
		RW.Name="Right Shoulder" LW.Name="Left Shoulder"
163
		LH=Torso["Left Hip"]
164
		RH=Torso["Right Hip"]
165
		TorsoColor=Torso.BrickColor
166
		function NoOutline(Part)
167
		Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
168
		end
169
		player=Player
170
		ch=Character
171
		RSH=ch.Torso["Right Shoulder"]
172
		LSH=ch.Torso["Left Shoulder"]
173
		--
174
		RSH.Parent=nil
175
		LSH.Parent=nil
176
		--
177
		RW.Name="Right Shoulder"
178
		RW.Part0=ch.Torso
179
		RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
180
		RW.C1=cf(0, 0.5, 0)
181
		RW.Part1=ch["Right Arm"]
182
		RW.Parent=ch.Torso
183
		--
184
		LW.Name="Left Shoulder"
185
		LW.Part0=ch.Torso
186
		LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
187
		LW.C1=cf(0, 0.5, 0)
188
		LW.Part1=ch["Left Arm"]
189
		LW.Parent=ch.Torso
190
		 
191
		 
192
		newWeld = function(wp0, wp1, wc0x, wc0y, wc0z)
193
		    local wld = Instance.new("Weld", wp1)
194
		    wld.Part0 = wp0
195
		    wld.Part1 = wp1
196
		    wld.C0 = CFrame.new(wc0x, wc0y, wc0z)
197
		end
198
		 local rs = game:GetService("RunService").RenderStepped
199
		 
200
		newWeld(RootPart, Torso, 0, -1, 0)
201
		Torso.Weld.C1 = CFrame.new(0, -1, 0)
202
		newWeld(Torso, LeftLeg, -0.5, -1, 0)
203
		LeftLeg.Weld.C1 = CFrame.new(0, 1, 0)
204
		newWeld(Torso, RightLeg, 0.5, -1, 0)
205
		RightLeg.Weld.C1 = CFrame.new(0, 1, 0)
206
		
207
		    Player=game:GetService('Players').LocalPlayer
208
		    Character=Player.Character
209
		    mouse=Player:GetMouse()
210
		    m=Instance.new('Model',Character)
211
		 
212
		 
213
		    local function weldBetween(a, b)
214
		        local weldd = Instance.new("ManualWeld")
215
		        weldd.Part0 = a
216
		        weldd.Part1 = b
217
		        weldd.C0 = CFrame.new()
218
		        weldd.C1 = b.CFrame:inverse() * a.CFrame
219
		        weldd.Parent = a
220
		        return weldd
221
		    end
222
		   
223
		    ArtificialHB = Instance.new("BindableEvent", script)
224
		ArtificialHB.Name = "Heartbeat"
225
		 
226
		script:WaitForChild("Heartbeat")
227
		 
228
		frame = 1 / 80
229
		tf = 0
230
		allowframeloss = false
231
		tossremainder = false
232
		lastframe = tick()
233
		script.Heartbeat:Fire()
234
		game:GetService("RunService").Heartbeat:connect(function(s, p)
235
		    tf = tf + s
236
		    if tf >= frame then
237
		        if allowframeloss then
238
		            script.Heartbeat:Fire()
239
		            lastframe = tick()
240
		        else
241
		            for i = 1, math.floor(tf / frame) do
242
		                script.Heartbeat:Fire()
243
		            end
244
		            lastframe = tick()
245
		        end
246
		        if tossremainder then
247
		            tf = 0
248
		        else
249
		            tf = tf - frame * math.floor(tf / frame)
250
		        end
251
		    end
252
		end)
253
		 
254
--[[]
255
		function swait(num)
256
		    if num == 0 or num == nil then
257
		        ArtificialHB.Event:wait()
258
		    else
259
		        for i = 0, num do
260
		            ArtificialHB.Event:wait()
261
		        end
262
		    end
263
	end
264
265
	]]
266
	
267
268
	function swait(num)
269
	if num == 0 or num == nil then
270
		game:service("RunService").Stepped:wait()
271
	else
272
		for i = 0, num do
273
			game:service("RunService").Stepped:wait()
274
		end
275
	end
276
end
277
278
279
280
281
282
283
284
285
		function RemoveOutlines(part)
286
		    part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
287
		end
288
		   
289
		
290
		part = function(formfactor, parent, reflectance, transparency, brickcolor, name, size)
291
		  local fp = it("Part")
292
		  fp.formFactor = formfactor
293
		  fp.Parent = parent
294
		  fp.Reflectance = reflectance
295
		  fp.Transparency = transparency
296
		  fp.CanCollide = false
297
		  fp.Locked = true
298
		  fp.BrickColor = brickcolor
299
		  fp.Name = name
300
		  fp.Size = size
301
		  fp.Position = Torso.Position
302
		  NoOutline(fp)
303
		  if fp.BrickColor == BrickColor.new("Dark indigo") then
304
		    fp.Material = "Neon"
305
		  else
306
		    if fp.BrickColor == BrickColor.new("Really black") then
307
		      fp.BrickColor = BrickColor.new("Really black")
308
		      fp.Material = "Metal"
309
		    else
310
		      fp.Material = "Neon"
311
		    end
312
		  end
313
		  fp:BreakJoints()
314
		  return fp
315
		end
316
		
317
mesh = function(Mesh, part, meshtype, meshid, offset, scale)
318
  local mesh = it(Mesh)
319
  mesh.Parent = part
320
  if Mesh == "SpecialMesh" then
321
    mesh.MeshType = meshtype
322
    if meshid ~= "nil" then
323
      mesh.MeshId = "http://www.roblox.com/asset/?id=" .. meshid
324
    end
325
  end
326
  mesh.Offset = offset
327
  mesh.Scale = scale
328
  return mesh
329
end
330
		weld = function(parent, part0, part1, c0)
331
		  local weld = it("Weld")
332
		  weld.Parent = parent
333
		  weld.Part0 = part0
334
		  weld.Part1 = part1
335
		  weld.C0 = c0
336
		  return weld
337
		end
338
		
339
		F1 = Instance.new("Folder", Character)
340
		F1.Name = "Effects Folder"
341
		F2 = Instance.new("Folder", F1)
342
		F2.Name = "Effects"
343
		Triangle = function(a, b, c)
344
		end
345
		
346
MagicBlock = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type, parent)
347
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
348
  prt.Anchored = true
349
  prt.CFrame = cframe
350
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
351
  game:GetService("Debris"):AddItem(prt, 10)
352
  if Type == 1 or Type == nil then
353
    table.insert(Effects, {prt, "Block1", delay, x3, y3, z3, msh})
354
  else
355
    if Type == 2 then
356
      table.insert(Effects, {prt, "Block2", delay, x3, y3, z3, msh})
357
    else
358
      if Type == 3 then
359
        table.insert(Effects, {prt, "Block3", delay, x3, y3, z3, msh, prt.CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0})
360
      end
361
    end
362
  end
363
end
364
MagicSkull = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
365
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
366
  prt.Anchored = true
367
  prt.CFrame = cframe
368
  msh = mesh("SpecialMesh", prt, "FileMesh", "14028428", vt(0, 0, 0), vt(x1, y1, z1))
369
  game:GetService("Debris"):AddItem(prt, 10)
370
  table.insert(Effects, {prt, "Skull", delay, x3, y3, z3, msh, goe})
371
end
372
MagicCircle = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
373
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
374
  prt.Anchored = true
375
  prt.CFrame = cframe
376
  local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
377
  game:GetService("Debris"):AddItem(prt, 10)
378
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
379
end
380
MagicRing = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
381
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt(0.5, 0.5, 0.5))
382
  prt.Anchored = true
383
  prt.CFrame = cframe * cf(x2, y2, z2)
384
  local msh = mesh("SpecialMesh", prt, "FileMesh", "3270017", vt(0, 0, 0), vt(x1, y1, z1))
385
  game:GetService("Debris"):AddItem(prt, 10)
386
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
387
end
388
MagicCircle2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, push)
389
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
390
  prt.Anchored = true
391
  prt.CFrame = cframe
392
  local msh = mesh("SpecialMesh", prt, "Sphere", "nil", vt(0, 0, 0), vt(x1, y1, z1))
393
  game:GetService("Debris"):AddItem(prt, 10)
394
  table.insert(Effects, {prt, "Blood", delay, x3, y3, z3, msh, push})
395
end
396
MagicCylinder = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
397
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
398
  prt.Anchored = true
399
  prt.CFrame = cframe
400
  local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
401
  game:GetService("Debris"):AddItem(prt, 10)
402
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
403
end
404
MagicCylinder2 = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, goe)
405
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
406
  prt.Anchored = true
407
  prt.CFrame = cframe
408
  local msh = mesh("CylinderMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
409
  game:GetService("Debris"):AddItem(prt, 10)
410
  table.insert(Effects, {prt, "Cylinder2", delay, x3, y3, z3, msh, goe})
411
end
412
MagicHead = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
413
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
414
  prt.Anchored = true
415
  prt.CFrame = cframe
416
  local msh = mesh("SpecialMesh", prt, "Head", "nil", vt(0, 0, 0), vt(x1, y1, z1))
417
  game:GetService("Debris"):AddItem(prt, 10)
418
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
419
end
420
ClangEffect = function(brickcolor, cframe, duration, decrease, size, power)
421
  local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
422
  prt.Anchored = true
423
  prt.CFrame = cframe
424
  local msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(5, 5, 5))
425
  game:GetService("Debris"):AddItem(prt, 10)
426
  table.insert(Effects, {prt, "CylinderClang", duration, decrease, size, power, prt.CFrame, nil})
427
end
428
MagicWave = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
429
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
430
  prt.Anchored = true
431
  prt.CFrame = cframe
432
  local msh = mesh("SpecialMesh", prt, "FileMesh", "20329976", vt(0, 0, 0), vt(x1, y1, z1))
433
  game:GetService("Debris"):AddItem(prt, 10)
434
  table.insert(Effects, {prt, "Cylinder", delay, x3, y3, z3, msh})
435
end
436
MagicFire = function(brickcolor, cframe, x1, y1, z1, delay)
437
  local prt = part(3, workspace, 0, 0, brickcolor, "Effect", vt())
438
  prt.Anchored = true
439
  prt.CFrame = cframe
440
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
441
  game:GetService("Debris"):AddItem(prt, 10)
442
  table.insert(Effects, {prt, "Fire", delay, 1, 1, 1, msh})
443
end
444
MagicFireWave = function(brickcolor, cframe, x1, y1, z1)
445
  local prt = part(3, workspace, 0, 1, brickcolor, "Effect", vt())
446
  prt.Anchored = true
447
  prt.CFrame = cframe
448
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(x1, y1, z1))
449
  d = Instance.new("Decal")
450
  d.Parent = prt
451
  d.Texture = "http://www.roblox.com/asset/?id=26356434"
452
  d.Face = "Top"
453
  d = Instance.new("Decal")
454
  d.Parent = prt
455
  d.Texture = "http://www.roblox.com/asset/?id=26356434"
456
  d.Face = "Bottom"
457
  game:GetService("Debris"):AddItem(prt, 10)
458
  table.insert(Effects, {prt, "FireWave", 1, 30, math.random(400, 600) / 100, msh})
459
end
460
ElecEffect = function(cff, x, y, z)
461
  local prt = part(3, workspace, 0, 0, BrickColor.new("White"), "Part", vt(1, 1, 1))
462
  prt.Anchored = true
463
  prt.CFrame = cff * cf(math.random(-x, x), math.random(-y, y), math.random(-z, z))
464
  prt.CFrame = cf(prt.Position)
465
  game:GetService("Debris"):AddItem(prt, 10)
466
  xval = math.random() / 3
467
  yval = math.random() / 3
468
  zval = math.random() / 3
469
  msh = mesh("BlockMesh", prt, "", "", vt(0, 0, 0), vt(xval, yval, zval))
470
  Effects[#Effects + 1] = {prt, "Elec", 0.2, x, y, z, xval, yval, zval, msh}
471
end
472
		
473
		function FindNearestTorso(Position, Distance, SinglePlayer)
474
			if SinglePlayer then
475
				return (SinglePlayer.Torso.CFrame.p - Position).magnitude < Distance
476
			end
477
			local List = {}
478
			for i, v in pairs(workspace:GetChildren()) do
479
				if v:IsA("Model") then
480
					if v:findFirstChild("Torso") then
481
						if v ~= Character then
482
							if (v.Torso.Position - Position).magnitude <= Distance then
483
								table.insert(List, v)
484
							end 
485
						end 
486
					end 
487
				end 
488
			end
489
			return List
490
		end
491
		
492
		
493
		function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
494
	local Part = Create("Part"){
495
		Parent = Parent,
496
		Reflectance = Reflectance,
497
		Transparency = Transparency,
498
		CanCollide = false,
499
		Locked = true,
500
		BrickColor = BrickColor.new(tostring(BColor)),
501
		Name = Name,
502
		Size = Size,
503
		Material = Material,
504
	}
505
	RemoveOutlines(Part)
506
	return Part
507
end
508
	
509
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
510
	local Msh = Create(Mesh){
511
		Parent = Part,
512
		Offset = OffSet,
513
		Scale = Scale,
514
	}
515
	if Mesh == "SpecialMesh" then
516
		Msh.MeshType = MeshType
517
		Msh.MeshId = MeshId
518
	end
519
	return Msh
520
end
521
		
522
		
523
		
524
function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
525
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
526
	prt.Anchored = true
527
	prt.CFrame = cframe
528
	local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
529
	game:GetService("Debris"):AddItem(prt, 10)
530
	if Type == 1 or Type == nil then
531
		table.insert(Effects, {
532
			prt,
533
			"Block1",
534
			delay,
535
			x3,
536
			y3,
537
			z3,
538
			msh
539
		})
540
	elseif Type == 2 then
541
		table.insert(Effects, {
542
			prt,
543
			"Block2",
544
			delay,
545
			x3,
546
			y3,
547
			z3,
548
			msh
549
		})
550
	end
551
end
552
553
function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
554
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
555
	prt.Anchored = true
556
	prt.CFrame = cframe
557
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
558
	game:GetService("Debris"):AddItem(prt, 10)
559
	table.insert(Effects, {
560
		prt,
561
		"Cylinder",
562
		delay,
563
		x3,
564
		y3,
565
		z3,
566
		msh
567
	})
568
end
569
570
function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
571
local prt=CreatePart(workspace,"Neon",0,0,brickcolor,"Effect",vt(.5,.5,.5))--part(3,workspace,"SmoothPlastic",0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
572
prt.Anchored=true
573
prt.CFrame=cframe
574
msh=CreateMesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=3270017",vt(0,0,0),vt(x1,y1,z1))
575
game:GetService("Debris"):AddItem(prt,2)
576
coroutine.resume(coroutine.create(function(Part,Mesh,num) 
577
for i=0,1,delay do
578
swait()
579
Part.Transparency=i
580
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
581
end
582
Part.Parent=nil
583
end),prt,msh,(math.random(0,1)+math.random())/5)
584
end
585
586
function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
587
	local prt = CreatePart(workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
588
	prt.Anchored = true
589
	prt.CFrame = cframe
590
	local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
591
	game:GetService("Debris"):AddItem(prt, 10)
592
	table.insert(Effects, {
593
		prt,
594
		"Cylinder",
595
		delay,
596
		x3,
597
		y3,
598
		z3,
599
		msh
600
	})
601
end
602
603
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
604
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
605
	prt.Anchored = true
606
	prt.CFrame = cframe
607
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://20329976", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
608
	game:GetService("Debris"):AddItem(prt, 10)
609
	table.insert(Effects, {
610
		prt,
611
		"Cylinder",
612
		delay,
613
		x3,
614
		y3,
615
		z3,
616
		msh
617
	})
618
end
619
620
function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
621
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
622
	prt.Anchored = true
623
	prt.CFrame = cframe
624
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
625
	game:GetService("Debris"):AddItem(prt, 10)
626
	table.insert(Effects, {
627
		prt,
628
		"Cylinder",
629
		delay,
630
		x3,
631
		y3,
632
		z3,
633
		msh
634
	})
635
end
636
637
638
function MoonEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
639
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
640
	prt.Anchored = true
641
	prt.CFrame = cframe
642
	local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "rbxassetid://259403370", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
643
	game:GetService("Debris"):AddItem(prt, 10)
644
	table.insert(Effects, {
645
		prt,
646
		"Cylinder",
647
		delay,
648
		x3,
649
		y3,
650
		z3,
651
		msh
652
	})
653
end
654
655
function HeadEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
656
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
657
	prt.Anchored = true
658
	prt.CFrame = cframe
659
	local msh = CreateMesh("SpecialMesh", prt, "Head", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
660
	game:GetService("Debris"):AddItem(prt, 10)
661
	table.insert(Effects, {
662
		prt,
663
		"Cylinder",
664
		delay,
665
		x3,
666
		y3,
667
		z3,
668
		msh
669
	})
670
end
671
672
function BreakEffect(brickcolor, cframe, x1, y1, z1)
673
	local prt = CreatePart(workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
674
	prt.Anchored = true
675
	prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
676
	local msh = CreateMesh("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
677
	local num = math.random(10, 50) / 1000
678
	game:GetService("Debris"):AddItem(prt, 10)
679
	table.insert(Effects, {
680
		prt,
681
		"Shatter",
682
		num,
683
		prt.CFrame,
684
		math.random() - math.random(),
685
		0,
686
		math.random(50, 100) / 100
687
	})
688
end
689
		
690
function FindNearestHead(Position, Distance, SinglePlayer)
691
	if SinglePlayer then
692
		return Distance > (SinglePlayer.Torso.CFrame.p - Position).magnitude
693
	end
694
	local List = {}
695
	for i, v in pairs(workspace:GetChildren()) do
696
		if v:IsA("Model") and v:findFirstChild("Head") and v ~= Character and Distance >= (v.Head.Position - Position).magnitude then
697
			table.insert(List, v)
698
		end
699
	end
700
	return List
701
end
702
		
703
		
704
		
705
		function clerp(a,b,t)
706
		local qa = {QuaternionFromCFrame(a)}
707
		local qb = {QuaternionFromCFrame(b)}
708
		local ax, ay, az = a.x, a.y, a.z
709
		local bx, by, bz = b.x, b.y, b.z
710
		local _t = 1-t
711
		return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
712
		end
713
		 
714
		function QuaternionFromCFrame(cf)
715
		local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
716
		local trace = m00 + m11 + m22
717
		if trace > 0 then
718
		local s = math.sqrt(1 + trace)
719
		local recip = 0.5/s
720
		return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
721
		else
722
		local i = 0
723
		if m11 > m00 then
724
		i = 1
725
		end
726
		if m22 > (i == 0 and m00 or m11) then
727
		i = 2
728
		end
729
		if i == 0 then
730
		local s = math.sqrt(m00-m11-m22+1)
731
		local recip = 0.5/s
732
		return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
733
		elseif i == 1 then
734
		local s = math.sqrt(m11-m22-m00+1)
735
		local recip = 0.5/s
736
		return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
737
		elseif i == 2 then
738
		local s = math.sqrt(m22-m00-m11+1)
739
		local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
740
		end
741
		end
742
	end
743
			local lerp = function(a, b, t)
744
	return a * (1 - t) + b * t
745
end
746
	
747
		
748
749
		
750
		function QuaternionToCFrame(px, py, pz, x, y, z, w)
751
		local xs, ys, zs = x + x, y + y, z + z
752
		local wx, wy, wz = w*xs, w*ys, w*zs
753
		local xx = x*xs
754
		local xy = x*ys
755
		local xz = x*zs
756
		local yy = y*ys
757
		local yz = y*zs
758
		local zz = z*zs
759
		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))
760
		end
761
		function QuaternionSlerp(a, b, t)
762
		local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
763
		local startInterp, finishInterp;
764
		if cosTheta >= 0.0001 then
765
		if (1 - cosTheta) > 0.0001 then
766
		local theta = math.acos(cosTheta)
767
		local invSinTheta = 1/math.sin(theta)
768
		startInterp = math.sin((1-t)*theta)*invSinTheta
769
		finishInterp = math.sin(t*theta)*invSinTheta  
770
		else
771
		startInterp = 1-t
772
		finishInterp = t
773
		end
774
		else
775
		if (1+cosTheta) > 0.0001 then
776
		local theta = math.acos(-cosTheta)
777
		local invSinTheta = 1/math.sin(theta)
778
		startInterp = math.sin((t-1)*theta)*invSinTheta
779
		finishInterp = math.sin(t*theta)*invSinTheta
780
		else
781
		startInterp = t-1
782
		finishInterp = t
783
		end
784
		end
785
		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
786
		end
787
		 
788
		function weld5(part0, part1, c0, c1)
789
		    weeld=Instance.new("Weld", part0)
790
		    weeld.Part0=part0
791
		    weeld.Part1=part1
792
		    weeld.C0=c0
793
		    weeld.C1=c1
794
		    return weeld
795
		end
796
		 
797
		--Example: Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.4)
798
		 
799
		function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
800
		return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
801
	end
802
	
803
	
804
	function Bullets(thinggy,place,size,color,velocity,damage,bounce,collide,rotation)
805
    swait()
806
	   local Bullet = Instance.new("Part",Workspace)
807
	Bullet.Locked = true
808
	Bullet.Name = "Bullet"
809
	Bullet.Anchored = bounce
810
	Bullet.CanCollide = collide
811
	Bullet.Transparency = 0.24
812
	Bullet.Reflectance = 0
813
	Bullet.BottomSurface = 0
814
	Bullet.TopSurface = 0
815
	Bullet.Shape = 0
816
	Bullet.BrickColor = BrickColor.new(color)
817
	Bullet.Size = Vector3.new(size,size,size)
818
	Bullet.Material = "Neon"
819
	Bullet.Orientation = vt(-90,0,0)
820
	local Bulletthing = Instance.new("SpecialMesh",Bullet)
821
	Bulletthing.MeshType = "Sphere"
822
		local Bulletforce = Instance.new("BodyForce")
823
	Bulletforce.force = Vector3.new(0,Bullet:GetMass()*166.2,0)
824
	Bulletforce.Parent = Bullet
825
	Bullet.CFrame = thinggy.CFrame*CFrame.new(math.random(-place,place),math.random(-place,place),math.random(-place,place))
826
	local bv = Instance.new("BodyVelocity",Bullet)
827
	bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
828
    Bullet.CFrame = CFrame.new(Bullet.Position,mouse.Hit.p)
829
		bv.velocity = Bullet.CFrame.lookVector*velocity
830
831
			
832
			Bullet.Touched:connect(function(hit)
833
834
	if (hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false) then
835
	    	    local orbexplode = Instance.new("Sound", Bullet)
836
    orbexplode.Volume = 4
837
    orbexplode.PlayOnRemove = true
838
    orbexplode.SoundId = "http://roblox.com/asset/?id=142070127"
839
    orbexplode.Pitch = 1
840
    orbexplode:Destroy()
841
    deb:AddItem(orbexplode, 4)
842
	Bullet.Anchored = true
843
	Bullet.Transparency = 1
844
	deb:AddItem(Bullet, 4)
845
	local Explode = Instance.new("Explosion") 
846
	Explode.Position = Bullet.Position
847
	Explode.Parent = Workspace 
848
	Explode.BlastPressure = 0
849
	Explode.BlastRadius = Bullet.Size.X	*5.6
850
	Explode.Visible = false
851
852
	Explode.Hit:connect(function(hit)
853
if hit.Parent:FindFirstChildOfClass("Humanoid")~=nil and hit.Parent ~= Character then
854
    		    if hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then
855
		        hit.Parent:FindFirstChildOfClass("Humanoid").MaxHealth = 100
856
		        hit.Parent:FindFirstChildOfClass("Humanoid").Health = 100
857
		        end
858
if attackdebounce == false then
859
    attackdebounce = true
860
 hit.Parent:FindFirstChildOfClass("Humanoid"):TakeDamage(math.random(damage/2,damage))
861
 wait(0.02)
862
attackdebounce = false
863
end
864
end
865
end)
866
coroutine.resume(coroutine.create(function()
867
868
	    MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 10, 10, 10, 50, 50, 50, 0.065)
869
	    MagicCircle(BrickColor.new("Royal purple"), cf(Bullet.Position), 0, 1, 0, 15, 0, 15, 0.025)
870
	    MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025)
871
    MagicRing(BrickColor.new("Royal purple"), cf(Bullet.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025)
872
	        end))
873
		end
874
	end)
875
coroutine.resume(coroutine.create(function()
876
    for i = 0,16,0.1 do
877
        swait()
878
end
879
if Bullet.Anchored == false then
880
    Bullet:Destroy()
881
    end
882
end))
883
884
		end
885
	
886
	
887
	
888
	
889
	
890
	local bl = Instance.new("BlurEffect",cam)
891
bl.Size = 0
892
 
893
 
894
function Dash()
895
evadecooldown = true
896
attack = true
897
so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1)
898
 
899
        so("http://www.roblox.com/asset/?id=231917788", Torso, 1, 1)
900
 
901
 
902
903
 
904
 
905
 
906
 
907
 
908
 
909
 
910
bl.Size = 84
911
 
912
 
913
  	        MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 5, 800, 0, 0, 0, 0.05)
914
	        MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 800, 10, 800, -40, 0, -40, 0.025)
915
	        MagicCircle(BrickColor.new("White"), cf(RootPart.Position), 800, 10, 800, -42, 1000, -42, 0.05)
916
	        MagicCircle(BrickColor.new("Royal purple"), cf(RootPart.Position), 1000, 10, 1000, -62, 1200, -62, 0.05)
917
 
918
 RootPart.CFrame = RootPart.CFrame*CFrame.new(0,0,-96)
919
 RootPart.Velocity = RootPart.CFrame.lookVector *280
920
 
921
	for i, v in pairs(FindNearestHead(Torso.CFrame.p, 52.5)) do
922
		if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then
923
		    
924
so("http://www.roblox.com/asset/?id=138186576", v.Torso, 10, 1)
925
			v:FindFirstChild("Humanoid"):TakeDamage(math.random(18,36))
926
			SphereEffect(BrickColor.new("Royal purple"), cf(v.Torso.Position) , 1, 1, 1, 6.8, 6.8, 6.8, 0.04)
927
				        MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
928
	        MagicBlock(BrickColor.new("Royal purple"), cf(v.Torso.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
929
	        MagicBlock(BrickColor.new("White"), cf(v.Torso.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
930
	        MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 150, 2, 150, 0.05)
931
	        MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 100, 4, 100, 0.05)
932
	        MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 800, 2, 800, 50, 6, 50, 0.05)
933
	        MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 100, 100, 100, 0.05)
934
	        MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 200, 200, 200, 0.05)
935
	        MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 0, 0, 0, 300, 300, 300, 0.05)
936
	        MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 0, 0, 0, 400, 400, 400, 0.05)
937
	        MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 800, 2, 800, 4, 350, 4, 0.005)
938
	        MagicCircle(BrickColor.new("Royal purple"), cf(v.Torso.Position), 600, 2, 600, 4, 300, 4, 0.005)
939
	        MagicCircle(BrickColor.new("White"), cf(v.Torso.Position), 400, 2, 400, 4, 250, 4, 0.005)
940
		end
941
end
942
943
for i = 0,1,0.064 do
944
swait()
945
cam.FieldOfView = lerp(cam.FieldOfView, 110, 0.5)
946
Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,12),0.24)
947
RootPart.Velocity = RootPart.CFrame.lookVector * 175
948
bl.Size = bl.Size - 8.5
949
SphereEffect(BrickColor.new("Royal purple"),RootPart.CFrame*angles(math.random(-50,50),math.random(-50,50),math.random(-50,50)),1,5,1,5.5,10,5.5,0.03)
950
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, -12) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.4)
951
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.4)
952
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(30)),.4)
953
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.4)
954
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1, -0.4) * CFrame.Angles(math.rad(-40), math.rad(0), math.rad(0)), 0.8)
955
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -0.7, -0.7) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)), 0.8)
956
957
     
958
 
959
end
960
 
961
 
962
 
963
attack = false
964
attackdebounce = false
965
Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.1)
966
wait(.2)
967
bl.Size = 0
968
evadecooldown = false
969
970
 
971
 
972
end
973
		
974
		
975
	
976
	
977
	
978
	
979
	
980
	
981
	
982
	
983
	
984
	
985
	local shooting = false
986
 
987
 
988
 
989
function shoot()
990
    attack = true
991
shooting = true
992
    
993
    
994
                    local thing = Instance.new("BodyGyro",RootPart)
995
thing.D = 50
996
thing.P = 6000
997
thing.MaxTorque = vt(100000,math.huge,0)
998
thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
999
      for i = 0,2,0.16 do
1000
        swait()
1001
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(90), math.rad(0)), 0.2)
1002
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-80)),.2)
1003
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
1004
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)),.2)
1005
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.73, -1.0, 0) * CFrame.Angles(math.rad(-25), math.rad(-66), math.rad(-25)), 0.1)
1006
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.6, -1.0, 0)  * CFrame.Angles(math.rad(0), math.rad(-83), math.rad(0)), 0.1)
1007
end
1008
1009
1010
while shooting == true do
1011
        swait(1)
1012
	
1013
	RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(90)),.2)
1014
        so("http://roblox.com/asset/?id=200633327",Torso,2,1)
1015
        thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1016
            Torso.Velocity =  RootPart.CFrame.lookVector * -13
1017
    Bullets(RightArm,0,1.5,"Royal purple",700,25.5,false,false)
1018
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(80), math.rad(40), math.rad(80)),.2)
1019
            coroutine.resume(coroutine.create(function()
1020
    for i = 0, 0.5, 0.1 do
1021
        swait()
1022
Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24)
1023
end
1024
end))
1025
end
1026
1027
attack = false
1028
thing:Destroy()
1029
    end
1030
1031
	
1032
	
1033
	function dshoot()
1034
    attack = true
1035
shooting = true
1036
    
1037
    
1038
                    local thing = Instance.new("BodyGyro",RootPart)
1039
thing.D = 50
1040
thing.P = 6000
1041
thing.MaxTorque = vt(100000,math.huge,0)
1042
thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1043
so("http://roblox.com/asset/?id=1268159756",Torso,5,1)
1044
      for i = 0,3,0.16 do
1045
        swait()
1046
        MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 1, -0.7, -0.7, 0, 0.07)
1047
        MagicCircle(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 9, 9, 9, -0.7, -0.7, -0.7, 0.07)
1048
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
1049
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.2)
1050
RW.C0 = clerp(RW.C0, CFrame.new(1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(-20)),.2)
1051
LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.5, -0.4) * angles(math.rad(90), math.rad(0), math.rad(20)),.2)
1052
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.1)
1053
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.1)
1054
end
1055
1056
1057
1058
while shooting == true do
1059
        swait(0.5)
1060
        coroutine.resume(coroutine.create(function()
1061
        MagicRing(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,0,-8), 3, 3, 1, 10.2, 10.2, 0, 0.07)
1062
        end))
1063
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(25), math.rad(0), math.rad(-25)), 0.3)
1064
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(25), math.rad(0), math.rad(25)), 0.3)
1065
        so("http://roblox.com/asset/?id=200633327",Torso,2,1)
1066
        thing.CFrame = CFrame.new(RootPart.Position,mouse.Hit.p)
1067
            Torso.Velocity =  RootPart.CFrame.lookVector * -63
1068
            
1069
     
1070
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(-30), math.rad(0)), 0.4)
1071
    Bullets(RightArm,0,2.5,"Royal purple",1200,45.5,false,false)
1072
            coroutine.resume(coroutine.create(function()
1073
    for i = 0, 0.5, 0.1 do
1074
        swait()
1075
Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44)
1076
end
1077
end))
1078
       
1079
    Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0), math.rad(30), math.rad(0)), 0.2)
1080
    Bullets(LeftArm,0,2.5,"Royal purple",1200,45.5,false,false)
1081
            coroutine.resume(coroutine.create(function()
1082
    for i = 0, 0.5, 0.1 do
1083
        swait()
1084
Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8),math.random(-0.55*1.8,0.55*1.8)),0.24)
1085
end
1086
end))
1087
       
1088
end
1089
1090
attack = false
1091
thing:Destroy()
1092
    end
1093
1094
	
1095
	
1096
	
1097
	
1098
	function finaldev()
1099
	    attack = true
1100
	    so("http://roblox.com/asset/?id=815032096",Head,6,0.84)
1101
	    so("http://roblox.com/asset/?id=200633529",Workspace,3,0.84)
1102
1103
	    for i = 0,14,0.1 do
1104
        swait()
1105
            WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09) 
1106
            WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05) 
1107
        Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8),math.random(-0.25*2.8,0.25*2.8)),0.16)
1108
        Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -2, 0) * CFrame.Angles(math.rad(-16), math.rad(0), math.rad(0)), 0.15)
1109
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(14),math.rad(0),math.rad(0)),.15)
1110
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(87)),.15)
1111
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, -0) * angles(math.rad(0), math.rad(0), math.rad(-87)),.15)
1112
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, 0, -0.5) * CFrame.Angles(math.rad(16), math.rad(0), math.rad(0)), 0.15)
1113
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.14, 0.2) * CFrame.Angles(math.rad(-17), math.rad(0), math.rad(0)), 0.15)
1114
       
1115
end
1116
so("http://roblox.com/asset/?id=197161452",Torso,7,1)
1117
	    for i = 0,6,0.1 do
1118
swait()
1119
 WaveEffect(BrickColor.new("White"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 7, 0.8, 7, 0.09) 
1120
            WaveEffect(BrickColor.new("Royal purple"), RootPart.CFrame*CFrame.new(0,-1,0)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 5, 0.8, 5, 0.05) 
1121
        Head.Velocity = Vector3.new(0,320,0)
1122
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(0+260*i), math.rad(0), math.rad(0)), 0.6)
1123
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(70),math.rad(0),math.rad(0)),.1)
1124
RW.C0 = clerp(RW.C0, CFrame.new(.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-90)), 0.1)
1125
LW.C0 = clerp(LW.C0, CFrame.new(-.7, -0.22, -0.5) * angles(math.rad(90), math.rad(0), math.rad(90)), 0.1)
1126
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
1127
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.34, -0.7) * CFrame.Angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
1128
end
1129
1130
1131
	local bel = part(3, Character, 0, 1, BrickColor.new("Royal purple"), "Ball", vt(0.126,0.126,0.126))
1132
	 local belmsh = mesh("SpecialMesh", bel, "Sphere", "nil", vt(0, 0, 0), vt(10, 10, 10))
1133
1134
1135
1136
    local Charge = Instance.new("Sound", bel)
1137
    Charge.Volume = 10
1138
    Charge.SoundId = "http://roblox.com/asset/?id=244578827"
1139
    Charge.Pitch = 0.8
1140
    Charge.PlayOnRemove = true
1141
    Charge:Play()
1142
    Charge:Destroy()
1143
bel.Anchored = true
1144
	    for i = 0,47,0.1 do
1145
        swait()
1146
        	          bel.CFrame = RootPart.CFrame * cf(0, 90*i/3.5, 0)
1147
        bel.Transparency = bel.Transparency - 0.0034
1148
        belmsh.Scale = belmsh.Scale + Vector3.new(24,24,24)
1149
        Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0+1*i,0+1*i),0.15)
1150
        cam.FieldOfView = lerp(cam.FieldOfView, 40+1*i, 0.15)
1151
Head.Velocity = Vector3.new(0,2.4+0.8*i,0)
1152
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2)
1153
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-13),math.rad(0),math.rad(0)),.2)
1154
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2)
1155
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2)
1156
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1)
1157
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1)
1158
end
1159
so("http://roblox.com/asset/?id=160212892",Head,10,0.84)
1160
	    for i = 0,4,0.1 do
1161
        swait()
1162
        Head.Velocity = Vector3.new(0,2.4,0)
1163
                Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
1164
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(35), math.rad(0), math.rad(0)), 0.2)
1165
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(13),math.rad(0),math.rad(0)),.2)
1166
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(140)),.2)
1167
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.7, 0) * angles(math.rad(0), math.rad(0), math.rad(-140)),.2)
1168
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(-45), math.rad(34), math.rad(-25)), 0.1)
1169
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(-45), math.rad(-34), math.rad(25)), 0.1)
1170
end
1171
1172
1173
1174
1175
1176
bel.Anchored = false
1177
	local bv = Instance.new("BodyVelocity",bel)
1178
	bv.maxForce = Vector3.new(math.huge,math.huge,math.huge)
1179
    bel.CFrame = CFrame.new(bel.Position,mouse.Hit.p)
1180
		bv.velocity = bel.CFrame.lookVector*350
1181
		
1182
		
1183
		
1184
--[[		
1185
					bel.Touched:connect(function(hit)
1186
1187
	if hit.Parent.Parent ~= Character and hit.Parent ~= Character and hit.Name ~= "prt" and hit.Name ~= "Effect" and hit.Name ~= "orb" and Bullet.Anchored == false then
1188
	    	    local orbexplode = Instance.new("Sound", bel)
1189
    orbexplode.Volume = 10
1190
    orbexplode.PlayOnRemove = true
1191
    orbexplode.SoundId = "http://roblox.com/asset/?id=142070127"
1192
    orbexplode.Pitch = 1
1193
    orbexplode:Destroy()
1194
    deb:AddItem(orbexplode, 4)
1195
	bel.Anchored = true
1196
	bel.Transparency = 1
1197
	deb:AddItem(bel, 4)
1198
	local Explode = Instance.new("Explosion") 
1199
	Explode.Position = bel.Position
1200
	Explode.Parent = Workspace 
1201
	Explode.BlastPressure = 90
1202
	Explode.BlastRadius = Bullet.Size.X	*25.6
1203
	Explode.Visible = false
1204
1205
coroutine.resume(coroutine.create(function()
1206
1207
1208
1209
	        MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
1210
	        MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
1211
	        MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
1212
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 1150, 2, 1150, 0.05)
1213
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 2, 1800, 1100, 4, 1100, 0.05)
1214
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 2, 1800, 150, 16, 150, 0.05)
1215
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05)
1216
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05)
1217
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05)
1218
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05)
1219
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 2, 1800, 4, 1350, 4, 0.005)
1220
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 2, 1600, 4, 1300, 4, 0.005)
1221
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 2, 1400, 4, 1250, 4, 0.005)
1222
1223
1224
	    MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065)
1225
	    MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025)
1226
	    MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 4, 4, 4, 0, 0.025)
1227
    MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 0, 0, 0.5, -1, -1, 0, 0.025)
1228
	        end))
1229
		end
1230
	end)
1231
		
1232
		]]
1233
		
1234
		con5=bel.Touched:connect(function(hit)
1235
		    
1236
	    	    local orbexplode = Instance.new("Sound", bel)
1237
    orbexplode.Volume = 10
1238
    orbexplode.PlayOnRemove = true
1239
    orbexplode.SoundId = "http://roblox.com/asset/?id=167115397"
1240
    orbexplode.Pitch = 1
1241
    orbexplode:Destroy()
1242
    deb:AddItem(orbexplode, 4)
1243
	bel.Anchored = true
1244
	bel.Transparency = 1
1245
	deb:AddItem(bel, 5.2)
1246
1247
1248
1249
1250
coroutine.resume(coroutine.create(function()
1251
so("http://www.roblox.com/asset/?id=167115397", Workspace, 6, 1)
1252
so("http://www.roblox.com/asset/?id=138186576", Workspace, 6, 1)
1253
for i = 0, 0.4, 0.1 do
1254
    swait()
1255
    
1256
    
1257
    	for i, v in pairs(FindNearestHead(bel.CFrame.p, 252.5)) do
1258
		if v:FindFirstChild("Torso") and v:FindFirstChild("Humanoid") then
1259
    		    if v:FindFirstChildOfClass("Humanoid").MaxHealth > 500 then
1260
		         v:FindFirstChildOfClass("Humanoid").MaxHealth = 100
1261
		         v:FindFirstChildOfClass("Humanoid").Health = 100
1262
		        end
1263
			v.Humanoid:TakeDamage(math.random(43,86))
1264
			coroutine.resume(coroutine.create(function()
1265
    for i = 0,2,0.1 do
1266
        swait()
1267
        v.Head.Velocity = -v.Head.CFrame.lookVector*660 + Vector3.new(0,684,0)
1268
    end
1269
    end))
1270
end
1271
end
1272
1273
coroutine.resume(coroutine.create(function()
1274
    for i = 0, 2.4, 0.1 do
1275
        swait()
1276
Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8),math.random(-0.55*4.8,0.55*4.8)),0.44)
1277
end
1278
end))
1279
1280
	        MagicBlock(BrickColor.new("White"), cf(bel.Position), 2000, 2000, 2000, -100, -100, -100, 0.05, 1)
1281
	        MagicBlock(BrickColor.new("Royal purple"), cf(bel.Position), 2500, 2500, 2500, -150, -150, -150, 0.05, 1)
1282
	        MagicBlock(BrickColor.new("White"), cf(bel.Position), 3000, 3000, 3000, -200, -200, -200, 0.05, 1)
1283
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800,222, 1800, 1150, 222, 1150, 0.05)
1284
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 1800, 222, 1800, 1100, 224, 1100, 0.05)
1285
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1800, 222, 1800, 150, 216, 150, 0.05)
1286
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1100, 4100, 1100, 0.05)
1287
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1200, 1200, 1200, 0.05)
1288
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 0, 0, 0, 1300, 1300,1300, 0.05)
1289
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 0, 0, 1400, 1400, 1400, 0.05)
1290
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 4800, 222, 1800, 224, 1350, 224, 0.005)
1291
	        MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 1600, 222, 1600, 224, 1300, 224, 0.005)
1292
	        MagicCircle(BrickColor.new("White"), cf(bel.Position), 1400, 222, 1400, 224, 1250, 224, 0.005)
1293
1294
            WaveEffect(BrickColor.new("White"), cf(bel.Position)*angles(0,math.rad(0+90*i),0) , 1, 1, 1, 24, 5.4, 24, 0.09) 
1295
            WaveEffect(BrickColor.new("Royal purple"), cf(bel.Position)*angles(0,math.rad(0-90*i),0) , 1, 1, 1, 22, 4.8, 22, 0.05) 
1296
            
1297
	    MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 10, 10, 10, 50, 50, 50, 0.065)
1298
	    MagicCircle(BrickColor.new("Royal purple"), cf(bel.Position), 0, 1, 0, 15, 0, 15, 0.025)
1299
	    MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
1300
    MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
1301
    MagicRing(BrickColor.new("White"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 8, 8, 0, 0.015)
1302
    MagicRing(BrickColor.new("Royal purple"), cf(bel.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 24, 24, 1, 12, 12, 0, 0.015)
1303
    end
1304
	        end))
1305
1306
1307
end)
1308
1309
		
1310
		
1311
		
1312
	    for i = 0,32,0.1 do
1313
        swait()
1314
        Head.Velocity = Vector3.new(0,2.4,0)
1315
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(-35), math.rad(0), math.rad(0)), 0.2)
1316
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(43),math.rad(0),math.rad(0)),.2)
1317
RW.C0 = clerp(RW.C0, CFrame.new(1.0, 0.5, -0.4) * angles(math.rad(80), math.rad(12), math.rad(-30)),.2)
1318
LW.C0 = clerp(LW.C0, CFrame.new(-1., 0.5, -0.4) * angles(math.rad(80), math.rad(-12), math.rad(30)),.2)
1319
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1.0, 0) * CFrame.Angles(math.rad(75), math.rad(34), math.rad(-35)), 0.2)
1320
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1.0, 0)  * CFrame.Angles(math.rad(75), math.rad(-34), math.rad(35)), 0.2)
1321
end
1322
1323
coroutine.resume(coroutine.create(function()
1324
    for i = 0, 63, 0.1 do
1325
        swait()
1326
    end
1327
    if bel.Anchored == false then
1328
        bel:Destroy() 
1329
    end
1330
    end))
1331
1332
1333
1334
1335
	attack = false
1336
	end
1337
	
1338
	
1339
	
1340
	  mouse.Button1Down:connect(function(key)
1341
if attack == false then
1342
shoot()
1343
end
1344
end)
1345
 
1346
 
1347
 
1348
 
1349
  mouse.Button1Up:connect(function(key)
1350
if shooting == true then
1351
shooting = false
1352
end
1353
end)
1354
1355
1356
1357
1358
  mouse.KeyDown:connect(function(key)
1359
if key == 'e' and attack == false then
1360
dshoot()
1361
end
1362
end)
1363
1364
1365
1366
1367
  mouse.KeyDown:connect(function(key)
1368
if key == 'q' and attack == false then
1369
finaldev()
1370
end
1371
end)
1372
1373
  mouse.KeyUp:connect(function(key)
1374
if key == 'e' and shooting == true then
1375
shooting = false
1376
end
1377
end)
1378
1379
1380
	          
1381
	          		 mouse.KeyDown:connect(function(key)
1382
		     if key == 'f' and attack == false and evadecooldown == false then
1383
		         Dash()
1384
	         end
1385
	         end)
1386
1387
	
1388
	local orb = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt())
1389
	 local msh = mesh("SpecialMesh", orb, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
1390
	     
1391
     	local orb2 = part(3, Character, 0, 0.9, BrickColor.new("White"), "Effect", vt())
1392
	 local msh = mesh("SpecialMesh", orb2, "Sphere", "nil", vt(0, 0, 0), vt(15, 15, 15))
1393
		          orb.Anchored = true
1394
		          orb2.Anchored = true
1395
		          Humanoid.WalkSpeed = 32
1396
	          
1397
	          
1398
	           local f = 0
1399
 game:GetService("RunService"):BindToRenderStep("W0tT", 0, function()
1400
1401
1402
f = f+1
1403
 cam.FieldOfView = lerp(cam.FieldOfView, 70, 0.076)
1404
if f >= 6 then
1405
    f=0
1406
    SphereEffect(BrickColor.new("Royal purple"),cf(orb.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03)
1407
    SphereEffect(BrickColor.new("Royal purple"),cf(orb2.Position)*angles(math.random(-360, 360),math.random(-360, 360),math.random(-360, 360)),1,5,1,.05,4,.05,0.03)
1408
 MagicRing(BrickColor.new("Royal purple"), cf(orb.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07)
1409
 MagicCircle(BrickColor.new("Royal purple"), cf(orb.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05)
1410
  MagicRing(BrickColor.new("Royal purple"), cf(orb2.Position) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 3, 3, 1, -0.2, -0.2, 0, 0.07)
1411
 MagicCircle(BrickColor.new("Royal purple"), cf(orb2.Position), 0, 0, 0, 1.25, 1.25, 1.25, 0.05)
1412
 	      MagicBlock(BrickColor.new("Royal purple"), cf(orb.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2)
1413
	      MagicBlock(BrickColor.new("Royal purple"), cf(orb2.Position) * cf(math.random(-200, 200) / 100, math.random(-200, 200) / 100, math.random(-200, 200) / 100) * euler(math.random(-360, 360), math.random(-360, 360), math.random(-360, 360)), 1, 1, 1, 1, 1, 1, 0.1, 2)
1414
1415
end
1416
end)
1417
1418
Humanoid.MaxHealth = 400
1419
	          
1420
	       print("Move list")
1421
print("---------")
1422
print("F: Time Dash")
1423
print("Hold Click: Lesser Bullets")
1424
print("Hold E: Mega Bullets")
1425
print("Q: Final Devastator")
1426
1427
	          
1428
	          
1429
	          
1430
					while true do
1431
    swait()
1432
sine = sine + change
1433
--speed = speed + music.PlaybackLoudness/90
1434
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
1435
local velderp=RootPart.Velocity.y
1436
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
1437
    local TiltVelocity = CFrame.new(RootPart.CFrame:vectorToObjectSpace(RootPart.Velocity))
1438
    if attack==true or attack==false then
1439
if attack==false then
1440
idle=idle+1
1441
else
1442
idle=0
1443
end
1444
if idle>=500 then
1445
if attack==false then
1446
end
1447
end
1448
1449
Humanoid.Health = Humanoid.Health + 4
1450
1451
	          orb.CFrame = RightArm.CFrame * cf(0, -1, 0)
1452
	           orb2.CFrame = LeftArm.CFrame * cf(0, -1, 0)
1453
		if RootPart.Velocity.y > 1 and hitfloor==nil then
1454
Anim="Jump"
1455
1456
1457
1458
1459
1460
if attack==false then
1461
change = 1
1462
look = 0
1463
			       Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
1464
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0) * CFrame.Angles(math.rad(4), math.rad(0), math.rad(0)), 0.07)
1465
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-10+2.05*math.cos(sine/5)),math.rad(0),math.rad(0)),0.07)
1466
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(50-2.05*math.cos(sine/5))), 0.07)
1467
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20+2.05*math.cos(sine/5)), math.rad(-10), math.rad(-50+2.05*math.cos(sine/5))), 0.07)
1468
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1, -0.6) * CFrame.Angles(math.rad(-25+3.05*math.cos(sine/5)), math.rad(-3), math.rad(0)), 0.1)
1469
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -.47, -0.7) * CFrame.Angles(math.rad(-12+3.05*math.cos(sine/5)), math.rad(0), math.rad(0)), 0.1)
1470
end
1471
1472
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
1473
Anim="Fall"
1474
change = 1
1475
1476
1477
1478
if attack==false then
1479
			       Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
1480
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1, 0.2) * CFrame.Angles(math.rad(7+4*math.sin(sine/1.3)), math.rad(0), math.rad(0)),0.07)
1481
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(140+12*math.cos(sine/1.3))), 0.07)
1482
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.65, 0) * angles(math.rad(0), math.rad(0), math.rad(-140+12*math.cos(sine/1.3))), 0.07)
1483
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(40+7*math.sin(sine/1.3)),math.rad(0),math.rad(0)),0.07)
1484
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.17*math.cos(sine/1.3), -0.13) * CFrame.Angles(math.rad(18+7*math.cos(sine/1.3)), math.rad(3), math.rad(0)), 0.1)
1485
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -.37+0.17*math.cos(sine/1.3), -0.2) * CFrame.Angles(math.rad(32+7*math.cos(sine/1.3)), math.rad(0), math.rad(0)), 0.1)
1486
end
1487
1488
elseif torvel<1 and hitfloor~=nil then
1489
Anim="Idle"
1490
change = 1
1491
if attack==false and equip == false then
1492
			       Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.15)
1493
			       
1494
			       
1495
			       
1496
			       	          orb.CFrame = orb.CFrame:lerp(RightArm.CFrame*cf(0+2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1) 
1497
	          orb2.CFrame = orb2.CFrame:lerp(LeftArm.CFrame*cf(0-2*math.cos(sine/40), -5+2*math.sin(sine/40), 0),0.1) 
1498
			       
1499
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.04*math.cos(sine/40), -0) * CFrame.Angles(math.rad(0), math.rad(-70), math.rad(0)), 0.25)
1500
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10+2.6*math.sin(sine/40)),math.rad(0),math.rad(60)),0.25)
1501
RW.C0 = clerp(RW.C0, CFrame.new(1.2, 0.55+0.04*math.sin(sine/40), 0.2) * angles(math.rad(-32+1.3*math.cos(sine/40)), math.rad(0+4*math.sin(sine/40)), math.rad(-22.3+2.2*math.cos(sine/40))),0.25)
1502
LW.C0 = clerp(LW.C0, CFrame.new(-1.3, 0.55+0.04*math.sin(sine/40), -0.3-0.04*math.cos(sine/40)) * angles(math.rad(28+1.3*math.cos(sine/40)), math.rad(0-4*math.sin(sine/40)), math.rad(26.3-2.2*math.cos(sine/40))),0.25)
1503
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.04*math.cos(sine/40), 0) * CFrame.Angles(math.rad(0), math.rad(8), math.rad(-7)),0.25)
1504
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.57, -1+0.04*math.cos(sine/40), 0)  * CFrame.Angles(math.rad(0), math.rad(-2), math.rad(3)),0.25)
1505
end
1506
1507
1508
1509
elseif torvel>1.5 and torvel<22 and hitfloor~=nil then
1510
Anim="Walk"
1511
change = 0.84
1512
look = 0
1513
if attack==false and equip == false then
1514
			       Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
1515
Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1+0.14*math.cos(sine/5),  -0.3) * angles(math.rad(-2)*-math.rad(TiltVelocity.z)*9.5, math.rad(0+2*math.cos(sine/10)), math.rad(8)*-math.rad(TiltVelocity.x)*7.5+ RootPart.RotVelocity.Y / 46), 0.08)
1516
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(4-3*math.sin(sine/5)),math.rad(0),math.rad(2) + RootPart.RotVelocity.Y / 13), 0.08)
1517
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0+0.34*math.sin(sine/10)) * angles(math.rad(0-26*math.sin(sine/10))+ RootPart.RotVelocity.Y / -34, math.rad(0), math.rad(6+8*math.cos(sine/5))- RootPart.RotVelocity.Y / 34), 0.08)
1518
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0-0.34*math.sin(sine/10)) * angles(math.rad(0+26*math.sin(sine/10))+ RootPart.RotVelocity.Y / 34, math.rad(0), math.rad(-6-8*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34), 0.08)
1519
--LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*11.5+ RootPart.RotVelocity.Y / -34)),  0.08)
1520
--RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*12.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*11.5- RootPart.RotVelocity.Y / 34)),  0.08)
1521
end
1522
if attack == false or attack==true and noleg == false then
1523
LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.21*math.cos(sine/10), -0.03+0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8-25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)- RootPart.RotVelocity.Y / -24, math.rad(0-25*math.sin(sine/10)*math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)),  0.08)
1524
RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.21*math.cos(sine/10),-0.03-0.19*math.cos(sine/10)) * CFrame.Angles(math.rad(-8+25*math.sin(sine/10)*-math.rad(TiltVelocity.z)*9.5), math.rad(0)+ RootPart.RotVelocity.Y / 24, math.rad(0-25*math.sin(sine/10)*-math.rad(TiltVelocity.x)*6.5- RootPart.RotVelocity.Y / 34)),  0.08)
1525
end
1526
1527
		elseif torvel>=22 and hitfloor~=nil then
1528
		Anim="Run"
1529
		change = 0.84+ Character.Humanoid.WalkSpeed/112
1530
		if attack==false and equip == false then
1531
					       Humanoid.CameraOffset = Humanoid.CameraOffset:lerp(Vector3.new(0,0,0),0.02)
1532
			Torso.Weld.C0 = clerp(Torso.Weld.C0, CFrame.new(0, -1-0.5*math.cos(sine/2.5), -.8) * angles(math.rad(-23+4*math.cos(sine/5)), math.rad(0+4*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 26), .1)
1533
	Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-12+20*math.sin(sine/2.5)),math.rad(0),math.rad(0+5*math.sin(sine/5)) + RootPart.RotVelocity.Y / 13),.1)
1534
	RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0-0.34*math.cos(sine/5)) * angles(math.rad(10+57*math.cos(sine/5))+ RootPart.RotVelocity.Y / -34, math.rad(0+43*math.cos(sine/5)), math.rad(5)- RootPart.RotVelocity.Y / 34),.25)
1535
	LW.C0=clerp(LW.C0,cf(-1.5,0.5,0+0.34*math.cos(sine/5))*angles(math.rad(10-57*math.cos(sine/5))+ RootPart.RotVelocity.Y / 34,math.rad(0+43*math.cos(sine/5)),math.rad(-5)+ RootPart.RotVelocity.Y / -34),.25)
1536
		
1537
		
1538
	LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1+0.56*math.cos(sine/5), 0-0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0+73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)+ RootPart.RotVelocity.Y / -54), 0.3)
1539
 RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1-0.56*math.cos(sine/5),0+0.48*math.cos(sine/5)) * CFrame.Angles(math.rad(0-73*math.sin(sine/5)), math.rad(0)+ RootPart.RotVelocity.Y / 42, math.rad(0)- RootPart.RotVelocity.Y / 54), 0.3)
1540
		end
1541
		
1542
		--[[
1543
		if attack==false then
1544
		LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.4*math.cos(sine/5.5)/2, 0 *math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + -math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
1545
		RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.4*math.cos(sine/5.5)/2,0 *-math.sin(sine/6.6)/2) * CFrame.Angles(math.rad(0) + math.sin(sine/5.5)/1.2, math.rad(0), 0), .8)
1546
		end
1547
		]]
1548
		if attack==true and noleg == false then
1549
		LeftLeg.Weld.C0 = clerp(LeftLeg.Weld.C0, CFrame.new(-0.5, -1-0.24*math.cos(sine/5), 0.+0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0-74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
1550
		   RightLeg.Weld.C0 = clerp(RightLeg.Weld.C0, CFrame.new(0.5, -1+0.24*math.cos(sine/5),0.-0.24*math.cos(sine/5)) * CFrame.Angles(math.rad(0+74*math.sin(sine/5)), math.rad(0), math.rad(0)), 0.3)
1551
		end
1552
		
1553
1554
end
1555
end
1556
1557
1558
1559
     if 0 < #Effects then
1560
        for e = 1, #Effects do
1561
          if Effects[e] ~= nil then
1562
            local Thing = Effects[e]
1563
            if Thing ~= nil then
1564
              local Part = Thing[1]
1565
              local Mode = Thing[2]
1566
              local Delay = Thing[3]
1567
              local IncX = Thing[4]
1568
              local IncY = Thing[5]
1569
              local IncZ = Thing[6]
1570
              if Thing[2] == "CylinderClang" then
1571
                if Thing[3] <= 1 then
1572
                  Thing[1].CFrame = Thing[1].CFrame * CFrame.new(0, 2.5 * Thing[5], 0) * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1573
                  Thing[7] = Thing[1].CFrame
1574
                  effect("New Yeller", 0, Thing[8], Thing[7])
1575
                  Thing[8] = Thing[7]
1576
                  Thing[3] = Thing[3] + Thing[4]
1577
                else
1578
                  Part.Parent = nil
1579
                  table.remove(Effects, e)
1580
                end
1581
              end
1582
              if Thing[2] == "showDamage" then
1583
                if Thing[6] < Thing[5] then
1584
                  Thing[6] = Thing[6] + 1
1585
                else
1586
                  if Thing[6] < Thing[7] then
1587
                    Thing[4].position = Thing[4].position + vt(0, -0.2, 0)
1588
                    Thing[6] = Thing[6] + 1
1589
                  else
1590
                    if Thing[6] < Thing[8] then
1591
                      Thing[6] = Thing[6] + 1
1592
                    else
1593
                      if Thing[6] < Thing[9] then
1594
                        Thing[6] = Thing[6] + 1
1595
                        Thing[4].position = Thing[4].position + vt(0, 0.2, 0)
1596
                        Thing[3].TextStrokeTransparency = Thing[3].TextStrokeTransparency + 0.1
1597
                        Thing[3].TextTransparency = Thing[3].TextTransparency + 0.1
1598
                      else
1599
                        Thing[1].Parent = nil
1600
                        table.remove(Effects, e)
1601
                      end
1602
                    end
1603
                  end
1604
                end
1605
              end
1606
              if Thing[2] == "PartiEmi" then
1607
                Thing[3] = Thing[3] - 1
1608
                if Thing[3] <= 0 then
1609
                  Thing[1].Enabled = false
1610
                  table.remove(Effects, e)
1611
                end
1612
              end
1613
              if Thing[2] == "AdjuEff" then
1614
                if 0 < Thing[3] then
1615
                  Thing[3] = Thing[3] - 1
1616
                  Thing[1].Size = Thing[1].Size + UDim2.new(0.2, 0, 0.2, 0)
1617
                  Thing[1].StudsOffset = Thing[1].StudsOffset + vt(0, -0.2, 0)
1618
                  Thing[4].ImageTransparency = Thing[4].ImageTransparency + 0.1
1619
                else
1620
                  Thing[1].Parent = nil
1621
                  table.remove(Effects, e)
1622
                end
1623
              end
1624
              if Thing[2] ~= "Shoot" and Thing[2] ~= "DecreaseStat" and Thing[2] ~= "Wave" and Thing[2] ~= "FireWave" and Thing[2] ~= "showDamage" and Thing[2] ~= "PartiEmi" and Thing[2] ~= "AdjuEff" then
1625
                if Thing[1].Transparency <= 1 then
1626
                  if Thing[2] == "Block1" then
1627
                    Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1628
                    Mesh = Thing[7]
1629
                    Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1630
                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1631
                  else
1632
                    if Thing[2] == "Block2" then
1633
                      Thing[1].CFrame = Thing[1].CFrame
1634
                      Mesh = Thing[7]
1635
                      Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1636
                      Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1637
                    else
1638
                      if Thing[2] == "Block3" then
1639
                        Thing[9] = Thing[9] + 0.5
1640
                        Thing[1].CFrame = Thing[8] * cf(0, Thing[9], 0)
1641
                        Thing[1].CFrame = Thing[1].CFrame * euler(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1642
                        Mesh = Thing[7]
1643
                        Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1644
                        Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1645
                      else
1646
                        if Thing[2] == "Skull" then
1647
                          Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8] / 2, -Thing[8])
1648
                          Mesh = Thing[7]
1649
                          Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1650
                          Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1651
                        else
1652
                          if Thing[2] == "Cylinder" then
1653
                            Mesh = Thing[7]
1654
                            Mesh.Scale = Mesh.Scale + vt(Thing[4]-Thing[1].Transparency, Thing[5]-Thing[1].Transparency, Thing[6]-Thing[1].Transparency)
1655
                            Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1656
                          else
1657
                            if Thing[2] == "Cylinder2" then
1658
                              Thing[1].CFrame = Thing[1].CFrame * cf(0, Thing[8], 0)
1659
                              Mesh = Thing[7]
1660
                              Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1661
                              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1662
                            else
1663
                              if Thing[2] == "Blood" then
1664
                                Mesh = Thing[7]
1665
                                Thing[1].CFrame = Thing[1].CFrame * cf(0, 0.5, 0)
1666
                                Mesh.Scale = Mesh.Scale + vt(Thing[4], Thing[5], Thing[6])
1667
                                Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1668
                              else
1669
                                if Thing[2] == "Elec" then
1670
                                  Mesh = Thing[10]
1671
                                  Mesh.Scale = Mesh.Scale + vt(Thing[7], Thing[8], Thing[9])
1672
                                  Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1673
                                else
1674
                                  if Thing[2] == "Disappear" then
1675
                                    Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1676
                                  end
1677
                                end
1678
                              end
1679
                            end
1680
                          end
1681
                        end
1682
                      end
1683
                    end
1684
                  end
1685
                else
1686
                  Part.Parent = nil
1687
                  table.remove(Effects, e)
1688
        end
1689
        end
1690
          end
1691
        end
1692
      end
1693
    end
1694
end