View difference between Paste ID: NxNFyDNx and yCMi7VwZ
SHOW: | | - or go back to the newest paste.
1
-- This script has been converted to FE by iPxter
2
3
4-
warn("edit by manari#3750 or monika#6853 or plytalent")
4+
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
5
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
6-
plr = game.Players.LocalPlayer
6+
do
7
	print("FE Compatibility code by Mokiros | Translated to FE by iPxter")
8
	script.Parent = Player.Character
9
10
	--RemoteEvent for communicating
11
	local Event = Instance.new("RemoteEvent")
12
	Event.Name = "UserInput_Event"
13
14
	--Fake event to make stuff like Mouse.KeyDown work
15
	local function fakeEvent()
16
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
17
		t.connect = t.Connect
18
		return t
19
	end
20
21
	--Creating fake input objects with fake variables
22
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
23
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
24
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
25
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
26
	end}
27
	--Merged 2 functions into one by checking amount of arguments
28
	CAS.UnbindAction = CAS.BindAction
29
30
	--This function will trigger the events that have been :Connect()'ed
31
	local function te(self,ev,...)
32
		local t = m[ev]
33
		if t and t._fakeEvent and t.Function then
34
			t.Function(...)
35
		end
36
	end
37
	m.TrigEvent = te
38
	UIS.TrigEvent = te
39
40
	Event.OnServerEvent:Connect(function(plr,io)
41
	    if plr~=Player then return end
42-
  end	
42+
		if io.isMouse then
43
			m.Target = io.Target
44
			m.Hit = io.Hit
45
		else
46
			local b = io.UserInputState == Enum.UserInputState.Begin
47
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
48
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
49-
CamShake=function(Part,Distan,Power,Times) 
49+
50
			for _,t in pairs(CAS.Actions) do
51
				for _,k in pairs(t.Keys) do
52
					if k==io.KeyCode then
53
						t.Function(t.Name,io.UserInputState,io)
54
					end
55
				end
56
			end
57
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
58
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
59
	    end
60
	end)
61
	Event.Parent = NLS([==[
62
	local Player = game:GetService("Players").LocalPlayer
63
	local Event = script:WaitForChild("UserInput_Event")
64
65
	local UIS = game:GetService("UserInputService")
66
	local input = function(io,a)
67
		if a then return end
68
		--Since InputObject is a client-side instance, we create and pass table instead
69
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
70
	end
71
	UIS.InputBegan:Connect(input)
72
	UIS.InputEnded:Connect(input)
73
74
	local Mouse = Player:GetMouse()
75
	local h,t
76
	--Give the server mouse data 30 times every second, but only if the values changed
77
	--If player is not moving their mouse, client won't fire events
78
	while wait(1/30) do
79
		if h~=Mouse.Hit or t~=Mouse.Target then
80
			h,t=Mouse.Hit,Mouse.Target
81
			Event:FireServer({isMouse=true,Target=t,Hit=h})
82
		end
83
	end]==],Player.Character)
84
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
85
end
86
Player = game:GetService("Players").plytalent
87
-- script hair--
88
plr = Player
89
part = nil
90
bp = nil
91
particles = nil
92
---
93
local char = plr.Character
94
local hum = char:FindFirstChildOfClass'Humanoid'
95
local hed = char.Head
96
hed.face.Transparency = 1
97
local tors = char.Torso
98
local ra = char["Right Arm"]
99
local la = char["Left Arm"]
100
local rl = char["Right Leg"]
101
local ll = char["Left Leg"]
102
local neck = tors["Neck"]
103
--local mouse = plr:GetMouse()
104
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
105
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
106
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
107
local maincolor = BrickColor.new("Institutional white")
108
cam = game.Workspace.CurrentCamera
109
CF = CFrame.new
110
angles = CFrame.Angles
111
attack = false
112
Euler = CFrame.fromEulerAnglesXYZ
113
Rad = math.rad
114
IT = Instance.new
115
BrickC = BrickColor.new
116
Cos = math.cos
117
Acos = math.acos
118
Sin = math.sin
119
Asin = math.asin
120
Abs = math.abs
121-
	for i = 1, 50 do
121+
Mrandom = math.random
122
Floor = math.floor
123
--script hair--
124
if char:FindFirstChildOfClass("Accessory") ~= nil then
125
repeat
126
wait(0.000000000000000000000000000001)
127
char:FindFirstChildOfClass("Accessory"):Destroy()
128
until char:FindFirstChildOfClass("Accessory") == nil
129
end
130
HSHair = IT("Model")
131
HSHair.Parent = char
132
HSHair.Name = "HSHair"
133
RHe = IT("Part")
134
RHe.Parent = HSHair
135
RHe.BrickColor = BrickColor.new("New Yeller")
136
RHe.Locked = true
137
RHe.CanCollide = false
138
RHe.Transparency = 0
139-
CFuncs = {	
139+
PMesh = IT("SpecialMesh")
140-
	["Part"] = {
140+
RHe.formFactor =  "Symmetric"
141-
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
141+
PMesh.MeshType = "FileMesh"
142-
			local Part = Create("Part"){
142+
PMesh.MeshId = "rbxassetid://731023666"
143-
				Parent = Parent,
143+
PMesh.Scale = Vector3.new(0.200000003, 0.200000003, 0.170000002)
144-
				Reflectance = Reflectance,
144+
PMesh.Parent = RHe
145-
				Transparency = Transparency,
145+
local RWeld = IT("Weld")
146-
				CanCollide = false,
146+
RWeld.Parent = RHe
147-
				Locked = true,
147+
RWeld.Part0 = RHe
148-
				BrickColor = BrickColor.new(tostring(BColor)),
148+
RWeld.Part1 = hed
149-
				Name = Name,
149+
RWeld.C0 = CF(0, 2.5, 1) * angles(0, Rad(180), 0)
150-
				Size = Size,
150+
--end or hair script--
151-
				Material = Material,
151+
152-
			}
152+
153-
			RemoveOutlines(Part)
153+
154-
			return Part
154+
warn("edit by plytalent#3750 or plytalent")
155-
		end;
155+
156-
	};
156+
plr = game:GetService("Players").plytalent
157-
	
157+
--plr = owner
158-
	["Mesh"] = {
158+
--plr = game.Players.LocalPlayer
159-
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
159+
160-
			local Msh = Create(Mesh){
160+
Character = plr.Character
161-
				Parent = Part,
161+
162-
				Offset = OffSet,
162+
163-
				Scale = Scale,
163+
164-
			}
164+
165-
			if Mesh == "SpecialMesh" then
165+
166-
				Msh.MeshType = MeshType
166+
167-
				Msh.MeshId = MeshId
167+
168
rl = char["Right Leg"]
169-
			return Msh
169+
170-
		end;
170+
171-
	};
171+
172-
	
172+
173-
	["Mesh"] = {
173+
174-
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
174+
175-
			local Msh = Create(Mesh){
175+
176-
				Parent = Part,
176+
177-
				Offset = OffSet,
177+
178-
				Scale = Scale,
178+
179-
			}
179+
180-
			if Mesh == "SpecialMesh" then
180+
181-
				Msh.MeshType = MeshType
181+
182-
				Msh.MeshId = MeshId
182+
183
function CameraShake(Times, Power)
184-
			return Msh
184+
185-
		end;
185+
186-
	};
186+
187-
	
187+
188-
	["Weld"] = {
188+
189-
		Create = function(Parent, Part0, Part1, C0, C1)
189+
190-
			local Weld = Create("Weld"){
190+
191-
				Parent = Parent,
191+
192-
				Part0 = Part0,
192+
193-
				Part1 = Part1,
193+
194-
				C0 = C0,
194+
195-
				C1 = C1,
195+
  end  
196-
			}
196+
197-
			return Weld
197+
198-
		end;
198+
199-
	};
199+
200
end
201-
	["Sound"] = {
201+
202-
		Create = function(id, par, vol, pit) 
202+
CamShake=function(Part,Distan,Power,Times)
203-
			coroutine.resume(coroutine.create(function()
203+
204-
				local S = Create("Sound"){
204+
205-
					Volume = vol,
205+
206-
					Pitch = pit or 1,
206+
207-
					SoundId = id,
207+
208-
					Parent = par or workspace,
208+
209-
				}
209+
210-
				wait() 
210+
211-
				S:play() 
211+
212-
				game:GetService("Debris"):AddItem(S, 10)
212+
213-
			end))
213+
214-
		end;
214+
215-
	};
215+
216
CameraShake(Times, Power)
217
end
218-
		Create = function(id, par, vol, pit) 
218+
219-
			coroutine.resume(coroutine.create(function()
219+
220-
				local S = Create("Sound"){
220+
221-
					Volume = vol,
221+
222-
					Pitch = pit or 1,
222+
223-
					SoundId = id,
223+
224-
					Parent = par or workspace,
224+
225-
				}
225+
226-
				wait() 
226+
227-
				S:play() 
227+
228-
				game:GetService("Debris"):AddItem(S, 30)
228+
229-
			end))
229+
230-
		end;
230+
231-
	};
231+
232-
	
232+
233-
	["ParticleEmitter"] = {
233+
234-
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
234+
235-
			local fp = Create("ParticleEmitter"){
235+
236-
				Parent = Parent,
236+
237-
				Color = ColorSequence.new(Color1, Color2),
237+
238-
				LightEmission = LightEmission,
238+
239-
				Size = Size,
239+
240-
				Texture = Texture,
240+
241-
				Transparency = Transparency,
241+
242-
				ZOffset = ZOffset,
242+
243-
				Acceleration = Accel,
243+
244-
				Drag = Drag,
244+
245-
				LockedToPart = LockedToPart,
245+
246-
				VelocityInheritance = VelocityInheritance,
246+
247-
				EmissionDirection = EmissionDirection,
247+
248-
				Enabled = Enabled,
248+
249-
				Lifetime = LifeTime,
249+
250-
				Rate = Rate,
250+
251-
				Rotation = Rotation,
251+
252-
				RotSpeed = RotSpeed,
252+
253-
				Speed = Speed,
253+
254-
				VelocitySpread = VelocitySpread,
254+
255-
			}
255+
256-
			return fp
256+
257-
		end;
257+
258-
	};
258+
259
wait(0.01)
260-
	CreateTemplate = {
260+
261-
	
261+
262-
	};
262+
263
if randomrot == 1 then
264
for i = 1, 50 do
265
swait()
266
tecks2.Rotation = tecks2.Rotation - .75
267
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
268-
	local Object = Instance.new(Object)
268+
269-
	for Index, Value in pairs(Data or {}) do
269+
270-
		Object[Index] = Value
270+
271
tecks3.TextTransparency = tecks2.TextTransparency + .04
272-
	Object.Parent = Parent
272+
273-
	Object.Name = Name
273+
274-
	return Object
274+
    for i = 1, 50 do
275
swait()
276-
local halocolor = BrickColor.new("Dark indigo")
276+
277-
local wepcolor = BrickColor.new("Really black")
277+
278
tecks2.TextTransparency = tecks2.TextTransparency + .04
279
tecks3.Rotation = tecks2.Rotation - .75
280
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
281
tecks3.TextTransparency = tecks2.TextTransparency + .04
282
end
283
end
284
naeeym2:Destroy()
285
end)
286
chat()
287
end
288
 
289
 
290
local Create = LoadLibrary("RbxUtility").Create
291
 
292
CFuncs = { 
293
    ["Part"] = {
294
        Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
295
            local Part = Create("Part"){
296
                Parent = Parent,
297
                Reflectance = Reflectance,
298
                Transparency = Transparency,
299
                CanCollide = false,
300
                Locked = true,
301
                BrickColor = BrickColor.new(tostring(BColor)),
302
                Name = Name,
303
                Size = Size,
304
                Material = Material,
305
            }
306
            RemoveOutlines(Part)
307
            return Part
308
        end;
309
    };
310
   
311
    ["Mesh"] = {
312
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
313
            local Msh = Create(Mesh){
314
                Parent = Part,
315
                Offset = OffSet,
316
                Scale = Scale,
317
            }
318
            if Mesh == "SpecialMesh" then
319
                Msh.MeshType = MeshType
320
                Msh.MeshId = MeshId
321
            end
322
            return Msh
323
        end;
324
    };
325
   
326
    ["Mesh"] = {
327
        Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
328
            local Msh = Create(Mesh){
329
                Parent = Part,
330
                Offset = OffSet,
331
                Scale = Scale,
332
            }
333
            if Mesh == "SpecialMesh" then
334
                Msh.MeshType = MeshType
335
                Msh.MeshId = MeshId
336
            end
337
            return Msh
338
        end;
339
    };
340
   
341
    ["Weld"] = {
342
        Create = function(Parent, Part0, Part1, C0, C1)
343
            local Weld = Create("Weld"){
344
                Parent = Parent,
345
                Part0 = Part0,
346
                Part1 = Part1,
347
                C0 = C0,
348
                C1 = C1,
349
            }
350
            return Weld
351
        end;
352
    };
353
 
354
    ["Sound"] = {
355
        Create = function(id, par, vol, pit)
356
            coroutine.resume(coroutine.create(function()
357
                local S = Create("Sound"){
358
                    Volume = vol,
359
                    Pitch = pit or 1,
360
                    SoundId = id,
361
                    Parent = par or workspace,
362
                }
363
                wait()
364
                S:play()
365
                game:GetService("Debris"):AddItem(S, 10)
366
            end))
367
        end;
368
    };
369
 
370-
Player=game:GetService("Players").LocalPlayer
370+
371-
Character=Player.Character 
371+
        Create = function(id, par, vol, pit)
372-
PlayerGui=Player.PlayerGui 
372+
            coroutine.resume(coroutine.create(function()
373-
Backpack=Player.Backpack 
373+
                local S = Create("Sound"){
374-
Torso=Character.Torso 
374+
                    Volume = vol,
375-
Head=Character.Head 
375+
                    Pitch = pit or 1,
376
                    SoundId = id,
377
                    Parent = par or workspace,
378-
LeftArm=Character["Left Arm"] 
378+
                }
379-
LeftLeg=Character["Left Leg"] 
379+
380-
RightArm=Character["Right Arm"] 
380+
                S:play()
381-
RightLeg=Character["Right Leg"] 
381+
                game:GetService("Debris"):AddItem(S, 30)
382-
LS=Torso["Left Shoulder"] 
382+
            end))
383-
LH=Torso["Left Hip"] 
383+
        end;
384-
RS=Torso["Right Shoulder"] 
384+
    };
385-
RH=Torso["Right Hip"] 
385+
   
386
    ["ParticleEmitter"] = {
387
        Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
388
            local fp = Create("ParticleEmitter"){
389
                Parent = Parent,
390
                Color = ColorSequence.new(Color1, Color2),
391
                LightEmission = LightEmission,
392
                Size = Size,
393
                Texture = Texture,
394
                Transparency = Transparency,
395
                ZOffset = ZOffset,
396
                Acceleration = Accel,
397
                Drag = Drag,
398
                LockedToPart = LockedToPart,
399
                VelocityInheritance = VelocityInheritance,
400
                EmissionDirection = EmissionDirection,
401
                Enabled = Enabled,
402
                Lifetime = LifeTime,
403
                Rate = Rate,
404-
attack = false 
404+
                Rotation = Rotation,
405-
attackdebounce = false 
405+
                RotSpeed = RotSpeed,
406
                Speed = Speed,
407
                VelocitySpread = VelocitySpread,
408
            }
409
            return fp
410
        end;
411
    };
412
 
413
    CreateTemplate = {
414
   
415
    };
416
}
417
 
418
 
419
 
420
New = function(Object, Parent, Name, Data)
421-
player=nil 
421+
    local Object = Instance.new(Object)
422
    for Index, Value in pairs(Data or {}) do
423-
mouse=Player:GetMouse()
423+
        Object[Index] = Value
424-
--save shoulders 
424+
425-
RSH, LSH=nil, nil 
425+
    Object.Parent = Parent
426-
--welds 
426+
    Object.Name = Name
427-
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
427+
    return Object
428
end
429
local halocolor = BrickColor.new("New Yeller")
430
local wepcolor = BrickColor.new("New Yeller")
431
local m = Instance.new("Model",char)
432
 
433
function CreateParta(parent,transparency,reflectance,material,brickcolor)
434
local p = Instance.new("Part")
435-
player=Player 
435+
436
p.BottomSurface = 0
437-
RSH=ch.Torso["Right Shoulder"] 
437+
438-
LSH=ch.Torso["Left Shoulder"] 
438+
439-
-- 
439+
440-
RSH.Parent=nil 
440+
441-
LSH.Parent=nil 
441+
442-
-- 
442+
443
p.BrickColor = brickcolor
444-
RW.Part0=ch.Torso 
444+
445-
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
445+
446-
RW.C1=cf(0, 0.5, 0) 
446+
447-
RW.Part1=ch["Right Arm"] 
447+
448-
RW.Parent=ch.Torso 
448+
449-
-- 
449+
450
mesh.MeshType = meshtype
451-
LW.Part0=ch.Torso 
451+
452-
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
452+
453-
LW.C1=cf(0, 0.5, 0) 
453+
454-
LW.Part1=ch["Left Arm"] 
454+
455-
LW.Parent=ch.Torso 
455+
456
local mesh = Instance.new("SpecialMesh",parent)
457
mesh.MeshType = "FileMesh"
458
mesh.MeshId = meshid
459
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
460
mesh.Scale = Vector3.new(x1,y1,z1)
461
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
462
return mesh
463
end
464
 
465
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
466
local weld = Instance.new("Weld")
467
weld.Parent = parent
468
weld.Part0 = part0
469
weld.Part1 = part1
470
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
471
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
472
return weld
473
end
474
 
475
 
