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