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