476
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
477
CreateWeld(sorb,rarm,sorb,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
478
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
479
CreateWeld(sorb2,larm,sorb2,0,2,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
480
 
481
function RemoveOutlines(part)
482-
fp.formFactor=formfactor 
482+
483
end
484
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
485
  local Part = Create("Part")({
486-
fp.CanCollide=false 
486+
487
    Reflectance = Reflectance,
488
    Transparency = Transparency,
489
    CanCollide = false,
490
    Locked = true,
491-
fp.Position=Torso.Position 
491+
492
    Name = Name,
493
    Size = Size,
494
    Material = Material
495-
return fp 
495+
496-
end 
496+
497
  RemoveOutlines(Part)
498
  return Part
499-
local mesh=it(Mesh) 
499+
500
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
501
  local Msh = Create(Mesh)({
502
    Parent = Part,
503
    Offset = OffSet,
504
    Scale = Scale
505
  })
506
  if Mesh == "SpecialMesh" then
507
    Msh.MeshType = MeshType
508
    Msh.MeshId = MeshId
509
  end
510
  return Msh
511
end
512
function CreateWeld(Parent, Part0, Part1, C0, C1)
513-
local weld=it("Weld") 
513+
514
    Parent = Parent,
515-
weld.Part0=part0 
515+
516-
weld.Part1=part1 
516+
517
    C0 = C0,
518
    C1 = C1
519
  })
520
  return Weld
521
end
522
 
523
--Player=game:GetService("Players").LocalPlayer
524
Player = plr
525
Character=Player.Character
526
PlayerGui=Player.PlayerGui
527
Backpack=Player.Backpack
528
Torso=Character.Torso
529
Head=Character.Head
530
Humanoid=Character.Humanoid
531
m=Instance.new('Model',Character)
532
LeftArm=Character["Left Arm"]
533
LeftLeg=Character["Left Leg"]
534
RightArm=Character["Right Arm"]
535
RightLeg=Character["Right Leg"]
536
LS=Torso["Left Shoulder"]
537-
so = function(id,par,vol,pit) 
537+
538
RS=Torso["Right Shoulder"]
539
RH=Torso["Right Hip"]
540
Face = Head.face
541
Neck=Torso.Neck
542
it=Instance.new
543-
swait() 
543+
544-
sou:play() 
544+
545
cf=CFrame.new
546
euler=CFrame.fromEulerAnglesXYZ
547
angles=CFrame.Angles
548
cloaked=false
549-
function clerp(a,b,t) 
549+
550
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
551-
local qb = {QuaternionFromCFrame(b)} 
551+
552-
local ax, ay, az = a.x, a.y, a.z 
552+
553
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
554
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
555-
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
555+
556-
end 
556+
557
RootCF=euler(-1.57,0,3.14)
558-
function QuaternionFromCFrame(cf) 
558+
559-
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
559+
attackdebounce = false
560-
local trace = m00 + m11 + m22 
560+
561-
if trace > 0 then 
561+
562-
local s = math.sqrt(1 + trace) 
562+
563-
local recip = 0.5/s 
563+
564-
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
564+
565-
else 
565+
566-
local i = 0 
566+
567
attackmode='none'
568
local idle=0
569
local Anim="Idle"
570-
if m22 > (i == 0 and m00 or m11) then 
570+
571-
i = 2 
571+
572-
end 
572+
573-
if i == 0 then 
573+
574-
local s = math.sqrt(m00-m11-m22+1) 
574+
575-
local recip = 0.5/s 
575+
player=nil
576-
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
576+
577-
elseif i == 1 then 
577+
--mouse=Player:GetMouse()
578-
local s = math.sqrt(m11-m22-m00+1) 
578+
--save shoulders
579-
local recip = 0.5/s 
579+
RSH, LSH=nil, nil
580-
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
580+
--welds
581-
elseif i == 2 then 
581+
RW, LW=Instance.new("Weld"), Instance.new("Weld")
582-
local s = math.sqrt(m22-m00-m11+1) 
582+
583-
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
583+
584-
end 
584+
585-
end 
585+
586
function NoOutline(Part)
587
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
588-
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
588+
589-
local xs, ys, zs = x + x, y + y, z + z 
589+
player=Player
590-
local wx, wy, wz = w*xs, w*ys, w*zs 
590+
591-
local xx = x*xs 
591+
RSH=ch.Torso["Right Shoulder"]
592-
local xy = x*ys 
592+
LSH=ch.Torso["Left Shoulder"]
593-
local xz = x*zs 
593+
--
594-
local yy = y*ys 
594+
RSH.Parent=nil
595-
local yz = y*zs 
595+
LSH.Parent=nil
596-
local zz = z*zs 
596+
--
597-
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)) 
597+
598
RW.Part0=ch.Torso
599
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5)
600-
function QuaternionSlerp(a, b, t) 
600+
RW.C1=cf(0, 0.5, 0)
601-
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
601+
RW.Part1=ch["Right Arm"]
602-
local startInterp, finishInterp; 
602+
RW.Parent=ch.Torso
603-
if cosTheta >= 0.0001 then 
603+
--
604-
if (1 - cosTheta) > 0.0001 then 
604+
605-
local theta = math.acos(cosTheta) 
605+
LW.Part0=ch.Torso
606-
local invSinTheta = 1/math.sin(theta) 
606+
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8)
607-
startInterp = math.sin((1-t)*theta)*invSinTheta 
607+
LW.C1=cf(0, 0.5, 0)
608
LW.Part1=ch["Left Arm"]
609-
else 
609+
LW.Parent=ch.Torso
610-
startInterp = 1-t 
610+
611-
finishInterp = t 
611+
612-
end 
612+
613-
else 
613+
614-
if (1+cosTheta) > 0.0001 then 
614+
615-
local theta = math.acos(-cosTheta) 
615+
616-
local invSinTheta = 1/math.sin(theta) 
616+
617-
startInterp = math.sin((t-1)*theta)*invSinTheta 
617+
618-
finishInterp = math.sin(t*theta)*invSinTheta 
618+
619-
else 
619+
620-
startInterp = t-1 
620+
621-
finishInterp = t 
621+
622-
end 
622+
623-
end 
623+
624-
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 
624+
625
Speed.Value=1
626
local Mvmt=Instance.new("NumberValue")
627
Mvmt.Name="Movement"
628
Mvmt.Parent=Stats
629
Mvmt.Value=1
630
 
631
local donum=0
632
 
633
 
634
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
635
local fp=it("Part")
636
fp.formFactor=formfactor
637
fp.Parent=parent
638
fp.Reflectance=reflectance
639
fp.Transparency=transparency
640
fp.CanCollide=false
641
fp.Locked=true
642
fp.BrickColor=brickcolor
643
fp.Name=name
644
fp.Size=size
645
fp.Position=Torso.Position
646
NoOutline(fp)
647
fp.Material="SmoothPlastic"
648
fp:BreakJoints()
649
return fp
650
end
651
 
652
function mesh(Mesh,part,meshtype,meshid,offset,scale)
653
local mesh=it(Mesh)
654
mesh.Parent=part
655
if Mesh=="SpecialMesh" then
656
mesh.MeshType=meshtype
657
if meshid~="nil" then
658
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
659
end
660
end
661
mesh.Offset=offset
662
mesh.Scale=scale
663
return mesh
664
end
665
 
666
function weld(parent,part0,part1,c0)
667
local weld=it("Weld")
668
weld.Parent=parent
669
weld.Part0=part0
670
weld.Part1=part1
671
weld.C0=c0
672
return weld
673
end
674
 
675
local Color1= BrickColor.new("Dark indigo")
676
 
677
local bodvel=Instance.new("BodyVelocity")
678
local bg=Instance.new("BodyGyro")
679
 
680
function swait(num)
681
if num==0 or num==nil then
682
game:service'RunService'.Stepped:wait(0)
683
else
684
for i=0,num do
685
game:service'RunService'.Stepped:wait(0)
686
end
687
end
688
end
689
 
690
 
691
so = function(id,par,vol,pit)
692
coroutine.resume(coroutine.create(function()
693
local sou = Instance.new("Sound",par or workspace)
694
sou.Volume=vol
695
sou.Pitch=pit or 1
696
sou.SoundId=id
697
swait()
698
sou:play()
699
game:GetService("Debris"):AddItem(sou,6)
700
end))
701
end
702
 
703
function clerp(a,b,t)
704
local qa = {QuaternionFromCFrame(a)}
705
local qb = {QuaternionFromCFrame(b)}
706
local ax, ay, az = a.x, a.y, a.z
707
local bx, by, bz = b.x, b.y, b.z
708
local _t = 1-t
709
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t))
710
end
711
 
712
function QuaternionFromCFrame(cf)
713
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
714
local trace = m00 + m11 + m22
715
if trace > 0 then
716
local s = math.sqrt(1 + trace)
717
local recip = 0.5/s
718
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5
719
else
720
local i = 0
721
if m11 > m00 then
722
i = 1
723
end
724
if m22 > (i == 0 and m00 or m11) then
725
i = 2
726
end
727
if i == 0 then
728
local s = math.sqrt(m00-m11-m22+1)
729
local recip = 0.5/s
730-
      Value = game:service("Players").LocalPlayer,
730+
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip
731
elseif i == 1 then
732
local s = math.sqrt(m11-m22-m00+1)
733
local recip = 0.5/s
734
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip
735
elseif i == 2 then
736
local s = math.sqrt(m22-m00-m11+1)
737
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip
738
end
739
end
740
end
741
 
742
function QuaternionToCFrame(px, py, pz, x, y, z, w)
743
local xs, ys, zs = x + x, y + y, z + z
744
local wx, wy, wz = w*xs, w*ys, w*zs
745
local xx = x*xs
746
local xy = x*ys
747
local xz = x*zs
748
local yy = y*ys
749
local yz = y*zs
750
local zz = z*zs
751
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))
752
end
753
 
754
function QuaternionSlerp(a, b, t)
755
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4]
756
local startInterp, finishInterp;
757
if cosTheta >= 0.0001 then
758
if (1 - cosTheta) > 0.0001 then
759
local theta = math.acos(cosTheta)
760
local invSinTheta = 1/math.sin(theta)
761
startInterp = math.sin((1-t)*theta)*invSinTheta
762
finishInterp = math.sin(t*theta)*invSinTheta  
763
else
764
startInterp = 1-t
765
finishInterp = t
766
end
767
else
768
if (1+cosTheta) > 0.0001 then
769
local theta = math.acos(-cosTheta)
770
local invSinTheta = 1/math.sin(theta)
771
startInterp = math.sin((t-1)*theta)*invSinTheta
772
finishInterp = math.sin(t*theta)*invSinTheta
773
else
774
startInterp = t-1
775
finishInterp = t
776
end
777
end
778
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
779
end
780
 
781
local function CFrameFromTopBack(at, top, back)
782
local right = top:Cross(back)
783
return CFrame.new(at.x, at.y, at.z,
784
right.x, top.x, back.x,
785
right.y, top.y, back.y,
786
right.z, top.z, back.z)
787
end
788
 
789
function Triangle(a, b, c)
790
local edg1 = (c-a):Dot((b-a).unit)
791
local edg2 = (a-b):Dot((c-b).unit)
792
local edg3 = (b-c):Dot((a-c).unit)
793
if edg1 <= (b-a).magnitude and edg1 >= 0 then
794
a, b, c = a, b, c
795
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
796
a, b, c = b, c, a
797
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
798
a, b, c = c, a, b
799
else
800
assert(false, "unreachable")
801
end
802
 
803
local len1 = (c-a):Dot((b-a).unit)
804
local len2 = (b-a).magnitude - len1
805
local width = (a + (b-a).unit*len1 - c).magnitude
806
 
807
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
808
 
809
local list = {}
810
 
811
if len1 > 0.01 then
812
local w1 = Instance.new('WedgePart', m)
813
game:GetService("Debris"):AddItem(w1,5)
814
w1.Material = "SmoothPlastic"
815
w1.FormFactor = 'Custom'
816
w1.BrickColor = BrickColor.new("Dark indigo")
817
w1.Transparency = 0
818
w1.Reflectance = 0
819
w1.Material = "SmoothPlastic"
820
w1.CanCollide = false
821
local l1 = Instance.new("PointLight",w1)
822
l1.Color = Color3.new(170,0,0)
823
NoOutline(w1)
824
local sz = Vector3.new(0.2, width, len1)
825
w1.Size = sz
826
local sp = Instance.new("SpecialMesh",w1)
827
sp.MeshType = "Wedge"
828
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
829
w1:BreakJoints()
830
w1.Anchored = true
831
w1.Parent = workspace
832
w1.Transparency = 0.7
833
table.insert(Effects,{w1,"Disappear",.01})
834
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
835
table.insert(list,w1)
836
end
837
 
838
if len2 > 0.01 then
839
local w2 = Instance.new('WedgePart', m)
840
game:GetService("Debris"):AddItem(w2,5)
841
w2.Material = "SmoothPlastic"
842
w2.FormFactor = 'Custom'
843
w2.BrickColor = BrickColor.new("Dark indigo")
844
w2.Transparency = 0
845
w2.Reflectance = 0
846
w2.Material = "SmoothPlastic"
847
w2.CanCollide = false
848
local l2 = Instance.new("PointLight",w2)
849
l2.Color = Color3.new(170,0,0)
850
NoOutline(w2)
851
local sz = Vector3.new(0.2, width, len2)
852
w2.Size = sz
853
local sp = Instance.new("SpecialMesh",w2)
854
sp.MeshType = "Wedge"
855
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
856
w2:BreakJoints()
857
w2.Anchored = true
858
w2.Parent = workspace
859
w2.Transparency = 0.7
860
table.insert(Effects,{w2,"Disappear",.01})
861
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
862
table.insert(list,w2)
863
end
864
return unpack(list)
865
end
866
 
867
 
868
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
869
  if hit.Parent == nil then
870
    return
871
  end
872
  local h = hit.Parent:FindFirstChild("Humanoid")
873
  for _, v in pairs(hit.Parent:children()) do
874
    if v:IsA("Humanoid") then
875
      h = v
876
    end
877
  end
878
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
879
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
880
      return
881
    end
882
    local c = Create("ObjectValue")({
883
      Name = "creator",
884
      Value = game:service("Players").plytalent,
885
      Parent = h
886
    })
887
    game:GetService("Debris"):AddItem(c, 0.5)
888
    if HitSound ~= nil and HitPitch ~= nil then
889
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
890
    end
891
    local Damage = math.random(0, 0)
892
    local blocked = false
893
    local block = hit.Parent:findFirstChild("Block")
894
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
895
      blocked = false
896
      block.Value = block.Value - 1
897
      print(block.Value)
898
    end
899
    if blocked == false then
900
      HitHealth = h.Health
901
      h.Health = 0
902
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
903
        print("gained kill")
904
      end
905
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
906
    else
907
      h.Health = -math.huge
908
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
909
    end
910
    if Type == "Knockdown" then
911
      local hum = hit.Parent.Humanoid
912
      hum.PlatformStand = true
913
      coroutine.resume(coroutine.create(function(HHumanoid)
914
        swait(1)
915
        HHumanoid.PlatformStand = false
916
      end), hum)
917
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
918
      local bodvol = Create("BodyVelocity")({
919
        velocity = angle * knockback,
920
        P = 5000,
921
        maxForce = Vector3.new(8000, 8000, 8000),
922
        Parent = hit
923
      })
924
      local rl = Create("BodyAngularVelocity")({
925
        P = 3000,
926
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
927
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
928
        Parent = hit
929
      })
930
      game:GetService("Debris"):AddItem(bodvol, 0.5)
931
      game:GetService("Debris"):AddItem(rl, 0.5)
932
    elseif Type == "Normal" then
933
      local vp = Create("BodyVelocity")({
934
        P = 500,
935
        maxForce = Vector3.new(math.huge, 0, math.huge),
936
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
937
      })
938
      if knockback > 0 then
939
        vp.Parent = hit.Parent.Torso
940
      end
941
      game:GetService("Debris"):AddItem(vp, 0.5)
942
    elseif Type == "Up" then
943
      local bodyVelocity = Create("BodyVelocity")({
944
        velocity = Vector3.new(0, 20, 0),
945
        P = 5000,
946
        maxForce = Vector3.new(8000, 8000, 8000),
947
        Parent = hit
948
      })
949
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
950
      local bodyVelocity = Create("BodyVelocity")({
951
        velocity = Vector3.new(0, 20, 0),
952
        P = 5000,
953
        maxForce = Vector3.new(8000, 8000, 8000),
954
        Parent = hit
955
      })
956
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
957
    elseif Type == "Leech" then
958
      local hum = hit.Parent.Humanoid
959
      if hum ~= nil then
960
        for i = 0, 2 do
