View difference between Paste ID: zDQW5mMf and xbMtG3ha
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Please run as a server script. Use h/ instead of hl/.") end
2
print("FE Compatibility: by WaverlyCole & Mokiros")
3
InternalData = {}
4
do
5
    script.Parent = owner.Character
6
    local Event = Instance.new("RemoteEvent")
7
    Event.Name = "UserInput"
8
    local function NewFakeEvent()
9
        local Fake = {fakeEvent=true,Connect=function(self,Func)self.Function=Func end}Fake.connect = Fake.Connect
10
        return Fake
11
    end
12
    local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
13
    local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
14
    local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
15
        self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
16
    end};ContextActionService.UnBindAction = ContextActionService.BindAction
17
    local function TriggerEvent(self,Event,...)
18
        local Trigger = Mouse[Event]
19
        if Trigger and Trigger.fakeEvent and Trigger.Function then
20
            Trigger.Function(...)
21
        end
22
    end
23
    Mouse.TrigEvent = TriggerEvent
24
    UserInputService.TrigEvent = TriggerEvent
25
    Event.OnServerEvent:Connect(function(FiredBy,Input)
26
        if FiredBy.Name ~= owner.Name then end
27
        if Input.MouseEvent then
28
            Mouse.Target = Input.Target
29
            Mouse.Hit = Input.Hit
30
        else
31
            local Begin = Input.UserInputState == Enum.UserInputState.Begin
32
            if Input.UserInputType == Enum.UserInputType.MouseButton1 then
33
                return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up")
34
            end
35
            for _,Action in pairs(ContextActionService.Actions) do
36
                for _,Key in pairs(Action.Keys) do
37
                    if Key==Input.KeyCode then
38
                        Action.Function(Action.Name,Input.UserInputState,Input)
39
                    end
40
                end
41
            end
42
            Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
43
            UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
44
        end
45
    end)
46
    InternalData["Mouse"] = Mouse
47
    InternalData["ContextActionService"] = ContextActionService
48
    InternalData["UserInputService"] = UserInputService
49
    Event.Parent = NLS([[
50
        local Player = owner
51
        local Event = script:WaitForChild("UserInput")
52
        local UserInputService = game:GetService("UserInputService")
53
        local Mouse = Player:GetMouse()
54
        local Input = function(Input,gameProcessedEvent)
55
            if gameProcessedEvent then return end
56
            Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
57
        end
58
        UserInputService.InputBegan:Connect(Input)
59
        UserInputService.InputEnded:Connect(Input)
60
        local Hit,Target
61
        while wait(1/30) do
62
            if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
63
                Hit,Target = Mouse.Hit,Mouse.Target
64
                Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
65
            end
66
        end
67
    ]],owner.Character)
68
end
69
RealGame = game;game = setmetatable({},{
70
    __index = function (self,Index)
71
        local Sandbox = function (Thing)
72
            if Thing:IsA("Player") then
73
                local RealPlayer = Thing
74
                return setmetatable({},{
75
                    __index = function (self,Index)
76
                        local Type = type(RealPlayer[Index])
77
                        if Type == "function" then
78
                            if Index:lower() == "getmouse" or Index:lower() == "mouse" then
79
                                return function (self)
80
                                    return InternalData["Mouse"]
81
                                end
82
                            end
83
                            return function (self,...)
84
                                return RealPlayer[Index](RealPlayer,...)
85
                            end
86
                        else
87
                            if Index == "PlrObj" then
88
                                return RealPlayer
89
                            end
90
                            return RealPlayer[Index]
91
                        end
92
                    end;
93
                    __tostring = function(self)
94
                        return RealPlayer.Name
95
                    end
96
                })
97
            end
98
        end
99
        if RealGame[Index] then
100
            local Type = type(RealGame[Index])
101
            if Type == "function" then
102
                if Index:lower() == "getservice" or Index:lower() == "service" then
103
                    return function (self,Service)
104
                        if Service:lower() == "players" then
105
                            return setmetatable({},{
106
                                __index = function (self2,Index2)
107
                                    local RealService = RealGame:GetService(Service)
108
                                    local Type2 = type(Index2)
109
                                    if Type2 == "function" then
110
                                        return function (self,...)
111
                                            return RealService[Index2](RealService,...)
112
                                        end
113
                                    else
114
                                        if Index2:lower() == "localplayer" then
115
                                            return Sandbox(owner)
116
                                        end
117
                                        return RealService[Index2]
118
                                    end
119
                                end;
120
                                __tostring = function(self)
121
                                    return RealGame:GetService(Service).Name
122
                                end
123
                            })
124
                        elseif Service:lower() == "contextactionservice" then
125
                            return InternalData["ContextActionService"]
126
                        elseif Service:lower() == "contextactionservice" then
127
                            return InternalData["UserInputService"]
128
                        elseif Service:lower() == "runservice" then
129
                            return setmetatable({},{
130
                                __index = function(self2,Index2)
131
                                    local RealService = RealGame:GetService(Service)
132
                                    local Type2 = type(Index2)
133
                                    if Type2 == "function" then
134
                                        return function (self,...)
135
                                            return RealService[Index2](RealService,...)
136
                                        end
137
                                    else
138
                                        if Index2:lower() == "bindtorenderstep" then
139
                                            return function (self,Name,Priority,Function)
140
                                                return RealGame:GetService("RunService").Stepped:Connect(Function)
141
                                            end
142
                                        end
143
                                        if Index2:lower() == "renderstepped" then
144
                                            return RealService["Stepped"]
145
                                        end
146
                                        return RealService[Index2]
147
                                    end
148
                                end
149
                            })
150
                        else
151
                            return RealGame:GetService(Service)
152
                        end
153
                    end
154
                end
155
                return function (self,...)
156
                    return RealGame[Index](RealGame,...)
157
                end
158
            else
159
                if game:GetService(Index) then
160
                    return game:GetService(Index)
161
                end
162
                return RealGame[Index]
163
            end
164
        else
165
            return nil
166
        end
167
    end
168
});Game = game;owner = game:GetService("Players").LocalPlayer;script = {}
169
print("Complete! Running...")
170
 
171
 
172
--//Paste script below this line.
173
174
warn'Lunarist Loaded.'
175
warn'Do not leak this, or else.'
176
--- its obs smooth af do not touch 
177
plr = game.Players.LocalPlayer
178
char = plr.Character
179
hum = char.Humanoid
180
local cam = game.Workspace.CurrentCamera
181
t = char.Torso
182
h = char.Head
183
ra = char["Right Arm"]
184
la = char["Left Arm"]
185
rl = char["Right Leg"]
186
ll = char["Left Leg"]
187
tors = char.Torso
188
lleg = char["Left Leg"]
189
root = char.HumanoidRootPart
190
hed = char.Head
191
rleg = char["Right Leg"]
192
rarm = char["Right Arm"]
193
larm = char["Left Arm"]
194
vt = Vector3.new
195
bc = BrickColor.new
196
br = BrickColor.random
197
it = Instance.new
198
cf = CFrame.new
199
200
local sick = Instance.new("Sound",Character)
201
sick.SoundId = "rbxassetid://1351017179"
202
sick.Looped = true
203
sick.Pitch = 1
204
sick.Volume = 1
205
sick:Play()
206
207
function CameraShake(Times, Power)
208
coroutine.resume(coroutine.create(function()
209
FV = Instance.new("BoolValue", Character)
210
FV.Name = "CameraShake"
211
for ShakeNum=1,Times do
212
swait()
213
local ef=Power
214
  if ef>=1 then
215
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef),math.random(-ef,ef),math.random(-ef,ef))
216
  else
217
   ef=Power*10
218
   Humanoid.CameraOffset = Vector3.new(math.random(-ef,ef)/10,math.random(-ef,ef)/10,math.random(-ef,ef)/10)
219
  end	
220
end
221
Humanoid.CameraOffset = Vector3.new(0,0,0)
222
FV:Destroy()
223
end))
224
end
225
226
CamShake=function(Part,Distan,Power,Times) 
227
local de=Part.Position
228
for i,v in pairs(workspace:children()) do
229
 if v:IsA("Model") and v:findFirstChild("Humanoid") then
230
for _,c in pairs(v:children()) do
231
if c.ClassName=="Part" and (c.Position - de).magnitude < Distan then
232
local Noob=v.Humanoid
233
if Noob~=nil then
234
if Noob:FindFirstChild("CamShake")==nil then-- and Noob == Character then
235
--[[local ss=script.CamShake:clone()
236
ss.Parent=Noob
237
ss.Power.Value=Power
238
ss.Times.Value=Times
239
ss.Disabled=false]]
240
CameraShake(Times, Power)
241
end
242
end
243
end
244
end
245
end
246
end
247
end
248
249
function chatfunc(text,color)
250
local chat = coroutine.wrap(function()
251
if Character:FindFirstChild("TalkingBillBoard")~= nil then
252
Character:FindFirstChild("TalkingBillBoard"):destroy()
253
end
254
local naeeym2 = Instance.new("BillboardGui",Character)
255
naeeym2.Size = UDim2.new(0,100,0,40)
256
naeeym2.StudsOffset = Vector3.new(0,3,0)
257
naeeym2.Adornee = Character.Head
258
naeeym2.Name = "TalkingBillBoard"
259
local tecks2 = Instance.new("TextLabel",naeeym2)
260
tecks2.BackgroundTransparency = 1
261
tecks2.BorderSizePixel = 0
262
tecks2.Text = ""
263
tecks2.Font = "SciFi"
264
tecks2.TextSize = 30
265
tecks2.TextStrokeTransparency = 0
266
tecks2.TextColor3 = color
267
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
268
tecks2.Size = UDim2.new(1,0,0.5,0)
269
local tecks3 = Instance.new("TextLabel",naeeym2)
270
tecks3.BackgroundTransparency = 1
271
tecks3.BorderSizePixel = 0
272
tecks3.Text = ""
273
tecks3.Font = "SciFi"
274
tecks3.TextSize = 30
275
tecks3.TextStrokeTransparency = 0
276
tecks3.TextColor3 = Color3.new(0,0,0)
277
tecks3.TextStrokeColor3 = color
278
tecks3.Size = UDim2.new(1,0,0.5,0)
279
for i = 1,string.len(text),1 do
280
CFuncs["Sound"].Create("rbxassetid://274118116", char, 0.25, 0.115)
281
tecks2.Text = string.sub(text,1,i)
282
tecks3.Text = string.sub(text,1,i)
283
wait(0.01)
284
end
285
wait(1)
286
local randomrot = math.random(1,2)
287
if randomrot == 1 then
288
for i = 1, 50 do
289
swait()
290
tecks2.Rotation = tecks2.Rotation - .75
291
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
292
tecks2.TextTransparency = tecks2.TextTransparency + .04
293
tecks3.Rotation = tecks2.Rotation + .75
294
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
295
tecks3.TextTransparency = tecks2.TextTransparency + .04
296
end
297
elseif randomrot == 2 then
298
	for i = 1, 50 do
299
swait()
300
tecks2.Rotation = tecks2.Rotation + .75
301
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
302
tecks2.TextTransparency = tecks2.TextTransparency + .04
303
tecks3.Rotation = tecks2.Rotation - .75
304
tecks3.TextStrokeTransparency = tecks2.TextStrokeTransparency +.04
305
tecks3.TextTransparency = tecks2.TextTransparency + .04
306
end
307
end
308
naeeym2:Destroy()
309
end)
310
chat()
311
end
312
313
314
local Create = LoadLibrary("RbxUtility").Create
315
316
CFuncs = {	
317
	["Part"] = {
318
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
319
			local Part = Create("Part"){
320
				Parent = Parent,
321
				Reflectance = Reflectance,
322
				Transparency = Transparency,
323
				CanCollide = false,
324
				Locked = true,
325
				BrickColor = BrickColor.new(tostring(BColor)),
326
				Name = Name,
327
				Size = Size,
328
				Material = Material,
329
			}
330
			RemoveOutlines(Part)
331
			return Part
332
		end;
333
	};
334
	
335
	["Mesh"] = {
336
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
337
			local Msh = Create(Mesh){
338
				Parent = Part,
339
				Offset = OffSet,
340
				Scale = Scale,
341
			}
342
			if Mesh == "SpecialMesh" then
343
				Msh.MeshType = MeshType
344
				Msh.MeshId = MeshId
345
			end
346
			return Msh
347
		end;
348
	};
349
	
350
	["Mesh"] = {
351
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
352
			local Msh = Create(Mesh){
353
				Parent = Part,
354
				Offset = OffSet,
355
				Scale = Scale,
356
			}
357
			if Mesh == "SpecialMesh" then
358
				Msh.MeshType = MeshType
359
				Msh.MeshId = MeshId
360
			end
361
			return Msh
362
		end;
363
	};
364
	
365
	["Weld"] = {
366
		Create = function(Parent, Part0, Part1, C0, C1)
367
			local Weld = Create("Weld"){
368
				Parent = Parent,
369
				Part0 = Part0,
370
				Part1 = Part1,
371
				C0 = C0,
372
				C1 = C1,
373
			}
374
			return Weld
375
		end;
376
	};
377
378
	["Sound"] = {
379
		Create = function(id, par, vol, pit) 
380
			coroutine.resume(coroutine.create(function()
381
				local S = Create("Sound"){
382
					Volume = vol,
383
					Pitch = pit or 1,
384
					SoundId = id,
385
					Parent = par or workspace,
386
				}
387
				wait() 
388
				S:play() 
389
				game:GetService("Debris"):AddItem(S, 10)
390
			end))
391
		end;
392
	};
393
394
["LongSound"] = {
395
		Create = function(id, par, vol, pit) 
396
			coroutine.resume(coroutine.create(function()
397
				local S = Create("Sound"){
398
					Volume = vol,
399
					Pitch = pit or 1,
400
					SoundId = id,
401
					Parent = par or workspace,
402
				}
403
				wait() 
404
				S:play() 
405
				game:GetService("Debris"):AddItem(S, 30)
406
			end))
407
		end;
408
	};
409
	
410
	["ParticleEmitter"] = {
411
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
412
			local fp = Create("ParticleEmitter"){
413
				Parent = Parent,
414
				Color = ColorSequence.new(Color1, Color2),
415
				LightEmission = LightEmission,
416
				Size = Size,
417
				Texture = Texture,
418
				Transparency = Transparency,
419
				ZOffset = ZOffset,
420
				Acceleration = Accel,
421
				Drag = Drag,
422
				LockedToPart = LockedToPart,
423
				VelocityInheritance = VelocityInheritance,
424
				EmissionDirection = EmissionDirection,
425
				Enabled = Enabled,
426
				Lifetime = LifeTime,
427
				Rate = Rate,
428
				Rotation = Rotation,
429
				RotSpeed = RotSpeed,
430
				Speed = Speed,
431
				VelocitySpread = VelocitySpread,
432
			}
433
			return fp
434
		end;
435
	};
436
437
	CreateTemplate = {
438
	
439
	};
440
}
441
442
443
444
New = function(Object, Parent, Name, Data)
445
	local Object = Instance.new(Object)
446
	for Index, Value in pairs(Data or {}) do
447
		Object[Index] = Value
448
	end
449
	Object.Parent = Parent
450
	Object.Name = Name
451
	return Object
