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