961
          Effects.Sphere.Create(BrickColor.new("Dark indigo"), hit.Parent.Torso.CFrame * cn(0, 0, 0) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
962
        end
963
        Humanoid.Health = Humanoid.Health + 10
964
      end
965-
	MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
965+
966
      local hum = hit.Parent.Humanoid
967
      hum.PlatformStand = true
968
      if hum ~= nil then
969
        hitr = true
970
      end
971
      coroutine.resume(coroutine.create(function(HHumanoid)
972
        swait(5)
973
        HHumanoid.PlatformStand = false
974-
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
974+
975-
end 
975+
976
      local bodyVelocity = Create("BodyVelocity")({
977
        velocity = Vector3.new(0, 20, 0),
978
        P = 5000,
979
        maxForce = Vector3.new(8000, 8000, 8000),
980
        Parent = hit
981
      })
982
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
983
      local bodyVelocity = Create("BodyVelocity")({
984
        velocity = Vector3.new(0, 20, 0),
985-
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
985+
986
        maxForce = Vector3.new(8000, 8000, 8000),
987
        Parent = hit
988
      })
989
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
990
    elseif Type == "Snare" then
991
      local bp = Create("BodyPosition")({
992
        P = 2000,
993
        D = 100,
994
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
995
        position = hit.Parent.Torso.Position,
996
        Parent = hit.Parent.Torso
997
      })
998
      game:GetService("Debris"):AddItem(bp, 1)
999
    elseif Type == "Slashnare" then
1000
      Effects.Block.Create(BrickColor.new("Dark indigo"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
1001
      for i = 1, math.random(4, 5) do
1002
        Effects.Sphere.Create(BrickColor.new("Dark indigo"), hit.Parent.Torso.CFrame * cn(math.random(-5, 5), math.random(-5, 5), math.random(-5, 5)) * angles(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)), 1, 15, 1, 0, 5, 0, 0.02)
1003
      end
1004
      local bp = Create("BodyPosition")({
1005
        P = 2000,
1006
        D = 100,
1007
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1008
        position = hit.Parent.Torso.Position,
1009
        Parent = hit.Parent.Torso
1010
      })
1011-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1011+
1012
    elseif Type == "Spike" then
1013
      CreateBigIceSword(hit.Parent.Torso.CFrame)
1014
      local bp = Create("BodyPosition")({
1015
        P = 2000,
1016
        D = 100,
1017
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1018
        position = hit.Parent.Torso.Position,
1019
        Parent = hit.Parent.Torso
1020
      })
1021
      game:GetService("Debris"):AddItem(bp, 1)
1022
    elseif Type == "Freeze" then
1023
      local BodPos = Create("BodyPosition")({
1024
        P = 50000,
1025
        D = 1000,
1026
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1027
        position = hit.Parent.Torso.Position,
1028
        Parent = hit.Parent.Torso
1029-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1029+
1030-
	local rtype = rottype
1030+
1031
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1032
        P = 20000,
1033
        Parent = hit.Parent.Torso,
1034
        cframe = hit.Parent.Torso.CFrame
1035
      })
1036
      hit.Parent.Torso.Anchored = true
1037
      coroutine.resume(coroutine.create(function(Part)
1038
        swait(1.5)
1039
        Part.Anchored = false
1040
      end), hit.Parent.Torso)
1041
      game:GetService("Debris"):AddItem(BodPos, 3)
1042
      game:GetService("Debris"):AddItem(BodGy, 3)
1043
    end
1044
    local debounce = Create("BoolValue")({
1045
      Name = "DebounceHit",
1046
      Parent = hit.Parent,
1047
      Value = true
1048
    })
1049
    game:GetService("Debris"):AddItem(debounce, Delay)
1050
    c = Instance.new("ObjectValue")
1051
    c.Name = "creator"
1052-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1052+
1053
    c.Parent = h
1054
    game:GetService("Debris"):AddItem(c, 0.5)
1055
  end
1056
end
1057
function ShowDamage(Pos, Text, Time, Color)
1058
  local Rate = 0.03333333333333333
1059
  local Pos = Pos or Vector3.new(0, 0, 0)
1060
  local Text = Text or ""
1061
  local Time = Time or 2
1062
  local Color = Color or Color3.new(1, 0, 1)
1063
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1064
  EffectPart.Anchored = true
1065
  local BillboardGui = Create("BillboardGui")({
1066
    Size = UDim2.new(3, 0, 3, 0),
1067
    Adornee = EffectPart,
1068
    Parent = EffectPart
1069-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1069+
1070-
	local rtype = rottype
1070+
1071
    BackgroundTransparency = 1,
1072
    Size = UDim2.new(1, 0, 1, 0),
1073
    Text = Text,
1074
    TextColor3 = Color,
1075
    TextScaled = true,
1076
    Font = Enum.Font.ArialBold,
1077
    Parent = BillboardGui
1078
  })
1079
  game.Debris:AddItem(EffectPart, Time + 0.1)
1080
  EffectPart.Parent = game:GetService("Workspace")
1081
  delay(0, function()
1082
    local Frames = Time / Rate
1083
    for Frame = 1, Frames do
1084
      wait(Rate)
1085
      local Percent = Frame / Frames
1086
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1087
      TextLabel.TextTransparency = Percent
1088
    end
1089
    if EffectPart and EffectPart.Parent then
1090
      EffectPart:Destroy()
1091
    end
1092
  end)
1093
end
1094-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1094+
1095-
	local rtype = rottype
1095+
1096
    local hum = c:findFirstChild("Humanoid")
1097
    if hum ~= nil then
1098
      local head = c:findFirstChild("Torso")
1099
      if head ~= nil then
1100
        local targ = head.Position - Part.Position
1101
        local mag = targ.magnitude
1102
        if magni >= mag and c.Name ~= Player.Name then
1103
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1104
        end
1105
      end
1106
    end
1107
  end
1108
end
1109
 
1110
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1111
  for _, c in pairs(workspace:children()) do
1112
    local hum = c:findFirstChild("Humanoid")
1113
    if hum ~= nil then
1114
      local head = c:findFirstChild("Torso")
1115
      if head ~= nil then
1116
        local targ = head.Position - Part.Position
1117
        local mag = targ.magnitude
1118-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1118+
1119-
	local rtype = rottype
1119+
    MagicBlock(BrickColor.new("Dark indigo"),head.CFrame,5,5,5,1,1,1,0.05)
1120
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1121
        end
1122
      end
1123
    end
1124
  end
1125
end
1126
 
1127
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1128
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore)
1129
end
1130
 
1131
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
1132
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1133
prt.Anchored=true
1134
prt.CFrame=cframe
1135
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
1136
--http://www.roblox.com/asset/?id=4770560
1137
game:GetService("Debris"):AddItem(prt,2)
1138
CF=prt.CFrame
1139
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF)
1140
for i=0,1,0.2 do
1141-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1141+
1142-
	local rtype = rottype
1142+
1143
end
1144
for i=0,1,delay do
1145
wait()
1146
--Part.CFrame=CF*cf((math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5,(math.random(-1,0)+math.random())/5)
1147
Mesh.Scale=Mesh.Scale
1148
end
1149
for i=0,1,0.1 do
1150
wait()
1151
Part.Transparency=i
1152
end
1153
Part.Parent=nil
1154
end),prt,msh,CF)
1155
end
1156
 
1157
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1158
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1159
prt.Anchored=true
1160
prt.Material = "Neon"
1161
prt.CFrame=cframe
1162
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1163
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1164-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1164+
1165-
	local rtype = rottype
1165+
coroutine.resume(coroutine.create(function(Part,Mesh)
1166
for i=0,1,delay do
1167
swait()
1168
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1169
Part.Transparency=i
1170
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1171
end
1172
Part.Parent=nil
1173
end),prt,msh)
1174
end
1175
 
1176
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1177
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1178
prt.Anchored=true
1179
prt.Material = "Neon"
1180
prt.CFrame=cframe
1181
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1182
game:GetService("Debris"):AddItem(prt,5)
1183
coroutine.resume(coroutine.create(function(Part,Mesh)
1184
    local rtype = rottype
1185
for i=0,1,delay do
1186
swait()
1187-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1187+
1188-
	local rtype = rottype
1188+
1189
elseif rtype == 2 then
1190
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1191
end
1192
Part.Transparency=i
1193
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1194
end
1195
Part.Parent=nil
1196
end),prt,msh)
1197
end
1198
 
1199
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1200
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1201
prt.Anchored=true
1202
prt.CFrame=cframe
1203
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1204
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1205
game:GetService("Debris"):AddItem(prt,5)
1206
coroutine.resume(coroutine.create(function(Part,Mesh)
1207
for i=0,1,delay do
1208
wait()
1209
Part.Transparency=i
1210-
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1210+
1211
end
1212
Part.Parent=nil
1213
end),prt,msh)
1214
end
1215
 
1216
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1217
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1218
prt.Anchored=true
1219
prt.Material = "Neon"
1220
prt.CFrame=cframe
1221
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1222
game:GetService("Debris"):AddItem(prt,5)
1223
coroutine.resume(coroutine.create(function(Part,Mesh)
1224
    local rtype = rottype
1225
for i=0,1,delay do
1226
swait()
1227
if rtype == 1 then
1228
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1229-
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1229+
1230
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1231
end
1232
Part.Transparency=i
1233
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1234
end
1235
Part.Parent=nil
1236
end),prt,msh)
1237
end
1238
 
1239
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1240
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
1241
prt.Anchored=true
1242
prt.Material = "Neon"
1243
prt.CFrame=cframe
1244
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=196486942","Front",prt)
1245
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=196486942","Front",prt)
1246
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1247-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1247+
1248
coroutine.resume(coroutine.create(function(Part,Mesh)
1249
    local rtype = rottype
1250
for i=0,1,delay do
1251
swait()
1252
if rtype == 1 then
1253
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1254
elseif rtype == 2 then
1255
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1256
end
1257-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1257+
1258
dec2.Transparency=i
1259
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1260
end
1261
Part.Parent=nil
1262
end),prt,msh)
1263
end
1264
 
1265
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1266
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1267
prt.Anchored=true
1268
prt.Material = "Neon"
1269
prt.CFrame=cframe
1270
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1271
game:GetService("Debris"):AddItem(prt,5)
1272
coroutine.resume(coroutine.create(function(Part,Mesh)
1273
    local rtype = rottype
1274
for i=0,1,delay do
1275
swait()
1276
if rtype == 1 then
1277
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1278
elseif rtype == 2 then
1279
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1280-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1280+
1281
prt.Transparency=i
1282
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1283
end
1284
Part.Parent=nil
1285
end),prt,msh)
1286
end
1287
 
1288
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
1289
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1290
prt.Anchored=true
1291
prt.Material = "Neon"
1292
prt.CFrame=cframe
1293
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
1294
game:GetService("Debris"):AddItem(prt,5)
1295
coroutine.resume(coroutine.create(function(Part,Mesh)
1296
    local rtype = rottype
1297-
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
1297+
1298
swait()
1299
if rtype == 1 then
1300
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
1301
elseif rtype == 2 then
1302
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
1303
end
1304
prt.Transparency=i
1305
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
1306
end
1307
Part.Parent=nil
1308
end),prt,msh)
1309
end
1310
 
1311
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
1312
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1313
prt.Anchored=true
1314
prt.Material = "Neon"
1315
prt.CFrame=cframe
1316
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1317
game:GetService("Debris"):AddItem(prt,5)
1318
coroutine.resume(coroutine.create(function(Part,Mesh)
1319
    local rtype = rottype
1320-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1320+
1321
swait()
1322
if rtype == 1 then
1323
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1324
elseif rtype == 2 then
1325
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1326
end
1327
prt.Transparency=i
1328
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1329
end
1330
Part.Parent=nil
1331
end),prt,msh)
1332
end
1333
 
1334
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1335
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1336
prt.Anchored=true
1337-
coroutine.resume(coroutine.create(function(Part,Mesh) 
1337+
1338
prt.CFrame=cframe
1339
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1340
game:GetService("Debris"):AddItem(prt,5)
1341
coroutine.resume(coroutine.create(function(Part,Mesh)
1342
    local rtype = rottype
1343
for i=0,1,delay do
1344
swait()
1345
if rtype == 1 then
1346
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1347
elseif rtype == 2 then
1348
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1349
end
1350
prt.Transparency=i
1351
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1352
end
1353
Part.Parent=nil
1354-
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
1354+
1355
end
1356
 
1357
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1358
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1359
prt.Anchored=false
1360
prt.CFrame=cframe
1361
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1362
local wld=weld(prt,prt,Parent,cframe)
1363
game:GetService("Debris"):AddItem(prt,5)
1364
coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
1365
for i=0,1,delay do
1366
wait()
1367
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
1368
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1369
Part.Transparency=i
1370-
	hitcon = what.Touched:connect(function(hit)
1370+
1371-
		local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
1371+
1372-
		if hum and not hum:IsDescendantOf(Character) then
1372+
1373-
			hum.Maxhealth = 0
1373+
1374-
			hum.Health = 0
1374+
1375
 
1376
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1377
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1378
prt.Anchored=false
1379
prt.CFrame=cframe
1380-
	hitcon:disconnect()
1380+
1381
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
1382
game:GetService("Debris"):AddItem(prt,5)
1383
coroutine.resume(coroutine.create(function(Part,Mesh,Weld)
1384
for i=0,1,delay do
1385
wait()
1386
Weld.C0=euler(i*20,0,0)
1387
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1388-
                coroutine.resume(coroutine.create(function() 
1388+
1389
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1390
end
1391
Part.Parent=nil
1392
end),prt,msh,wld)
1393
end
1394
 
1395
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1396
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1397
prt.Anchored=true
1398-
                coroutine.resume(coroutine.create(function(derp) 
1398+
1399
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1400
game:GetService("Debris"):AddItem(prt,2)
1401
coroutine.resume(coroutine.create(function(Part,Mesh)
1402
for i=0,1,delay do
1403
wait()
1404
Part.CFrame=Part.CFrame
1405
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1406
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1407
prt2.Anchored=true
1408
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1409-
                coroutine.resume(coroutine.create(function() 
1409+
1410
game:GetService("Debris"):AddItem(prt2,2)
1411
coroutine.resume(coroutine.create(function(Part,Mesh)
1412
for i=0,1,0.1 do
1413
wait()
1414
Part.CFrame=Part.CFrame*cf(0,0.5,0)
1415
end
1416
Part.Parent=nil
1417
end),prt2,msh2)
1418
end
1419
for i=0,1,delay*2 do
1420
wait()
1421-
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
1421+
1422-
Face.Parent=Head 
1422+
1423
end
1424
Part.Parent=nil
1425
end),prt,msh)
1426-
                coroutine.resume(coroutine.create(function() 
1426+
1427
 
1428
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1429
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1430
prt.Anchored=true
1431
prt.CFrame=cframe
1432
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1433
game:GetService("Debris"):AddItem(prt,2)
1434
coroutine.resume(coroutine.create(function(Part,Mesh)
1435
for i=0,1,delay do
1436-
                coroutine.resume(coroutine.create(function(derp) 
1436+
1437
Part.CFrame=Part.CFrame
1438
Part.Transparency=i
1439
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1440
end
1441
Part.Parent=nil
1442
end),prt,msh)
1443
end
1444
 
1445
function BreakEffect(brickcolor,cframe,x1,y1,z1)
1446
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1447-
                coroutine.resume(coroutine.create(function() 
1447+
1448
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1449
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1450
game:GetService("Debris"):AddItem(prt,2)
1451
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb)
1452
CF=Part.CFrame
1453
Numbb=0
1454
randnumb=math.random()/10
1455
rand1=math.random()/10
1456
for i=0,1,rand1 do
1457
wait()
1458
CF=CF*cf(0,math.random()/2,0)
1459
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
1460
Part.CFrame=CF*euler(Numbb,0,0)
1461
Part.Transparency=i
1462-
	local expart = Instance.new("Part",char)
1462+
1463-
	local expart2 = Instance.new("Part",char)
1463+
1464-
	local rin = Instance.new("Part",char)
1464+
1465-
	local rin2 = Instance.new("Part",char)
1465+
1466-
	local partMesh = Instance.new("SpecialMesh",expart)
1466+
1467-
	partMesh.MeshType = "Sphere"
1467+
1468-
	local partMesh2 = Instance.new("SpecialMesh",expart2)
1468+
1469-
	partMesh2.MeshType = "Sphere"
1469+
1470-
	local partMesh3 = Instance.new("SpecialMesh",rin)
1470+
1471-
	partMesh3.MeshType = "Brick"
1471+
1472-
	local partMesh4 = Instance.new("SpecialMesh",rin2)
1472+
1473-
	partMesh4.MeshType = "Brick"
1473+
1474-
	CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
1474+
coroutine.resume(coroutine.create(function(Part,Mesh)
1475-
	partMesh.Scale = vt(rad,rad,rad)
1475+
1476-
	expart.Size = vt(1,1,1)
1476+
1477-
	expart.Transparency = 1
1477+
1478-
	expart.Anchored = true
1478+
1479-
	expart.Material = "Neon"
1479+
1480-
	expart.BrickColor = bc("Really black")
1480+
1481-
	expart.CFrame = par.CFrame
1481+
1482-
	partMesh2.Scale = vt(rad,rad,rad)
1482+
1483-
	expart2.Size = vt(1.15,1.15,1.15)
1483+
1484-
	expart2.Transparency = 0.75
1484+
1485-
	expart2.Anchored = true
1485+
1486-
	expart2.Material = "Glass"
1486+
1487-
	expart2.BrickColor = par.BrickColor
1487+
1488-
	expart2.CFrame = par.CFrame
1488+
1489-
	rin.Size = vt(1.15,1.15,1.15)
1489+
1490-
	rin.Transparency = 1
1490+
1491-
	rin.Anchored = true
1491+
coroutine.resume(coroutine.create(function(Part,Mesh)
1492-
	rin.Material = "Neon"
1492+
1493-
	rin.BrickColor = par.BrickColor
1493+
1494-
	rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
1494+
1495-
	rin2.Size = vt(1.15,1.15,1.15)
1495+
1496-
	rin2.Transparency = 1
1496+
1497-
	rin2.Anchored = true
1497+
1498-
	rin2.Material = "Neon"
1498+
1499-
	rin2.BrickColor = par.BrickColor
1499+
1500-
	rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
1500+
1501-
	partMesh3.Scale = vt(0,1,0)
1501+
1502-
	partMesh4.Scale = vt(0,1,0)
1502+
1503
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1504
prt.Anchored=true
1505
prt.CFrame=cframe*cf(x,y,z)
1506
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
1507
game:GetService("Debris"):AddItem(prt,5)
1508
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee)
1509
local num=math.random()
1510
local num2=math.random(-3,2)+math.random()
1511
local numm=0
1512
for i=0,1,delay*2 do
1513
swait()
1514
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
1515
Part.Transparency=i
1516
numm=numm+0.01
1517
end
1518
Part.Parent=nil
1519
Mesh.Parent=nil
1520
end),prt,msh,x,y,z)
1521
end
1522
 
1523
function dmgstart(dmg,what)
1524-
	for i = 0, 199 do
1524+
    hitcon = what.Touched:connect(function(hit)
1525
        local hum = hit.Parent:FindFirstChildOfClass("Humanoid")
1526-
		expart.CFrame = expart.CFrame
1526+
        if hum and not hum:IsDescendantOf(Character) then
1527
            hum.Maxhealth = 0
1528-
		expart2.CFrame = expart.CFrame
1528+
            hum.Health = 0
1529
        end
1530
    end)
1531-
	partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
1531+
1532-
		rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
1532+
1533-
	partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
1533+
1534-
		rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
1534+
    hitcon:disconnect()
1535
end
1536
 
1537
function Cloak()
1538
Face.Parent=nil
1539
cloaked=true
1540
        for _,v in pairs(Torso.Parent:children()) do
1541-
		expart.Transparency = expart.Transparency + 0.025
1541+
1542-
		expart2.Transparency = expart2.Transparency + 0.025
1542+
                coroutine.resume(coroutine.create(function()
1543-
		rin.Transparency = rin.Transparency + 0.025
1543+
1544-
		rin2.Transparency = rin2.Transparency + 0.025
1544+
1545
                v.Transparency=i
1546-
		swait()
1546+
1547
                v.Transparency=1
1548
                end))
1549
                end
1550
                if v.className=="Hat" then
1551
                hatp=v.Handle
1552
                coroutine.resume(coroutine.create(function(derp)
1553
                for i=0,1,0.2 do
1554
                wait()
1555-
	local expart = Instance.new("Part",char)
1555+
1556-
	local expart2 = Instance.new("Part",char)
1556+
1557-
	local partMesh = Instance.new("SpecialMesh",expart)
1557+
1558-
	partMesh.MeshType = "Sphere"
1558+
1559-
	local partMesh2 = Instance.new("SpecialMesh",expart2)
1559+
1560-
	partMesh2.MeshType = "Sphere"
1560+
1561-
	CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
1561+
1562-
	partMesh.Scale = vt(rad,rad,rad)
1562+
1563-
	expart.Size = vt(1,1,1)
1563+
                coroutine.resume(coroutine.create(function()
1564-
	expart.Transparency = 0
1564+
1565-
	expart.Anchored = true
1565+
1566-
	expart.Material = "Neon"
1566+
1567-
	expart.BrickColor = bc("Really black")
1567+
1568-
	expart.CFrame = par.CFrame
1568+
1569-
	partMesh2.Scale = vt(rad,rad,rad)
1569+
1570-
	expart2.Size = vt(1.15,1.15,1.15)
1570+
1571-
	expart2.Transparency = 0.5
1571+
1572-
	expart2.Anchored = true
1572+
1573-
	expart2.Material = "Neon"
1573+
1574-
	expart2.BrickColor = par.BrickColor
1574+
1575-
	expart2.CFrame = par.CFrame
1575+
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1)
1576
Face.Parent=Head
1577
cloaked=false
1578
        for _,v in pairs(Torso.Parent:children()) do
1579
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
1580-
	for i = 0, 75 do
1580+
                coroutine.resume(coroutine.create(function()
1581
                for i=0,1,0.1 do
1582-
		expart.CFrame = expart.CFrame
1582+
1583
                v.Transparency=v.Transparency-0.1
1584-
		expart2.CFrame = expart.CFrame
1584+
1585
                v.Transparency=0
1586
                end))
1587
                end
1588-
		expart.Transparency = expart.Transparency + 0.05
1588+
1589-
		expart2.Transparency = expart2.Transparency + 0.05
1589+
1590
                coroutine.resume(coroutine.create(function(derp)
1591-
		swait()
1591+
1592
                wait()
1593
                derp.Transparency=derp.Transparency-0.1
1594
                end
1595
                derp.Transparency=0
1596
                end),hatp)
1597
                end
1598-
	local expart = Instance.new("Part",char)
1598+
1599-
	local partMesh = Instance.new("SpecialMesh",expart)
1599+
1600-
	CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
1600+
1601-
	partMesh.MeshType = "Sphere"
1601+
                coroutine.resume(coroutine.create(function()
1602-
	partMesh.Scale = vt(rad,rad,rad)
1602+
1603-
	expart.Size = vt(1,1,1)
1603+
1604-
	expart.Transparency = 0.5
1604+
1605-
	expart.Anchored = true
1605+
1606-
	expart.Material = "Neon"
1606+
1607-
	expart.CanCollide = false
1607+
1608-
	expart.BrickColor = par.BrickColor
1608+
1609-
	expart.CFrame = par.CFrame
1609+
1610
        end
1611
end
1612-
	for i = 0, 14 do
1612+
1613-
		wait()
1613+
1614
---- This section of explosions.
1615-
		expart.CFrame = expart.CFrame
1615+
1616
    local expart = Instance.new("Part",char)
1617
    local expart2 = Instance.new("Part",char)
1618-
	value = 0
1618+
    local rin = Instance.new("Part",char)
1619
    local rin2 = Instance.new("Part",char)
1620
    local partMesh = Instance.new("SpecialMesh",expart)
1621-
	wait(0.25)
1621+
    partMesh.MeshType = "Sphere"
1622
    local partMesh2 = Instance.new("SpecialMesh",expart2)
1623
    partMesh2.MeshType = "Sphere"
1624
    local partMesh3 = Instance.new("SpecialMesh",rin)
1625
    partMesh3.MeshType = "Brick"
1626
    local partMesh4 = Instance.new("SpecialMesh",rin2)
1627
    partMesh4.MeshType = "Brick"
1628
    CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
1629-
		wait()
1629+
    partMesh.Scale = vt(rad,rad,rad)
1630
    expart.Size = vt(1,1,1)
1631-
		expart.CFrame = expart.CFrame
1631+
    expart.Transparency = 1
1632
    expart.Anchored = true
1633
    expart.Material = "Neon"
1634
    expart.BrickColor = bc("Really black")
1635
    expart.CFrame = par.CFrame
1636
    partMesh2.Scale = vt(rad,rad,rad)
1637
    expart2.Size = vt(1.15,1.15,1.15)
1638
    expart2.Transparency = 0.75
1639-
		CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
1639+
    expart2.Anchored = true
1640-
	CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
1640+
    expart2.Material = "Glass"
1641-
	CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
1641+
    expart2.BrickColor = par.BrickColor
1642-
	CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
1642+
    expart2.CFrame = par.CFrame
1643-
			MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
1643+
    rin.Size = vt(1.15,1.15,1.15)
1644-
			MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
1644+
    rin.Transparency = 1
1645-
	for i = 0, 24 do
1645+
    rin.Anchored = true
1646-
		MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
1646+
    rin.Material = "Neon"
1647
    rin.BrickColor = par.BrickColor
1648-
	for i = 0, 24 do
1648+
    rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
1649-
	local expart = Instance.new("Part",char)
1649+
    rin2.Size = vt(1.15,1.15,1.15)
1650-
	expart.Transparency = 1
1650+
    rin2.Transparency = 1
1651-
	expart.Anchored = true
1651+
    rin2.Anchored = true
1652-
	expart.CanCollide = false
1652+
    rin2.Material = "Neon"
1653-
	expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
1653+
    rin2.BrickColor = par.BrickColor
1654
    rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
1655
    partMesh3.Scale = vt(0,1,0)
1656
    partMesh4.Scale = vt(0,1,0)
1657
local dec2 = Instance.new("Decal", rin)
1658
dec2.Face = "Top"
1659-
		MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
1659+
1660
dec2.Parent = rin
1661
local dec2b = dec2:Clone()
1662
dec2b.Face = "Bottom"
1663
dec2b.Parent = rin
1664
--196486942
1665
local dec2a = Instance.new("Decal", rin2)
1666
dec2a.Face = "Top"
1667-
		CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
1667+
1668-
	CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
1668+
1669-
	CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
1669+
1670-
	CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
1670+
1671-
			MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
1671+
1672-
			MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
1672+
1673-
			MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
1673+
1674-
	for i = 0, 24 do
1674+
1675-
		MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
1675+
1676
MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
1677-
	for i = 0, 24 do
1677+
1678-
		MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
1678+
    for i = 0, 199 do
1679
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
1680
        expart.CFrame = expart.CFrame
1681
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
1682
        expart2.CFrame = expart.CFrame
1683
                value = value - 0.035*rad/30
1684
                if value < 7.5 then
1685
    partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
1686-
	attack = true
1686+
        rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
1687-
	--[[for i = 0,1,0.1 do
1687+
    partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
1688-
		swait()
1688+
        rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
1689
        end
1690
                if value < 0 then
1691
dec2.Transparency = dec2.Transparency + 0.025
1692
dec2a.Transparency = dec2a.Transparency + 0.025
1693-
	end]]--
1693+
1694
dec2ab.Transparency = dec2ab.Transparency + 0.025
1695
        expart.Transparency = expart.Transparency + 0.025
1696
        expart2.Transparency = expart2.Transparency + 0.025
1697
        rin.Transparency = rin.Transparency + 0.025
1698
        rin2.Transparency = rin2.Transparency + 0.025
1699
                end
1700
        swait()
1701
    end
1702
game:GetService("Debris"):AddItem(expart, 1)
1703
game:GetService("Debris"):AddItem(expart2, 1)
1704
game:GetService("Debris"):AddItem(rin, 1)
1705
game:GetService("Debris"):AddItem(rin2, 1)
1706
end
1707
 
1708
function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
1709
    local expart = Instance.new("Part",char)
1710
    local expart2 = Instance.new("Part",char)
1711
    local partMesh = Instance.new("SpecialMesh",expart)
1712
    partMesh.MeshType = "Sphere"
1713
    local partMesh2 = Instance.new("SpecialMesh",expart2)
1714
    partMesh2.MeshType = "Sphere"
1715
    CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
1716
    partMesh.Scale = vt(rad,rad,rad)
1717
    expart.Size = vt(1,1,1)
1718
    expart.Transparency = 0
1719
    expart.Anchored = true
1720
    expart.Material = "Neon"
1721
    expart.BrickColor = bc("Really black")
1722
    expart.CFrame = par.CFrame
1723
    partMesh2.Scale = vt(rad,rad,rad)
1724
    expart2.Size = vt(1.15,1.15,1.15)
1725
    expart2.Transparency = 0.5
1726
    expart2.Anchored = true
1727
    expart2.Material = "Neon"
1728
    expart2.BrickColor = par.BrickColor
1729
    expart2.CFrame = par.CFrame
1730
expart.CanCollide = false
1731
expart2.CanCollide = false
1732
MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
1733-
attack = false 
1733+
1734
    for i = 0, 75 do
1735
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
1736
        expart.CFrame = expart.CFrame
1737
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
1738
        expart2.CFrame = expart.CFrame
1739
                value = value - 0.035*rad/5
1740
                if value < 0 then
1741
value = 0
1742
        expart.Transparency = expart.Transparency + 0.05
1743
        expart2.Transparency = expart2.Transparency + 0.05
1744
                end
1745
        swait()
1746
    end
1747
game:GetService("Debris"):AddItem(expart, 1)
1748
game:GetService("Debris"):AddItem(expart2, 1)
1749
end
1750
 
1751
function AreaDanger(rad,par,mindam,maxdam)
1752
    local expart = Instance.new("Part",char)
1753
    local partMesh = Instance.new("SpecialMesh",expart)
1754
    CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
1755
    partMesh.MeshType = "Sphere"
1756
    partMesh.Scale = vt(rad,rad,rad)
1757
    expart.Size = vt(1,1,1)
1758
    expart.Transparency = 0.5
1759
    expart.Anchored = true
1760
    expart.Material = "Neon"
1761
    expart.CanCollide = false
1762
    expart.BrickColor = par.BrickColor
1763
    expart.CFrame = par.CFrame
1764
        local value = 1*rad/5
1765
MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
1766
    for i = 0, 14 do
1767
        wait()
1768
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
1769
        expart.CFrame = expart.CFrame
1770
                value = value - 0.035*rad
1771
                if value < 0 then
1772
    value = 0
1773
end
1774
    end
1775
    wait(0.25)
1776
CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
1777
wait(0.5)
1778
CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
1779
CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
1780
MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
1781
MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
1782
for i = 0, 14 do
1783
        wait()
1784
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
1785
        expart.CFrame = expart.CFrame
1786
                value = value - 0.035*rad/2
1787
end
1788
expart.Transparency = 1
1789
game:GetService("Debris"):AddItem(expart, 5)
1790
end
1791
 
1792
function Swarmsplosions(negrad,rad,par,mindam,maxdam)
1793
        CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
1794
    CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
1795
    CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
1796
    CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
1797
            MagniDamageWithEffect(par, 25, 5,10, 0, "Normal")
1798
            MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
1799
    for i = 0, 24 do
1800
        MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,25,0.005,math.random(1,2))
1801
    end
1802
    for i = 0, 24 do
1803
    local expart = Instance.new("Part",char)
1804
    expart.Transparency = 1
1805
    expart.Anchored = true
1806
    expart.CanCollide = false
1807
    expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
1808
CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
1809
CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
1810
MagniDamage(expart, rad/2, mindam, maxdam, 0, "Normal")
1811
MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
1812
for i = 0, 9 do
1813
        MagicShockTrailAlt2(origcolor,expart.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10/5,10/5,5,-0.05/5,-0.05/5,5,0.05,math.random(1,2))
1814
    end
1815
game:GetService("Debris"):AddItem(expart, 2)
1816
wait(0.1)
1817
    end
1818
end
1819
 
1820
function EXterPlosion(par)
1821
        CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
1822
    CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
1823
    CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
1824
    CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
1825
            MagniDamageWithEffect(par, 500, 80,99, 0, "Normal")
1826
            MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
1827
            MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
1828
    for i = 0, 24 do
1829
        MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*10,-0.05*10,500,0.1,math.random(1,2))
1830
    end
1831
    for i = 0, 24 do
1832
        MagicShockTrailAlt2(origcolor,par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10*5,10*5,5,-0.05*5,-0.05*5,50,0.005,math.random(1,2))
1833
    end
1834
end
1835
----
1836
 
1837
local stackingpower = 1
1838
 
1839
function HellsCore()
1840
    attack = true
1841
    --[[for i = 0,1,0.1 do
1842
        swait()
1843
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.3)
1844
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.3)
1845
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.3)
1846
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.3)
1847
    end]]--
1848
 
1849
local rng = Instance.new("Part", char)
1850
CFuncs["Sound"].Create("rbxassetid://401466969", root, 1, 0.6)
1851
        rng.Anchored = true
1852
        rng.BrickColor = origcolor
1853
        rng.CanCollide = false
1854
        rng.FormFactor = 3
1855
        rng.Name = "Ring"
1856
        rng.Material = "Neon"
1857
        rng.Size = Vector3.new(1, 1, 1)
1858
        rng.Transparency = 1
1859
        rng.TopSurface = 0
1860
        rng.BottomSurface = 0
1861
        rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
1862
        local rngm = Instance.new("SpecialMesh", rng)
1863
        rngm.MeshType = "Brick"
1864
local dec = Instance.new("Decal",rng)
1865
dec.Texture = "http://www.roblox.com/asset/?id=196486942"
1866
dec.Face = "Top"
1867
local dec2 = dec:Clone()
1868
dec2.Parent = rng
1869
dec2.Face = "Bottom"
1870
 
1871
local scaler2 = 1
1872
scaler2 = 1*3
1873
for i = 0,10,0.1 do
1874
swait()
1875
scaler2 = scaler2 - 0.01*3
1876
rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
1877
end
1878
wait(3)
1879
for i = 0,10,0.1 do
1880
swait()
1881
scaler2 = scaler2 - 0.01*3
1882
dec.Transparency = dec.Transparency + 0.01
1883
dec2.Transparency = dec2.Transparency + 0.01
1884
rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
1885
end
1886
rng:Destroy()
1887
attack = false
1888
end
1889
 
1890
 
1891
function FaceMouse()
1892
  Cam = workspace.CurrentCamera
1893
  return {
1894
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, char.Torso.Position.y, mouse.Hit.p.z)),
1895
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1896
  }
1897
end
1898
 
1899
function FaceMouse2()
1900
  Cam = workspace.CurrentCamera
1901
  return {
1902
    CFrame.new(char.Torso.Position, Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)),
1903
    Vector3.new(mouse.Hit.p.x, mouse.Hit.p.y, mouse.Hit.p.z)
1904
  }
1905
end
1906
 
1907
 
1908
local HoldingZ = false
1909
local HoldingX = false
1910
local HoldingC = false
1911
local HoldingV = false
1912
local HoldingB = false
1913
 
1914
 
1915
function RingEffect(pos,startsize,size,col)
1916
local lb = Instance.new("Part")
1917
  lb.Parent = char
1918
    lb.BrickColor = col
1919
     lb.CanCollide = false
1920
lb.Material = "Neon"
1921
     lb.Anchored = true
1922
lb.TopSurface = 0
1923
        lb.BottomSurface = 0
1924
     lb.Transparency = 1
1925
     lb.Size = vt(1,1,1)
1926
     lb.CFrame = pos
1927
local thingery = Instance.new("SpecialMesh",lb)
1928
     thingery.MeshType = "Brick"
1929
thingery.Scale = vt(startsize,0.1,startsize)
1930
local dec2 = Instance.new("Texture", lb)
1931
dec2.Face = "Top"
1932
dec2.Texture = "http://www.roblox.com/asset/?id=196486942"
1933
dec2.Color3 = lb.Color
1934
dec2.Parent = lb
1935
dec2.StudsPerTileU = startsize
1936
dec2.StudsPerTileV = startsize
1937
local dec2b = dec2:Clone()
1938
dec2b.Face = "Bottom"
1939
dec2b.Parent = lb
1940
local randomrot = math.random(1,2)
1941
coroutine.resume(coroutine.create(function()
1942
for i = 0, 19 do
1943
swait()
1944
if randomrot == 1 then
1945
lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
1946
elseif randomrot == 2 then
1947
lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
1948
end
1949
dec2.Transparency = dec2.Transparency + 0.05
1950
dec2b.Transparency = dec2b.Transparency + 0.05
1951
dec2.StudsPerTileU = dec2.StudsPerTileU + size
1952
dec2.StudsPerTileV = dec2.StudsPerTileV + size
1953
dec2b.StudsPerTileU = dec2b.StudsPerTileU + size
1954
dec2b.StudsPerTileV = dec2b.StudsPerTileV + size
1955
thingery.Scale = thingery.Scale + vt(size,0,size)
1956
end
1957
lb:Destroy()
1958
end))
1959
end
1960
 
1961
function SlowRingEffect(pos,startsize,size,col)
1962
local lb = Instance.new("Part")
1963
  lb.Parent = char
1964
    lb.BrickColor = col
1965
     lb.CanCollide = false
1966
lb.Material = "Neon"
1967
     lb.Anchored = true
1968
lb.TopSurface = 0
1969
        lb.BottomSurface = 0
1970
     lb.Transparency = 1
1971
     lb.Size = vt(1,1,1)
1972
     lb.CFrame = pos
1973
local thingery = Instance.new("SpecialMesh",lb)
1974
     thingery.MeshType = "Brick"
1975
thingery.Scale = vt(startsize,0.1,startsize)
1976
local dec2 = Instance.new("Decal", lb)
1977
dec2.Face = "Top"
1978
dec2.Texture = "http://www.roblox.com/asset/?id=196486942"
1979
dec2.Color3 = lb.Color
1980
dec2.Parent = lb
1981
local dec2b = dec2:Clone()
1982
dec2b.Face = "Bottom"
1983
dec2b.Parent = lb
1984
local randomrot = math.random(1,2)
1985
coroutine.resume(coroutine.create(function()
1986
for i = 0, 49 do
1987
swait()
1988
if randomrot == 1 then
1989
lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(5),0)
1990
elseif randomrot == 2 then
1991
lb.CFrame = lb.CFrame*CFrame.new(0,math.rad(-5),0)
1992
end
1993
dec2.Transparency = dec2.Transparency + 0.02
1994
dec2b.Transparency = dec2b.Transparency + 0.02
1995
thingery.Scale = thingery.Scale + vt(size,0,size)
1996
end
1997
lb:Destroy()
1998
end))
1999
end
2000
 
2001
 
2002
function groundringaa(pos)
2003
local rng = Instance.new("Part", char)
2004
        rng.Anchored = true
2005
        rng.BrickColor = origcolor
2006
        rng.CanCollide = false
2007
        rng.FormFactor = 3
2008
        rng.Name = "Ring"
2009
        rng.Size = Vector3.new(1, 1, 1)
2010
        rng.Transparency = 1
2011
        rng.TopSurface = 0
2012
        rng.BottomSurface = 0
2013
        rng.CFrame = pos
2014
        local rngm = Instance.new("SpecialMesh", rng)
2015
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2016
rngm.Scale = Vector3.new(100,100,5)
2017
local scaler2 = -10/2
2018
coroutine.resume(coroutine.create(function()
2019
for i = 0,10,0.1 do
2020
swait()
2021
scaler2 = scaler2 + 0.1/2
2022
rng.Transparency = rng.Transparency - 0.01
2023
rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
2024
end
2025
rng:Destroy()
2026
end))
2027
end
2028
 
2029
function groundringbb(pos)
2030
local rng = Instance.new("Part", char)
2031
        rng.Anchored = true
2032
        rng.BrickColor = origcolor
2033
        rng.CanCollide = false
2034
        rng.FormFactor = 3
2035
        rng.Name = "Ring"
2036
        rng.Size = Vector3.new(1, 1, 1)
2037
        rng.Transparency = 0
2038
        rng.TopSurface = 0
2039
        rng.BottomSurface = 0
2040
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2041
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2042
        local rngm = Instance.new("SpecialMesh", rng)
2043
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2044
rngm.Scale = Vector3.new(0,0,5)
2045
local scaler2 = 10
2046
coroutine.resume(coroutine.create(function()
2047
for i = 0,10*2,0.1 do
2048
swait()
2049
scaler2 = scaler2 - 0.1/2
2050
rng.Transparency = rng.Transparency + 0.005
2051
rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
2052
end
2053
rng:Destroy()
2054
end))
2055
end
2056
 
2057
function groundglowaa(pos)
2058
local rng = Instance.new("Part", char)
2059
        rng.Anchored = true
2060
        rng.BrickColor = origcolor
2061
        rng.CanCollide = false
2062
        rng.FormFactor = 3
2063
rng.Material = "Neon"
2064
        rng.Name = "Ring"
2065
        rng.Size = Vector3.new(1, 1, 1)
2066
        rng.Transparency = 0
2067
        rng.TopSurface = 0
2068
        rng.BottomSurface = 0
2069
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2070
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2071
        local rngm = Instance.new("SpecialMesh", rng)
2072
        rngm.MeshType = "Sphere"
2073
rngm.Scale = Vector3.new(0,0,25)
2074
local scaler2 = 10*2
2075
coroutine.resume(coroutine.create(function()
2076
for i = 0,10*2,0.1 do
2077
swait()
2078
scaler2 = scaler2 - 0.1*2/2
2079
rng.Transparency = rng.Transparency + 0.005
2080
rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, 0)
2081
end
2082
rng:Destroy()
2083
end))
2084
end
2085
 
2086
function bemaa(pos)
2087
local rng = Instance.new("Part", char)
2088
        rng.Anchored = true
2089
        rng.BrickColor = origcolor
2090
        rng.CanCollide = false
2091
        rng.FormFactor = 3
2092
rng.Material = "Neon"
2093
        rng.Name = "Ring"
2094
        rng.Size = Vector3.new(1, 1, 1)
2095
        rng.Transparency = 0
2096
        rng.TopSurface = 0
2097
        rng.BottomSurface = 0
2098
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2099
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2100
        local rngm = Instance.new("SpecialMesh", rng)
2101
        rngm.MeshType = "Sphere"
2102
rngm.Scale = Vector3.new(0,0,10000)
2103
local scaler2 = 1
2104
coroutine.resume(coroutine.create(function()
2105
for i = 0,99,0.1 do
2106
swait()
2107
scaler2 = scaler2 - 0.0025
2108
rng.Transparency = rng.Transparency + 0.0025
2109
rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
2110
end
2111
rng:Destroy()
2112
end))
2113
end
2114
 
2115
function bemaashake(pos)
2116
local rng = Instance.new("Part", char)
2117
        rng.Anchored = true
2118
        rng.BrickColor = origcolor
2119
        rng.CanCollide = false
2120
        rng.FormFactor = 3
2121
rng.Material = "Neon"
2122
        rng.Name = "Ring"
2123
        rng.Size = Vector3.new(1, 1, 1)
2124
        rng.Transparency = 0
2125
        rng.TopSurface = 0
2126
        rng.BottomSurface = 0
2127
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2128
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2129
        local rngm = Instance.new("SpecialMesh", rng)
2130
        rngm.MeshType = "Sphere"
2131
local oof = Instance.new("Part",char)
2132
oof.Parent = rng
2133
oof.CFrame = rng.CFrame
2134
oof.CanCollide = false
2135
oof.Anchored = true
2136
oof.Transparency = 1
2137
rngm.Scale = Vector3.new(0,0,10000)
2138
local scaler2 = 1*10
2139
coroutine.resume(coroutine.create(function()
2140
for i = 0,99,0.1 do
2141
swait()
2142
scaler2 = scaler2 - 0.0025*10
2143
rng.CFrame = oof.CFrame + Vector3.new(math.random(-1,1),0,math.random(-1,1))
2144
rng.Transparency = rng.Transparency + 0.0025
2145
rngm.Scale = rngm.Scale + Vector3.new(scaler2/5, scaler2/5, 0)
2146
end
2147
rng:Destroy()
2148
end))
2149
end
2150
 
2151
function groundringlarge(pos)
2152
local rng = Instance.new("Part", char)
2153
        rng.Anchored = true
2154
        rng.BrickColor = origcolor
2155
        rng.CanCollide = false
2156
        rng.FormFactor = 3
2157
        rng.Name = "Ring"
2158
        rng.Size = Vector3.new(1, 1, 1)
2159
        rng.Transparency = 0
2160
        rng.TopSurface = 0
2161
        rng.BottomSurface = 0
2162
        rng.CFrame = pos.CFrame - Vector3.new(0,2.5,0)
2163
rng.CFrame = rng.CFrame *CFrame.Angles(math.rad(90),0,0)
2164
        local rngm = Instance.new("SpecialMesh", rng)
2165
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2166
rngm.Scale = Vector3.new(0,0,5)
2167
local scaler2 = 10*10
2168
coroutine.resume(coroutine.create(function()
2169
for i = 0,10*2,0.1 do
2170
swait()
2171
scaler2 = scaler2 - 0.1*10/2
2172
rng.Transparency = rng.Transparency + 0.005
2173
rngm.Scale = rngm.Scale + Vector3.new(scaler2/2.5, scaler2/2.5, scaler2)
2174
end
2175
rng:Destroy()
2176
end))
2177
end
2178
 
2179
function sphere(bonuspeed,type,pos,scale,value,color)
2180
local type = type
2181
local rng = Instance.new("Part", char)
2182
        rng.Anchored = true
2183
        rng.BrickColor = color
2184
        rng.CanCollide = false
2185
        rng.FormFactor = 3
2186
        rng.Name = "Ring"
2187
        rng.Material = "Neon"
2188
        rng.Size = Vector3.new(1, 1, 1)
2189
        rng.Transparency = 0
2190
        rng.TopSurface = 0
2191
        rng.BottomSurface = 0
2192
        rng.CFrame = pos
2193
        local rngm = Instance.new("SpecialMesh", rng)
2194
        rngm.MeshType = "Sphere"
2195
rngm.Scale = scale
2196
local scaler2 = 1
2197
if type == "Add" then
2198
scaler2 = 1*value
2199
elseif type == "Divide" then
2200
scaler2 = 1/value
2201
end
2202
coroutine.resume(coroutine.create(function()
2203
for i = 0,10/bonuspeed,0.1 do
2204
swait()
2205
if type == "Add" then
2206
scaler2 = scaler2 - 0.01*value/bonuspeed
2207
elseif type == "Divide" then
2208
scaler2 = scaler2 - 0.01/value*bonuspeed
2209
end
2210
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2211
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, scaler2*bonuspeed)
2212
end
2213
rng:Destroy()
2214
end))
2215
end
2216
 
2217
 
2218
function sphereMK(bonuspeed,FastSpeed,type,pos,x1,y1,z1,value,color,outerpos)
2219
local type = type
2220
local rng = Instance.new("Part", char)
2221
        rng.Anchored = true
2222
        rng.BrickColor = color
2223
        rng.CanCollide = false
2224
        rng.FormFactor = 3
2225
        rng.Name = "Ring"
2226
        rng.Material = "Neon"
2227
        rng.Size = Vector3.new(1, 1, 1)
2228
        rng.Transparency = 0
2229
        rng.TopSurface = 0
2230
        rng.BottomSurface = 0
2231
        rng.CFrame = pos
2232
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2233
        local rngm = Instance.new("SpecialMesh", rng)
2234
        rngm.MeshType = "Sphere"
2235
rngm.Scale = vt(x1,y1,z1)
2236
local scaler2 = 1
2237
local speeder = FastSpeed
2238
if type == "Add" then
2239
scaler2 = 1*value
2240
elseif type == "Divide" then
2241
scaler2 = 1/value
2242
end
2243
coroutine.resume(coroutine.create(function()
2244
for i = 0,10/bonuspeed,0.1 do
2245
swait()
2246
if type == "Add" then
2247
scaler2 = scaler2 - 0.01*value/bonuspeed
2248
elseif type == "Divide" then
2249
scaler2 = scaler2 - 0.01/value*bonuspeed
2250
end
2251
speeder = speeder - 0.01*FastSpeed*bonuspeed
2252
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2253
rng.Transparency = rng.Transparency + 0.01*bonuspeed
2254-
	a.Name = "Direction"	
2254+
2255-
	a.Anchored = true
2255+
2256-
	a.BrickColor = maincolor
2256+
2257
end))
2258
end
2259-
	a.CanCollide = false
2259+
2260-
	local ray = Ray.new(
2260+
2261-
	    rng.CFrame.p,                           -- origin
2261+
2262-
	    (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
2262+
2263-
	) 
2263+
2264-
	local ignore = Character
2264+
2265-
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2265+
2266-
	a.BottomSurface = 10
2266+
2267-
	a.TopSurface = 10
2267+
2268-
	local distance = (rng.CFrame.p - position).magnitude
2268+
2269-
	a.Size = Vector3.new(0.1, 0.1, 0.1)
2269+
2270-
	a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
2270+
2271-
				 local lb = Instance.new("Part")
2271+
2272
        rng.TopSurface = 0
2273
        rng.BottomSurface = 0
2274
        rng.CFrame = pos
2275
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*outerpos
2276
        local rngm = Instance.new("SpecialMesh", rng)
2277
        rngm.MeshType = "Sphere"
2278
rngm.Scale = vt(x1,y1,z1)
2279
local scaler2 = 1
2280
local speeder = FastSpeed
2281
if type == "Add" then
2282
scaler2 = 1*value
2283
elseif type == "Divide" then
2284
scaler2 = 1/value
2285
end
2286
coroutine.resume(coroutine.create(function()
2287
for i = 0,10/bonuspeed,0.1 do
2288
swait()
2289
if type == "Add" then
2290
scaler2 = scaler2 - 0.01*value/bonuspeed
2291
elseif type == "Divide" then
2292
scaler2 = scaler2 - 0.01/value*bonuspeed
2293
end
2294
speeder = speeder - 0.01*FastSpeed*bonuspeed
2295
rng.CFrame = rng.CFrame + rng.CFrame.lookVector*speeder*bonuspeed
2296
rng.Transparency = rng.Transparency - 0.01*bonuspeed
2297
rngm.Scale = rngm.Scale + Vector3.new(scaler2*bonuspeed, scaler2*bonuspeed, 0)
2298
end
2299
rng:Destroy()
2300
end))
2301
end
2302
 
2303
 
2304
function LightStorm()
2305
HoldingZ = true
2306
attack = true
2307
        local sbs = Instance.new("BodyPosition", root)
2308
        sbs.P = 3000
2309
        sbs.D = 1000
2310
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
2311
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 100, 0)
2312
wait(0.1)
2313
root.Anchored = true
2314
hum.WalkSpeed = 0
2315
local rotation = 0
2316
local typrot = math.random(1,2)
2317
local rng = Instance.new("Part", char)
2318
CFuncs["Sound"].Create("rbxassetid://402981977", rng, 1.5, 0.6)
2319
        rng.Anchored = true
2320
        rng.BrickColor = origcolor
2321
        rng.CanCollide = false
2322
        rng.FormFactor = 3
2323
        rng.Name = "Ring"
2324
        rng.Material = "Neon"
2325
        rng.Size = Vector3.new(1, 0.05, 1)
2326
        rng.Transparency = 1
2327
        rng.TopSurface = 0
2328
        rng.BottomSurface = 0
2329
        local rngm = Instance.new("SpecialMesh", rng)
2330
        rngm.MeshType = "Brick"
2331
rngm.Scale = vt(0,1,0)
2332
local dec = Instance.new("Decal",rng)
2333
dec.Texture = "rbxassetid://196486941"
2334
dec.Face = "Top"
2335
dec.Transparency = 0
2336
local dec2 = dec:Clone()
2337
dec2.Parent = rng
2338
dec2.Face = "Bottom"
2339
dec2.Transparency = 0
2340
 
2341
--rbxassetid://196486941
2342
local summoned = Instance.new("ParticleEmitter",rng)
2343
summoned.LightEmission = 1
2344
summoned.Color = ColorSequence.new(maincolor.Color)
2345
summoned.Rate = 100
2346
summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
2347-
	a.Name = "Direction"	
2347+
2348-
	a.Anchored = true
2348+
2349-
	a.BrickColor = maincolor
2349+
2350
summoned.Speed = NumberRange.new(0,0)
2351
summoned.Rotation = NumberRange.new(-500,500)
2352-
	a.CanCollide = false
2352+
2353-
	local ray = Ray.new(
2353+
2354-
	    rng.CFrame.p,                           -- origin
2354+
2355-
	    (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
2355+
2356-
	) 
2356+
2357-
	local ignore = Character
2357+
2358-
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2358+
2359-
	a.BottomSurface = 10
2359+
2360-
	a.TopSurface = 10
2360+
2361-
	local distance = (rng.CFrame.p - position).magnitude
2361+
2362-
	a.Size = Vector3.new(0.1, 0.1, 0.1)
2362+
2363-
	a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
2363+
2364-
				 local lb = Instance.new("Part")
2364+
2365
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
2366
RootPart.CFrame = FaceMouse2()[1]
2367
end
2368
summoned.Enabled = false
2369
 
2370
local Power = 4
2371
while true do
2372
swait()
2373
Power = Power + 0.4
2374
rngm.Scale = rngm.Scale + Vector3.new(0.085, 0, 0.085)
2375
if typrot == 1 then
2376
rotation = rotation + 2.5
2377
elseif typrot == 2 then
2378
rotation = rotation - 2.5
2379
end
2380
rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*4
2381
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
2382
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
2383
RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.1)
2384
LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
2385
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
2386
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
2387
RootPart.CFrame = FaceMouse2()[1]
2388
if HoldingZ == false then
2389
coroutine.resume(coroutine.create(function()
2390
while true do
2391
if rng.Parent ~= nil then
2392
swait()
2393
if typrot == 1 then
2394
rotation = rotation + 2.5
2395
elseif typrot == 2 then
2396
rotation = rotation - 2.5
2397
end
2398
rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*4
2399
elseif rng.Parent == nil then
2400
break
2401
end
2402
end
2403
end))
2404
coroutine.resume(coroutine.create(function()
2405
for i = 0, 24*Power/4 do
2406
swait(2)
2407
local a = Instance.new("Part",Character)
2408
    a.Name = "Direction"   
2409
    a.Anchored = true
2410
    a.BrickColor = maincolor
2411
a.Material = "Neon"
2412
a.Transparency = 1
2413
    a.CanCollide = false
2414
    local ray = Ray.new(
2415
        rng.CFrame.p,                           -- origin
2416
        (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
2417
    )
2418
    local ignore = Character
2419
    local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2420
    a.BottomSurface = 10
2421
    a.TopSurface = 10
2422
    local distance = (rng.CFrame.p - position).magnitude
2423
    a.Size = Vector3.new(0.1, 0.1, 0.1)
2424
    a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
2425
                 local lb = Instance.new("Part")
2426
CFuncs["Sound"].Create("rbxassetid://1146690130", lb, 1, 2)
2427
  lb.Parent = char
2428
    lb.Color = Color3.new(1,1,0.5)
2429
     lb.CanCollide = false
2430
lb.Material = "Neon"
2431
     lb.Anchored = true
2432
lb.TopSurface = 0
2433
        lb.BottomSurface = 0
2434
     lb.Transparency = 0
2435
     lb.Size = vt(1.5,1.5,1.5)
2436
     lb.CFrame = a.CFrame*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),0)
2437
lb.Anchored = false
2438
local thingery = Instance.new("SpecialMesh",lb)
2439
     thingery.MeshType = "Sphere"
2440
game:GetService("Debris"):AddItem(lb, 10)
2441
  local bv = Instance.new("BodyVelocity")
2442
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2443
  bv.velocity = lb.CFrame.lookVector*250
2444
  bv.Parent = lb
2445
local hitted = false
2446
game:GetService("Debris"):AddItem(a, 0.1)
2447
RootPart.CFrame = FaceMouse2()[1]
2448
coroutine.resume(coroutine.create(function()
2449
swait(1)
2450
lb.Touched:connect(function(hit)
2451
if hitted == false then
2452
hitted = true
2453
lb.Transparency = 1
2454
lb.Anchored = true
2455
CFuncs["Sound"].Create("rbxassetid://911792524", lb, 0.75, 1)
2456
CFuncs["Sound"].Create("rbxassetid://28518734", lb, 1, 1.5)
2457
MagniDamage(lb, 10, 5,15, 0, "Normal")
2458
sphere(5,"Add",lb.CFrame,vt(2.5/2,2.5/2,2.5/2),0.2,BrickColor.new("White"))
2459
sphere(10,"Add",lb.CFrame,vt(5/2,5/2,5/2),0.25,maincolor)
2460
wait(3)
2461
lb:Destroy()
2462
end
2463
end)
2464
end))
2465
 
2466
end
2467
for i = 0,1,0.1 do
2468
swait()
2469
dec.Transparency = dec.Transparency + 0.1
2470
dec2.Transparency = dec2.Transparency + 0.1
2471
rngm.Scale = rngm.Scale - Vector3.new(0.5, 0, 0.5)
2472
end
2473
rng:Destroy()
2474
hum.WalkSpeed = 16
2475
sbs:Destroy()
2476
root.Anchored = false
2477
attack = false
2478
end))
2479
break
2480
end
2481
if Power > 63 and HoldingZ == true then
2482
coroutine.resume(coroutine.create(function()
2483
while true do
2484
if rng.Parent ~= nil then
2485
swait()
2486
if typrot == 1 then
2487
rotation = rotation + 2.5
2488
elseif typrot == 2 then
2489
rotation = rotation - 2.5
2490
end
2491
rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*4
2492
elseif rng.Parent == nil then
2493
break
2494
end
2495
end
2496
end))
2497
coroutine.resume(coroutine.create(function()
2498
for i = 0, 24*Power/4 do
2499
swait(1)
2500
local a = Instance.new("Part",Character)
2501
    a.Name = "Direction"   
2502
    a.Anchored = true
2503
    a.BrickColor = maincolor
2504
a.Material = "Neon"
2505
a.Transparency = 1
2506
    a.CanCollide = false
2507
    local ray = Ray.new(
2508
        rng.CFrame.p,                           -- origin
2509
        (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
2510
    )
2511
    local ignore = Character
2512
    local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2513
    a.BottomSurface = 10
2514
    a.TopSurface = 10
2515
    local distance = (rng.CFrame.p - position).magnitude
2516
    a.Size = Vector3.new(0.1, 0.1, 0.1)
2517
    a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
2518
                 local lb = Instance.new("Part")
2519
CFuncs["Sound"].Create("rbxassetid://1146690130", lb, 1, 2)
2520
  lb.Parent = char
2521
    lb.Color = Color3.new(1,0,1)
2522
     lb.CanCollide = false
2523
lb.Material = "Neon"
2524
     lb.Anchored = true
2525
lb.TopSurface = 0
2526
        lb.BottomSurface = 0
2527
     lb.Transparency = 0
2528
     lb.Size = vt(1.5,1.5,1.5)
2529
     lb.CFrame = a.CFrame*CFrame.Angles(math.rad(math.random(-1,1)),math.rad(math.random(-1,1)),0)
2530
lb.Anchored = false
2531
local thingery = Instance.new("SpecialMesh",lb)
2532
     thingery.MeshType = "Sphere"
2533
game:GetService("Debris"):AddItem(lb, 10)
2534
  local bv = Instance.new("BodyVelocity")
2535
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2536
  bv.velocity = lb.CFrame.lookVector*250
2537
  bv.Parent = lb
2538
local hitted = false
2539-
	a.Name = "Direction"	
2539+
2540-
	a.Anchored = true
2540+
2541-
	a.BrickColor = bc("White")
2541+
2542
swait(1)
2543
lb.Touched:connect(function(hit)
2544
if hitted == false then
2545-
	a.CanCollide = false
2545+
2546
lb.Transparency = 1
2547-
	a2.Name = "Direction"	
2547+
2548-
	a2.Anchored = true
2548+
2549-
	a2.BrickColor = maincolor
2549+
2550
MagniDamage(lb, 10, 5,15, 0, "Normal")
2551
sphere(5,"Add",lb.CFrame,vt(2.5/2,2.5/2,2.5/2),0.2,BrickColor.new("White"))
2552
sphere(10,"Add",lb.CFrame,vt(5/2,5/2,5/2),0.25,maincolor)
2553-
	a2.CanCollide = false
2553+
2554
lb:Destroy()
2555-
	b.Name = "HitDirect"	
2555+
2556-
	b.Anchored = true
2556+
2557-
	b.BrickColor = maincolor
2557+
2558
 
2559
end
2560-
	b.CanCollide = false
2560+
2561-
	local ray = Ray.new(
2561+
2562-
	    rng.CFrame.p,                           -- origin
2562+
2563-
	    (mouse.Hit.p - rng.CFrame.p).unit * 1000 -- direction
2563+
2564-
	) 
2564+
2565-
	local ignore = Character
2565+
2566-
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2566+
2567-
	a.BottomSurface = 10
2567+
2568-
	a.TopSurface = 10
2568+
2569-
	a2.BottomSurface = 10
2569+
2570-
	a2.TopSurface = 10
2570+
2571-
	local distance = (rng.CFrame.p - position).magnitude
2571+
2572-
	a.Size = Vector3.new(distance, 1, 1)
2572+
2573-
	a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2573+
2574-
	a2.Size = Vector3.new(distance, 1, 1)
2574+
2575-
	a2.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2575+
2576
end
2577
 
2578
function LightBeam()
2579
HoldingX = true
2580
attack = true
2581
        local sbs = Instance.new("BodyPosition", root)
2582
        sbs.P = 3000
2583
        sbs.D = 1000
2584
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
2585
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 100, 0)
2586
wait(0.1)
2587
root.Anchored = true
2588
hum.WalkSpeed = 0
2589
local rotation = 0
2590
local typrot = math.random(1,2)
2591
local rng = Instance.new("Part", char)
2592
CFuncs["Sound"].Create("rbxassetid://402981977", rng, 2, 0.6)
2593
        rng.Anchored = true
2594
        rng.BrickColor = origcolor
2595
        rng.CanCollide = false
2596
        rng.FormFactor = 3
2597
        rng.Name = "Ring"
2598
        rng.Material = "Neon"
2599
        rng.Size = Vector3.new(1, 0.05, 1)
2600
        rng.Transparency = 1
2601
        rng.TopSurface = 0
2602
        rng.BottomSurface = 0
2603
        local rngm = Instance.new("SpecialMesh", rng)
2604
        rngm.MeshType = "Brick"
2605
rngm.Scale = vt(0,1,0)
2606
local dec = Instance.new("Decal",rng)
2607
dec.Texture = "rbxassetid://196486941"
2608
dec.Face = "Top"
2609
dec.Transparency = 0
2610
local dec2 = dec:Clone()
2611
dec2.Parent = rng
2612
dec2.Face = "Bottom"
2613
dec2.Transparency = 0
2614
 
2615
local rngb = Instance.new("Part", char)
2616
        rngb.Anchored = true
2617
        rngb.BrickColor = origcolor
2618
        rngb.CanCollide = false
2619
        rngb.FormFactor = 3
2620
        rngb.Name = "Ring"
2621
        rngb.Material = "Neon"
2622
        rngb.Size = Vector3.new(1, 0.05, 1)
2623
        rngb.Transparency = 1
2624
        rngb.TopSurface = 0
2625
        rngb.BottomSurface = 0
2626
        local rngmb = Instance.new("SpecialMesh", rngb)
2627
        rngmb.MeshType = "Brick"
2628
rngmb.Scale = vt(0,1,0)
2629
local decb = Instance.new("Decal",rngb)
2630
decb.Texture = "http://www.roblox.com/asset/?id=196486942"
2631-
	a.Name = "Direction"	
2631+
2632-
	a.Anchored = true
2632+
2633-
	a.BrickColor = bc("White")
2633+
2634
dec2b.Parent = rngb
2635
dec2b.Face = "Bottom"
2636
dec2b.Transparency = 1
2637-
	a.CanCollide = false
2637+
2638
local summoned = Instance.new("ParticleEmitter",rng)
2639-
	a2.Name = "Direction"	
2639+
2640-
	a2.Anchored = true
2640+
2641-
	a2.BrickColor = maincolor
2641+
2642
summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
2643
summoned.Lifetime = NumberRange.new(0.5)
2644
summoned.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,35,0)})
2645-
	a2.CanCollide = false
2645+
2646
summoned.Speed = NumberRange.new(0,0)
2647-
	b.Name = "HitDirect"	
2647+
2648-
	b.Anchored = true
2648+
2649-
	b.BrickColor = maincolor
2649+
2650
for i = 0,1,0.1 do
2651
swait()
2652-
	b.CanCollide = false
2652+
2653-
	local ray = Ray.new(
2653+
2654-
	    rng.CFrame.p,                           -- origin
2654+
2655-
	    (mouse.Hit.p - rng.CFrame.p).unit * 1000 -- direction
2655+
2656-
	) 
2656+
2657-
	local ignore = Character
2657+
2658-
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2658+
2659-
	a.BottomSurface = 10
2659+
2660-
	a.TopSurface = 10
2660+
2661-
	a2.BottomSurface = 10
2661+
2662-
	a2.TopSurface = 10
2662+
2663-
	local distance = (rng.CFrame.p - position).magnitude
2663+
2664-
	a.Size = Vector3.new(distance, 1, 1)
2664+
2665-
	a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2665+
2666-
	a2.Size = Vector3.new(distance, 1, 1)
2666+
2667-
	a2.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2667+
2668
summoned.Enabled = false
2669
 
2670
local Power = 3
2671
while true do
2672
swait()
2673
Power = Power + 0.2
2674
rngm.Scale = rngm.Scale + Vector3.new(0.57, 0, 0.57)
2675
rngmb.Scale = rngmb.Scale + Vector3.new(0.57, 0, 0.57)
2676
if typrot == 1 then
2677
rotation = rotation + 2.5
2678
elseif typrot == 2 then
2679
rotation = rotation - 2.5
2680
end
2681
rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
2682
rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
2683
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.1)
2684
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.1)
2685
RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
2686
LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
2687
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
2688
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
2689
RootPart.CFrame = FaceMouse2()[1]
2690
if HoldingX == false then
2691
coroutine.resume(coroutine.create(function()
2692
local a = Instance.new("Part",Character)
2693
    a.Name = "Direction"   
2694
    a.Anchored = true
2695
    a.BrickColor = bc("White")
2696
a.Material = "Neon"
2697
a.Transparency = 0
2698
a.Shape = "Cylinder"
2699
    a.CanCollide = false
2700
local a2 = Instance.new("Part",Character)
2701
    a2.Name = "Direction"  
2702
    a2.Anchored = true
2703
    a2.BrickColor = maincolor
2704
a2.Material = "Neon"
2705
a2.Transparency = 0
2706
a2.Shape = "Cylinder"
2707
    a2.CanCollide = false
2708
local b = Instance.new("Part",Character)
2709
    b.Name = "HitDirect"   
2710
    b.Anchored = true
2711
    b.BrickColor = maincolor
2712
b.Material = "Neon"
2713
b.Transparency = 1
2714
    b.CanCollide = false
2715
    local ray = Ray.new(
2716
        rng.CFrame.p,                           -- origin
2717
        (mouse.Hit.p - rng.CFrame.p).unit * 1000 -- direction
2718
    )
2719
    local ignore = Character
2720
    local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2721
    a.BottomSurface = 10
2722
    a.TopSurface = 10
2723
    a2.BottomSurface = 10
2724
    a2.TopSurface = 10
2725
    local distance = (rng.CFrame.p - position).magnitude
2726
    a.Size = Vector3.new(distance, 1, 1)
2727
    a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2728
    a2.Size = Vector3.new(distance, 1, 1)
2729
    a2.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2730
b.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance)
2731
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
2732
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
2733
game:GetService("Debris"):AddItem(a, 10)
2734
game:GetService("Debris"):AddItem(a2, 10)
2735
game:GetService("Debris"):AddItem(b, 10)
2736
local msh = Instance.new("SpecialMesh",a)
2737
msh.MeshType = "Cylinder"
2738
msh.Scale = vt(1,5,5)
2739
local msh2 = Instance.new("SpecialMesh",a2)
2740
msh2.MeshType = "Cylinder"
2741
msh2.Scale = vt(1,6,6)
2742
 
2743
coroutine.resume(coroutine.create(function()
2744
for i = 0,10,0.1 do
2745
swait()
2746
msh.Scale = msh.Scale + vt(0,0.25,0.25)
2747
a.Transparency = a.Transparency + 0.025
2748
msh2.Scale = msh2.Scale + vt(0,0.45,0.45)
2749
a2.Transparency = a2.Transparency + 0.05
2750
end
2751
a:Destroy()
2752
a2:Destroy()
2753
end))
2754
MagniDamage(b, 75, 60,95, 0, "Normal")
2755
CFuncs["Sound"].Create("rbxassetid://834546352", root, 3, 1)
2756
sphere(1.5,"Add",b.CFrame,vt(2.5/2,2.5/2,2.5/2),0.5,BrickColor.new("White"))
2757
sphere(3,"Add",b.CFrame,vt(5/2,5/2,5/2),0.75,maincolor)
2758
CFuncs["Sound"].Create("rbxassetid://911792524", b, 2.5, 0.8)
2759
CFuncs["Sound"].Create("rbxassetid://28518734", b, 1, 0.4)
2760
for i = 0, 9 do
2761
sphereMK(5,0.5,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,25,-0.1,BrickColor.new("White"),0)
2762
sphereMK(5,1,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,maincolor,0)
2763
end
2764
for i = 0,1,0.1 do
2765
swait()
2766
dec.Transparency = dec.Transparency + 0.1
2767
dec2.Transparency = dec2.Transparency + 0.1
2768
rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
2769
decb.Transparency = decb.Transparency + 0.1
2770
dec2b.Transparency = dec2b.Transparency + 0.1
2771
rngmb.Scale = rngmb.Scale + Vector3.new(1, 0, 1)
2772
end
2773
rng:Destroy()
2774
rngb:Destroy()
2775
hum.WalkSpeed = 16
2776
sbs:Destroy()
2777
root.Anchored = false
2778
attack = false
2779
end))
2780
break
2781
end
2782
if Power > 35 and HoldingX == true then
2783
coroutine.resume(coroutine.create(function()
2784
local a = Instance.new("Part",Character)
2785
    a.Name = "Direction"   
2786
    a.Anchored = true
2787
    a.BrickColor = bc("White")
2788
a.Material = "Neon"
2789
a.Transparency = 0
2790
a.Shape = "Cylinder"
2791
    a.CanCollide = false
2792
local a2 = Instance.new("Part",Character)
2793
    a2.Name = "Direction"  
2794
    a2.Anchored = true
2795
    a2.BrickColor = maincolor
2796
a2.Material = "Neon"
2797
a2.Transparency = 0
2798
a2.Shape = "Cylinder"
2799
    a2.CanCollide = false
2800
local b = Instance.new("Part",Character)
2801
    b.Name = "HitDirect"   
2802
    b.Anchored = true
2803
    b.BrickColor = maincolor
2804
b.Material = "Neon"
2805
b.Transparency = 1
2806
    b.CanCollide = false
2807
    local ray = Ray.new(
2808
        rng.CFrame.p,                           -- origin
2809
        (mouse.Hit.p - rng.CFrame.p).unit * 1000 -- direction
2810
    )
2811
    local ignore = Character
2812
    local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2813
    a.BottomSurface = 10
2814
    a.TopSurface = 10
2815
    a2.BottomSurface = 10
2816
    a2.TopSurface = 10
2817
    local distance = (rng.CFrame.p - position).magnitude
2818
    a.Size = Vector3.new(distance, 1, 1)
2819
    a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2820
    a2.Size = Vector3.new(distance, 1, 1)
2821
    a2.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
2822
b.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, -distance)
2823
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
2824
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
2825
game:GetService("Debris"):AddItem(a, 10)
2826
game:GetService("Debris"):AddItem(a2, 10)
2827
game:GetService("Debris"):AddItem(b, 10)
2828
local msh = Instance.new("SpecialMesh",a)
2829
msh.MeshType = "Cylinder"
2830
msh.Scale = vt(1,5,5)
2831
local msh2 = Instance.new("SpecialMesh",a2)
2832
msh2.MeshType = "Cylinder"
2833
msh2.Scale = vt(1,6,6)
2834
 
2835
coroutine.resume(coroutine.create(function()
2836
for i = 0,10,0.1 do
2837
swait()
2838
msh.Scale = msh.Scale + vt(0,0.25,0.25)
2839
a.Transparency = a.Transparency + 0.025
2840
msh2.Scale = msh2.Scale + vt(0,0.45,0.45)
2841-
	a.Name = "Direction"	
2841+
2842-
	a.Anchored = true
2842+
2843-
	a.BrickColor = maincolor
2843+
2844
a2:Destroy()
2845
end))
2846-
	a.CanCollide = false
2846+
2847-
	local ray = Ray.new(
2847+
2848-
	    rng.CFrame.p,                           -- origin
2848+
2849-
	    (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
2849+
2850-
	) 
2850+
2851-
	local ignore = Character
2851+
2852-
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2852+
2853-
	a.BottomSurface = 10
2853+
2854-
	a.TopSurface = 10
2854+
2855-
	local distance = (rng.CFrame.p - position).magnitude
2855+
2856-
	a.Size = Vector3.new(0.1, 0.1, 0.1)
2856+
2857-
	a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
2857+
2858-
				 local lb = Instance.new("Part")
2858+
2859
dec2.Transparency = dec2.Transparency + 0.1
2860
rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
2861
decb.Transparency = decb.Transparency + 0.1
2862
dec2b.Transparency = dec2b.Transparency + 0.1
2863
rngmb.Scale = rngmb.Scale + Vector3.new(1, 0, 1)
2864
end
2865
rng:Destroy()
2866
rngb:Destroy()
2867
hum.WalkSpeed = 16
2868
sbs:Destroy()
2869
root.Anchored = false
2870
attack = false
2871
end))
2872
HoldingX = false
2873
break
2874
end
2875
end
2876
end
2877
 
2878
function LightBomb()
2879
HoldingC = true
2880
attack = true
2881
        local sbs = Instance.new("BodyPosition", root)
2882
        sbs.P = 3000
2883
        sbs.D = 1000
2884
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
2885
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 100, 0)
2886
wait(0.1)
2887
root.Anchored = true
2888
hum.WalkSpeed = 0
2889
local rotation = 0
2890
local typrot = math.random(1,2)
2891
local rng = Instance.new("Part", char)
2892
CFuncs["Sound"].Create("rbxassetid://402981977", rng, 5, 0.6)
2893
        rng.Anchored = true
2894
        rng.BrickColor = origcolor
2895
        rng.CanCollide = false
2896
        rng.FormFactor = 3
2897
        rng.Name = "Ring"
2898
        rng.Material = "Neon"
2899
        rng.Size = Vector3.new(1, 0.05, 1)
2900
        rng.Transparency = 1
2901
        rng.TopSurface = 0
2902
        rng.BottomSurface = 0
2903
        local rngm = Instance.new("SpecialMesh", rng)
2904
        rngm.MeshType = "Brick"
2905
rngm.Scale = vt(0,1,0)
2906
local dec = Instance.new("Decal",rng)
2907
dec.Texture = "rbxassetid://196486941"
2908
dec.Face = "Top"
2909
dec.Transparency = 0
2910
local dec2 = dec:Clone()
2911
dec2.Parent = rng
2912
dec2.Face = "Bottom"
2913
dec2.Transparency = 0
2914
 
2915
local rngb = Instance.new("Part", char)
2916
        rngb.Anchored = true
2917
        rngb.BrickColor = origcolor
2918
        rngb.CanCollide = false
2919
        rngb.FormFactor = 3
2920
        rngb.Name = "Ring"
2921
        rngb.Material = "Neon"
2922
        rngb.Size = Vector3.new(1, 0.05, 1)
2923
        rngb.Transparency = 1
2924
        rngb.TopSurface = 0
2925
        rngb.BottomSurface = 0
2926
        local rngmb = Instance.new("SpecialMesh", rngb)
2927
        rngmb.MeshType = "Brick"
2928
rngmb.Scale = vt(0,1,0)
2929
local decb = Instance.new("Decal",rngb)
2930
decb.Texture = "rbxassetid://196486941"
2931
decb.Face = "Top"
2932
decb.Transparency = 0
2933
local dec2b = dec:Clone()
2934
dec2b.Parent = rngb
2935
dec2b.Face = "Bottom"
2936
dec2b.Transparency = 0
2937
 
2938
 
2939
 
2940
local summoned = Instance.new("ParticleEmitter",rng)
2941
summoned.LightEmission = 1
2942
summoned.Color = ColorSequence.new(Color3.new(1,0,1))
2943
summoned.Rate = 100
2944
summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
2945
summoned.Lifetime = NumberRange.new(0.5)
2946-
	a.Name = "Direction"	
2946+
2947-
	a.Anchored = true
2947+
2948-
	a.BrickColor = maincolor
2948+
2949
summoned.Rotation = NumberRange.new(-500,500)
2950
summoned.RotSpeed = NumberRange.new(-500,500)
2951-
	a.CanCollide = false
2951+
2952-
	local ray = Ray.new(
2952+
2953-
	    rng.CFrame.p,                           -- origin
2953+
2954-
	    (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
2954+
2955-
	) 
2955+
2956-
	local ignore = Character
2956+
2957-
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2957+
2958-
	a.BottomSurface = 10
2958+
2959-
	a.TopSurface = 10
2959+
2960-
	local distance = (rng.CFrame.p - position).magnitude
2960+
2961-
	a.Size = Vector3.new(0.1, 0.1, 0.1)
2961+
2962-
	a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
2962+
2963-
				 local lb = Instance.new("Part")
2963+
2964
RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.3)
2965
LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.3)
2966
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
2967
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
2968
RootPart.CFrame = FaceMouse2()[1]
2969
end
2970
summoned.Enabled = false
2971
 
2972
local Power = 8
2973
while true do
2974
swait()
2975
Power = Power + 0.2
2976
rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
2977
rngmb.Scale = rngmb.Scale + Vector3.new(0.5, 0, 0.5)
2978
if typrot == 1 then
2979
rotation = rotation + 2.5
2980
elseif typrot == 2 then
2981
rotation = rotation - 2.5
2982
end
2983
rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*9
2984
rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
2985
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
2986
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
2987
RW.C0 = clerp(RW.C0, CFrame.new(1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(-20)), 0.1)
2988
LW.C0 = clerp(LW.C0, CFrame.new(-1.05, 0.5, -0.5) * angles(math.rad(90), math.rad(0), math.rad(20)), 0.1)
2989
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
2990
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
2991
RootPart.CFrame = FaceMouse2()[1]
2992
if HoldingC == false then
2993
coroutine.resume(coroutine.create(function()
2994
local a = Instance.new("Part",Character)
2995
    a.Name = "Direction"   
2996
    a.Anchored = true
2997
    a.BrickColor = maincolor
2998
a.Material = "Neon"
2999
a.Transparency = 1
3000
    a.CanCollide = false
3001
    local ray = Ray.new(
3002
        rng.CFrame.p,                           -- origin
3003
        (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
3004
    )
3005
    local ignore = Character
3006
    local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3007
    a.BottomSurface = 10
3008
    a.TopSurface = 10
3009
    local distance = (rng.CFrame.p - position).magnitude
3010
    a.Size = Vector3.new(0.1, 0.1, 0.1)
3011
    a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
3012
                 local lb = Instance.new("Part")
3013
CFuncs["Sound"].Create("rbxassetid://834546352", lb, 3, 1)
3014
CFuncs["Sound"].Create("rbxassetid://1417056781", lb, 3, 1.5)
3015
CFuncs["Sound"].Create("rbxassetid://919941001", lb, 3,1)
3016
  lb.Parent = char
3017
    lb.Color = Color3.new(1,0,1)
3018
     lb.CanCollide = false
3019
lb.Material = "Neon"
3020
     lb.Anchored = true
3021
lb.TopSurface = 0
3022
        lb.BottomSurface = 0
3023
     lb.Transparency = 0
3024
     lb.Size = vt(3,3,3)
3025
     lb.CFrame = a.CFrame
3026
lb.Anchored = false
3027
local thingery = Instance.new("SpecialMesh",lb)
3028
     thingery.MeshType = "Sphere"
3029
thingery.Scale = vt(2+Power/1.15,2+Power/1.15,2+Power/1.15)
3030
game:GetService("Debris"):AddItem(lb, 10)
3031
  local bv = Instance.new("BodyVelocity")
3032
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3033
  bv.velocity = lb.CFrame.lookVector*125
3034
  bv.Parent = lb
3035
local hitted = false
3036
coroutine.resume(coroutine.create(function()
3037
while true do
3038
swait(3)
3039
if lb.Parent ~= nil and hitted == false then
3040
sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))+ lb.CFrame.lookVector*-10,vt(2.5,2.5,2.5),0.5,BrickColor.new("White"))
3041
sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))+ lb.CFrame.lookVector*-10,vt(2.5,2.5,2.5),0.25,maincolor)
3042
elseif lb.Parent == nil then
3043
break
3044
end
3045
end
3046
end))
3047
 
3048
game:GetService("Debris"):AddItem(a, 0.1)
3049
RootPart.CFrame = FaceMouse2()[1]
3050
 
3051
coroutine.resume(coroutine.create(function()
3052
swait(1)
3053
lb.Touched:connect(function(hit)
3054
if hitted == false then
3055
hitted = true
3056
lb.Transparency = 1
3057
lb.Anchored = true
3058
CFuncs["Sound"].Create("rbxassetid://911792524", lb, 5, 0.5)
3059
CFuncs["Sound"].Create("rbxassetid://911792524", lb, 5, 0.25)
3060
CFuncs["Sound"].Create("rbxassetid://28518734", lb, 2.5, 0.5)
3061
CFuncs["Sound"].Create("rbxassetid://239000203", lb, 2.5, 0.75)
3062
CFuncs["Sound"].Create("rbxassetid://919941001", lb, 10,1.05)
3063
MagniDamage(lb, 100+Power*1.75, 75,85, 0, "Normal")
3064
sphere(1,"Add",lb.CFrame,vt(15+Power,15+Power,15+Power),3.5,BrickColor.new("White"))
3065
sphere(2,"Add",lb.CFrame,vt(15+Power,15+Power,15+Power),3.75,maincolor)
3066
for i = 0, 9 do
3067
sphereMK(5,1.5+Power/5,"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75+Power/5,-0.25,BrickColor.new("White"),0)
3068
sphereMK(5,3+Power/5,"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),35,35,75+Power/5,-0.35,maincolor,0)
3069
end
3070
for i = 0, 19 do
3071
swait(2)
3072
sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(15,15,15),2.5,BrickColor.new("White"))
3073
sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(15,15,15),1.5,maincolor)
3074
end
3075
end
3076
end)
3077
end))
3078
 
3079
for i = 0,1,0.1 do
3080
swait()
3081
dec.Transparency = dec.Transparency + 0.1
3082
dec2.Transparency = dec2.Transparency + 0.1
3083
rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
3084
decb.Transparency = decb.Transparency + 0.1
3085
dec2b.Transparency = dec2b.Transparency + 0.1
3086
rngmb.Scale = rngmb.Scale + Vector3.new(0.5, 0, 0.5)
3087
end
3088
rng:Destroy()
3089
rngb:Destroy()
3090
hum.WalkSpeed = 16
3091
sbs:Destroy()
3092
root.Anchored = false
3093
attack = false
3094
end))
3095
break
3096
end
3097
if Power > 55 and HoldingC == true then
3098
coroutine.resume(coroutine.create(function()
3099
local a = Instance.new("Part",Character)
3100
    a.Name = "Direction"   
3101
    a.Anchored = true
3102
    a.BrickColor = maincolor
3103
a.Material = "Neon"
3104
a.Transparency = 1
3105
    a.CanCollide = false
3106
    local ray = Ray.new(
3107
        rng.CFrame.p,                           -- origin
3108
        (mouse.Hit.p - rng.CFrame.p).unit * 500 -- direction
3109
    )
3110
    local ignore = Character
3111
    local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3112
    a.BottomSurface = 10
3113
    a.TopSurface = 10
3114
    local distance = (rng.CFrame.p - position).magnitude
3115
    a.Size = Vector3.new(0.1, 0.1, 0.1)
3116
    a.CFrame = CFrame.new(rng.CFrame.p, position) * CFrame.new(0, 0, 0)
3117
                 local lb = Instance.new("Part")
3118
CFuncs["Sound"].Create("rbxassetid://834546352", lb, 3, 1)
3119
CFuncs["Sound"].Create("rbxassetid://1417056781", lb, 3, 1.5)
3120
CFuncs["Sound"].Create("rbxassetid://919941001", lb, 3,1)
3121
  lb.Parent = char
3122
    lb.Color = Color3.new(1,0,1)
3123
     lb.CanCollide = false
3124
lb.Material = "Neon"
3125
     lb.Anchored = true
3126
lb.TopSurface = 0
3127
        lb.BottomSurface = 0
3128
     lb.Transparency = 0
3129
     lb.Size = vt(3,3,3)
3130
     lb.CFrame = a.CFrame
3131
lb.Anchored = false
3132
local thingery = Instance.new("SpecialMesh",lb)
3133
     thingery.MeshType = "Sphere"
3134
thingery.Scale = vt(2+Power/1.15,2+Power/1.15,2+Power/1.15)
3135
game:GetService("Debris"):AddItem(lb, 10)
3136
  local bv = Instance.new("BodyVelocity")
3137
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
3138
  bv.velocity = lb.CFrame.lookVector*125
3139
  bv.Parent = lb
3140
local hitted = false
3141
 
3142
coroutine.resume(coroutine.create(function()
3143
while true do
3144
swait(3)
3145
if lb.Parent ~= nil and hitted == false then
3146
sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))+ lb.CFrame.lookVector*-10,vt(2.5,2.5,2.5),0.5,BrickColor.new("White"))
3147
sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))+ lb.CFrame.lookVector*-10,vt(2.5,2.5,2.5),0.25,maincolor)
3148
elseif lb.Parent == nil then
3149
break
3150
end
3151
end
3152
end))
3153
game:GetService("Debris"):AddItem(a, 0.1)
3154
RootPart.CFrame = FaceMouse2()[1]
3155
 