452
end
453
local halocolor = BrickColor.new("Pastel light blue")
454
local halocolor2 = BrickColor.new("Cool yellow")
455
local starcolor = BrickColor.new("Bright yellow")
456
local lunacolor = BrickColor.new("Navy blue")
457
local lunacolor2 = BrickColor.new("Bright blue")
458
local wepcolor = BrickColor.new("Really black")
459
local m = Instance.new("Model",char)
460
461
function CreateParta(parent,transparency,reflectance,material,brickcolor)
462
local p = Instance.new("Part")
463
p.TopSurface = 0
464
p.BottomSurface = 0
465
p.Parent = parent
466
p.Size = Vector3.new(1,1,1)
467
p.Transparency = transparency
468
p.Reflectance = reflectance
469
p.CanCollide = false
470
p.Locked = true
471
p.BrickColor = brickcolor
472
p.Material = material
473
return p
474
end
475
476
function CreateMesh(parent,meshtype,x1,y1,z1)
477
local mesh = Instance.new("SpecialMesh",parent)
478
mesh.MeshType = meshtype
479
mesh.Scale = Vector3.new(x1,y1,z1)
480
return mesh
481
end
482
483
function CreateSpecialMesh(parent,meshid,x1,y1,z1)
484
local mesh = Instance.new("SpecialMesh",parent)
485
mesh.MeshType = "FileMesh"
486
mesh.MeshId = meshid
487
mesh.Scale = Vector3.new(x1,y1,z1)
488
return mesh
489
end
490
491
492
function CreateSpecialGlowMesh(parent,meshid,x1,y1,z1)
493
local mesh = Instance.new("SpecialMesh",parent)
494
mesh.MeshType = "FileMesh"
495
mesh.MeshId = meshid
496
mesh.TextureId = "http://www.roblox.com/asset/?id=269748808"
497
mesh.Scale = Vector3.new(x1,y1,z1)
498
mesh.VertexColor = Vector3.new(parent.BrickColor.r, parent.BrickColor.g, parent.BrickColor.b)
499
return mesh
500
end
501
502
function CreateWeld(parent,part0,part1,C1X,C1Y,C1Z,C1Xa,C1Ya,C1Za,C0X,C0Y,C0Z,C0Xa,C0Ya,C0Za)
503
local weld = Instance.new("Weld")
504
weld.Parent = parent
505
weld.Part0 = part0
506
weld.Part1 = part1
507
weld.C1 = CFrame.new(C1X,C1Y,C1Z)*CFrame.Angles(C1Xa,C1Ya,C1Za)
508
weld.C0 = CFrame.new(C0X,C0Y,C0Z)*CFrame.Angles(C0Xa,C0Ya,C0Za)
509
return weld
510
end
511
512
513
local sorb = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
514
CreateWeld(sorb,rarm,sorb,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
515
local sorb2 = CreateParta(m,1,1,"SmoothPlastic",BrickColor.random())
516
CreateWeld(sorb2,larm,sorb2,0,1.15,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
517
518
local ga = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
519
CreateMesh(ga,"Brick",1.05,1.55,1.05)
520
CreateWeld(ga,rarm,ga,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
521
522
gal = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
523
CreateMesh(gal,"Brick",1.075,1.575,0.75)
524
CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
525
526
gal = CreateParta(m,0,0,"Neon",halocolor)
527
CreateMesh(gal,"Brick",1.0725,1.6,0.775)
528
CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
529
530
gal = CreateParta(m,0,0,"Neon",halocolor)
531
CreateMesh(gal,"Brick",0.1,1.25,0.1)
532
CreateWeld(gal,rarm,gal,-0.495,0,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
533
534
local gal = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
535
CreateMesh(gal,"Brick",1.07,1.625,0.8)
536
CreateWeld(gal,rarm,gal,0,-0.25,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
537
538
539
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
540
CreateMesh(gan,"Brick",1.075,0.1,1.075)
541
CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
542
543
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
544
CreateMesh(gan,"Brick",1.075,0.1,1.075)
545
CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
546
547
548
549
gan = CreateParta(m,0,0,"Neon",halocolor2)
550
CreateMesh(gan,"Brick",1.095,0.035,1.095)
551
CreateWeld(gan,rarm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
552
553
gan = CreateParta(m,0,0,"Neon",halocolor2)
554
CreateMesh(gan,"Brick",1.095,0.035,1.095)
555
CreateWeld(gan,rarm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
556
557
local gane = CreateParta(m,0,0,"SmoothPlastic",lunacolor2)
558
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
559
CreateWeld(gane,rarm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
560
561
local star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
562
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
563
CreateWeld(star,rarm,star,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
564
local starl = CreateParta(m,0,0,"SmoothPlastic",starcolor)
565
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
566
CreateWeld(starl,rarm,starl,0,-0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
567
568
local stara = CreateParta(m,0,0,"SmoothPlastic",starcolor)
569
CreateSpecialMesh(stara,"http://www.roblox.com/asset/?id=45428961",1.5,2.45,1.5)
570
CreateWeld(stara,rarm,stara,0,-0.475,-0.7,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
571
local stara1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
572
CreateSpecialMesh(stara1,"http://www.roblox.com/asset/?id=45428961",1.65,2.425,1.65)
573
CreateWeld(stara1,rarm,stara1,0,-0.475,-0.7,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
574
575
local starb = CreateParta(m,0,0,"SmoothPlastic",starcolor)
576
CreateSpecialMesh(starb,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25)
577
CreateWeld(starb,rarm,starb,0,-0.475,-0.3,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
578
local starb1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
579
CreateSpecialMesh(starb1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5)
580
CreateWeld(starb1,rarm,starb1,0,-0.475,-0.3,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
581
582
local starc = CreateParta(m,0,0,"SmoothPlastic",starcolor)
583
CreateSpecialMesh(starc,"http://www.roblox.com/asset/?id=45428961",1,2.45,1)
584
CreateWeld(starc,rarm,starc,0,-0.475,0.1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
585
local starc1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
586
CreateSpecialMesh(starc1,"http://www.roblox.com/asset/?id=45428961",1.15,2.425,1.15)
587
CreateWeld(starc1,rarm,starc1,0,-0.475,0.1,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
588
589
590
--  First
591
dot = CreateParta(m,0,0,"Neon",halocolor)
592
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
593
CreateWeld(dot,rarm,dot,-0.495,0,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
594
595
596
dot = CreateParta(m,0,0,"Neon",halocolor)
597
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
598
CreateWeld(dot,rarm,dot,-0.495,0.2,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
599
600
601
dot = CreateParta(m,0,0,"Neon",halocolor)
602
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
603
CreateWeld(dot,rarm,dot,-0.495,0.4,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
604
605
dot = CreateParta(m,0,0,"Neon",halocolor)
606
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
607
CreateWeld(dot,rarm,dot,-0.495,-0.2,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
608
dot = CreateParta(m,0,0,"Neon",halocolor)
609
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
610
CreateWeld(dot,rarm,dot,-0.495,-0.4,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
611
dot = CreateParta(m,0,0,"Neon",halocolor)
612
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
613
CreateWeld(dot,rarm,dot,-0.495,-0.6,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
614
dot = CreateParta(m,0,0,"Neon",halocolor)
615
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
616
CreateWeld(dot,rarm,dot,-0.495,-0.8,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
617
dot = CreateParta(m,0,0,"Neon",halocolor)
618
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
619
CreateWeld(dot,rarm,dot,-0.495,-1,0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
620
621
--- Second
622
623
dot = CreateParta(m,0,0,"Neon",halocolor)
624
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
625
CreateWeld(dot,rarm,dot,-0.495,0,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
626
627
628
dot = CreateParta(m,0,0,"Neon",halocolor)
629
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
630
CreateWeld(dot,rarm,dot,-0.495,0.2,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
631
632
633
dot = CreateParta(m,0,0,"Neon",halocolor)
634
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
635
CreateWeld(dot,rarm,dot,-0.495,0.4,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
636
637
dot = CreateParta(m,0,0,"Neon",halocolor)
638
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
639
CreateWeld(dot,rarm,dot,-0.495,-0.2,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
640
dot = CreateParta(m,0,0,"Neon",halocolor)
641
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
642
CreateWeld(dot,rarm,dot,-0.495,-0.4,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
643
dot = CreateParta(m,0,0,"Neon",halocolor)
644
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
645
CreateWeld(dot,rarm,dot,-0.495,-0.6,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
646
dot = CreateParta(m,0,0,"Neon",halocolor)
647
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
648
CreateWeld(dot,rarm,dot,-0.495,-0.8,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
649
dot = CreateParta(m,0,0,"Neon",halocolor)
650
CreateMesh(dot,"Sphere",0.1,0.1,0.1)
651
CreateWeld(dot,rarm,dot,-0.495,-1,-0.325,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
652
653
-- Third section A
654
655
dotsec = CreateParta(m,0,0,"Neon",halocolor)
656
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
657
CreateWeld(dotsec,rarm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
658
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
659
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
660
CreateWeld(dotseca,rarm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
661
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
662
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
663
CreateWeld(dotsecb,rarm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
664
665
dotsec = CreateParta(m,0,0,"Neon",halocolor)
666
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
667
CreateWeld(dotsec,rarm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
668
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
669
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
670
CreateWeld(dotseca,rarm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
671
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
672
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
673
CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
674
675
dotsec = CreateParta(m,0,0,"Neon",halocolor)
676
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
677
CreateWeld(dotsec,rarm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
678
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
679
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
680
CreateWeld(dotseca,rarm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
681
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
682
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
683
CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
684
685
dotsec = CreateParta(m,0,0,"Neon",halocolor)
686
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
687
CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
688
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
689
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
690
CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
691
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
692
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
693
CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
694
695
dotsec = CreateParta(m,0,0,"Neon",halocolor)
696
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
697
CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
698
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
699
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
700
CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
701
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
702
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
703
CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
704
705
-- Third section B
706
707
dotsec = CreateParta(m,0,0,"Neon",halocolor)
708
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
709
CreateWeld(dotsec,rarm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
710
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
711
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
712
CreateWeld(dotseca,rarm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
713
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
714
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
715
CreateWeld(dotsecb,rarm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
716
717
dotsec = CreateParta(m,0,0,"Neon",halocolor)
718
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
719
CreateWeld(dotsec,rarm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
720
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
721
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
722
CreateWeld(dotseca,rarm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
723
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
724
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
725
CreateWeld(dotsecb,rarm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
726
727
dotsec = CreateParta(m,0,0,"Neon",halocolor)
728
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
729
CreateWeld(dotsec,rarm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
730
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
731
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
732
CreateWeld(dotseca,rarm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
733
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
734
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
735
CreateWeld(dotsecb,rarm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
736
737
dotsec = CreateParta(m,0,0,"Neon",halocolor)
738
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
739
CreateWeld(dotsec,rarm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
740
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
741
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
742
CreateWeld(dotseca,rarm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
743
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
744
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
745
CreateWeld(dotsecb,rarm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
746
747
dotsec = CreateParta(m,0,0,"Neon",halocolor)
748
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
749
CreateWeld(dotsec,rarm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
750
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
751
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
752
CreateWeld(dotseca,rarm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
753
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
754
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
755
CreateWeld(dotsecb,rarm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
756
757
758
759
---Lines
760
761
762
gal = CreateParta(m,0,0,"Neon",halocolor)
763
CreateMesh(gal,"Brick",0.05,0.95,0.075)
764
CreateWeld(gal,rarm,gal,0,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
765
766
gal = CreateParta(m,0,0,"Neon",halocolor)
767
CreateMesh(gal,"Brick",0.05,0.95,0.075)
768
CreateWeld(gal,rarm,gal,0.2,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
769
770
gal = CreateParta(m,0,0,"Neon",halocolor)
771
CreateMesh(gal,"Brick",0.05,0.95,0.075)
772
CreateWeld(gal,rarm,gal,-0.2,0,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
773
774
gala = CreateParta(m,0,0,"Neon",halocolor)
775
CreateMesh(gala,"Brick",0.65,0.65,0.075)
776
CreateWeld(gala,rarm,gala,0,-0.35,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
777
778
gala = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
779
CreateMesh(gala,"Brick",0.595,0.595,0.095)
780
CreateWeld(gala,rarm,gala,0,-0.35,0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
781
782
783
starz = CreateParta(m,0,0,"SmoothPlastic",starcolor)
784
CreateSpecialMesh(starz,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25)
785
CreateWeld(starz,rarm,starz,0,-0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
786
starz1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
787
CreateSpecialMesh(starz1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5)
788
CreateWeld(starz1,rarm,starz1,0,-0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
789
790
dotbo = CreateParta(m,0,0,"Neon",halocolor)
791
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
792
CreateWeld(dotbo,rarm,dotbo,0.425,0,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
793
794
dotbo = CreateParta(m,0,0,"Neon",halocolor)
795
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
796
CreateWeld(dotbo,rarm,dotbo,0.425,-0.2,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
797
798
dotbo = CreateParta(m,0,0,"Neon",halocolor)
799
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
800
CreateWeld(dotbo,rarm,dotbo,0.425,-0.4,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
801
802
dotbo = CreateParta(m,0,0,"Neon",halocolor)
803
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
804
CreateWeld(dotbo,rarm,dotbo,0.425,-0.6,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
805
806
-----------
807
808
dotbo = CreateParta(m,0,0,"Neon",halocolor)
809
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
810
CreateWeld(dotbo,rarm,dotbo,-0.425,0,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
811
812
dotbo = CreateParta(m,0,0,"Neon",halocolor)
813
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
814
CreateWeld(dotbo,rarm,dotbo,-0.425,-0.2,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
815
816
dotbo = CreateParta(m,0,0,"Neon",halocolor)
817
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
818
CreateWeld(dotbo,rarm,dotbo,-0.425,-0.4,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
819
820
dotbo = CreateParta(m,0,0,"Neon",halocolor)
821
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
822
CreateWeld(dotbo,rarm,dotbo,-0.425,-0.6,0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
823
824
-- Second Lines
825
826
827
828
gal = CreateParta(m,0,0,"Neon",halocolor)
829
CreateMesh(gal,"Brick",0.05,0.95,0.075)
830
CreateWeld(gal,rarm,gal,0,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
831
832
gal = CreateParta(m,0,0,"Neon",halocolor)
833
CreateMesh(gal,"Brick",0.05,0.95,0.075)
834
CreateWeld(gal,rarm,gal,0.2,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
835
836
gal = CreateParta(m,0,0,"Neon",halocolor)
837
CreateMesh(gal,"Brick",0.05,0.95,0.075)
838
CreateWeld(gal,rarm,gal,-0.2,0,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
839
840
gala = CreateParta(m,0,0,"Neon",halocolor)
841
CreateMesh(gala,"Brick",0.65,0.65,0.075)
842
CreateWeld(gala,rarm,gala,0,-0.35,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
843
844
gala = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
845
CreateMesh(gala,"Brick",0.595,0.595,0.095)
846
CreateWeld(gala,rarm,gala,0,-0.35,-0.495,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
847
848
starz = CreateParta(m,0,0,"SmoothPlastic",starcolor)
849
CreateSpecialMesh(starz,"http://www.roblox.com/asset/?id=45428961",1.25,2.45,1.25)
850
CreateWeld(starz,rarm,starz,0,0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
851
starz1 = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
852
CreateSpecialMesh(starz1,"http://www.roblox.com/asset/?id=45428961",1.5,2.425,1.5)
853
CreateWeld(starz1,rarm,starz1,0,0.485,-0.35,math.rad(90),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
854
855
856
dotbo = CreateParta(m,0,0,"Neon",halocolor)
857
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
858
CreateWeld(dotbo,rarm,dotbo,0.425,0,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
859
860
dotbo = CreateParta(m,0,0,"Neon",halocolor)
861
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
862
CreateWeld(dotbo,rarm,dotbo,0.425,-0.2,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
863
864
dotbo = CreateParta(m,0,0,"Neon",halocolor)
865
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
866
CreateWeld(dotbo,rarm,dotbo,0.425,-0.4,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
867
868
dotbo = CreateParta(m,0,0,"Neon",halocolor)
869
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
870
CreateWeld(dotbo,rarm,dotbo,0.425,-0.6,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
871
872
-----------
873
874
dotbo = CreateParta(m,0,0,"Neon",halocolor)
875
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
876
CreateWeld(dotbo,rarm,dotbo,-0.425,0,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
877
878
dotbo = CreateParta(m,0,0,"Neon",halocolor)
879
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
880
CreateWeld(dotbo,rarm,dotbo,-0.425,-0.2,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
881
882
dotbo = CreateParta(m,0,0,"Neon",halocolor)
883
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
884
CreateWeld(dotbo,rarm,dotbo,-0.425,-0.4,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
885
886
dotbo = CreateParta(m,0,0,"Neon",halocolor)
887
CreateMesh(dotbo,"Sphere",0.1,0.1,0.15)
888
CreateWeld(dotbo,rarm,dotbo,-0.425,-0.6,-0.475,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
889
890
891
892
---- HERES THE RING
893
894
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
895
CreateMesh(gan,"Brick",1.075,0.1,1.075)
896
CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
897
898
gan = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
899
CreateMesh(gan,"Brick",1.075,0.1,1.075)
900
CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
901
902
903
904
gan = CreateParta(m,0,0,"Neon",halocolor2)
905
CreateMesh(gan,"Brick",1.095,0.035,1.095)
906
CreateWeld(gan,larm,gan,0,0.5,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
907
908
gan = CreateParta(m,0,0,"Neon",halocolor2)
909
CreateMesh(gan,"Brick",1.095,0.035,1.095)
910
CreateWeld(gan,larm,gan,0,0.75,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
911
912
gane = CreateParta(m,0,0,"SmoothPlastic",lunacolor2)
913
CreateMesh(gane,"Brick",1.0625,0.2,1.0625)
914
CreateWeld(gane,larm,gane,0,0.6,0,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
915
916
star = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
917
CreateSpecialMesh(star,"http://www.roblox.com/asset/?id=45428961",2.5,2.5,2.5)
918
CreateWeld(star,larm,star,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
919
starl = CreateParta(m,0,0,"SmoothPlastic",starcolor)
920
CreateSpecialMesh(starl,"http://www.roblox.com/asset/?id=45428961",1.95,2.55,1.95)
921
CreateWeld(starl,larm,starl,0,0.475,0.6,math.rad(90),math.rad(90),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
922
923
-- S section A
924
925
dotsec = CreateParta(m,0,0,"Neon",halocolor)
926
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
927
CreateWeld(dotsec,larm,dotsec,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
928
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
929
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
930
CreateWeld(dotseca,larm,dotseca,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
931
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
932
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
933
CreateWeld(dotsecb,larm,dotsecb,0,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
934
935
dotsec = CreateParta(m,0,0,"Neon",halocolor)
936
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
937
CreateWeld(dotsec,larm,dotsec,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
938
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
939
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
940
CreateWeld(dotseca,larm,dotseca,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
941
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
942
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
943
CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
944
945
dotsec = CreateParta(m,0,0,"Neon",halocolor)
946
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
947
CreateWeld(dotsec,larm,dotsec,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
948
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
949
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
950
CreateWeld(dotseca,larm,dotseca,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
951
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
952
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
953
CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
954
955
dotsec = CreateParta(m,0,0,"Neon",halocolor)
956
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
957
CreateWeld(dotsec,larm,dotsec,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
958
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
959
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
960
CreateWeld(dotseca,larm,dotseca,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
961
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
962
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
963
CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
964
965
dotsec = CreateParta(m,0,0,"Neon",halocolor)
966
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
967
CreateWeld(dotsec,larm,dotsec,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
968
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
969
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
970
CreateWeld(dotseca,larm,dotseca,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
971
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
972
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
973
CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,-0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
974
975
-- S section B
976
977
dotsec = CreateParta(m,0,0,"Neon",halocolor)
978
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
979
CreateWeld(dotsec,larm,dotsec,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
980
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
981
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
982
CreateWeld(dotseca,larm,dotseca,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
983
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
984
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
985
CreateWeld(dotsecb,larm,dotsecb,0,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
986
987
dotsec = CreateParta(m,0,0,"Neon",halocolor)
988
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
989
CreateWeld(dotsec,larm,dotsec,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
990
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
991
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
992
CreateWeld(dotseca,larm,dotseca,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
993
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
994
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
995
CreateWeld(dotsecb,larm,dotsecb,0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
996
997
dotsec = CreateParta(m,0,0,"Neon",halocolor)
998
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
999
CreateWeld(dotsec,larm,dotsec,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1000
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1001
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
1002
CreateWeld(dotseca,larm,dotseca,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1003
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
1004
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
1005
CreateWeld(dotsecb,larm,dotsecb,0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1006
1007
dotsec = CreateParta(m,0,0,"Neon",halocolor)
1008
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
1009
CreateWeld(dotsec,larm,dotsec,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1010
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1011
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
1012
CreateWeld(dotseca,larm,dotseca,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1013
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
1014
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
1015
CreateWeld(dotsecb,larm,dotsecb,-0.2,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1016
1017
dotsec = CreateParta(m,0,0,"Neon",halocolor)
1018
CreateMesh(dotsec,"Sphere",0.1,0.1,0.15)
1019
CreateWeld(dotsec,larm,dotsec,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1020
dotseca = CreateParta(m,0,0,"SmoothPlastic",wepcolor)
1021
CreateMesh(dotseca,"Sphere",0.2,0.2,0.1)
1022
CreateWeld(dotseca,larm,dotseca,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1023
dotsecb = CreateParta(m,0,0,"SmoothPlastic",lunacolor)
1024
CreateMesh(dotsecb,"Sphere",0.15,0.15,0.125)
1025
CreateWeld(dotsecb,larm,dotsecb,-0.4,0.635,0.5,math.rad(0),math.rad(0),math.rad(0),0,0,0,math.rad(0),math.rad(0),math.rad(0))
1026
1027
------
1028
1029
1030
function RemoveOutlines(part)
1031
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
1032
end
1033
function CreatePart(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
1034
  local Part = Create("Part")({
1035
    Parent = Parent,
1036
    Reflectance = Reflectance,
1037
    Transparency = Transparency,
1038
    CanCollide = false,
1039
    Locked = true,
1040
    BrickColor = BrickColor.new(tostring(BColor)),
1041
    Name = Name,
1042
    Size = Size,
1043
    Material = Material
1044
  })
1045
  Part.CustomPhysicalProperties = PhysicalProperties.new(0.001, 0.001, 0.001, 0.001, 0.001)
1046
  RemoveOutlines(Part)
1047
  return Part
1048
end
1049
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
1050
  local Msh = Create(Mesh)({
1051
    Parent = Part,
1052
    Offset = OffSet,
1053
    Scale = Scale
1054
  })
1055
  if Mesh == "SpecialMesh" then
1056
    Msh.MeshType = MeshType
1057
    Msh.MeshId = MeshId
1058
  end
1059
  return Msh
1060
end
1061
function CreateWeld(Parent, Part0, Part1, C0, C1)
1062
  local Weld = Create("Weld")({
1063
    Parent = Parent,
1064
    Part0 = Part0,
1065
    Part1 = Part1,
1066
    C0 = C0,
1067
    C1 = C1
1068
  })
1069
  return Weld
1070
end
1071
1072
Player=game:GetService("Players").LocalPlayer
1073
Character=Player.Character 
1074
PlayerGui=Player.PlayerGui 
1075
Backpack=Player.Backpack 
1076
Torso=Character.Torso 
1077
Head=Character.Head 
1078
Humanoid=Character.Humanoid
1079
m=Instance.new('Model',Character)
1080
LeftArm=Character["Left Arm"] 
1081
LeftLeg=Character["Left Leg"] 
1082
RightArm=Character["Right Arm"] 
1083
RightLeg=Character["Right Leg"] 
1084
LS=Torso["Left Shoulder"] 
1085
LH=Torso["Left Hip"] 
1086
RS=Torso["Right Shoulder"] 
1087
RH=Torso["Right Hip"] 
1088
Face = Head.face
1089
Neck=Torso.Neck
1090
it=Instance.new
1091
attacktype=1
1092
vt=Vector3.new
1093
cf=CFrame.new
1094
euler=CFrame.fromEulerAnglesXYZ
1095
angles=CFrame.Angles
1096
cloaked=false
1097
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1098
necko2=cf(0, -0.5, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
1099
LHC0=cf(-1,-1,0,-0,-0,-1,0,1,0,1,0,0)
1100
LHC1=cf(-0.5,1,0,-0,-0,-1,0,1,0,1,0,0)
1101
RHC0=cf(1,-1,0,0,0,1,0,1,0,-1,-0,-0)
1102
RHC1=cf(0.5,1,0,0,0,1,0,1,0,-1,-0,-0)
1103
RootPart=Character.HumanoidRootPart
1104
RootJoint=RootPart.RootJoint
1105
RootCF=euler(-1.57,0,3.14)
1106
attack = false 
1107
attackdebounce = false 
1108
deb=false
1109
equipped=true
1110
hand=false
1111
MMouse=nil
1112
combo=0
1113
mana=0
1114
trispeed=.2
1115
attackmode='none'
1116
local idle=0
1117
local Anim="Idle"
1118
local Effects={}
1119
local gun=false
1120
local shoot=false
1121
local sine = 0
1122
local change = 1
1123
player=nil 
1124
1125
mouse=Player:GetMouse()
1126
--save shoulders 
1127
RSH, LSH=nil, nil 
1128
--welds 
1129
RW, LW=Instance.new("Weld"), Instance.new("Weld") 
1130
RW.Name="Right Shoulder" LW.Name="Left Shoulder"
1131
LH=Torso["Left Hip"]
1132
RH=Torso["Right Hip"]
1133
TorsoColor=Torso.BrickColor
1134
function NoOutline(Part)
1135
Part.TopSurface,Part.BottomSurface,Part.LeftSurface,Part.RightSurface,Part.FrontSurface,Part.BackSurface = 10,10,10,10,10,10
1136
end
1137
player=Player 
1138
ch=Character
1139
RSH=ch.Torso["Right Shoulder"] 
1140
LSH=ch.Torso["Left Shoulder"] 
1141
-- 
1142
RSH.Parent=nil 
1143
LSH.Parent=nil 
1144
-- 
1145
RW.Name="Right Shoulder"
1146
RW.Part0=ch.Torso 
1147
RW.C0=cf(1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.3, 0, -0.5) 
1148
RW.C1=cf(0, 0.5, 0) 
1149
RW.Part1=ch["Right Arm"] 
1150
RW.Parent=ch.Torso 
1151
-- 
1152
LW.Name="Left Shoulder"
1153
LW.Part0=ch.Torso 
1154
LW.C0=cf(-1.5, 0.5, 0) --* CFrame.fromEulerAnglesXYZ(1.7, 0, 0.8) 
1155
LW.C1=cf(0, 0.5, 0) 
1156
LW.Part1=ch["Left Arm"] 
1157
LW.Parent=ch.Torso 
1158
1159
local Stats=Instance.new("BoolValue")
1160
Stats.Name="Stats"
1161
Stats.Parent=Character
1162
local Atk=Instance.new("NumberValue")
1163
Atk.Name="Damage"
1164
Atk.Parent=Stats
1165
Atk.Value=1
1166
local Def=Instance.new("NumberValue")
1167
Def.Name="Defense"
1168
Def.Parent=Stats
1169
Def.Value=1
1170
local Speed=Instance.new("NumberValue")
1171
Speed.Name="Speed"
1172
Speed.Parent=Stats
1173
Speed.Value=1
1174
local Mvmt=Instance.new("NumberValue")
1175
Mvmt.Name="Movement"
1176
Mvmt.Parent=Stats
1177
Mvmt.Value=1
1178
1179
local donum=0
1180
 
1181
1182
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1183
local fp=it("Part")
1184
fp.formFactor=formfactor 
1185
fp.Parent=parent
1186
fp.Reflectance=reflectance
1187
fp.Transparency=transparency
1188
fp.CanCollide=false 
1189
fp.Locked=true
1190
fp.BrickColor=brickcolor
1191
fp.Name=name
1192
fp.Size=size
1193
fp.Position=Torso.Position 
1194
NoOutline(fp)
1195
fp.Material="SmoothPlastic"
1196
fp:BreakJoints()
1197
return fp 
1198
end 
1199
 
1200
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1201
local mesh=it(Mesh) 
1202
mesh.Parent=part
1203
if Mesh=="SpecialMesh" then
1204
mesh.MeshType=meshtype
1205
if meshid~="nil" then
1206
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1207
end
1208
end
1209
mesh.Offset=offset
1210
mesh.Scale=scale
1211
return mesh
1212
end
1213
 
1214
function weld(parent,part0,part1,c0)
1215
local weld=it("Weld") 
1216
weld.Parent=parent
1217
weld.Part0=part0 
1218
weld.Part1=part1 
1219
weld.C0=c0
1220
return weld
1221
end
1222
 
1223
local Color1=Torso.BrickColor
1224
1225
local bodvel=Instance.new("BodyVelocity")
1226
local bg=Instance.new("BodyGyro")
1227
1228
function swait(num)
1229
if num==0 or num==nil then
1230
game:service'RunService'.Stepped:wait(0)
1231
else
1232
for i=0,num do
1233
game:service'RunService'.Stepped:wait(0)
1234
end
1235
end
1236
end
1237
 
1238
 
1239
so = function(id,par,vol,pit) 
1240
coroutine.resume(coroutine.create(function()
1241
local sou = Instance.new("Sound",par or workspace)
1242
sou.Volume=vol
1243
sou.Pitch=pit or 1
1244
sou.SoundId=id
1245
swait() 
1246
sou:play() 
1247
game:GetService("Debris"):AddItem(sou,6)
1248
end))
1249
end
1250
 
1251
function clerp(a,b,t) 
1252
local qa = {QuaternionFromCFrame(a)}
1253
local qb = {QuaternionFromCFrame(b)} 
1254
local ax, ay, az = a.x, a.y, a.z 
1255
local bx, by, bz = b.x, b.y, b.z
1256
local _t = 1-t
1257
return QuaternionToCFrame(_t*ax + t*bx, _t*ay + t*by, _t*az + t*bz,QuaternionSlerp(qa, qb, t)) 
1258
end 
1259
 
1260
function QuaternionFromCFrame(cf) 
1261
local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components() 
1262
local trace = m00 + m11 + m22 
1263
if trace > 0 then 
1264
local s = math.sqrt(1 + trace) 
1265
local recip = 0.5/s 
1266
return (m21-m12)*recip, (m02-m20)*recip, (m10-m01)*recip, s*0.5 
1267
else 
1268
local i = 0 
1269
if m11 > m00 then
1270
i = 1
1271
end
1272
if m22 > (i == 0 and m00 or m11) then 
1273
i = 2 
1274
end 
1275
if i == 0 then 
1276
local s = math.sqrt(m00-m11-m22+1) 
1277
local recip = 0.5/s 
1278
return 0.5*s, (m10+m01)*recip, (m20+m02)*recip, (m21-m12)*recip 
1279
elseif i == 1 then 
1280
local s = math.sqrt(m11-m22-m00+1) 
1281
local recip = 0.5/s 
1282
return (m01+m10)*recip, 0.5*s, (m21+m12)*recip, (m02-m20)*recip 
1283
elseif i == 2 then 
1284
local s = math.sqrt(m22-m00-m11+1) 
1285
local recip = 0.5/s return (m02+m20)*recip, (m12+m21)*recip, 0.5*s, (m10-m01)*recip 
1286
end 
1287
end 
1288
end
1289
 
1290
function QuaternionToCFrame(px, py, pz, x, y, z, w) 
1291
local xs, ys, zs = x + x, y + y, z + z 
1292
local wx, wy, wz = w*xs, w*ys, w*zs 
1293
local xx = x*xs 
1294
local xy = x*ys 
1295
local xz = x*zs 
1296
local yy = y*ys 
1297
local yz = y*zs 
1298
local zz = z*zs 
1299
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)) 
1300
end
1301
 
1302
function QuaternionSlerp(a, b, t) 
1303
local cosTheta = a[1]*b[1] + a[2]*b[2] + a[3]*b[3] + a[4]*b[4] 
1304
local startInterp, finishInterp; 
1305
if cosTheta >= 0.0001 then 
1306
if (1 - cosTheta) > 0.0001 then 
1307
local theta = math.acos(cosTheta) 
1308
local invSinTheta = 1/math.sin(theta) 
1309
startInterp = math.sin((1-t)*theta)*invSinTheta 
1310
finishInterp = math.sin(t*theta)*invSinTheta  
1311
else 
1312
startInterp = 1-t 
1313
finishInterp = t 
1314
end 
1315
else 
1316
if (1+cosTheta) > 0.0001 then 
1317
local theta = math.acos(-cosTheta) 
1318
local invSinTheta = 1/math.sin(theta) 
1319
startInterp = math.sin((t-1)*theta)*invSinTheta 
1320
finishInterp = math.sin(t*theta)*invSinTheta 
1321
else 
1322
startInterp = t-1 
1323
finishInterp = t 
1324
end 
1325
end 
1326
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 
1327
end
1328
1329
local function CFrameFromTopBack(at, top, back)
1330
local right = top:Cross(back)
1331
return CFrame.new(at.x, at.y, at.z,
1332
right.x, top.x, back.x,
1333
right.y, top.y, back.y,
1334
right.z, top.z, back.z)
1335
end
1336
1337
function Triangle(a, b, c)
1338
local edg1 = (c-a):Dot((b-a).unit)
1339
local edg2 = (a-b):Dot((c-b).unit)
1340
local edg3 = (b-c):Dot((a-c).unit)
1341
if edg1 <= (b-a).magnitude and edg1 >= 0 then
1342
a, b, c = a, b, c
1343
elseif edg2 <= (c-b).magnitude and edg2 >= 0 then
1344
a, b, c = b, c, a
1345
elseif edg3 <= (a-c).magnitude and edg3 >= 0 then
1346
a, b, c = c, a, b
1347
else
1348
assert(false, "unreachable")
1349
end
1350
 
1351
local len1 = (c-a):Dot((b-a).unit)
1352
local len2 = (b-a).magnitude - len1
1353
local width = (a + (b-a).unit*len1 - c).magnitude
1354
 
1355
local maincf = CFrameFromTopBack(a, (b-a):Cross(c-b).unit, -(b-a).unit)
1356
 
1357
local list = {}
1358
 
1359
if len1 > 0.01 then
1360
local w1 = Instance.new('WedgePart', m)
1361
game:GetService("Debris"):AddItem(w1,5)
1362
w1.Material = "SmoothPlastic"
1363
w1.FormFactor = 'Custom'
1364
w1.BrickColor = BrickColor.new("Really red")
1365
w1.Transparency = 0
1366
w1.Reflectance = 0
1367
w1.Material = "SmoothPlastic"
1368
w1.CanCollide = false
1369
local l1 = Instance.new("PointLight",w1)
1370
l1.Color = Color3.new(170,0,0)
1371
NoOutline(w1)
1372
local sz = Vector3.new(0.2, width, len1)
1373
w1.Size = sz
1374
local sp = Instance.new("SpecialMesh",w1)
1375
sp.MeshType = "Wedge"
1376
sp.Scale = Vector3.new(0,1,1) * sz/w1.Size
1377
w1:BreakJoints()
1378
w1.Anchored = true
1379
w1.Parent = workspace
1380
w1.Transparency = 0.7
1381
table.insert(Effects,{w1,"Disappear",.01})
1382
w1.CFrame = maincf*CFrame.Angles(math.pi,0,math.pi/2)*CFrame.new(0,width/2,len1/2)
1383
table.insert(list,w1)
1384
end
1385
 
1386
if len2 > 0.01 then
1387
local w2 = Instance.new('WedgePart', m)
1388
game:GetService("Debris"):AddItem(w2,5)
1389
w2.Material = "SmoothPlastic"
1390
w2.FormFactor = 'Custom'
1391
w2.BrickColor = BrickColor.new("Really red")
1392
w2.Transparency = 0
1393
w2.Reflectance = 0
1394
w2.Material = "SmoothPlastic"
1395
w2.CanCollide = false
1396
local l2 = Instance.new("PointLight",w2)
1397
l2.Color = Color3.new(170,0,0)
1398
NoOutline(w2)
1399
local sz = Vector3.new(0.2, width, len2)
1400
w2.Size = sz
1401
local sp = Instance.new("SpecialMesh",w2)
1402
sp.MeshType = "Wedge"
1403
sp.Scale = Vector3.new(0,1,1) * sz/w2.Size
1404
w2:BreakJoints()
1405
w2.Anchored = true
1406
w2.Parent = workspace
1407
w2.Transparency = 0.7
1408
table.insert(Effects,{w2,"Disappear",.01})
1409
w2.CFrame = maincf*CFrame.Angles(math.pi,math.pi,-math.pi/2)*CFrame.new(0,width/2,-len1 - len2/2)
1410
table.insert(list,w2)
1411
end
1412
return unpack(list)
1413
end
1414
 
1415
1416
function Damagefunc(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
1417
  if hit.Parent == nil then
1418
    return
1419
  end
1420
  local h = hit.Parent:FindFirstChild("Humanoid")
1421
  for _, v in pairs(hit.Parent:children()) do
1422
    if v:IsA("Humanoid") then
1423
      h = v
1424
    end
1425
  end
1426
  if h ~= nil and hit.Parent.Name ~= Character.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
1427
    if hit.Parent:findFirstChild("DebounceHit") ~= nil and hit.Parent.DebounceHit.Value == true then
1428
      return
1429
    end
1430
    local c = Create("ObjectValue")({
1431
      Name = "creator",
1432
      Value = game:service("Players").LocalPlayer,
1433
      Parent = h
1434
    })
1435
    game:GetService("Debris"):AddItem(c, 0.5)
1436
    if HitSound ~= nil and HitPitch ~= nil then
1437
      CFuncs.Sound.Create(HitSound, hit, 1, HitPitch)
1438
    end
1439
    local Damage = math.random(minim, maxim)
1440
    local blocked = false
1441
    local block = hit.Parent:findFirstChild("Block")
1442
    if block ~= nil and block.className == "IntValue" and block.Value > 0 then
1443
      blocked = true
1444
      block.Value = block.Value - 1
1445
      print(block.Value)
1446
    end
1447
    if blocked == false then
1448
      HitHealth = h.Health
1449
      h.Health = h.Health - Damage
1450
      if HitHealth ~= h.Health and HitHealth ~= 0 and 0 >= h.Health and h.Parent.Name ~= "Hologram" then
1451
        print("gained kill")
1452
      end
1453
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1454
    else
1455
      h.Health = h.Health - Damage / 2
1456
      ShowDamage(Part.CFrame * CFrame.new(0, 0, Part.Size.Z / 2).p + Vector3.new(0, 1.5, 0), -Damage, 1.5, Part.BrickColor.Color)
1457
    end
1458
    if Type == "Knockdown" then
1459
      local hum = hit.Parent.Humanoid
1460
      hum.PlatformStand = true
1461
      coroutine.resume(coroutine.create(function(HHumanoid)
1462
        swait(1)
1463
        HHumanoid.PlatformStand = false
1464
      end), hum)
1465
      local angle = hit.Position - (Property.Position + Vector3.new(0, 0, 0)).unit
1466
      local bodvol = Create("BodyVelocity")({
1467
        velocity = angle * knockback,
1468
        P = 5000,
1469
        maxForce = Vector3.new(8000, 8000, 8000),
1470
        Parent = hit
1471
      })
1472
      local rl = Create("BodyAngularVelocity")({
1473
        P = 3000,
1474
        maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
1475
        angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
1476
        Parent = hit
1477
      })
1478
      game:GetService("Debris"):AddItem(bodvol, 0.5)
1479
      game:GetService("Debris"):AddItem(rl, 0.5)
1480
    elseif Type == "Normal" then
1481
      local vp = Create("BodyVelocity")({
1482
        P = 500,
1483
        maxForce = Vector3.new(math.huge, 0, math.huge),
1484
        velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05
1485
      })
1486
      if knockback > 0 then
1487
        vp.Parent = hit.Parent.Torso
1488
      end
1489
      game:GetService("Debris"):AddItem(vp, 0.5)
1490
    elseif Type == "Up" then
1491
      local bodyVelocity = Create("BodyVelocity")({
1492
        velocity = Vector3.new(0, 20, 0),
1493
        P = 5000,
1494
        maxForce = Vector3.new(8000, 8000, 8000),
1495
        Parent = hit
1496
      })
1497
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1498
      local bodyVelocity = Create("BodyVelocity")({
1499
        velocity = Vector3.new(0, 20, 0),
1500
        P = 5000,
1501
        maxForce = Vector3.new(8000, 8000, 8000),
1502
        Parent = hit
1503
      })
1504
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1505
    elseif Type == "Leech" then
1506
      local hum = hit.Parent.Humanoid
1507
      if hum ~= nil then
1508
        for i = 0, 2 do
1509
          Effects.Sphere.Create(BrickColor.new("Bright red"), 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)
1510
        end
1511
        Humanoid.Health = Humanoid.Health + 10
1512
      end
1513
    elseif Type == "UpKnock" then
1514
      local hum = hit.Parent.Humanoid
1515
      hum.PlatformStand = true
1516
      if hum ~= nil then
1517
        hitr = true
1518
      end
1519
      coroutine.resume(coroutine.create(function(HHumanoid)
1520
        swait(5)
1521
        HHumanoid.PlatformStand = false
1522
        hitr = false
1523
      end), hum)
1524
      local bodyVelocity = Create("BodyVelocity")({
1525
        velocity = Vector3.new(0, 20, 0),
1526
        P = 5000,
1527
        maxForce = Vector3.new(8000, 8000, 8000),
1528
        Parent = hit
1529
      })
1530
      game:GetService("Debris"):AddItem(bodyVelocity, 0.5)
1531
      local bodyVelocity = Create("BodyVelocity")({
1532
        velocity = Vector3.new(0, 20, 0),
1533
        P = 5000,
1534
        maxForce = Vector3.new(8000, 8000, 8000),
1535
        Parent = hit
1536
      })
1537
      game:GetService("Debris"):AddItem(bodyVelocity, 1)
1538
    elseif Type == "Snare" then
1539
      local bp = Create("BodyPosition")({
1540
        P = 2000,
1541
        D = 100,
1542
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1543
        position = hit.Parent.Torso.Position,
1544
        Parent = hit.Parent.Torso
1545
      })
1546
      game:GetService("Debris"):AddItem(bp, 1)
1547
    elseif Type == "Slashnare" then
1548
      Effects.Block.Create(BrickColor.new("Pastel Blue"), hit.Parent.Torso.CFrame * cn(0, 0, 0), 15*4, 15*4, 15*4, 3*4, 3*4, 3*4, 0.07)
1549
      for i = 1, math.random(4, 5) do
1550
        Effects.Sphere.Create(BrickColor.new("Teal"), 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)
1551
      end
1552
      local bp = Create("BodyPosition")({
1553
        P = 2000,
1554
        D = 100,
1555
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1556
        position = hit.Parent.Torso.Position,
1557
        Parent = hit.Parent.Torso
1558
      })
1559
      game:GetService("Debris"):AddItem(bp, 1)
1560
    elseif Type == "Spike" then
1561
      CreateBigIceSword(hit.Parent.Torso.CFrame)
1562
      local bp = Create("BodyPosition")({
1563
        P = 2000,
1564
        D = 100,
1565
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1566
        position = hit.Parent.Torso.Position,
1567
        Parent = hit.Parent.Torso
1568
      })
1569
      game:GetService("Debris"):AddItem(bp, 1)
1570
    elseif Type == "Freeze" then
1571
      local BodPos = Create("BodyPosition")({
1572
        P = 50000,
1573
        D = 1000,
1574
        maxForce = Vector3.new(math.huge, math.huge, math.huge),
1575
        position = hit.Parent.Torso.Position,
1576
        Parent = hit.Parent.Torso
1577
      })
1578
      local BodGy = Create("BodyGyro")({
1579
        maxTorque = Vector3.new(400000, 400000, 400000) * math.huge,
1580
        P = 20000,
1581
        Parent = hit.Parent.Torso,
1582
        cframe = hit.Parent.Torso.CFrame
1583
      })
1584
      hit.Parent.Torso.Anchored = true
1585
      coroutine.resume(coroutine.create(function(Part)
1586
        swait(1.5)
1587
        Part.Anchored = false
1588
      end), hit.Parent.Torso)
1589
      game:GetService("Debris"):AddItem(BodPos, 3)
1590
      game:GetService("Debris"):AddItem(BodGy, 3)
1591
    end
1592
    local debounce = Create("BoolValue")({
1593
      Name = "DebounceHit",
1594
      Parent = hit.Parent,
1595
      Value = true
1596
    })
1597
    game:GetService("Debris"):AddItem(debounce, Delay)
1598
    c = Instance.new("ObjectValue")
1599
    c.Name = "creator"
1600
    c.Value = Player
1601
    c.Parent = h
1602
    game:GetService("Debris"):AddItem(c, 0.5)
1603
  end
1604
end
1605
function ShowDamage(Pos, Text, Time, Color)
1606
  local Rate = 0.03333333333333333
1607
  local Pos = Pos or Vector3.new(0, 0, 0)
1608
  local Text = Text or ""
1609
  local Time = Time or 2
1610
  local Color = Color or Color3.new(1, 0, 1)
1611
  local EffectPart = CreatePart(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
1612
  EffectPart.Anchored = true
1613
  local BillboardGui = Create("BillboardGui")({
1614
    Size = UDim2.new(3, 0, 3, 0),
1615
    Adornee = EffectPart,
1616
    Parent = EffectPart
1617
  })
1618
  local TextLabel = Create("TextLabel")({
1619
    BackgroundTransparency = 1,
1620
    Size = UDim2.new(1, 0, 1, 0),
1621
    Text = Text,
1622
    TextColor3 = Color,
1623
    TextScaled = true,
1624
    Font = Enum.Font.ArialBold,
1625
    Parent = BillboardGui
1626
  })
1627
  game.Debris:AddItem(EffectPart, Time + 0.1)
1628
  EffectPart.Parent = game:GetService("Workspace")
1629
  delay(0, function()
1630
    local Frames = Time / Rate
1631
    for Frame = 1, Frames do
1632
      wait(Rate)
1633
      local Percent = Frame / Frames
1634
      EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
1635
      TextLabel.TextTransparency = Percent
1636
    end
1637
    if EffectPart and EffectPart.Parent then
1638
      EffectPart:Destroy()
1639
    end
1640
  end)
1641
end
1642
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
1643
  for _, c in pairs(workspace:children()) do
1644
    local hum = c:findFirstChild("Humanoid")
1645
    if hum ~= nil then
1646
      local head = c:findFirstChild("Torso")
1647
      if head ~= nil then
1648
        local targ = head.Position - Part.Position
1649
        local mag = targ.magnitude
1650
        if magni >= mag and c.Name ~= Player.Name then
1651
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1652
        end
1653
      end
1654
    end
1655
  end
1656
end
1657
1658
function MagniDamageWithEffect(Part, magni, mindam, maxdam, knock, Type)
1659
  for _, c in pairs(workspace:children()) do
1660
    local hum = c:findFirstChild("Humanoid")
1661
    if hum ~= nil then
1662
      local head = c:findFirstChild("Torso")
1663
      if head ~= nil then
1664
        local targ = head.Position - Part.Position
1665
        local mag = targ.magnitude
1666
        if magni >= mag and c.Name ~= Player.Name then
1667
	MagicBlock(BrickColor.new("Pastel light blue"),head.CFrame,5,5,5,1,1,1,0.05)
1668
          Damagefunc(head, head, mindam, maxdam, knock, Type, RootPart, 0.1, "rbxassetid://231917784", 1)
1669
        end
1670
      end
1671
    end
1672
  end
1673
end
1674
1675
function rayCast(Pos, Dir, Max, Ignore)  -- Origin Position , Direction, MaxDistance , IgnoreDescendants
1676
return game:service("Workspace"):FindPartOnRay(Ray.new(Pos, Dir.unit * (Max or 999.999)), Ignore) 
1677
end 
1678
1679
function SkullEffect(brickcolor,cframe,x1,y1,z1,delay)
1680
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1681
prt.Anchored=true
1682
prt.CFrame=cframe
1683
local msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=4770583",vt(0,0,0),vt(x1,y1,z1))
1684
--http://www.roblox.com/asset/?id=4770560
1685
game:GetService("Debris"):AddItem(prt,2)
1686
CF=prt.CFrame
1687
coroutine.resume(coroutine.create(function(Part,Mesh,TehCF) 
1688
for i=0,1,0.2 do
1689
wait()
1690
Part.CFrame=CF*cf(0,0,-0.4)
1691
end
1692
for i=0,1,delay do
1693
wait()
1694
--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)
1695
Mesh.Scale=Mesh.Scale
1696
end
1697
for i=0,1,0.1 do
1698
wait()
1699
Part.Transparency=i
1700
end
1701
Part.Parent=nil
1702
end),prt,msh,CF)
1703
end
1704
 
1705
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1706
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1707
prt.Anchored=true
1708
prt.Material = "Neon"
1709
prt.CFrame=cframe
1710
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1711
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1712
game:GetService("Debris"):AddItem(prt,5)
1713
coroutine.resume(coroutine.create(function(Part,Mesh) 
1714
for i=0,1,delay do
1715
swait()
1716
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1717
Part.Transparency=i
1718
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1719
end
1720
Part.Parent=nil
1721
end),prt,msh)
1722
end
1723
1724
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1725
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1726
prt.Anchored=true
1727
prt.Material = "Neon"
1728
prt.CFrame=cframe
1729
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1730
game:GetService("Debris"):AddItem(prt,5)
1731
coroutine.resume(coroutine.create(function(Part,Mesh) 
1732
	local rtype = rottype
1733
for i=0,1,delay do
1734
swait()
1735
if rtype == 1 then
1736
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1737
elseif rtype == 2 then
1738
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1739
end
1740
Part.Transparency=i
1741
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1742
end
1743
Part.Parent=nil
1744
end),prt,msh)
1745
end
1746
1747
function MagicSphere(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1748
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1749
prt.Anchored=true
1750
prt.CFrame=cframe
1751
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1752
msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1753
game:GetService("Debris"):AddItem(prt,5)
1754
coroutine.resume(coroutine.create(function(Part,Mesh) 
1755
for i=0,1,delay do
1756
wait()
1757
Part.Transparency=i
1758
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1759
end
1760
Part.Parent=nil
1761
end),prt,msh)
1762
end
1763
1764
function MagicBlockSteady(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1765
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1766
prt.Anchored=true
1767
prt.Material = "Neon"
1768
prt.CFrame=cframe
1769
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1770
game:GetService("Debris"):AddItem(prt,5)
1771
coroutine.resume(coroutine.create(function(Part,Mesh) 
1772
	local rtype = rottype
1773
for i=0,1,delay do
1774
swait()
1775
if rtype == 1 then
1776
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1777
elseif rtype == 2 then
1778
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1779
end
1780
Part.Transparency=i
1781
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1782
end
1783
Part.Parent=nil
1784
end),prt,msh)
1785
end
1786
1787
function MagicShock(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1788
local prt=part(3,char,1,1,brickcolor,"Effect",vt(0.5,0.5,0.5))
1789
prt.Anchored=true
1790
prt.Material = "Neon"
1791
prt.CFrame=cframe
1792
local dec = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
1793
local dec2 = decal(prt.Color,"http://www.roblox.com/asset/?id=874580939","Front",prt)
1794
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1795
game:GetService("Debris"):AddItem(prt,5)
1796
coroutine.resume(coroutine.create(function(Part,Mesh) 
1797
	local rtype = rottype
1798
for i=0,1,delay do
1799
swait()
1800
if rtype == 1 then
1801
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1802
elseif rtype == 2 then
1803
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1804
end
1805
dec.Transparency=i
1806
dec2.Transparency=i
1807
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1808
end
1809
Part.Parent=nil
1810
end),prt,msh)
1811
end
1812
1813
function MagicShockAlt(brickcolor,cframe,x1,y1,x3,y3,delay,rottype)
1814
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1815
prt.Anchored=true
1816
prt.Material = "Neon"
1817
prt.CFrame=cframe
1818
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,0.01))
1819
game:GetService("Debris"):AddItem(prt,5)
1820
coroutine.resume(coroutine.create(function(Part,Mesh) 
1821
	local rtype = rottype
1822
for i=0,1,delay do
1823
swait()
1824
if rtype == 1 then
1825
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1826
elseif rtype == 2 then
1827
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1828
end
1829
prt.Transparency=i
1830
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1831
end
1832
Part.Parent=nil
1833
end),prt,msh)
1834
end
1835
1836
function MagicShockAltCircle(brickcolor,cframe,x1,z1,x3,z3,delay,rottype)
1837
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1838
prt.Anchored=true
1839
prt.Material = "Neon"
1840
prt.CFrame=cframe
1841
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,1,z1))
1842
game:GetService("Debris"):AddItem(prt,5)
1843
coroutine.resume(coroutine.create(function(Part,Mesh) 
1844
	local rtype = rottype
1845
for i=0,1,delay do
1846
swait()
1847
if rtype == 1 then
1848
prt.CFrame = prt.CFrame*CFrame.Angles(0,0.1,0)
1849
elseif rtype == 2 then
1850
prt.CFrame = prt.CFrame*CFrame.Angles(0,-0.1,0)
1851
end
1852
prt.Transparency=i
1853
Mesh.Scale=Mesh.Scale+vt(x3,0,z3)
1854
end
1855
Part.Parent=nil
1856
end),prt,msh)
1857
end
1858
1859
function MagicShockTrailAlt(brickcolor,cframe,x1,y1,z1,x3,y3,delay,rottype)
1860
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1861
prt.Anchored=true
1862
prt.Material = "Neon"
1863
prt.CFrame=cframe
1864
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1865
game:GetService("Debris"):AddItem(prt,5)
1866
coroutine.resume(coroutine.create(function(Part,Mesh) 
1867
	local rtype = rottype
1868
for i=0,1,delay do
1869
swait()
1870
if rtype == 1 then
1871
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1872
elseif rtype == 2 then
1873
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1874
end
1875
prt.Transparency=i
1876
Mesh.Scale=Mesh.Scale+vt(x3,y3,0)
1877
end
1878
Part.Parent=nil
1879
end),prt,msh)
1880
end
1881
1882
function MagicShockTrailAlt2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1883
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1884
prt.Anchored=true
1885
prt.Material = "Neon"
1886
prt.CFrame=cframe
1887
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1888
game:GetService("Debris"):AddItem(prt,5)
1889
coroutine.resume(coroutine.create(function(Part,Mesh) 
1890
	local rtype = rottype
1891
for i=0,1,delay do
1892
swait()
1893
if rtype == 1 then
1894
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1895
elseif rtype == 2 then
1896
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1897
end
1898
prt.Transparency=i
1899
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1900
end
1901
Part.Parent=nil
1902
end),prt,msh)
1903
end
1904
 
1905
function MagicBlock2(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1906
local prt=part(3,char,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1907
prt.Anchored=false
1908
prt.CFrame=cframe
1909
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1910
local wld=weld(prt,prt,Parent,cframe)
1911
game:GetService("Debris"):AddItem(prt,5)
1912
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1913
for i=0,1,delay do
1914
wait()
1915
Weld.C0=euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))*cframe
1916
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1917
Part.Transparency=i
1918
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1919
end
1920
Part.Parent=nil
1921
end),prt,msh,wld)
1922
end
1923
 
1924
function MagicBlock3(brickcolor,cframe,Parent,x1,y1,z1,x3,y3,z3,delay)
1925
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1926
prt.Anchored=false
1927
prt.CFrame=cframe
1928
msh=mesh("BlockMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1929
local wld=weld(prt,prt,Parent,euler(0,0,0)*cf(0,0,0))
1930
game:GetService("Debris"):AddItem(prt,5)
1931
coroutine.resume(coroutine.create(function(Part,Mesh,Weld) 
1932
for i=0,1,delay do
1933
wait()
1934
Weld.C0=euler(i*20,0,0)
1935
--Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1936
Part.Transparency=i
1937
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1938
end
1939
Part.Parent=nil
1940
end),prt,msh,wld)
1941
end
1942
 
1943
function MagicCircle2(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1944
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1945
prt.Anchored=true
1946
prt.CFrame=cframe
1947
local msh=mesh("CylinderMesh",prt,"","",vt(0,0,0),vt(x1,y1,z1))
1948
game:GetService("Debris"):AddItem(prt,2)
1949
coroutine.resume(coroutine.create(function(Part,Mesh) 
1950
for i=0,1,delay do
1951
wait()
1952
Part.CFrame=Part.CFrame
1953
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1954
local prt2=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1955
prt2.Anchored=true
1956
prt2.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1957
local msh2=mesh("SpecialMesh",prt2,"Sphere","",vt(0,0,0),vt(0.5,0.5,0.5))
1958
game:GetService("Debris"):AddItem(prt2,2)
1959
coroutine.resume(coroutine.create(function(Part,Mesh) 
1960
for i=0,1,0.1 do
1961
wait()
1962
Part.CFrame=Part.CFrame*cf(0,0.5,0)
1963
end
1964
Part.Parent=nil
1965
end),prt2,msh2)
1966
end
1967
for i=0,1,delay*2 do
1968
wait()
1969
Part.CFrame=Part.CFrame
1970
Mesh.Scale=vt((x1+x3)-(x1+x3)*i,(y1+y3)-(y1+y3)*i,(z1+z3)-(z1+z3)*i)
1971
end
1972
Part.Parent=nil
1973
end),prt,msh)
1974
end
1975
 
1976
function MagicCircle(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1977
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1978
prt.Anchored=true
1979
prt.CFrame=cframe
1980
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1981
game:GetService("Debris"):AddItem(prt,2)
1982
coroutine.resume(coroutine.create(function(Part,Mesh) 
1983
for i=0,1,delay do
1984
wait()
1985
Part.CFrame=Part.CFrame
1986
Part.Transparency=i
1987
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
1988
end
1989
Part.Parent=nil
1990
end),prt,msh)
1991
end
1992
 
1993
function BreakEffect(brickcolor,cframe,x1,y1,z1)
1994
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
1995
prt.Anchored=true
1996
prt.CFrame=cframe*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1997
local msh=mesh("SpecialMesh",prt,"Sphere","",vt(0,0,0),vt(x1,y1,z1))
1998
game:GetService("Debris"):AddItem(prt,2)
1999
coroutine.resume(coroutine.create(function(Part,CF,Numbb,randnumb) 
2000
CF=Part.CFrame
2001
Numbb=0
2002
randnumb=math.random()/10
2003
rand1=math.random()/10
2004
for i=0,1,rand1 do
2005
wait()
2006
CF=CF*cf(0,math.random()/2,0)
2007
--Part.CFrame=Part.CFrame*euler(0.5,0,0)*cf(0,1,0)
2008
Part.CFrame=CF*euler(Numbb,0,0)
2009
Part.Transparency=i
2010
Numbb=Numbb+randnumb
2011
end
2012
Part.Parent=nil
2013
end),prt,CF,Numbb,randnumb)
2014
end
2015
 
2016
function MagicWaveThing(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2017
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2018
prt.Anchored=true
2019
prt.CFrame=cframe
2020
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=1051557",vt(0,0,0),vt(x1,y1,z1))
2021
game:GetService("Debris"):AddItem(prt,5)
2022
coroutine.resume(coroutine.create(function(Part,Mesh) 
2023
for i=0,1,delay do
2024
wait()
2025
Part.CFrame=Part.CFrame*euler(0,0.7,0)
2026
Part.Transparency=i
2027
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2028
end
2029
Part.Parent=nil
2030
end),prt,msh)
2031
end
2032
 
2033
function WaveEffect(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
2034
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2035
prt.Anchored=true
2036
prt.CFrame=cframe
2037
msh=mesh("SpecialMesh",prt,"FileMesh","http://www.roblox.com/asset/?id=20329976",vt(0,0,0),vt(x1,y1,z1))
2038
game:GetService("Debris"):AddItem(prt,2)
2039
coroutine.resume(coroutine.create(function(Part,Mesh) 
2040
for i=0,1,delay do
2041
wait()
2042
Part.CFrame=Part.CFrame*cf(0,y3/2,0)
2043
Part.Transparency=i
2044
Mesh.Scale=Mesh.Scale+vt(x3,y3,z3)
2045
end
2046
Part.Parent=nil
2047
end),prt,msh)
2048
end
2049
 
2050
function StravEffect(brickcolor,cframe,x,y,z,x1,y1,z1,delay)
2051
local prt=part(3,workspace,0,0,brickcolor,"Effect",vt(0.5,0.5,0.5))
2052
prt.Anchored=true
2053
prt.CFrame=cframe*cf(x,y,z)
2054
msh=mesh("SpecialMesh",prt,"FileMesh","rbxassetid://168892363",vt(0,0,0),vt(x1,y1,z1))
2055
game:GetService("Debris"):AddItem(prt,5)
2056
coroutine.resume(coroutine.create(function(Part,Mesh,ex,why,zee) 
2057
local num=math.random()
2058
local num2=math.random(-3,2)+math.random()
2059
local numm=0
2060
for i=0,1,delay*2 do
2061
swait()
2062
Part.CFrame=cframe*euler(0,numm*num*10,0)*cf(ex,why,zee)*cf(-i*10,num2,0)
2063
Part.Transparency=i
2064
numm=numm+0.01
2065
end
2066
Part.Parent=nil
2067
Mesh.Parent=nil
2068
end),prt,msh,x,y,z)
2069
end
2070
2071
function dmgstart(dmg,what)
2072
	hitcon = what.Touched:connect(function(hit)
2073
		local hum = hit.Parent:FindFirstChild("Humanoid")
2074
		if hum and not hum:IsDescendantOf(Character) then
2075
			hum:TakeDamage(dmg)
2076
		end
2077
	end)
2078
end
2079
2080
function dmgstop()
2081
	hitcon:disconnect()
2082
end
2083
2084
function Cloak()
2085
Face.Parent=nil
2086
cloaked=true
2087
        for _,v in pairs(Torso.Parent:children()) do
2088
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2089
                coroutine.resume(coroutine.create(function() 
2090
                for i=0,1,0.2 do
2091
                wait()
2092
                v.Transparency=i
2093
                end
2094
                v.Transparency=1
2095
                end))
2096
                end
2097
                if v.className=="Hat" then
2098
                hatp=v.Handle
2099
                coroutine.resume(coroutine.create(function(derp) 
2100
                for i=0,1,0.2 do
2101
                wait()
2102
                derp.Transparency=i
2103
                end
2104
                derp.Transparency=1
2105
                end),hatp)
2106
                end
2107
        end
2108
        for _,v in pairs(m:children()) do
2109
                if v.className=="Part" then
2110
                coroutine.resume(coroutine.create(function() 
2111
                for i=0,1,0.2 do
2112
                wait()
2113
                v.Transparency=i
2114
                end
2115
                v.Transparency=1
2116
                end))
2117
                end
2118
        end
2119
end
2120
 
2121
function UnCloak()
2122
so("http://roblox.com/asset/?id=2767090",Torso,1,1.1) 
2123
Face.Parent=Head 
2124
cloaked=false
2125
        for _,v in pairs(Torso.Parent:children()) do
2126
                if v.className=="Part" and v.Name~="HumanoidRootPart" then
2127
                coroutine.resume(coroutine.create(function() 
2128
                for i=0,1,0.1 do
2129
                wait()
2130
                v.Transparency=v.Transparency-0.1
2131
                end
2132
                v.Transparency=0
2133
                end))
2134
                end
2135
                if v.className=="Hat" then
2136
                hatp=v.Handle
2137
                coroutine.resume(coroutine.create(function(derp) 
2138
                for i=0,1,0.1 do
2139
                wait()
2140
                derp.Transparency=derp.Transparency-0.1
2141
                end
2142
                derp.Transparency=0
2143
                end),hatp)
2144
                end
2145
        end
2146
        for _,v in pairs(m:children()) do
2147
                if v.className=="Part" and v.Name~="hitbox" and v.Name~='tip' then
2148
                coroutine.resume(coroutine.create(function() 
2149
                for i=0,1,0.1 do
2150
                wait()
2151
                v.Transparency=v.Transparency-0.1
2152
                end
2153
                v.Transparency=0
2154
                end))
2155
                v.Transparency=0
2156
                end
2157
        end
2158
end
2159
2160
local origcolor = BrickColor.new("Pastel light blue")
2161
---- This section of explosions.
2162
function Explode(rad,par,pitch,vol,mindam,maxdam)
2163
	local expart = Instance.new("Part",char)
2164
	local expart2 = Instance.new("Part",char)
2165
	local rin = Instance.new("Part",char)
2166
	local rin2 = Instance.new("Part",char)
2167
	local partMesh = Instance.new("SpecialMesh",expart)
2168
	partMesh.MeshType = "Sphere"
2169
	local partMesh2 = Instance.new("SpecialMesh",expart2)
2170
	partMesh2.MeshType = "Sphere"
2171
	local partMesh3 = Instance.new("SpecialMesh",rin)
2172
	partMesh3.MeshType = "Brick"
2173
	local partMesh4 = Instance.new("SpecialMesh",rin2)
2174
	partMesh4.MeshType = "Brick"
2175
	CFuncs["Sound"].Create("rbxassetid://165970126", expart,vol, pitch)
2176
	partMesh.Scale = vt(rad,rad,rad)
2177
	expart.Size = vt(1,1,1)
2178
	expart.Transparency = 0
2179
	expart.Anchored = true
2180
	expart.Material = "Neon"
2181
	expart.BrickColor = bc("White")
2182
	expart.CFrame = par.CFrame
2183
	partMesh2.Scale = vt(rad,rad,rad)
2184
	expart2.Size = vt(1.15,1.15,1.15)
2185
	expart2.Transparency = 0.5
2186
	expart2.Anchored = true
2187
	expart2.Material = "Neon"
2188
	expart2.BrickColor = par.BrickColor
2189
	expart2.CFrame = par.CFrame
2190
	rin.Size = vt(1.15,1.15,1.15)
2191
	rin.Transparency = 1
2192
	rin.Anchored = true
2193
	rin.Material = "Neon"
2194
	rin.BrickColor = par.BrickColor
2195
	rin.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
2196
	rin2.Size = vt(1.15,1.15,1.15)
2197
	rin2.Transparency = 1
2198
	rin2.Anchored = true
2199
	rin2.Material = "Neon"
2200
	rin2.BrickColor = par.BrickColor
2201
	rin2.CFrame = par.CFrame*CFrame.Angles(math.rad(math.random(-360,360)),math.rad(math.random(-360,360)),math.rad(math.random(-360,360)))
2202
	partMesh3.Scale = vt(0,1,0)
2203
	partMesh4.Scale = vt(0,1,0)
2204
local dec2 = Instance.new("Decal", rin)
2205
dec2.Face = "Top"
2206
dec2.Texture = "http://www.roblox.com/asset/?id=874580939"
2207
dec2.Parent = rin
2208
local dec2b = dec2:Clone()
2209
dec2b.Face = "Bottom"
2210
dec2b.Parent = rin
2211
2212
local dec2a = Instance.new("Decal", rin2)
2213
dec2a.Face = "Top"
2214
dec2a.Texture = "http://www.roblox.com/asset/?id=874580939"
2215
dec2a.Parent = rin2
2216
local dec2ab = dec2a:Clone()
2217
dec2ab.Face = "Bottom"
2218
dec2ab.Parent = rin2
2219
expart.CanCollide = false
2220
expart2.CanCollide = false
2221
rin.CanCollide = false
2222
rin2.CanCollide = false
2223
MagniDamage(par, rad*5, mindam, maxdam, 0, "Normal")
2224
        local value = 1*rad/6.5
2225
	for i = 0, 199 do
2226
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
2227
		expart.CFrame = expart.CFrame
2228
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
2229
		expart2.CFrame = expart.CFrame
2230
                value = value - 0.035*rad/30
2231
                if value < 7.5 then
2232
	partMesh3.Scale = partMesh3.Scale + vt(rad/5,0,rad/5)
2233
		rin.CFrame = rin.CFrame*CFrame.Angles(0,math.rad(1),0)
2234
	partMesh4.Scale = partMesh4.Scale + vt(rad/7.5,0,rad/7.5)
2235
		rin2.CFrame = rin2.CFrame*CFrame.Angles(0,math.rad(-1),0)
2236
		end
2237
                if value < 0 then
2238
dec2.Transparency = dec2.Transparency + 0.025
2239
dec2a.Transparency = dec2a.Transparency + 0.025
2240
dec2b.Transparency = dec2b.Transparency + 0.025
2241
dec2ab.Transparency = dec2ab.Transparency + 0.025
2242
		expart.Transparency = expart.Transparency + 0.025
2243
		expart2.Transparency = expart2.Transparency + 0.025
2244
		rin.Transparency = rin.Transparency + 0.025
2245
		rin2.Transparency = rin2.Transparency + 0.025
2246
                end
2247
		swait()
2248
	end
2249
game:GetService("Debris"):AddItem(expart, 1)
2250
game:GetService("Debris"):AddItem(expart2, 1)
2251
game:GetService("Debris"):AddItem(rin, 1)
2252
game:GetService("Debris"):AddItem(rin2, 1)
2253
end
2254
2255
function ExplodeShort(rad,par,pitch,vol,mindam,maxdam)
2256
	local expart = Instance.new("Part",char)
2257
	local expart2 = Instance.new("Part",char)
2258
	local partMesh = Instance.new("SpecialMesh",expart)
2259
	partMesh.MeshType = "Sphere"
2260
	local partMesh2 = Instance.new("SpecialMesh",expart2)
2261
	partMesh2.MeshType = "Sphere"
2262
	CFuncs["Sound"].Create("http://www.roblox.com/asset/?id=142070127", expart,vol, pitch)
2263
	partMesh.Scale = vt(rad,rad,rad)
2264
	expart.Size = vt(1,1,1)
2265
	expart.Transparency = 0
2266
	expart.Anchored = true
2267
	expart.Material = "Neon"
2268
	expart.BrickColor = bc("White")
2269
	expart.CFrame = par.CFrame
2270
	partMesh2.Scale = vt(rad,rad,rad)
2271
	expart2.Size = vt(1.15,1.15,1.15)
2272
	expart2.Transparency = 0.5
2273
	expart2.Anchored = true
2274
	expart2.Material = "Neon"
2275
	expart2.BrickColor = par.BrickColor
2276
	expart2.CFrame = par.CFrame
2277
expart.CanCollide = false
2278
expart2.CanCollide = false
2279
MagniDamage(par, rad*2.5, mindam, maxdam, 0, "Normal")
2280
        local value = 1*rad/6.5
2281
	for i = 0, 75 do
2282
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
2283
		expart.CFrame = expart.CFrame
2284
                partMesh2.Scale = partMesh2.Scale + vt(value,value,value)
2285
		expart2.CFrame = expart.CFrame
2286
                value = value - 0.035*rad/5
2287
                if value < 0 then
2288
value = 0
2289
		expart.Transparency = expart.Transparency + 0.05
2290
		expart2.Transparency = expart2.Transparency + 0.05
2291
                end
2292
		swait()
2293
	end
2294
game:GetService("Debris"):AddItem(expart, 1)
2295
game:GetService("Debris"):AddItem(expart2, 1)
2296
end
2297
2298
function AreaDanger(rad,par,mindam,maxdam)
2299
	local expart = Instance.new("Part",char)
2300
	local partMesh = Instance.new("SpecialMesh",expart)
2301
	CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
2302
	partMesh.MeshType = "Sphere"
2303
	partMesh.Scale = vt(rad,rad,rad)
2304
	expart.Size = vt(1,1,1)
2305
	expart.Transparency = 0.5
2306
	expart.Anchored = true
2307
	expart.Material = "Neon"
2308
	expart.CanCollide = false
2309
	expart.BrickColor = par.BrickColor
2310
	expart.CFrame = par.CFrame
2311
        local value = 1*rad/5
2312
MagicBlock(origcolor,expart.CFrame,0,0,0,rad/2,rad/2,rad/2,0.1)
2313
	for i = 0, 14 do
2314
		wait()
2315
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
2316
		expart.CFrame = expart.CFrame
2317
                value = value - 0.035*rad
2318
                if value < 0 then
2319
	value = 0
2320
end
2321
	end
2322
	wait(0.25)
2323
CFuncs["Sound"].Create("rbxassetid://588738544", expart,1.5,1)
2324
wait(0.5)
2325
CFuncs["Sound"].Create("rbxassetid://588737825", expart,1.5,1)
2326
CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,0.75)
2327
MagniDamageWithEffect(par, rad, mindam, maxdam, 0, "Normal")
2328
MagicBlock(origcolor,expart.CFrame,rad*2,rad*2,rad*2,0.1,0.1,0.1,0.025)
2329
for i = 0, 14 do
2330
		wait()
2331
                partMesh.Scale = partMesh.Scale + vt(value,value,value)
2332
		expart.CFrame = expart.CFrame
2333
                value = value - 0.035*rad/2
2334
end
2335
expart.Transparency = 1
2336
game:GetService("Debris"):AddItem(expart, 5)
2337
end
2338
2339
function Swarmsplosions(negrad,rad,par,mindam,maxdam)
2340
		CFuncs["Sound"].Create("rbxassetid://588737825", par, 2.5, 2)
2341
	CFuncs["Sound"].Create("rbxassetid://231917784", par, 2.5,1)
2342
	CFuncs["Sound"].Create("rbxassetid://231917744", par, 2.5,1)
2343
	CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
2344
			MagniDamageWithEffect(par, 253, 533,133, 0, "Normal")
2345
			MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.025)
2346
	for i = 0, 24 do
2347
		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))
2348
	end
2349
	for i = 0, 24 do
2350
	local expart = Instance.new("Part",char)
2351
	expart.Transparency = 1
2352
	expart.Anchored = true
2353
	expart.CanCollide = false
2354
	expart.CFrame = par.CFrame*CFrame.new(math.random(negrad,rad),math.random(negrad,rad),math.random(negrad,rad))
2355
CFuncs["Sound"].Create("rbxassetid://588737825", expart,1,2)
2356
CFuncs["Sound"].Create("rbxassetid://231917784", expart,1.5,1.15)
2357
MagniDamage(expart, rad/2, mindam, maxdam, 20, "Normal")
2358
MagicBlock(origcolor,expart.CFrame,rad,rad,rad,0.1,0.1,0.1,0.025)
2359
for i = 0, 9 do
2360
		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))
2361
	end
2362
game:GetService("Debris"):AddItem(expart, 2)
2363
wait(0.1)
2364
	end
2365
end
2366
2367
function EXterPlosion(par)
2368
		CFuncs["Sound"].Create("rbxassetid://919941001", par, 10, 1)
2369
	CFuncs["Sound"].Create("rbxassetid://138213851", par, 5,0.85)
2370
	CFuncs["Sound"].Create("rbxassetid://157878578", par, 5,0.2)
2371
	CFuncs["Sound"].Create("rbxassetid://233856106", par, 2.5, 1)
2372
			MagniDamageWithEffect(par, 500, 830,933, 0, "Normal")
2373
			MagicBlock(origcolor,par.CFrame,5,5,5,5,5,5,0.005)
2374
			MagicBlock(origcolor,par.CFrame,0,0,0,150,150,150,0.1)
2375
	for i = 0, 24 do
2376
		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))
2377
	end
2378
	for i = 0, 24 do
2379
		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))
2380
	end
2381
end
2382
----
2383
2384
2385
function ring(type,pos,scale,value)
2386
local type = type
2387
local rng = Instance.new("Part", char)
2388
        rng.Anchored = true
2389
        rng.BrickColor = origcolor
2390
        rng.CanCollide = false
2391
        rng.FormFactor = 3
2392
        rng.Name = "Ring"
2393
        rng.Size = Vector3.new(1, 1, 1)
2394
        rng.Transparency = 0
2395
        rng.TopSurface = 0
2396
        rng.BottomSurface = 0
2397
        rng.CFrame = pos
2398
        local rngm = Instance.new("SpecialMesh", rng)
2399
        rngm.MeshId = "http://www.roblox.com/asset/?id=3270017"
2400
rngm.Scale = scale
2401
local scaler2 = 1
2402
if type == "Add" then
2403
scaler2 = 1*value
2404
elseif type == "Divide" then
2405
scaler2 = 1/value
2406
end
2407
coroutine.resume(coroutine.create(function()
2408
for i = 0,10,0.1 do
2409
swait()
2410
if type == "Add" then
2411
scaler2 = scaler2 - 0.01*value
2412
elseif type == "Divide" then
2413
scaler2 = scaler2 - 0.01/value
2414
end
2415
rng.Transparency = rng.Transparency + 0.01
2416
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, 0)
2417
end
2418
rng:Destroy()
2419
end))
2420
end
2421
2422
2423
function wave(type,pos,scale,value)
2424
local type = type
2425
local rng = Instance.new("Part", char)
2426
        rng.Anchored = true
2427
        rng.BrickColor = origcolor
2428
        rng.CanCollide = false
2429
        rng.FormFactor = 3
2430
        rng.Name = "Ring"
2431
        rng.Size = Vector3.new(1, 1, 1)
2432
        rng.Transparency = 0
2433
        rng.TopSurface = 0
2434
        rng.BottomSurface = 0
2435
        rng.CFrame = pos
2436
        local rngm = Instance.new("SpecialMesh", rng)
2437
        rngm.MeshId = "http://www.roblox.com/asset/?id=20329976"
2438
rngm.Scale = scale
2439
local scaler2 = 1
2440
if type == "Add" then
2441
scaler2 = 1*value
2442
elseif type == "Divide" then
2443
scaler2 = 1/value
2444
end
2445
coroutine.resume(coroutine.create(function()
2446
for i = 0,10,0.1 do
2447
swait()
2448
if type == "Add" then
2449
scaler2 = scaler2 - 0.01*value
2450
elseif type == "Divide" then
2451
scaler2 = scaler2 - 0.01/value
2452
end
2453
rng.Transparency = rng.Transparency + 0.01
2454
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2455
end
2456
rng:Destroy()
2457
end))
2458
end
2459
2460
function wind(type,pos,scale,value,speed)
2461
local type = type
2462
local rng = Instance.new("Part", char)
2463
        rng.Anchored = true
2464
        rng.BrickColor = origcolor
2465
        rng.CanCollide = false
2466
        rng.FormFactor = 3
2467
        rng.Name = "Ring"
2468
        rng.Size = Vector3.new(1, 1, 1)
2469
        rng.Transparency = 0
2470
        rng.TopSurface = 0
2471
        rng.BottomSurface = 0
2472
        rng.CFrame = pos
2473
        local rngm = Instance.new("SpecialMesh", rng)
2474
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2475
rngm.Scale = scale
2476
local scaler2 = 1
2477
if type == "Add" then
2478
scaler2 = 1*value
2479
elseif type == "Divide" then
2480
scaler2 = 1/value
2481
end
2482
coroutine.resume(coroutine.create(function()
2483
for i = 0,10,0.1 do
2484
swait()
2485
if type == "Add" then
2486
scaler2 = scaler2 - 0.01*value
2487
elseif type == "Divide" then
2488
scaler2 = scaler2 - 0.01/value
2489
end
2490
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2491
rng.Transparency = rng.Transparency + 0.01
2492
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2493
end
2494
rng:Destroy()
2495
end))
2496
end
2497
2498
function groundwind(type,pos,scale,value,speed)
2499
local type = type
2500
local rng = Instance.new("Part", char)
2501
        rng.Anchored = true
2502
        rng.BrickColor = origcolor
2503
        rng.CanCollide = false
2504
        rng.FormFactor = 3
2505
        rng.Name = "Ring"
2506
        rng.Size = Vector3.new(1, 1, 1)
2507
        rng.Transparency = 0
2508
        rng.TopSurface = 0
2509
        rng.BottomSurface = 0
2510
        rng.CFrame = pos
2511
        local rngm = Instance.new("SpecialMesh", rng)
2512
        rngm.MeshId = "http://www.roblox.com/asset/?id=1051557"
2513
rngm.Scale = scale
2514
local scaler2 = 1
2515
if type == "Add" then
2516
scaler2 = 1*value
2517
elseif type == "Divide" then
2518
scaler2 = 1/value
2519
end
2520
coroutine.resume(coroutine.create(function()
2521
for i = 0,10,0.1 do
2522
swait()
2523
if type == "Add" then
2524
scaler2 = scaler2 - 0.01*value
2525
elseif type == "Divide" then
2526
scaler2 = scaler2 - 0.01/value
2527
end
2528
rng.CFrame = rng.CFrame*CFrame.Angles(0,0.025*speed,0)
2529
rng.Transparency = rng.Transparency + 0.01
2530
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2/5, scaler2)
2531
end
2532
rng:Destroy()
2533
end))
2534
end
2535
2536
function sphere(type,pos,scale,value)
2537
local type = type
2538
local rng = Instance.new("Part", char)
2539
        rng.Anchored = true
2540
        rng.BrickColor = origcolor
2541
        rng.CanCollide = false
2542
        rng.FormFactor = 3
2543
        rng.Name = "Ring"
2544
        rng.Material = "Neon"
2545
        rng.Size = Vector3.new(1, 1, 1)
2546
        rng.Transparency = 0
2547
        rng.TopSurface = 0
2548
        rng.BottomSurface = 0
2549
        rng.CFrame = pos
2550
        local rngm = Instance.new("SpecialMesh", rng)
2551
        rngm.MeshType = "Sphere"
2552
rngm.Scale = scale
2553
local scaler2 = 1
2554
if type == "Add" then
2555
scaler2 = 1*value
2556
elseif type == "Divide" then
2557
scaler2 = 1/value
2558
end
2559
coroutine.resume(coroutine.create(function()
2560
for i = 0,10,0.1 do
2561
swait()
2562
if type == "Add" then
2563
scaler2 = scaler2 - 0.01*value
2564
elseif type == "Divide" then
2565
scaler2 = scaler2 - 0.01/value
2566
end
2567
rng.Transparency = rng.Transparency + 0.01
2568
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2569
end
2570
rng:Destroy()
2571
end))
2572
end
2573
2574
function beam(type,pos,scale,value)
2575
local type = type
2576
local rng = Instance.new("Part", char)
2577
        rng.Anchored = true
2578
        rng.BrickColor = origcolor
2579
        rng.CanCollide = false
2580
        rng.FormFactor = 3
2581
        rng.Name = "Ring"
2582
        rng.Material = "Neon"
2583
        rng.Size = Vector3.new(1, 1, 1)
2584
        rng.Transparency = 0
2585
        rng.TopSurface = 0
2586
        rng.BottomSurface = 0
2587
        rng.CFrame = pos
2588
        local rngm = Instance.new("SpecialMesh", rng)
2589
        rngm.MeshType = "Sphere"
2590
rngm.Scale = scale
2591
rngm.Scale = rngm.Scale + Vector3.new(0,10000,0)
2592
local scaler2 = 0.5
2593
if type == "Add" then
2594
scaler2 = 0.5*value
2595
elseif type == "Divide" then
2596
scaler2 = 0.5/value
2597
end
2598
coroutine.resume(coroutine.create(function()
2599
for i = 0,10,0.1 do
2600
swait()
2601
if type == "Add" then
2602
scaler2 = scaler2 - 0.01*value
2603
elseif type == "Divide" then
2604
scaler2 = scaler2 - 0.01/value
2605
end
2606
rng.Transparency = rng.Transparency + 0.01
2607
rngm.Scale = rngm.Scale + Vector3.new(scaler2, scaler2, scaler2)
2608
end
2609
rng:Destroy()
2610
end))
2611
end
2612
2613
function first()
2614
	attack = true
2615
	for i = 0,3,0.1 do
2616
		swait()
2617
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-10),math.rad(0),math.rad(-20)),0.1)
2618
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(20)),.1)
2619
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(170), math.rad(0), math.rad(50)), 0.1)
2620
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.1)
2621
	end
2622
sphere("Divide",sorb.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),10)
2623
local lookvalue = 15
2624
coroutine.resume(coroutine.create(function()
2625
local rat = Instance.new("Part")
2626
rat.Parent = char
2627
rat.CFrame = root.CFrame
2628
rat.Transparency = 1
2629
rat.CanCollide = false
2630
rat.Anchored = true
2631
for i = 0, 4 do
2632
				 local lb = Instance.new("Part")
2633
CFuncs["Sound"].Create("rbxassetid://142070127", lb, 1, 1)
2634
CFuncs["Sound"].Create("rbxassetid://255679373", lb, 1, 1)
2635
  lb.Parent = char
2636
    lb.BrickColor = origcolor
2637
     lb.CanCollide = false
2638
lb.Material = "Neon"
2639
     lb.Anchored = true
2640
lb.TopSurface = 0
2641
        lb.BottomSurface = 0
2642
     lb.Transparency = 1
2643
     lb.Size = vt(0.5,0.5,0.5)
2644
     lb.CFrame = rat.CFrame + rat.CFrame.lookVector*lookvalue
2645
lb.CFrame = lb.CFrame + Vector3.new(0,-3,0)
2646
game:GetService("Debris"):AddItem(lb, 3)
2647
beam("Divide",lb.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),3.5)
2648
sphere("Divide",lb.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),3.5)
2649
ring("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,10),2.5)
2650
wave("Divide",lb.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.25,1),3.5)
2651
lookvalue = lookvalue + 15
2652
MagniDamage(lb, 153, 7113, 0, "Normal")
2653
wait(0.25)
2654
end
2655
rat:Destroy()
2656
end))
2657
	for i = 0,1,0.1 do
2658
		swait()
2659
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-1)* angles(math.rad(20),math.rad(0),math.rad(80)),0.5)
2660
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-80)),.5)
2661
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(40), math.rad(0), math.rad(20)), 0.5)
2662
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(-70)), 0.5)
2663
	end
2664
	attack = false
2665
end
2666
2667
local dashing = false
2668
2669
function dash()
2670
dashing = true
2671
attack = true
2672
  local bv = Instance.new("BodyVelocity")
2673
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2674
  bv.velocity = root.CFrame.lookVector*200
2675
  bv.Parent = root
2676
CFuncs["Sound"].Create("rbxassetid://200632211", root, 1, 0.5)
2677
ring("Divide",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,1,10),1.5)
2678
wave("Divide",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),2.5)
2679
for i = 0,1,0.1 do
2680
		swait()
2681
bv.velocity = root.CFrame.lookVector*200
2682
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(50),math.rad(0),math.rad(0)),0.5)
2683
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.5)
2684
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(50)), 0.5)
2685
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-80), math.rad(0), math.rad(-50)), 0.5)
2686
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)
2687
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)
2688
	end
2689
bv:Destroy()
2690
attack = false
2691
dashing = false
2692
end
2693
2694
function Spiraling()
2695
	attack = true
2696
CFuncs["Sound"].Create("rbxassetid://214876666", root, 1, 1)
2697
sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),2.5)
2698
	for i = 0,5,0.1 do
2699
		swait()
2700
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
2701
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
2702
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1)
2703
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1)
2704
	end
2705
CFuncs["Sound"].Create("rbxassetid://138079095", root, 1.5, 0.4)
2706
CFuncs["Sound"].Create("rbxassetid://154723542", root, 2.5, 1)
2707
coroutine.resume(coroutine.create(function()
2708
beam("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),2)
2709
sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),1.5)
2710
for i = 0, 4 do
2711
wait(0.1)
2712
MagniDamage(root, 603, 113,183, 0, "Normal")
2713
groundwind("Add",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(2,4),5)
2714
end
2715
end))
2716
for z = 0, 2 do
2717
	for i = 0,1,0.5 do
2718
		swait()
2719
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5)
2720
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
2721
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
2722
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
2723
	end
2724
	for i = 0,1,0.5 do
2725
		swait()
2726
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5)
2727
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
2728
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
2729
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
2730
	end
2731
	for i = 0,1,0.5 do
2732
		swait()
2733
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5)
2734
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
2735
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
2736
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
2737
	end
2738
	for i = 0,1,0.5 do
2739
		swait()
2740
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5)
2741
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
2742
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
2743
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
2744
	end
2745
end
2746
	attack = false
2747
end
2748
2749
function SkyBeam()
2750
local currentws = hum.WalkSpeed
2751
attack = true
2752
hum.WalkSpeed = 0
2753
CFuncs["Sound"].Create("rbxassetid://138079095", cahr, 0.5, 0.4)
2754
sphere("Divide",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(1,1,1),2.5)
2755
	for i = 0,3,0.1 do
2756
		swait()
2757
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
2758
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(30),math.rad(0),math.rad(0)),.1)
2759
             RW.C0 = clerp(RW.C0, CFrame.new(1.15, 0.5, -0.5) * angles(math.rad(10), math.rad(0), math.rad(-80)), 0.1)
2760
             LW.C0 = clerp(LW.C0, CFrame.new(-1.15, 0.5, -0.5) * angles(math.rad(10), math.rad(0), math.rad(80)), 0.1)
2761
	end
2762
local rng = Instance.new("Part", char)
2763
CFuncs["Sound"].Create("rbxassetid://343211019", char, 1, 0.6)
2764
        rng.Anchored = true
2765
        rng.BrickColor = origcolor
2766
        rng.CanCollide = false
2767
        rng.FormFactor = 3
2768
        rng.Name = "Ring"
2769
        rng.Material = "Neon"
2770
        rng.Size = Vector3.new(1, 1, 1)
2771
        rng.Transparency = 1
2772
        rng.TopSurface = 0
2773
        rng.BottomSurface = 0
2774
        rng.CFrame = root.CFrame + Vector3.new(0,-2.5,0)
2775
        local rngm = Instance.new("SpecialMesh", rng)
2776
        rngm.MeshType = "Brick"
2777
local dec = Instance.new("Decal",rng)
2778
dec.Texture = "http://www.roblox.com/asset/?id=852097462"
2779
dec.Face = "Top"
2780
local dec2 = dec:Clone()
2781
dec2.Parent = rng
2782
dec2.Face = "Bottom"
2783
2784
local scaler2 = 1
2785
scaler2 = 1*3
2786
for i = 0,10,0.1 do
2787
swait()
2788
scaler2 = scaler2 - 0.01*3
2789
rng.Transparency = rng.Transparency + 0.01
2790
rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
2791
end
2792
groundwind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(3,4),math.random(2,10))
2793
wind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(2,3),math.random(2,10))
2794
CFuncs["Sound"].Create("rbxassetid://136007472", char, 0.5, 0.7)
2795
for i = 0,14,0.1 do
2796
		swait()
2797
MagicBlock(origcolor,sorb.CFrame,1,1,1,1,1,1,0.25)
2798
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
2799
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(-30),math.rad(0),math.rad(0)),.1)
2800
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(180), math.rad(0), math.rad(10)), 0.1)
2801
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.1)
2802
	end
2803
for i = 0,2,0.1 do
2804
		swait()
2805
MagicBlock(origcolor,sorb.CFrame,1,1,1,1,1,1,0.25)
2806
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(20),math.rad(0),math.rad(0)),0.5)
2807
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
2808
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(50), math.rad(0), math.rad(10)), 0.5)
2809
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(10), math.rad(0), math.rad(-10)), 0.5)
2810
	end
2811
MagniDamage(root, 165, 252,452, 0, "Normal")
2812
CFuncs["Sound"].Create("rbxassetid://157878578", char, 0.5, 0.5)
2813
CFuncs["Sound"].Create("rbxassetid://919941001", char, 1, 1)
2814
CFuncs["Sound"].Create("rbxassetid://162271116", char, 0.5, 0.65)
2815
CFuncs["Sound"].Create("rbxassetid://151304356", char, 0.5, 0.35)
2816
CFuncs["Sound"].Create("rbxassetid://31762335", char, 0.5, 0.5)
2817
beam("Add",root.CFrame*CFrame.Angles(0,0,0),Vector3.new(0,0,0),5)
2818
coroutine.resume(coroutine.create(function()
2819
for i = 0, 9 do
2820
wait(0.1)
2821
groundwind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(3,4),math.random(2,10))
2822
wind("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),math.random(2,3),math.random(2,10))
2823
end
2824
end))
2825
wave("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),5)
2826
wave("Add",root.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(100,0,100),5)
2827
ring("Add",root.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,100),7.5)
2828
coroutine.resume(coroutine.create(function()
2829
for i = 0,10,0.1 do
2830
swait()
2831
scaler2 = scaler2 - 0.01*3
2832
rng.Transparency = rng.Transparency + 0.01
2833
rngm.Scale = rngm.Scale + Vector3.new(scaler2, 0, scaler2)
2834
end
2835
rng:Destroy()
2836
end))
2837
attack = false
2838
hum.WalkSpeed = currentws
2839
end
2840
2841
--- Above is skillmoves to function.
2842
--- I swear im watching you.
2843
--- Dont leak this one...
2844
-------------- Attack Combo Section -------------
2845
2846
function attackone()
2847
attack = true
2848
for i = 0,2,0.1 do
2849
		swait()
2850
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.2)
2851
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(-90)),.2)
2852
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.2)
2853
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-10)), 0.2)
2854
	end
2855
2856
local a = Instance.new("Part",Character)
2857
	a.Name = "Direction"	
2858
	a.Anchored = true
2859
	a.BrickColor = bc("Bright red")
2860
a.Material = "Neon"
2861
a.Transparency = 1
2862
	a.CanCollide = false
2863
	local ray = Ray.new(
2864
	    sorb.CFrame.p,                           -- origin
2865
	    (mouse.Hit.p - sorb.CFrame.p).unit * 500 -- direction
2866
	) 
2867
	local ignore = Character
2868
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2869
	a.BottomSurface = 10
2870
	a.TopSurface = 10
2871
	local distance = (root.CFrame.p - position).magnitude
2872
	a.Size = Vector3.new(0.1, 0.1, 0.1)
2873
	a.CFrame = CFrame.new(sorb.CFrame.p, position) * CFrame.new(0, 0, 0)
2874
				 local lb = Instance.new("Part")
2875
				CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1)
2876
  lb.Parent = char
2877
    lb.BrickColor = origcolor
2878
     lb.CanCollide = false
2879
lb.Material = "Neon"
2880
     lb.Anchored = true
2881
lb.TopSurface = 0
2882
        lb.BottomSurface = 0
2883
     lb.Transparency = 0
2884
     lb.Size = vt(2,2,2)
2885
     lb.CFrame = a.CFrame
2886
lb.Anchored = false
2887
local thingery = Instance.new("SpecialMesh",lb)
2888
     thingery.MeshType = "Sphere"
2889
game:GetService("Debris"):AddItem(lb, 5)
2890
  local bv = Instance.new("BodyVelocity")
2891
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2892
  bv.velocity = a.CFrame.lookVector*100
2893
  bv.Parent = lb
2894
local hitted = false
2895
game:GetService("Debris"):AddItem(a, 0.1)
2896
coroutine.resume(coroutine.create(function()
2897
while wait(0.5) do
2898
if hitted == false or lb.Parent ~= nil then
2899
wave("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),10)
2900
end
2901
if hitted == true or lb.Parent == nil then
2902
break
2903
end
2904
end
2905
end))
2906
wait(0.01)
2907
lb.Touched:connect(function(hit) 
2908
Damagefunc(lb, hit, 522, 12, 0, "Normal", RootPart, 0.3, "588733541", 0.8)
2909
end)
2910
attack = false
2911
end
2912
2913
function attacktwo()
2914
attack = true
2915
for i = 0,2,0.1 do
2916
MagicBlock(origcolor,sorb2.CFrame,1,1,1,0.1,0.1,0.1,0.25)
2917
		swait()
2918
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(-90)),0.2)
2919
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(90)),.2)
2920
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(10)), 0.2)
2921
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.2)
2922
	end
2923
2924
local a = Instance.new("Part",Character)
2925
	a.Name = "Direction"	
2926
	a.Anchored = true
2927
	a.BrickColor = bc("Bright red")
2928
a.Material = "Neon"
2929
a.Transparency = 1
2930
	a.CanCollide = false
2931
	local ray = Ray.new(
2932
	    sorb2.CFrame.p,                           -- origin
2933
	    (mouse.Hit.p - sorb2.CFrame.p).unit * 500 -- direction
2934
	) 
2935
	local ignore = Character
2936
	local hit, position, normal = workspace:FindPartOnRay(ray, ignore)
2937
	a.BottomSurface = 10
2938
	a.TopSurface = 10
2939
	local distance = (root.CFrame.p - position).magnitude
2940
	a.Size = Vector3.new(0.1, 0.1, 0.1)
2941
	a.CFrame = CFrame.new(sorb2.CFrame.p, position) * CFrame.new(0, 0, 0)
2942
				 local lb = Instance.new("Part")
2943
				CFuncs["Sound"].Create("rbxassetid://260433721", lb, 1, 1)
2944
  lb.Parent = char
2945
    lb.BrickColor = origcolor
2946
     lb.CanCollide = false
2947
lb.Material = "Neon"
2948
     lb.Anchored = true
2949
lb.TopSurface = 0
2950
        lb.BottomSurface = 0
2951
     lb.Transparency = 0
2952
     lb.Size = vt(2,2,2)
2953
     lb.CFrame = a.CFrame
2954
lb.Anchored = false
2955
local thingery = Instance.new("SpecialMesh",lb)
2956
     thingery.MeshType = "Sphere"
2957
game:GetService("Debris"):AddItem(lb, 5)
2958
  local bv = Instance.new("BodyVelocity")
2959
  bv.maxForce = Vector3.new(1e9, 1e9, 1e9)
2960
  bv.velocity = a.CFrame.lookVector*100
2961
  bv.Parent = lb
2962
local hitted = false
2963
game:GetService("Debris"):AddItem(a, 0.1)
2964
coroutine.resume(coroutine.create(function()
2965
while wait(0.5) do
2966
if hitted == false or lb.Parent ~= nil then
2967
wave("Divide",lb.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,0.05,1),10)
2968
end
2969
if hitted == true or lb.Parent == nil then
2970
break
2971
end
2972
end
2973
end))
2974
wait(0.01)
2975
lb.Touched:connect(function(hit) 
2976
Damagefunc(lb, hit, 522, 120, 0, "Normal", RootPart, 0.3, "588733541", 0.8)
2977
end)
2978
attack = false
2979
end
2980
2981
2982
function attackthree()
2983
	attack = true
2984
	for i = 0,1,0.1 do
2985
		swait()
2986
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),0.1)
2987
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(0)),.1)
2988
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.1)
2989
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.1)
2990
	end
2991
CFuncs["Sound"].Create("rbxassetid://138079095", root, 0.5, 0.4)
2992
CFuncs["Sound"].Create("rbxassetid://154723542", root, 1.5, 1.15)
2993
coroutine.resume(coroutine.create(function()
2994
for i = 0, 4 do
2995
wait(0.1)
2996
MagniDamage(root, 222, 522,1222, 0, "Normal")
2997
wind("Divide",root.CFrame*CFrame.Angles(0,math.rad(math.random(-360,360)),0),Vector3.new(1,1,1),math.random(1,2),5)
2998
end
2999
end))
3000
	for i = 0,1,0.5 do
3001
		swait()
3002
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(90)),0.5)
3003
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
3004
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3005
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3006
	end
3007
	for i = 0,1,0.5 do
3008
		swait()
3009
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(180)),0.5)
3010
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
3011
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3012
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3013
	end
3014
	for i = 0,1,0.5 do
3015
		swait()
3016
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(270)),0.5)
3017
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
3018
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3019
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3020
	end
3021
	for i = 0,1,0.5 do
3022
		swait()
3023
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(360)),0.5)
3024
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(10),math.rad(0),math.rad(0)),.5)
3025
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(90)), 0.5)
3026
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(-90)), 0.5)
3027
	end
3028
	attack = false
3029
end
3030
3031
3032
function attackfour()
3033
local currentws = hum.WalkSpeed
3034
hum.WalkSpeed = 0
3035
dashing = true
3036
attack = true
3037
for i = 0,2,0.1 do
3038
		swait()
3039
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(-5),math.rad(0),math.rad(0)),0.1)
3040
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.1)
3041
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(10)), 0.1)
3042
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-10), math.rad(0), math.rad(-10)), 0.1)
3043
RH.C0=clerp(RH.C0,cf(1,-0.35,-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3044
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.1)
3045
	end
3046
for i = 0,1,0.1 do
3047
		swait()
3048
            RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,0)* angles(math.rad(5),math.rad(0),math.rad(0)),0.3)
3049
            Torso.Neck.C0 = clerp(Torso.Neck.C0,necko *angles(math.rad(5),math.rad(0),math.rad(0)),.3)
3050
             RW.C0 = clerp(RW.C0, CFrame.new(1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(20)), 0.3)
3051
             LW.C0 = clerp(LW.C0, CFrame.new(-1.45, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-20)), 0.3)
3052
RH.C0=clerp(RH.C0,cf(1,-1,-0.65)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(5)),.3)
3053
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
3054
	end
3055
MagniDamage(root, 150, 90,130, 0, "Normal")
3056
CFuncs["Sound"].Create("rbxassetid://142070127", root, 0.25, 1.15)
3057
CFuncs["Sound"].Create("rbxassetid://157878578", root, 1, 1.25)
3058
wave("Divide",rleg.CFrame*CFrame.Angles(math.rad(0),0,0),Vector3.new(1,0.1,1),3.5)
3059
ring("Divide",rleg.CFrame*CFrame.Angles(math.rad(90),0,0),Vector3.new(1,1,25),1.5)
3060
dashing = false
3061
attack = false
3062
hum.WalkSpeed = currentws
3063
end
3064
3065
-- Functions are ready.
3066
3067
local attacktype = 1
3068
mouse.Button1Down:connect(function()
3069
  if attack == false and attacktype == 1 then
3070
    attacktype = 2
3071
    attackone()
3072
  elseif attack == false and attacktype == 2 then
3073
    attacktype = 3
3074
    attacktwo()
3075
  elseif attack == false and attacktype == 3 then
3076
    attacktype = 4
3077
    attackthree()
3078
  elseif attack == false and attacktype == 4 then
3079
    attacktype = 1
3080
    attackfour()
3081
  end
3082
end)
3083
mouse.KeyDown:connect(function(k)
3084
        if k == "z" and attack == false then
3085
                first()
3086
        end
3087
        if k == "x" and attack == false then
3088
                dash()
3089
        end
3090
        if k == "c" and attack == false then
3091
                Spiraling()
3092
        end
3093
        if k == "v" and attack == false then
3094
                SkyBeam()
3095
        end
3096
end)
3097
Humanoid.Animator.Parent = nil
3098
idleanim=.4
3099
while true do
3100
swait()
3101
MagicBlock(origcolor,sorb.CFrame,1,1,1,0.1,0.1,0.1,0.25)
3102
  sine = sine + change
3103
local torvel=(RootPart.Velocity*Vector3.new(1,0,1)).magnitude 
3104
local velderp=RootPart.Velocity.y
3105
hitfloor,posfloor=rayCast(RootPart.Position,(CFrame.new(RootPart.Position,RootPart.Position - Vector3.new(0,1,0))).lookVector,4,Character)
3106
if equipped==true or equipped==false then
3107
if attack==false then
3108
idle=idle+1
3109
else
3110
idle=0
3111
end
3112
if idle>=500 then
3113
if attack==false then
3114
--Sheath()
3115
end
3116
end
3117
if RootPart.Velocity.y > 1 and hitfloor==nil then 
3118
Anim="Jump"
3119
if attack==false then
3120
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)
3121
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)
3122
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)
3123
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-2.5),math.rad(0),math.rad(0)),.1)
3124
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)
3125
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)
3126
end
3127
elseif RootPart.Velocity.y < -1 and hitfloor==nil then 
3128
Anim="Fall"
3129
if attack==false then
3130
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)
3131
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)
3132
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)
3133
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.1)
3134
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)
3135
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)
3136
end
3137
elseif torvel<1 and hitfloor~=nil then
3138
Anim="Idle"
3139
if dashing == false then
3140
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(-2.5),math.rad(0),math.rad(0)),.1)
3141
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(-2.5),math.rad(0),math.rad(0)),.1)
3142
end
3143
if attack==false then
3144
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(40)),.1)
3145
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(5 - 2.5 * math.cos(sine / 25)),math.rad(0),math.rad(-40)),.1)
3146
RW.C0=clerp(RW.C0,cf(1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(2.5),math.rad(0),math.rad(20 - 0.5 * math.cos(sine / 25))),.1)
3147
LW.C0=clerp(LW.C0,cf(-1.45,0.5 + 0.1 * math.cos(sine / 25),0)*angles(math.rad(-2.5),math.rad(0),math.rad(-10 + 1.5 * math.cos(sine / 25))),.1)
3148
end
3149
elseif torvel>2 and torvel<22 and hitfloor~=nil then
3150
Anim="Walk"
3151
if dashing == false then
3152
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 12.5))),.1)
3153
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 4),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 25 * math.cos(sine / 12.5))),.1)
3154
end
3155
if attack==false then
3156
RootJoint.C0=clerp(RootJoint.C0,RootCF*cf(0,0,0)*angles(math.rad(5),math.rad(0),math.rad(0 - 10 * math.cos(sine / 12.5))),.1)
3157
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0 + 10 * math.cos(sine / 12.5))),.1)
3158
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(0 - 40 * math.cos(sine / 12.5)),math.rad(0),math.rad(10)),.1)
3159
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(0 + 40 * math.cos(sine / 12.5)),math.rad(0),math.rad(-10)),.1)
3160
end
3161
elseif torvel>=22 and hitfloor~=nil then
3162
Anim="Run"
3163
if dashing == false then
3164
RH.C0=clerp(RH.C0,cf(1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
3165
LH.C0=clerp(LH.C0,cf(-1,-1 - 0.05 * math.cos(sine / 32),0)*angles(math.rad(0),math.rad(-90),math.rad(0))*angles(math.rad(0),math.rad(0),math.rad(0 + 75 * math.cos(sine / 3))),.3)
3166
end
3167
if attack==false then
3168
	          RootJoint.C0 = clerp(RootJoint.C0,RootCF*cf(0,0,-0.25 + 0.05 * math.cos(sine / 32))* angles(math.rad(35),math.rad(0),math.rad(0)),.3)
3169
Torso.Neck.C0=clerp(Torso.Neck.C0,necko*angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
3170
RW.C0=clerp(RW.C0,cf(1.5,0.5,0)*angles(math.rad(-50),math.rad(-60),math.rad(25)),.3)
3171
LW.C0=clerp(LW.C0,cf(-1.5,0.5,0)*angles(math.rad(-50),math.rad(0),math.rad(-25)),.3)
3172
end
3173
end
3174
end
3175
end