3156
coroutine.resume(coroutine.create(function()
3157
swait(1)
3158
lb.Touched:connect(function(hit)
3159
if hitted == false then
3160
hitted = true
3161
lb.Transparency = 1
3162
lb.Anchored = true
3163
CFuncs["Sound"].Create("rbxassetid://911792524", lb, 5, 0.5)
3164
CFuncs["Sound"].Create("rbxassetid://911792524", lb, 5, 0.25)
3165
CFuncs["Sound"].Create("rbxassetid://28518734", lb, 2.5, 0.5)
3166
CFuncs["Sound"].Create("rbxassetid://239000203", lb, 2.5, 0.75)
3167
CFuncs["Sound"].Create("rbxassetid://919941001", lb, 10,1.05)
3168
MagniDamage(lb, 100+Power*1.75, 85,95, 0, "Normal")
3169
sphere(1,"Add",lb.CFrame,vt(15+Power,15+Power,15+Power),3.5,BrickColor.new("White"))
3170
sphere(2,"Add",lb.CFrame,vt(15+Power,15+Power,15+Power),3.75,maincolor)
3171
for i = 0, 9 do
3172
sphereMK(5,1.5+Power/5,"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),25,25,75+Power/5,-0.25,BrickColor.new("White"),0)
3173
sphereMK(5,3+Power/5,"Add",lb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),35,35,75+Power/5,-0.35,maincolor,0)
3174
end
3175
for i = 0, 19 do
3176
swait(2)
3177
sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(15,15,15),2.5,BrickColor.new("White"))
3178
sphere(1,"Add",lb.CFrame*CFrame.new(math.random(-75,75),math.random(-75,75),math.random(-75,75)),vt(15,15,15),1.5,maincolor)
3179
end
3180
end
3181
end)
3182
end))
3183
 
3184
for i = 0,1,0.1 do
3185
swait()
3186
dec.Transparency = dec.Transparency + 0.1
3187
dec2.Transparency = dec2.Transparency + 0.1
3188
rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
3189
decb.Transparency = decb.Transparency + 0.1
3190
dec2b.Transparency = dec2b.Transparency + 0.1
3191
rngmb.Scale = rngmb.Scale + Vector3.new(0.5, 0, 0.5)
3192
end
3193
rng:Destroy()
3194
rngb:Destroy()
3195
hum.WalkSpeed = 16
3196
sbs:Destroy()
3197
root.Anchored = false
3198
attack = false
3199
end))
3200
HoldingC = false
3201
break
3202
end
3203
end
3204
end
3205
 
3206
 
3207
function LightHeal()
3208
HoldingV = true
3209
attack = true
3210
        local sbs = Instance.new("BodyPosition", root)
3211
        sbs.P = 3000
3212
        sbs.D = 1000
3213
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
3214
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 0, 0)
3215
wait(0.1)
3216
root.Anchored = true
3217
hum.WalkSpeed = 0
3218
local rotation = 0
3219
local typrot = math.random(1,2)
3220
local rng = Instance.new("Part", char)
3221
CFuncs["Sound"].Create("rbxassetid://402981977", rng, 5, 0.6)
3222
        rng.Anchored = true
3223
        rng.BrickColor = origcolor
3224
        rng.CanCollide = false
3225
        rng.FormFactor = 3
3226
        rng.Name = "Ring"
3227
        rng.Material = "Neon"
3228
        rng.Size = Vector3.new(1, 0.05, 1)
3229
        rng.Transparency = 1
3230
        rng.TopSurface = 0
3231
        rng.BottomSurface = 0
3232
        local rngm = Instance.new("SpecialMesh", rng)
3233
        rngm.MeshType = "Brick"
3234
rngm.Scale = vt(0,1,0)
3235
local dec = Instance.new("Decal",rng)
3236
dec.Texture = "rbxassetid://196486941"
3237
dec.Face = "Top"
3238
dec.Transparency = 1
3239
local dec2 = dec:Clone()
3240
dec2.Parent = rng
3241
dec2.Face = "Bottom"
3242
dec2.Transparency = 1
3243
 
3244
 
3245
 
3246
local summoned = Instance.new("ParticleEmitter",rng)
3247
summoned.LightEmission = 1
3248
summoned.Color = ColorSequence.new(maincolor.Color)
3249
summoned.Rate = 100
3250
summoned.Lifetime = NumberRange.new(0.5)
3251
summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
3252
summoned.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,35,0)})
3253
summoned.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
3254
summoned.Speed = NumberRange.new(0,0)
3255
summoned.Rotation = NumberRange.new(-500,500)
3256
summoned.RotSpeed = NumberRange.new(-500,500)
3257
 
3258
for i = 0,1,0.1 do
3259
swait()
3260
dec.Transparency = dec.Transparency - 0.1
3261
dec2.Transparency = dec2.Transparency - 0.1
3262
rngm.Scale = rngm.Scale + Vector3.new(2, 0, 2)
3263
rng.CFrame = root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(0),math.rad(rotation),0)
3264
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
3265
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3266
RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(90)), 0.3)
3267
LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(-90)), 0.3)
3268
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3269
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3270
RootPart.CFrame = FaceMouse()[1]
3271
end
3272
summoned.Enabled = false
3273
 
3274
local Power = 6
3275
while true do
3276
swait()
3277
Power = Power + 0.1
3278
rngm.Scale = rngm.Scale + Vector3.new(0.4, 0, 0.4)
3279
if typrot == 1 then
3280
rotation = rotation + 2.5
3281
elseif typrot == 2 then
3282
rotation = rotation - 2.5
3283
end
3284
rng.CFrame = root.CFrame*CFrame.new(0,-3,0)*CFrame.Angles(math.rad(0),math.rad(rotation),0)
3285
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
3286
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3287
RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(90)), 0.1)
3288
LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(70), math.rad(0), math.rad(-90)), 0.1)
3289
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3290
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3291
RootPart.CFrame = FaceMouse()[1]
3292
if HoldingV == false then
3293
coroutine.resume(coroutine.create(function()
3294
CFuncs["Sound"].Create("rbxassetid://834546352", root, 2.5, 1)
3295
CFuncs["Sound"].Create("rbxassetid://2101144", root, 2.5, 1)
3296
MagniDamage(root, 45+Power*1.85, -85,-85, 0, "Normal")
3297
hum:TakeDamage(0,0)
3298
local takenresult = hum.Health
3299
sphere(1,"Add",root.CFrame,vt(10+Power,10000,10+Power),0.25,BrickColor.new("White"))
3300
sphere(2,"Add",root.CFrame,vt(10+Power,10000,10+Power),0.35,maincolor)
3301
for i = 0, 24 do
3302
swait(1)
3303
hum.Health = math.huge
3304
sphereMK(5,0.15+Power/10,"Add",root.CFrame*CFrame.new(math.random(-35-Power,35+Power),math.random(-3-Power,0),math.random(-35-Power,35+Power))*CFrame.Angles(math.rad(90),0,0),5,5,25,-0.05,maincolor,0)
3305
sphere(5,"Add",root.CFrame*CFrame.new(math.random(-25-Power,25+Power),math.random(-25-Power,25+Power),math.random(-25-Power,25+Power)),vt(0,0,0),0.25,maincolor)
3306
end
3307
for i = 0,1,0.1 do
3308
swait()
3309
dec.Transparency = dec.Transparency + 0.1
3310
dec2.Transparency = dec2.Transparency + 0.1
3311
rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
3312
end
3313
rng:Destroy()
3314
hum.WalkSpeed = 16
3315
sbs:Destroy()
3316
root.Anchored = false
3317
attack = false
3318
end))
3319
break
3320
end
3321
if Power > 15 and HoldingV == true then
3322
coroutine.resume(coroutine.create(function()
3323
CFuncs["Sound"].Create("rbxassetid://834546352", root, 2.5, 1)
3324
CFuncs["Sound"].Create("rbxassetid://2101144", root, 2.5, 1)
3325
MagniDamage(root, 45+Power*1.85, -85,-95, 0, "Normal")
3326
hum:TakeDamage(0,0)
3327
local takenresult = hum.Health
3328
sphere(1,"Add",root.CFrame,vt(10+Power,10000,10+Power),0.25,BrickColor.new("White"))
3329
sphere(2,"Add",root.CFrame,vt(10+Power,10000,10+Power),0.35,maincolor)
3330
for i = 0, 24 do
3331
swait(1)
3332
hum.Health = math.huge
3333
sphereMK(5,0.15+Power/10,"Add",root.CFrame*CFrame.new(math.random(-35-Power,35+Power),math.random(-3-Power,0),math.random(-35-Power,35+Power))*CFrame.Angles(math.rad(90),0,0),5,5,25,-0.05,maincolor,0)
3334
sphere(5,"Add",root.CFrame*CFrame.new(math.random(-25-Power,25+Power),math.random(-25-Power,25+Power),math.random(-25-Power,25+Power)),vt(0,0,0),0.25,maincolor)
3335
end
3336
for i = 0,1,0.1 do
3337
swait()
3338
dec.Transparency = dec.Transparency + 0.1
3339
dec2.Transparency = dec2.Transparency + 0.1
3340
rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
3341
end
3342
rng:Destroy()
3343
hum.WalkSpeed = 16
3344
sbs:Destroy()
3345
root.Anchored = false
3346
attack = false
3347
end))
3348
HoldingV = false
3349
break
3350
end
3351
end
3352
end
3353
 
3354
function UltralightBeam()
3355
attack = true
3356
        local sbs = Instance.new("BodyPosition", root)
3357
        sbs.P = 3000
3358
        sbs.D = 1000
3359
        sbs.maxForce = Vector3.new(50000000000, 10e10, 50000000000)
3360
        sbs.position = RootPart.CFrame.p + Vector3.new(0, 100, 0)
3361
wait(0.1)
3362
root.Anchored = true
3363
hum.WalkSpeed = 0
3364
local rotation = 0
3365
local typrot = math.random(1,2)
3366
local rng = Instance.new("Part", char)
3367
CFuncs["Sound"].Create("rbxassetid://402981977", rng, 2, 0.6)
3368-
	a.Name = "Direction"	
3368+
3369-
	a.Anchored = true
3369+
3370-
	a.BrickColor = bc("White")
3370+
3371
        rng.FormFactor = 3
3372
        rng.Name = "Ring"
3373
        rng.Material = "Neon"
3374-
	a.CanCollide = false
3374+
3375
        rng.Transparency = 1
3376-
	a2.Name = "Direction"	
3376+
3377-
	a2.Anchored = true
3377+
3378-
	a2.BrickColor = bc("Pastel yellow")
3378+
3379
        rngm.MeshType = "Brick"
3380
rngm.Scale = vt(0,1,0)
3381
local dec = Instance.new("Decal",rng)
3382-
	a2.CanCollide = false
3382+
3383
dec.Face = "Top"
3384-
	b.Name = "HitDirect"	
3384+
3385-
	b.Anchored = true
3385+
3386-
	b.BrickColor = bc("Pastel yellow")
3386+
3387
dec2.Face = "Bottom"
3388
dec2.Transparency = 0
3389-
	b.CanCollide = false
3389+
3390-
	local ray = Ray.new(
3390+
3391-
	    orb.CFrame.p,                           -- origin
3391+
3392-
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3392+
3393-
	) 
3393+
3394-
	local ignore = Character
3394+
3395-
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3395+
3396-
	a.BottomSurface = 10
3396+
3397-
	a.TopSurface = 10
3397+
3398-
	a2.BottomSurface = 10
3398+
3399-
	a2.TopSurface = 10
3399+
3400-
	local distance = (orb.CFrame.p - position).magnitude
3400+
3401-
	a.Size = Vector3.new(distance, 1, 1)
3401+
3402-
	a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3402+
3403-
	a2.Size = Vector3.new(distance, 1, 1)
3403+
3404-
	a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3404+
3405
 
3406
local orb = rngb:Clone()
3407
orb.Parent = char
3408
orb.Transparency = 0
3409
orb.BrickColor = BrickColor.new("White")
3410
orb.Size = vt(1,1,1)
3411
local orbmish = orb.SizeMesh
3412
orbmish.Scale = vt(0,0,0)
3413
orbmish.MeshType = "Sphere"
3414
 
3415
local orbe = rngb:Clone()
3416
orbe.Parent = char
3417
orbe.Transparency = 0.5
3418
orbe.BrickColor = BrickColor.new("Pastel yellow")
3419
orbe.Size = vt(1,1,1)
3420
local orbmish2 = orbe.SizeMesh
3421
orbmish2.Scale = vt(0,0,0)
3422
orbmish2.MeshType = "Sphere"
3423-
	    orb.CFrame.p,                           -- origin
3423+
3424-
	    (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3424+
3425-
	) 
3425+
3426
decb.Face = "Top"
3427
decb.Transparency = 0
3428
local dec2b = dec:Clone()
3429
dec2b.Parent = rngb
3430
dec2b.Face = "Bottom"
3431
dec2b.Transparency = 0
3432
 
3433
maincolor = BrickColor.new("Pastel yellow")
3434
 
3435
local summoned = Instance.new("ParticleEmitter",rng)
3436
summoned.LightEmission = 1
3437
summoned.Color = ColorSequence.new(maincolor.Color)
3438
summoned.Rate = 100
3439
summoned.Lifetime = NumberRange.new(0.5)
3440
summoned.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,35,0)})
3441
summoned.Transparency = NumberSequence.new({NumberSequenceKeypoint.new(0,0,0),NumberSequenceKeypoint.new(1,1,0)})
3442
summoned.Speed = NumberRange.new(0,0)
3443
summoned.Texture = "http://www.roblox.com/asset/?id=1493478120"
3444
summoned.Rotation = NumberRange.new(-500,500)
3445
summoned.RotSpeed = NumberRange.new(-500,500)
3446
 
3447
local scaled = 1
3448
for i = 0,1,0.1 do
3449
swait()
3450
dec.Transparency = dec.Transparency - 0.1
3451
dec2.Transparency = dec2.Transparency - 0.1
3452
rngm.Scale = rngm.Scale + Vector3.new(6, 0, 6)
3453
rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
3454
decb.Transparency = decb.Transparency - 0.1
3455
dec2b.Transparency = dec2b.Transparency - 0.1
3456
rngmb.Scale = rngmb.Scale + Vector3.new(9, 0, 9)
3457
rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
3458
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.1)
3459
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.1)
3460
RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
3461
LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
3462
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3463
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3464
RootPart.CFrame = FaceMouse2()[1]
3465
end
3466
CFuncs["Sound"].Create("rbxassetid://136007472", char, 1.25, 0.7)
3467
summoned.Enabled = false
3468
for i = 0,10,0.1 do
3469
swait()
3470
scaled = scaled - 0.01
3471
if typrot == 1 then
3472
rotation = rotation + 2.5
3473
elseif typrot == 2 then
3474
rotation = rotation - 2.5
3475
end
3476
orbmish.Scale = orbmish.Scale + vt(scaled/1.5,scaled/1.5,scaled/1.5)
3477
orbmish2.Scale = orbmish2.Scale + vt(scaled*1.1/1.5,scaled*1.1/1.5,scaled*1.1/1.5)
3478
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
3479
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
3480
sphereMKCharge(2.5,-1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),2.5,2.5,15,-0.025,maincolor,50)
3481
rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
3482
rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
3483
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.1)
3484
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.1)
3485
RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
3486
LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
3487
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3488
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3489
RootPart.CFrame = FaceMouse2()[1]
3490-
		if k == "f" and cloaked == false then
3490+
3491-
			cloaked = true
3491+
3492-
			Cloak()
3492+
3493-
		elseif k == "f" and cloaked == true then
3493+
3494-
			cloaked = false
3494+
3495-
			UnCloak()
3495+
3496
rotation = rotation - 2.5
3497
end
3498
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
3499
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
3500
rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
3501
rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
3502
RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.1)
3503
Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(90)),.1)
3504
RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.1)
3505
LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.1)
3506
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3507
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-0.5),math.rad(0),math.rad(0)),.3)
3508
RootPart.CFrame = FaceMouse2()[1]
3509
end
3510
CFuncs["Sound"].Create("rbxassetid://741272936", char, 0.75, 1)
3511
CFuncs["Sound"].Create("rbxassetid://1192402877", char, 1, 1)
3512
CFuncs["Sound"].Create("rbxassetid://1208650519", char, 0.75, 1)
3513
CFuncs["Sound"].Create("rbxassetid://164881112", char, 0.75, 1)
3514
CFuncs["Sound"].Create("rbxassetid://429123896", char, 1, 0.85)
3515
local xd= Instance.new("Sound",char)
3516
xd.SoundId = "rbxassetid://445796828"
3517
xd.Pitch = 0.75
3518
xd.Looped = true
3519
xd.Volume = 1.25
3520
xd:Play()
3521
local a = Instance.new("Part",Character)
3522
    a.Name = "Direction"   
3523
    a.Anchored = true
3524
    a.BrickColor = bc("White")
3525
a.Material = "Neon"
3526
a.Transparency = 0
3527
a.Shape = "Cylinder"
3528
    a.CanCollide = false
3529
local a2 = Instance.new("Part",Character)
3530
    a2.Name = "Direction"  
3531
    a2.Anchored = true
3532
    a2.BrickColor = bc("Pastel yellow")
3533-
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
3533+
3534
a2.Transparency = 0.5
3535
a2.Shape = "Cylinder"
3536
    a2.CanCollide = false
3537
local b = Instance.new("Part",Character)
3538
    b.Name = "HitDirect"   
3539
    b.Anchored = true
3540
    b.BrickColor = bc("Pastel yellow")
3541
b.Material = "Neon"
3542
b.Transparency = 1
3543
    b.CanCollide = false
3544
    local ray = Ray.new(
3545
        orb.CFrame.p,                           -- origin
3546
        (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3547-
if RootPart.Velocity.y > 1 and hitfloor==nil then 
3547+
    )
3548
    local ignore = Character
3549
    local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3550
    a.BottomSurface = 10
3551
    a.TopSurface = 10
3552
    a2.BottomSurface = 10
3553
    a2.TopSurface = 10
3554
    local distance = (orb.CFrame.p - position).magnitude
3555
    a.Size = Vector3.new(distance, 1, 1)
3556
    a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3557-
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
3557+
    a2.Size = Vector3.new(distance, 1, 1)
3558
    a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3559
b.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3560
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3561
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
3562
game:GetService("Debris"):AddItem(a, 20)
3563
game:GetService("Debris"):AddItem(a2, 20)
3564
game:GetService("Debris"):AddItem(b, 20)
3565
local msh = Instance.new("SpecialMesh",a)
3566
msh.MeshType = "Cylinder"
3567
msh.Scale = vt(1,5*5,5*5)
3568
local msh2 = Instance.new("SpecialMesh",a2)
3569
msh2.MeshType = "Cylinder"
3570
msh2.Scale = vt(1,6*5,6*5)
3571
 
3572
for i = 0,20,0.1 do
3573
swait()
3574
orb.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
3575
orbe.CFrame = root.CFrame*CFrame.new(0,0.5,0) + root.CFrame.lookVector*22.5
3576
ray = Ray.new(
3577
        orb.CFrame.p,                           -- origin
3578
        (mouse.Hit.p - orb.CFrame.p).unit * 1000 -- direction
3579
    )
3580
hit, position, normal = workspace:FindPartOnRay(ray, ignore)
3581
distance = (orb.CFrame.p - position).magnitude
3582
if typrot == 1 then
3583
rotation = rotation + 2.5
3584
elseif typrot == 2 then
3585
rotation = rotation - 2.5
3586
end
3587
rng.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(rotation),0) + root.CFrame.lookVector*6
3588
rngb.CFrame = root.CFrame*CFrame.new(0,0.5,0)*CFrame.Angles(math.rad(90),math.rad(-rotation),0) + root.CFrame.lookVector*3
3589
RootPart.CFrame = FaceMouse2()[1]
3590
a.Size = Vector3.new(distance, 1, 1)
3591
a.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3592
a2.Size = Vector3.new(distance, 1, 1)
3593
a2.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance/2)
3594
b.CFrame = CFrame.new(orb.CFrame.p, position) * CFrame.new(0, 0, -distance)
3595
a.CFrame = a.CFrame*CFrame.Angles(0,math.rad(90),0)
3596
a2.CFrame = a2.CFrame*CFrame.Angles(0,math.rad(90),0)
3597
msh.Scale = msh.Scale - vt(0,0.025*5,0.025*5)
3598
msh2.Scale = msh2.Scale - vt(0,0.03*5,0.03*5)
3599
orbmish.Scale = orbmish.Scale - vt(0.175,0.175,0.175)
3600
orbmish2.Scale = orbmish2.Scale - vt(0.175,0.175,0.175)
3601
sphereMK(5,1,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,25,-0.1,BrickColor.new("White"),0)
3602
sphereMK(5,1.5,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,25,-0.15,maincolor,0)
3603
sphere(10,"Add",b.CFrame,vt(25,25,25),0.25,maincolor)
3604
xd.Volume = xd.Volume - 0.0025
3605
MagniDamage(b, 50,30,60, 3, "Normal")
3606
end
3607
sphere(5,"Add",orb.CFrame,vt(5,5,5),0.75,maincolor)
3608
for i = 0, 9 do
3609
sphereMK(1,1,"Add",orb.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),5,5,75,-0.1,maincolor,0)
3610
end
3611
xd:Destroy()
3612
a:Destroy()
3613
a2:Destroy()
3614
orb:Destroy()
3615
orbe:Destroy()
3616
MagniDamage(b, 50,30,60, 3, "Normal")
3617
CFuncs["Sound"].Create("rbxassetid://919941001", char, 2,1.05)
3618
CFuncs["Sound"].Create("rbxassetid://138213851", char, 1,1)
3619
CFuncs["Sound"].Create("rbxassetid://239000203", char, 0.5,1)
3620
for i = 0, 14 do
3621
sphereMK(2.5,3,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),10,10,50,-0.1,BrickColor.new("White"),0)
3622
sphereMK(2.5,3.5,"Add",b.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360))),15,15,75,-0.15,maincolor,0)
3623
end
3624
sphere(1,"Add",b.CFrame,vt(2.5,2.5,2.5),2.5,BrickColor.new("White"))
3625
sphere(1,"Add",b.CFrame,vt(5,5,5),5,maincolor)
3626
for i = 0,1,0.1 do
3627
swait()
3628
dec.Transparency = dec.Transparency + 0.1
3629
dec2.Transparency = dec2.Transparency + 0.1
3630
rngm.Scale = rngm.Scale + Vector3.new(0.5, 0, 0.5)
3631
decb.Transparency = decb.Transparency + 0.1
3632
dec2b.Transparency = dec2b.Transparency + 0.1
3633
rngmb.Scale = rngmb.Scale + Vector3.new(1, 0, 1)
3634
end
3635
rng:Destroy()
3636
rngb:Destroy()
3637
hum.WalkSpeed = 16
3638
sbs:Destroy()
3639
root.Anchored = false
3640
attack = false
3641
end
3642
 
3643
mouse.KeyDown:connect(function(k)
3644
        if k == "f" and cloaked == false then
3645
            cloaked = true
3646
            Cloak()
3647
        elseif k == "f" and cloaked == true then
3648
            cloaked = false
3649
            UnCloak()
3650
        end
3651
        if k == "z" and attack == false and HoldingZ == false then
3652
               LightStorm()
3653
        end
3654
        if k == "x" and attack == false and HoldingX == false then
3655
              LightBeam()
3656
        end
3657
        if k == "c" and attack == false and HoldingC == false then
3658
               LightBomb()
3659
        end
3660
        if k == "v" and attack == false and HoldingV == false then
3661
               LightHeal()
3662
        end
3663
        if k == "b" and attack == false then
3664
               UltralightBeam()
3665
        end
3666
end)
3667
 
3668
mouse.KeyUp:connect(function(k)
3669
        if k == "z" and attack == true and HoldingZ == true then
3670
               HoldingZ = false
3671
        end
3672
        if k == "x" and attack == true and HoldingX == true then
3673
               HoldingX = false
3674
        end
3675
        if k == "c" and attack == true and HoldingC == true then
3676
               HoldingC = false
3677
        end
3678
        if k == "v" and attack == true and HoldingV == true then
3679
               HoldingV = false
3680
        end
3681
end)
3682
Humanoid.Animator.Parent = nil
3683
idleanim=.4
3684
while true do
3685
swait()
3686
  sine = sine + change
3687
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude
3688
local velderp=RootPart.Velocity.y
3689
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
3690
if equipped==true or equipped==false then
3691
if attack==false then
3692
idle=idle+1
3693
else
3694
idle=0
3695
end
3696
if idle>=500 then
3697
if attack==false then
3698
--Sheath()
3699
end
3700
end
3701
if RootPart.Velocity.y > 1 and hitfloor==nil then
3702
Anim="Jump"
3703
if attack==false then
3704
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
3705
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
3706
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(-10),math.rad(0),math.rad(0)),.1)
3707
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
3708
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(25)),.1)
3709
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-5),math.rad(0),math.rad(-25)),.1)
3710
end
3711
elseif RootPart.Velocity.y < -1 and hitfloor==nil then
3712
Anim="Fall"
3713
if attack==false then
3714
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(-20)),.1)
3715
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 25),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(20)),.1)
3716
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 25))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3717
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3718
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(50)),.1)
3719
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-20),math.rad(0),math.rad(-50)),.1)
3720
end
3721
elseif torvel<1 and hitfloor~=nil then
3722
Anim="Idle"
3723
if attack==false then
3724
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(2 + 1 * math.cos(sine / 34))),.1)
3725
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 28),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0 + 1 * math.cos(sine / 34))),.1)
3726
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0 + 0.05 * math.cos(sine / 28))*angles(math.rad(0 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-20)),.1)
3727
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 28)),math.rad(0),math.rad(20)),.1)
3728
RW.C0=clerp(RW.C0,cf(0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(30 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(-100 - 2.5 * math.cos(sine / 28))),.1)
3729
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 28),-0.65)*angles(math.rad(40 - 1 * math.cos(sine / 34)),math.rad(0),math.rad(90 + 2.5 * math.cos(sine / 28))),.1)
3730
end
3731
elseif torvel>2 and torvel<22 and hitfloor~=nil then
3732
Anim="Walk"
3733
if attack==false then
3734
RH.C0=clerp(RH.C0,cf(1,-0.85 - 0.15 * math.cos(sine / 3),-0.15 - 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
3735
LH.C0=clerp(LH.C0,cf(-1,-0.85 + 0.15 * math.cos(sine / 3),-0.15 + 0.15 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 55 * math.cos(sine / 6))),.1)
3736
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.15 - 0.1 * math.cos(sine / 3))*angles(math.rad(5),math.rad(0),math.rad(0 - 5 * math.cos(sine / 6))),.1)
3737
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 5 * math.cos(sine / 6))),.1)
3738
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 75 * math.cos(sine / 6)),math.rad(0),math.rad(10 - 10 * math.cos(sine / 3))),.1)
3739
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 75 * math.cos(sine / 6)),math.rad(0),math.rad(-10 + 10 * math.cos(sine / 3))),.1)
3740
end
3741
elseif torvel>=22 and hitfloor~=nil then
3742
Anim="Run"
3743
if attack==false then
3744
RH.C0=clerp(RH.C0,cf(1,-0.75 - 0.25 * math.cos(sine / 3),-0.25 - 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
3745
LH.C0=clerp(LH.C0,cf(-1,-0.75 + 0.25 * math.cos(sine / 3),-0.25 + 0.25 * math.cos(sine / 3))*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 95 * math.cos(sine / 6))),.1)
3746
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,-0.125 + 0.125 * math.cos(sine / 3))*angles(math.rad(20),math.rad(0),math.rad(0 - 15 * math.cos(sine / 6))),.1)
3747
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-10 + 2.5 * math.cos(sine / 100)),math.rad(0),math.rad(0 + 15 * math.cos(sine / 6))),.1)
3748
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 125 * math.cos(sine / 6)),math.rad(0),math.rad(5 - 10 * math.cos(sine / 3))),.1)
3749
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 125 * math.cos(sine / 6)),math.rad(0),math.rad(-5 + 10 * math.cos(sine / 3))),.1)
3750
end
3751
end
3752
end
3753
end