View difference between Paste ID: 75CJDrM0 and BM2wgMi6
SHOW: | | - or go back to the newest paste.
1
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
2
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
3
do
4-
	print("FE Compatibility code by Mokiros")
4+
	print("Fixed by kilcrafter (crift_games1)")
5
	script.Parent = Player.Character
6
7
	--RemoteEvent for communicating
8
	local Event = Instance.new("RemoteEvent")
9
	Event.Name = "UserInput_Event"
10
11
	--Fake event to make stuff like Mouse.KeyDown work
12
	local function fakeEvent()
13
		local t = {_fakeEvent=true,Connect=function(self,f)self.Function=f end}
14
		t.connect = t.Connect
15
		return t
16
	end
17
18
	--Creating fake input objects with fake variables
19
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent()}
20
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
21
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
22
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
23
	end}
24
	--Merged 2 functions into one by checking amount of arguments
25
	CAS.UnbindAction = CAS.BindAction
26
27
	--This function will trigger the events that have been :Connect()'ed
28
	local function te(self,ev,...)
29
		local t = m[ev]
30
		if t and t._fakeEvent and t.Function then
31
			t.Function(...)
32
		end
33
	end
34
	m.TrigEvent = te
35
	UIS.TrigEvent = te
36
37
	Event.OnServerEvent:Connect(function(plr,io)
38
	    if plr~=Player then return end
39
		if io.isMouse then
40
			m.Target = io.Target
41
			m.Hit = io.Hit
42
		else
43
			local b = io.UserInputState == Enum.UserInputState.Begin
44
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
45
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
46
			end
47
			for _,t in pairs(CAS.Actions) do
48
				for _,k in pairs(t.Keys) do
49
					if k==io.KeyCode then
50
						t.Function(t.Name,io.UserInputState,io)
51
					end
52
				end
53
			end
54
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
55
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
56
	    end
57
	end)
58
	Event.Parent = NLS([==[
59
	local Player = game:GetService("Players").LocalPlayer
60
	local Event = script:WaitForChild("UserInput_Event")
61
62
	local UIS = game:GetService("UserInputService")
63
	local input = function(io,a)
64
		if a then return end
65
		--Since InputObject is a client-side instance, we create and pass table instead
66
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState})
67
	end
68
	UIS.InputBegan:Connect(input)
69
	UIS.InputEnded:Connect(input)
70
71
	local Mouse = Player:GetMouse()
72
	local h,t
73
	--Give the server mouse data 30 times every second, but only if the values changed
74
	--If player is not moving their mouse, client won't fire events
75
	while wait(1/30) do
76
		if h~=Mouse.Hit or t~=Mouse.Target then
77
			h,t=Mouse.Hit,Mouse.Target
78
			Event:FireServer({isMouse=true,Target=t,Hit=h})
79
		end
80
	end]==],Player.Character)
81
	Mouse,mouse,UserInputService,ContextActionService = m,m,UIS,CAS
82
end
83
-----------------------
84
--XEvent Chara--
85
-----------------------
86
-------------------------------------------------------
87
--A script By makhail07 and KillerDarkness0105
88
--Effect Smoothing By OblivionCreature
89
--Discords Creterisk#2958, Codex#6685, and [L]ewd#2941
90
-------------------------------------------------------
91
92
local FavIDs = {340106355,927529620,876981900,398987889,1117396305}
93
94
function swait(num)
95
if num==0 or num==nil then
96
game:service'RunService'.Stepped:wait(0)
97
else
98
for i=0,num do
99
game:service'RunService'.Stepped:wait(0)
100
end
101
end
102
end
103
function thread(f)
104
  coroutine.resume(coroutine.create(f))
105
end
106
107
--Needed to add this for a good reason, thank me later mak.
108
so = function(id,par,vol,pit) 
109
coroutine.resume(coroutine.create(function()
110
local sou = Instance.new("Sound",par or workspace)
111
sou.Volume=vol
112
sou.Pitch=pit or 1
113
sou.SoundId=id
114
swait() 
115
sou:play() 
116
game:GetService("Debris"):AddItem(sou,8)
117
end))
118
end
119
120
121
function clerp(a, b, t) 
122
	local qa = {
123
		QuaternionFromCFrame(a)
124
	}
125
	local qb = {
126
		QuaternionFromCFrame(b)
127
	} 
128
	local ax, ay, az = a.x, a.y, a.z 
129
	local bx, by, bz = b.x, b.y, b.z
130
	local _t = 1 - t
131
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) 
132
end
133
function QuaternionFromCFrame(cf)
134
  local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
135
  local trace = m00 + m11 + m22
136
  if trace > 0 then
137
    local s = math.sqrt(1 + trace)
138
    local recip = 0.5 / s
139
    return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
140
  else
141
    local i = 0
142
    if m00 < m11 then
143
      i = 1
144
    end
145
    if m22 > (i == 0 and m00 or m11) then
146
      i = 2
147
    end
148
    if i == 0 then
149
      local s = math.sqrt(m00 - m11 - m22 + 1)
150
      local recip = 0.5 / s
151
      return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
152
    elseif i == 1 then
153
      local s = math.sqrt(m11 - m22 - m00 + 1)
154
      local recip = 0.5 / s
155
      return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
156
    elseif i == 2 then
157
      local s = math.sqrt(m22 - m00 - m11 + 1)
158
      local recip = 0.5 / s
159
      return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
160
    end
161
  end
162
end
163
function QuaternionToCFrame(px, py, pz, x, y, z, w)
164
  local xs, ys, zs = x + x, y + y, z + z
165
  local wx, wy, wz = w * xs, w * ys, w * zs
166
  local xx = x * xs
167
  local xy = x * ys
168
  local xz = x * zs
169
  local yy = y * ys
170
  local yz = y * zs
171
  local zz = z * zs
172
  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))
173
end
174
function QuaternionSlerp(a, b, t)
175
  local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
176
  local startInterp, finishInterp
177
  if cosTheta >= 1.0E-4 then
178
    if 1 - cosTheta > 1.0E-4 then
179
      local theta = math.acos(cosTheta)
180
      local invSinTheta = 1 / math.sin(theta)
181
      startInterp = math.sin((1 - t) * theta) * invSinTheta
182
      finishInterp = math.sin(t * theta) * invSinTheta
183
    else
184
      startInterp = 1 - t
185
      finishInterp = t
186
    end
187
  elseif 1 + cosTheta > 1.0E-4 then
188
    local theta = math.acos(-cosTheta)
189
    local invSinTheta = 1 / math.sin(theta)
190
    startInterp = math.sin((t - 1) * theta) * invSinTheta
191
    finishInterp = math.sin(t * theta) * invSinTheta
192
  else
193
    startInterp = t - 1
194
    finishInterp = t
195
  end
196
  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
197
end
198
function rayCast(Position, Direction, Range, Ignore)
199
  return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
200
end
201
--Wait what okay
202
wait()
203
local plr = owner
204
local char = plr.Character
205
local hum = char.Humanoid
206
local ra = char["Right Arm"]
207
local la= char["Left Arm"]
208
local rl= char["Right Leg"]
209
local ll = char["Left Leg"]
210
local hed = char.Head
211
local root = char.HumanoidRootPart
212
local rootj = root.RootJoint
213
local tors = char.Torso
214
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
215
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
216
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
217
local maincolor = BrickColor.new("Dark indigo")
218
cf = CFrame.new
219
angles = CFrame.Angles
220
attack = false
221
euler=CFrame.fromEulerAnglesXYZ
222
equipped = false
223
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
224
RSH, LSH = nil, nil 
225
RW = Instance.new("Weld") 
226
LW = Instance.new("Weld")
227
RH = tors["Right Hip"]
228
LH = tors["Left Hip"]
229
RSH = tors["Right Shoulder"] 
230
LSH = tors["Left Shoulder"] 
231
RSH.Parent = nil 
232
LSH.Parent = nil 
233
RW.Name = "RW"
234
RW.Part0 = tors 
235
RW.C0 = CFrame.new(1.5, 0.5, 0)
236
RW.C1 = CFrame.new(0, 0.5, 0) 
237
RW.Part1 = ra
238
RW.Parent = tors 
239
LW.Name = "LW"
240
LW.Part0 = tors 
241
LW.C0 = CFrame.new(-1.5, 0.5, 0)
242
LW.C1 = CFrame.new(0, 0.5, 0) 
243
LW.Part1 = la
244
LW.Parent = tors
245
print('User is '..plr.Name)
246
Effects = {}
247
	
248
ArtificialHB = Instance.new("BindableEvent", script)
249
ArtificialHB.Name = "Heartbeat"
250
251
script:WaitForChild("Heartbeat")
252
253
frame = 1 / 60
254
tf = 0
255
allowframeloss = false
256
tossremainder = false
257
lastframe = tick()
258
script.Heartbeat:Fire()
259
260
game:GetService("RunService").Heartbeat:connect(function(s, p)
261
	tf = tf + s
262
	if tf >= frame then
263
		if allowframeloss then
264
			script.Heartbeat:Fire()
265
			lastframe = tick()
266
		else
267
			for i = 1, math.floor(tf / frame) do
268
				script.Heartbeat:Fire()
269
			end
270
			lastframe = tick()
271
		end
272
		if tossremainder then
273
			tf = 0
274
		else
275
			tf = tf - frame * math.floor(tf / frame)
276
		end
277
	end
278
end)
279
local RbxUtility = LoadLibrary("RbxUtility")
280
local Create = RbxUtility.Create
281
282
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
283
	if hit.Parent == nil then
284
		return
285
	end
286
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
287
	for _, v in pairs(hit.Parent:children()) do
288
		if v:IsA("Humanoid") then
289
			h = v
290
		end
291
	end
292
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
293
         warn'No R15 allowed'
294
         hit.Parent:FindFirstChild("Head"):BreakJoints()
295
         end
296
297
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
298
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
299
			if hit.Parent.DebounceHit.Value == true then
300
				return
301
			end
302
		end
303
         if insta == true then
304
         hit.Parent:FindFirstChild("Head"):BreakJoints()
305
         end
306
		local c = Create("ObjectValue"){
307
			Name = "creator",
308
			Value = game:service("Players").LocalPlayer,
309
			Parent = h,
310
		}
311
		game:GetService("Debris"):AddItem(c, .5)
312
		if HitSound ~= nil and HitPitch ~= nil then
313
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
314
		end
315
		local Damage = math.random(minim, maxim)
316
		local blocked = false
317
		local block = hit.Parent:findFirstChild("Block")
318
		if block ~= nil then
319
			if block.className == "IntValue" then
320
				if block.Value > 0 then
321
					blocked = true
322
					block.Value = block.Value - 1
323
					print(block.Value)
324
				end
325
			end
326
		end
327
		if blocked == false then
328
			h.Health = h.Health - Damage
329
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
330
		else
331
			h.Health = h.Health - (Damage / 2)
332
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
333
		end
334
		if Type == "Knockdown" then
335
			local hum = hit.Parent.Humanoid
336
			hum.PlatformStand = true
337
			coroutine.resume(coroutine.create(function(HHumanoid)
338
				swait(1)
339
				HHumanoid.PlatformStand = false
340
			end), hum)
341
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
342
			local bodvol = Create("BodyVelocity"){
343
				velocity = angle * knockback,
344
				P = 5000,
345
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
346
				Parent = hit,
347
			}
348
			local rl = Create("BodyAngularVelocity"){
349
				P = 3000,
350
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
351
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
352
				Parent = hit,
353
			}
354
			game:GetService("Debris"):AddItem(bodvol, .5)
355
			game:GetService("Debris"):AddItem(rl, .5)
356
		elseif Type == "Normal" then
357
			local vp = Create("BodyVelocity"){
358
				P = 500,
359
				maxForce = Vector3.new(math.huge, 0, math.huge),
360
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
361
			}
362
			if knockback > 0 then
363
				vp.Parent = hit.Parent.Torso
364
			end
365
			game:GetService("Debris"):AddItem(vp, .5)
366
		elseif Type == "Up" then
367
			local bodyVelocity = Create("BodyVelocity"){
368
				velocity = Vector3.new(0, 20, 0),
369
				P = 5000,
370
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
371
				Parent = hit,
372
			}
373
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
374
		elseif Type == "DarkUp" then
375
			coroutine.resume(coroutine.create(function()
376
				for i = 0, 1, 0.1 do
377
					swait()
378
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
379
				end
380
			end))
381
			local bodyVelocity = Create("BodyVelocity"){
382
				velocity = Vector3.new(0, 20, 0),
383
				P = 5000,
384
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
385
				Parent = hit,
386
			}
387
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
388
		elseif Type == "Snare" then
389
			local bp = Create("BodyPosition"){
390
				P = 2000,
391
				D = 100,
392
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
393
				position = hit.Parent.Torso.Position,
394
				Parent = hit.Parent.Torso,
395
			}
396
			game:GetService("Debris"):AddItem(bp, 1)
397
		elseif Type == "Freeze" then
398
			local BodPos = Create("BodyPosition"){
399
				P = 50000,
400
				D = 1000,
401
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
402
				position = hit.Parent.Torso.Position,
403
				Parent = hit.Parent.Torso,
404
			}
405
			local BodGy = Create("BodyGyro") {
406
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
407
				P = 20e+003,
408
				Parent = hit.Parent.Torso,
409
				cframe = hit.Parent.Torso.CFrame,
410
			}
411
			hit.Parent.Torso.Anchored = true
412
			coroutine.resume(coroutine.create(function(Part) 
413
				swait(1.5)
414
				Part.Anchored = false
415
			end), hit.Parent.Torso)
416
			game:GetService("Debris"):AddItem(BodPos, 3)
417
			game:GetService("Debris"):AddItem(BodGy, 3)
418
		end
419
		local debounce = Create("BoolValue"){
420
			Name = "DebounceHit",
421
			Parent = hit.Parent,
422
			Value = true,
423
		}
424
		game:GetService("Debris"):AddItem(debounce, Delay)
425
		c = Create("ObjectValue"){
426
			Name = "creator",
427
			Value = Player,
428
			Parent = h,
429
		}
430
		game:GetService("Debris"):AddItem(c, .5)
431
	end
432
end
433
434
function ShowDamage(Pos, Text, Time, Color)
435
	local Rate = (1 / 30)
436
	local Pos = (Pos or Vector3.new(0, 0, 0))
437
	local Text = (Text or "")
438
	local Time = (Time or 2)
439
	local Color = (Color or Color3.new(1, 0, 1))
440
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
441
	EffectPart.Anchored = true
442
	local BillboardGui = Create("BillboardGui"){
443
		Size = UDim2.new(3, 0, 3, 0),
444
		Adornee = EffectPart,
445
		Parent = EffectPart,
446
	}
447
	local TextLabel = Create("TextLabel"){
448
		BackgroundTransparency = 1,
449
		Size = UDim2.new(1, 0, 1, 0),
450
		Text = Text,
451
		Font = "Highway",
452
		TextColor3 = Color,
453
		TextScaled = true,
454
		Parent = BillboardGui,
455
	}
456
	game.Debris:AddItem(EffectPart, (Time))
457
	EffectPart.Parent = game:GetService("Workspace")
458
	delay(0, function()
459
		local Frames = (Time / Rate)
460
		for Frame = 1, Frames do
461
			wait(Rate)
462
			local Percent = (Frame / Frames)
463
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
464
			TextLabel.TextTransparency = Percent
465
		end
466
		if EffectPart and EffectPart.Parent then
467
			EffectPart:Destroy()
468
		end
469
	end)
470
end
471
function MagniDamage(Part, magni, mindam, maxdam, knock, Type)
472
  for _, c in pairs(workspace:children()) do
473
    local hum = c:findFirstChild("Humanoid")
474
    if hum ~= nil then
475
      local head = c:findFirstChild("Head")
476
      if head ~= nil then
477
        local targ = head.Position - Part.Position
478
        local mag = targ.magnitude
479
        if magni >= mag and c.Name ~= plr.Name then
480
          Damage(head, head, mindam, maxdam, knock, Type, root, 0.1, "http://www.roblox.com/asset/?id=623904185", 5.2)
481
        end
482
      end
483
    end
484
  end
485
end
486
function MagniKILL(Part, magni, knock, Type)
487
  for _, c in pairs(workspace:children()) do
488
    local hum = c:findFirstChild("Humanoid")
489
    if hum ~= nil then
490
      local head = c:findFirstChild("Head")
491
      if head ~= nil then
492
        local targ = head.Position - Part.Position
493
        local mag = targ.magnitude
494
        if magni >= mag and c.Name ~= plr.Name then
495
          hum.Health = 0
496
        end
497
      end
498
    end
499
  end
500
end
501
CFuncs = {
502
  Part = {
503
    Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
504
      local Part = Create("Part")({
505
        Parent = Parent,
506
        Reflectance = Reflectance,
507
        Transparency = Transparency,
508
        CanCollide = false,
509
        Locked = true,
510
        BrickColor = BrickColor.new(tostring(BColor)),
511
        Name = Name,
512
        Size = Size,
513
        Material = Material
514
      })
515
      RemoveOutlines(Part)
516
      return Part
517
    end
518
  },
519
  Mesh = {
520
    Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
521
      local Msh = Create(Mesh)({
522
        Parent = Part,
523
        Offset = OffSet,
524
        Scale = Scale
525
      })
526
      if Mesh == "SpecialMesh" then
527
        Msh.MeshType = MeshType
528
        Msh.MeshId = MeshId
529
      end
530
      return Msh
531
    end
532
  },
533
  Mesh = {
534
    Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
535
      local Msh = Create(Mesh)({
536
        Parent = Part,
537
        Offset = OffSet,
538
        Scale = Scale
539
      })
540
      if Mesh == "SpecialMesh" then
541
        Msh.MeshType = MeshType
542
        Msh.MeshId = MeshId
543
      end
544
      return Msh
545
    end
546
  },
547
  Weld = {
548
    Create = function(Parent, Part0, Part1, C0, C1)
549
      local Weld = Create("Weld")({
550
        Parent = Parent,
551
        Part0 = Part0,
552
        Part1 = Part1,
553
        C0 = C0,
554
        C1 = C1
555
      })
556
      return Weld
557
    end
558
  },
559
  Sound = {
560
    Create = function(id, par, vol, pit)
561
      coroutine.resume(coroutine.create(function()
562
        local S = Create("Sound")({
563
          Volume = vol,
564
          Pitch = pit or 1,
565
          SoundId = id,
566
          Parent = par or workspace
567
        })
568
        wait()
569
        S:play()
570
        game:GetService("Debris"):AddItem(S, 6)
571
      end))
572
    end
573
  },
574
  ParticleEmitter = {
575
    Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
576
      local fp = Create("ParticleEmitter")({
577
        Parent = Parent,
578
        Color = ColorSequence.new(Color1, Color2),
579
        LightEmission = LightEmission,
580
        Size = Size,
581
        Texture = Texture,
582
        Transparency = Transparency,
583
        ZOffset = ZOffset,
584
        Acceleration = Accel,
585
        Drag = Drag,
586
        LockedToPart = LockedToPart,
587
        VelocityInheritance = VelocityInheritance,
588
        EmissionDirection = EmissionDirection,
589
        Enabled = Enabled,
590
        Lifetime = LifeTime,
591
        Rate = Rate,
592
        Rotation = Rotation,
593
        RotSpeed = RotSpeed,
594
        Speed = Speed,
595
        VelocitySpread = VelocitySpread
596
      })
597
      return fp
598
    end
599
  }
600
}
601
function RemoveOutlines(part)
602
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
603
end
604
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
605
  local Part = Create("Part")({
606
    formFactor = FormFactor,
607
    Parent = Parent,
608
    Reflectance = Reflectance,
609
    Transparency = Transparency,
610
    CanCollide = false,
611
    Locked = true,
612
    BrickColor = BrickColor.new(tostring(BColor)),
613
    Name = Name,
614
    Size = Size,
615
    Material = Material
616
  })
617
  RemoveOutlines(Part)
618
  return Part
619
end
620
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
621
  local Msh = Create(Mesh)({
622
    Parent = Part,
623
    Offset = OffSet,
624
    Scale = Scale
625
  })
626
  if Mesh == "SpecialMesh" then
627
    Msh.MeshType = MeshType
628
    Msh.MeshId = MeshId
629
  end
630
  return Msh
631
end
632
function CreateWeld(Parent, Part0, Part1, C0, C1)
633
  local Weld = Create("Weld")({
634
    Parent = Parent,
635
    Part0 = Part0,
636
    Part1 = Part1,
637
    C0 = C0,
638
    C1 = C1
639
  })
640
  return Weld
641
end
642
EffectModel = Instance.new("Model", char)
643
Effects = {
644
  Block = {
645
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
646
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
647
      prt.Anchored = true
648
      prt.CFrame = cframe
649
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
650
      game:GetService("Debris"):AddItem(prt, 10)
651
      if Type == 1 or Type == nil then
652
        table.insert(Effects, {
653
          prt,
654
          "Block1",
655
          delay,
656
          x3,
657
          y3,
658
          z3,
659
          msh
660
        })
661
      elseif Type == 2 then
662
        table.insert(Effects, {
663
          prt,
664
          "Block2",
665
          delay,
666
          x3,
667
          y3,
668
          z3,
669
          msh
670
        })
671
      else
672
        table.insert(Effects, {
673
          prt,
674
          "Block3",
675
          delay,
676
          x3,
677
          y3,
678
          z3,
679
          msh
680
        })
681
      end
682
    end
683
  },
684
  Sphere = {
685
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
686
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
687
      prt.Anchored = true
688
      prt.CFrame = cframe
689
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
690
      game:GetService("Debris"):AddItem(prt, 10)
691
      table.insert(Effects, {
692
        prt,
693
        "Cylinder",
694
        delay,
695
        x3,
696
        y3,
697
        z3,
698
        msh
699
      })
700
    end
701
  },
702
  Cylinder = {
703
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
704
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
705
      prt.Anchored = true
706
      prt.CFrame = cframe
707
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
708
      game:GetService("Debris"):AddItem(prt, 10)
709
      table.insert(Effects, {
710
        prt,
711
        "Cylinder",
712
        delay,
713
        x3,
714
        y3,
715
        z3,
716
        msh
717
      })
718
    end
719
  },
720
  Wave = {
721
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
722
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
723
      prt.Anchored = true
724
      prt.CFrame = cframe
725
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
726
      game:GetService("Debris"):AddItem(prt, 10)
727
      table.insert(Effects, {
728
        prt,
729
        "Cylinder",
730
        delay,
731
        x3 / 60,
732
        y3 / 60,
733
        z3 / 60,
734
        msh
735
      })
736
    end
737
  },
738
  Ring = {
739
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
740
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
741
      prt.Anchored = true
742
      prt.CFrame = cframe
743
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
744
      game:GetService("Debris"):AddItem(prt, 10)
745
      table.insert(Effects, {
746
        prt,
747
        "Cylinder",
748
        delay,
749
        x3,
750
        y3,
751
        z3,
752
        msh
753
      })
754
    end
755
  },
756
  Break = {
757
    Create = function(brickcolor, cframe, x1, y1, z1)
758
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
759
      prt.Anchored = true
760
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
761
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
762
      local num = math.random(10, 50) / 1000
763
      game:GetService("Debris"):AddItem(prt, 10)
764
      table.insert(Effects, {
765
        prt,
766
        "Shatter",
767
        num,
768
        prt.CFrame,
769
        math.random() - math.random(),
770
        0,
771
        math.random(50, 100) / 100
772
      })
773
    end
774
  }
775
}
776
function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
777
  local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
778
  prt.Anchored = true
779
  prt.CFrame = cframe
780
  local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
781
  game:GetService("Debris"):AddItem(prt, 10)
782
  if Type == 1 or Type == nil then
783
    table.insert(Effects, {
784
      prt,
785
      "Block1",
786
      delay,
787
      x3,
788
      y3,
789
      z3,
790
      msh
791
    })
792
  elseif Type == 2 then
793
    table.insert(Effects, {
794
      prt,
795
      "Block2",
796
      delay,
797
      x3,
798
      y3,
799
      z3,
800
      msh
801
    })
802
  elseif Type == 3 then
803
    table.insert(Effects, {
804
      prt,
805
      "Block3",
806
      delay,
807
      x3,
808
      y3,
809
      z3,
810
      msh
811
    })
812
  end
813
end
814
function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
815
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
816
  prt.Anchored = true
817
  prt.CFrame = cframe
818
  local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
819
  game:GetService("Debris"):AddItem(prt, 10)
820
  table.insert(Effects, {
821
    prt,
822
    "Cylinder",
823
    delay,
824
    x3,
825
    y3,
826
    z3,
827
    msh
828
  })
829
end
830
function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
831
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
832
  prt.Anchored = true
833
  prt.CFrame = cframe * CFrame.new(x1, y1, z1)
834
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
835
  game:GetService("Debris"):AddItem(prt, 10)
836
  table.insert(Effects, {
837
    prt,
838
    "Cylinder",
839
    delay,
840
    x3,
841
    y3,
842
    z3,
843
    msh
844
  })
845
end
846
function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
847
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
848
  prt.Anchored = true
849
  prt.CFrame = cframe
850
  local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
851
  game:GetService("Debris"):AddItem(prt, 10)
852
  table.insert(Effects, {
853
    prt,
854
    "Cylinder",
855
    delay,
856
    x3,
857
    y3,
858
    z3,
859
    msh
860
  })
861
end
862
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
863
  local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
864
  prt.Anchored = true
865
  prt.CFrame = cframe
866
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
867
  game:GetService("Debris"):AddItem(prt, 10)
868
  table.insert(Effects, {
869
    prt,
870
    "Cylinder",
871
    delay,
872
    x3,
873
    y3,
874
    z3,
875
    msh
876
  })
877
end
878
function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
879
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
880
  prt.Anchored = true
881
  prt.CFrame = cframe
882
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
883
  game:GetService("Debris"):AddItem(prt, 10)
884
  table.insert(Effects, {
885
    prt,
886
    "Cylinder",
887
    delay,
888
    x3,
889
    y3,
890
    z3,
891
    msh
892
  })
893
end
894
function BreakEffect(brickcolor, cframe, x1, y1, z1)
895
  local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
896
  prt.Anchored = true
897
  prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
898
  local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
899
  local num = math.random(10, 50) / 1000
900
  game:GetService("Debris"):AddItem(prt, 10)
901
  table.insert(Effects, {
902
    prt,
903
    "Shatter",
904
    num,
905
    prt.CFrame,
906
    math.random() - math.random(),
907
    0,
908
    math.random(50, 100) / 100
909
  })
910
end
911
function CreateSound(ID, PARENT, VOLUME, PITCH)
912
	local NEWSOUND = nil
913
	coroutine.resume(coroutine.create(function()
914
		NEWSOUND = Instance.new("Sound", PARENT)
915
		NEWSOUND.Volume = VOLUME
916
		NEWSOUND.Pitch = PITCH
917
		NEWSOUND.SoundId = "http://www.roblox.com/asset/?id="..ID
918
		swait()
919
		NEWSOUND:play()
920
		game:GetService("Debris"):AddItem(NEWSOUND, 10)
921
	end))
922
	return NEWSOUND
923
end
924
925
926
--[[
927
		Thanks for using Build-To-Lua by jarredbcv.
928
]]--
929
930
New = function(Object, Parent, Name, Data)
931
	local Object = Instance.new(Object)
932
	for Index, Value in pairs(Data or {}) do
933
		Object[Index] = Value
934
	end
935
	Object.Parent = Parent
936
	Object.Name = Name
937
	return Object
938
end
939
	
940
XBlade = New("Model",char,"XBlade",{})
941
Handle = New("Part",XBlade,"Handle",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Shape = Enum.PartType.Cylinder,Size = Vector3.new(2, 0.119999982, 0.119999982),CFrame = CFrame.new(-44.0486794, 1.89940667, 173.921341, 0.99009043, -0.134159163, -0.0414969474, 0.0418755226, -2.00014849e-09, 0.999122798, -0.134041354, -0.990959466, 0.00561797712),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
942
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-41.3519974, 0.784493208, 173.553787, 0.134159118, 0.931669831, -0.337627381, -1.78345172e-10, 0.340707511, 0.940169215, 0.990959346, -0.126132146, 0.0457089804),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
943
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.93166995, 0.340707511, -0.12613225, -0.337627441, 0.940169275, 0.0457090214),C1 = CFrame.new(2.67253876, 0.00244140625, -1.22790456, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
944
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.92999995, 0.0500000156),CFrame = CFrame.new(-44.0702477, 1.93928599, 173.921783, 0.134159118, 0.99009037, -0.0414969437, -1.78345172e-10, 0.0418755226, 0.999122798, 0.990959346, -0.13404125, 0.00561797526),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
945
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(-0.019744873, 0.00245666504, 0.0407419205, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
946
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-40.7464447, 1.01027775, 173.471802, 0.134159118, 0.903306067, -0.407478601, -1.78345172e-10, 0.411195904, 0.911546826, 0.990959346, -0.122292183, 0.0551656336),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
947
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.903306186, 0.411195934, -0.122292288, -0.40747866, 0.911546886, 0.0551656857),C1 = CFrame.new(3.29253769, 0.00245666504, -1.02790737, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
948
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.130000025),CFrame = CFrame.new(-39.0396805, 1.93485165, 173.240723, 0.134159118, 0.86384666, -0.48556143, -1.78345172e-10, 0.489991099, 0.871727467, 0.990959346, -0.116950043, 0.065736711),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
949
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863846779, 0.489991099, -0.116950139, -0.48556149, 0.871727467, 0.0657367632),C1 = CFrame.new(5.05207825, 0.00245666504, -0.176268101, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
950
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-40.2101974, 1.23313034, 173.3992, 0.134159118, 0.88381362, -0.448190004, -1.78345172e-10, 0.452278793, 0.891876459, 0.990959346, -0.119653247, 0.0606772564),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
951
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.883813798, 0.452278793, -0.119653352, -0.448190093, 0.891876578, 0.0606773123),C1 = CFrame.new(3.84253311, 0.00245666504, -0.827910662, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
952
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-41.9794464, 0.607830167, 173.638718, 0.134159118, 0.966715217, -0.217858434, -1.78345172e-10, 0.219845936, 0.975534439, 0.990959346, -0.130876735, 0.0294943117),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
953
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.966715395, 0.219845951, -0.130876839, -0.217858493, 0.975534499, 0.0294943396),C1 = CFrame.new(2.03252411, 0.00245666504, -1.37789822, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
954
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.08000004, 0.0500000156),CFrame = CFrame.new(-42.5497932, 0.498351336, 173.715927, 0.134159118, 0.975934744, -0.171907738, -1.78345172e-10, 0.17347604, 0.984838009, 0.990959346, -0.132124841, 0.0232733674),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
955
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.975934923, 0.17347604, -0.132124975, -0.171907783, 0.984838068, 0.0232733898),C1 = CFrame.new(1.45289612, 0.00247192383, -1.46317959, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
956
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.92999995, 0.0500000156),CFrame = CFrame.new(-44.0665131, 1.84935343, 173.92128, 0.134159118, 0.99009037, -0.0414969437, -1.78345172e-10, 0.0418755226, 0.999122798, 0.990959346, -0.13404125, 0.00561797526),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
957
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(-0.019744873, 0.00245666504, -0.0492696762, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
958
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-42.5316505, 0.708744168, 173.713501, 0.134159118, 0.975934744, -0.171907738, -1.78345172e-10, 0.17347604, 0.984838009, 0.990959346, -0.132124841, 0.0232733674),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
959
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.975934923, 0.17347604, -0.132124975, -0.171907783, 0.984838068, 0.0232733898),C1 = CFrame.new(1.47999573, 0.00244140625, -1.25373793, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
960
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.079999879, 0.149999917, 0.100000016),CFrame = CFrame.new(-45.0332489, 1.85846865, 174.05719, 0.134159118, -0.0414969884, -0.99009037, -1.78345172e-10, 0.999122798, -0.0418755673, 0.990959346, 0.00561798224, 0.13404125),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
961
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, -0.0414970033, 0.999122858, 0.00561798783, -0.990090549, -0.0418755673, 0.134041384),C1 = CFrame.new(-0.994735718, -0.00253295898, 0.000717639923, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
962
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.52999997, 0.0500000156),CFrame = CFrame.new(-43.0991249, 1.12461293, 173.790329, 0.134159118, -0.041496899, -0.99009037, -1.78345172e-10, 0.999122798, -0.0418754779, 0.990959346, 0.0056179706, 0.13404125),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
963
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 1.60021901e-16, 0.990959764, -0.0414969139, 0.999122858, 0.00561797619, -0.990090549, -0.0418754779, 0.134041384),C1 = CFrame.new(0.925262451, 0.00244140625, -0.814253807, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
964
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-41.8233681, 0.848814011, 173.617599, 0.134159118, 0.949757814, -0.282773912, -1.78345172e-10, 0.285353601, 0.958422184, 0.990959346, -0.128580973, 0.0382827483),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
965
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.949757874, 0.285353601, -0.128581077, -0.282773942, 0.958422303, 0.0382827818),C1 = CFrame.new(2.19998169, 0.00245666504, -1.14372134, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
966
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 0.0799999386, 0.0500000156),CFrame = CFrame.new(-43.1370964, 2.03881836, 173.795456, 0.134159118, -0.041496899, -0.99009037, -1.78345172e-10, 0.999122798, -0.0418754779, 0.990959346, 0.0056179706, 0.13404125),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
967
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 1.60021901e-16, 0.990959764, -0.0414969139, 0.999122858, 0.00561797619, -0.990090549, -0.0418754779, 0.134041384),C1 = CFrame.new(0.925262451, 0.00245666504, 0.100754261, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
968
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-38.9191017, 1.90829134, 173.224411, 0.134159118, 0.863252759, -0.486616373, -1.78345172e-10, 0.491055667, 0.871128023, 0.990959346, -0.116869673, 0.0658795312),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
969
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863252878, 0.491055697, -0.11686977, -0.486616433, 0.871128082, 0.0658795834),C1 = CFrame.new(5.17253876, 0.00245666504, -0.207900524, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
970
Wedge = New("WedgePart",XBlade,"Wedge",{BrickColor = BrickColor.new("Pearl"),Material = Enum.Material.Neon,Size = Vector3.new(0.0799999461, 4.97000027, 1.66999996),CFrame = CFrame.new(-40.6379662, 1.33008528, 173.459518, 0.134159088, 0.990090489, -0.0414969511, -3.48056417e-10, 0.0418755226, 0.999122798, 0.990959585, -0.134041339, 0.00561797852),BottomSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
971
mot = New("Motor",Wedge,"mot",{Part0 = Wedge,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(3.41497803, 7.62939453e-05, -0.712950706, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
972
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-40.5334549, 1.31371856, 173.442963, 0.134159118, 0.888382077, -0.439065397, -1.78345172e-10, 0.443070978, 0.89648658, 0.990959346, -0.120271713, 0.059441939),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
973
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.888382196, 0.443070978, -0.120271817, -0.439065516, 0.89648664, 0.0594419949),C1 = CFrame.new(3.51998901, 0.00245666504, -0.733733177, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
974
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-39.8037491, 1.65485072, 173.344177, 0.134159118, 0.879470766, -0.456653416, -1.78345172e-10, 0.460819334, 0.887493968, 0.990959346, -0.1190653, 0.0618230514),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
975
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.879470944, 0.460819364, -0.119065404, -0.456653476, 0.887494028, 0.0618231073),C1 = CFrame.new(4.26998901, 0.00245666504, -0.423735619, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
976
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1.02999997, 0.0500000156),CFrame = CFrame.new(-38.633503, 2.03729534, 173.18576, 0.134159118, 0.863252759, -0.486616373, -1.78345172e-10, 0.491055667, 0.871128023, 0.990959346, -0.116869673, 0.0658795312),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
977
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863252878, 0.491055697, -0.11686977, -0.486616433, 0.871128082, 0.0658795834),C1 = CFrame.new(5.46588898, 0.00244140625, -0.0910782814, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
978
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.0500000156),CFrame = CFrame.new(-39.5588799, 1.55094099, 173.311005, 0.134159118, 0.863252759, -0.486616373, -1.78345172e-10, 0.491055667, 0.871128023, 0.990959346, -0.116869673, 0.0658795312),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
979
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.863252878, 0.491055697, -0.11686977, -0.486616433, 0.871128082, 0.0658795834),C1 = CFrame.new(4.51252747, 0.00247192383, -0.537901878, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
980
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Dark indigo"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 5, 0.0500000156),CFrame = CFrame.new(-40.6833267, 2.18262863, 173.463257, 0.134159118, 0.99009037, -0.0414969437, -1.78345172e-10, 0.0418755226, 0.999122798, 0.990959346, -0.13404125, 0.00561797526),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.239216, 0.0823529, 0.521569),})
981
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.990090549, 0.0418755226, -0.134041384, -0.0414969586, 0.999122858, 0.00561798085),C1 = CFrame.new(3.40526581, 0.00245666504, 0.140748024, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
982
Part = New("Part",XBlade,"Part",{BrickColor = BrickColor.new("Institutional white"),Material = Enum.Material.Neon,Size = Vector3.new(0.0899998769, 1, 0.360000014),CFrame = CFrame.new(-41.1286964, 1.07836723, 173.523544, 0.134159118, 0.920541048, -0.36688596, -1.78345172e-10, 0.37023294, 0.928938925, 0.990959346, -0.124625482, 0.0496700779),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.972549, 0.972549, 0.972549),})
983
mot = New("Motor",Part,"mot",{Part0 = Part,Part1 = Handle,C0 = CFrame.new(0, 0, 0, 0.134159088, 0, 0.990959764, 0.920541227, 0.37023297, -0.124625586, -0.36688602, 0.928938985, 0.0496701226),C1 = CFrame.new(2.9099884, 0.00245666504, -0.943724632, 0.990090549, 0.0418755226, -0.134041443, -0.134159133, -1.83043725e-09, -0.990959704, -0.0414969549, 0.999122798, 0.00561798038),})
984
985
986
HeartLocket = New("Model",char,"Heart Locket",{})
987
Heart = New("Hat",HeartLocket,"Heart",{})
988
Handle2 = New("Part",Heart,"Handle2",{BrickColor = BrickColor.new("Gold"),Material = Enum.Material.Neon,FormFactor = Enum.FormFactor.Custom,Size = Vector3.new(0.0500000007, 0.0500000007, 0.25),CFrame = CFrame.new(-42.7335167, 3.20922303, 175.050156, 0.14691636, -0.00137452304, -0.989146531, 0.00403097179, 0.999989152, -0.00079088629, 0.98914516, -0.00387096009, 0.14692001),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.937255, 0.721569, 0.219608),})
989
Mesh = New("SpecialMesh",Handle2,"Mesh",{Scale = Vector3.new(2, 2, 1),MeshId = "http://www.roblox.com/asset/?id=105992239",MeshType = Enum.MeshType.FileMesh,})
990
String = New("Part",HeartLocket,"String",{BrickColor = BrickColor.new("Burnt Sienna"),FormFactor = Enum.FormFactor.Symmetric,Size = Vector3.new(2, 2, 2),CFrame = CFrame.new(-43.4914551, 3.64470506, 175.102722, 0.0703944117, 0, -0.997525692, 0, 1, 0, 0.997519255, 0, 0.0703952685),BottomSurface = Enum.SurfaceType.Smooth,TopSurface = Enum.SurfaceType.Smooth,Color = Color3.new(0.415686, 0.223529, 0.0352941),})
991
Mesh = New("SpecialMesh",String,"Mesh",{Scale = Vector3.new(1.10000002, 1, 0.949999988),VertexColor = Vector3.new(0, 0, 0),MeshId = "http://www.roblox.com/asset/?id=34237901",MeshType = Enum.MeshType.FileMesh,})
992
993
994
for _, v in pairs(XBlade:GetChildren()) do
995
    if v:IsA'BasePart' then
996
    v.CanCollide = false
997
end
998
end
999
1000
1001
1002
local NewInstance = function(instance,parent,properties)
1003
	local inst = Instance.new(instance,parent)
1004
	if(properties)then
1005
		for i,v in next, properties do
1006
			pcall(function() inst[i] = v end)
1007
		end
1008
	end
1009
	return inst;
1010
end
1011
local HW = NewInstance('Weld',char,{Part0=ra,Part1=Handle,C0 = CFrame.new(0,-.9,0)*CFrame.Angles(math.rad(-90),math.rad(0),math.rad(90))})
1012
local Locket = NewInstance('Weld',char,{Part0=hed,Part1=String,C0 = CFrame.new(0,-.9,0.1)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))})
1013
local HeartL = NewInstance('Weld',char,{Part0=hed,Part1=Handle2,C0 = CFrame.new(0,-1.3,-0.7)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))})
1014
1015
1016
1017
1018
--Chat Function--
1019
function chatfunc(text,waitt)
1020
local chat = coroutine.wrap(function()
1021
if char:FindFirstChild("TalkingBillBoard")~= nil then
1022
char:FindFirstChild("TalkingBillBoard").Parent = nil
1023
end
1024
local naeeym2 = Instance.new("BillboardGui",char)
1025
naeeym2.Size = UDim2.new(0,100,0,40)
1026
naeeym2.StudsOffset = Vector3.new(0,2,0)
1027
naeeym2.Adornee = char.Head
1028
naeeym2.Name = "TalkingBillBoard"
1029
naeeym2.AlwaysOnTop = true
1030
local tecks2 = Instance.new("TextLabel",naeeym2)
1031
tecks2.BackgroundTransparency = 1
1032
tecks2.BorderSizePixel = 0
1033
tecks2.Text = ""
1034
tecks2.Font = "Code"
1035
tecks2.TextSize = 30
1036
tecks2.TextStrokeTransparency = 0
1037
tecks2.TextColor3 = Color3.fromRGB(255,255,255)
1038
tecks2.TextStrokeColor3 = Color3.fromRGB(98, 37, 209)
1039
tecks2.Size = UDim2.new(1,0,0.5,0)
1040
for i = 1,string.len(text),1 do
1041
tecks2.Text = string.sub(text,1,i)
1042
swait(3)
1043
end
1044
wait(waitt/10)
1045
coroutine.resume(coroutine.create(function()
1046
	for i = 1, 10 do
1047
		tecks2.TextTransparency = tecks2.TextTransparency + 0.1
1048
		swait()
1049
	end
1050
	naeeym2:Destroy()
1051
end))
1052
end)
1053
chat()
1054
end
1055
1056
local asd = Instance.new("ParticleEmitter")
1057
asd.Color = ColorSequence.new(Color3.new(1, 0, 0), Color3.new(.5, 0, 0))
1058
asd.LightEmission = .1
1059
asd.Size = NumberSequence.new(0.2)
1060
asd.Texture = "http://www.roblox.com/asset/?ID=291880914"
1061
aaa = NumberSequence.new({NumberSequenceKeypoint.new(0, 0.2),NumberSequenceKeypoint.new(1, 5)})
1062
bbb = NumberSequence.new({NumberSequenceKeypoint.new(0, 1),NumberSequenceKeypoint.new(0.0636, 0), NumberSequenceKeypoint.new(1, 1)})
1063
asd.Transparency = bbb
1064
asd.Size = aaa
1065
asd.ZOffset = .9
1066
asd.Acceleration = Vector3.new(0, -5, 0)
1067
asd.LockedToPart = false
1068
asd.EmissionDirection = "Back"
1069
asd.Lifetime = NumberRange.new(1, 2)
1070
asd.Rotation = NumberRange.new(-100, 100)
1071
asd.RotSpeed = NumberRange.new(-100, 100)
1072
asd.Speed = NumberRange.new(2)
1073
asd.Enabled = false
1074
asd.VelocitySpread = 10000
1075
1076
function bleed(victim,amount)
1077
local prtcl = asd:Clone()
1078
prtcl.Parent = victim
1079
prtcl:Emit(amount)
1080
end
1081
1082
1083
function CreateMesh(MESH, PARENT, MESHTYPE, MESHID, TEXTUREID, SCALE, OFFSET)
1084
	local NEWMESH = Instance.new(MESH)
1085
	if MESH == "SpecialMesh" then
1086
		NEWMESH.MeshType = MESHTYPE
1087
		if MESHID ~= "nil" and MESHID ~= "" then
1088
			NEWMESH.MeshId = "http://www.roblox.com/asset/?id="..MESHID
1089
		end
1090
		if TEXTUREID ~= "nil" and TEXTUREID ~= "" then
1091
			NEWMESH.TextureId = "http://www.roblox.com/asset/?id="..TEXTUREID
1092
		end
1093
	end
1094
	NEWMESH.Offset = OFFSET or Vector3.new(0, 0, 0)
1095
	NEWMESH.Scale = SCALE
1096
	NEWMESH.Parent = PARENT
1097
	return NEWMESH
1098
end
1099
1100
function CreatePart(FORMFACTOR, PARENT, MATERIAL, REFLECTANCE, TRANSPARENCY, BRICKCOLOR, NAME, SIZE, ANCHOR)
1101
	local NEWPART = Instance.new("Part")
1102
	NEWPART.formFactor = FORMFACTOR
1103
	NEWPART.Reflectance = REFLECTANCE
1104
	NEWPART.Transparency = TRANSPARENCY
1105
	NEWPART.CanCollide = false
1106
	NEWPART.Locked = true
1107
	NEWPART.Anchored = true
1108
	if ANCHOR == false then
1109
		NEWPART.Anchored = false
1110
	end
1111
	NEWPART.BrickColor = BrickColor.new(tostring(BRICKCOLOR))
1112
	NEWPART.Name = NAME
1113
	NEWPART.Size = SIZE
1114
	NEWPART.Position = tors.Position
1115
	NEWPART.Material = MATERIAL
1116
	NEWPART:BreakJoints()
1117
	NEWPART.Parent = PARENT
1118
	return NEWPART
1119
end
1120
1121
local function weldBetween(a, b)
1122
	    local weldd = Instance.new("ManualWeld")
1123
	    weldd.Part0 = a
1124
	    weldd.Part1 = b
1125
	    weldd.C0 = CFrame.new()
1126
	    weldd.C1 = b.CFrame:inverse() * a.CFrame
1127
	    weldd.Parent = a
1128
	    return weldd
1129
	end
1130
1131
function createaccessory(attachmentpart,mesh,texture,scale,offset,color)
1132
local acs = Instance.new("Part")
1133
acs.CanCollide = false
1134
acs.Anchored = false
1135
acs.Size = Vector3.new(0,0,0)
1136
acs.CFrame = attachmentpart.CFrame
1137
acs.Parent = char
1138
acs.BrickColor = color
1139
    local meshs = Instance.new("SpecialMesh")
1140
    meshs.MeshId = mesh
1141
    meshs.TextureId = texture
1142
    meshs.Parent = acs
1143
    meshs.Scale = scale
1144
    meshs.Offset = offset
1145
weldBetween(attachmentpart,acs)
1146
end
1147
1148
local accessories = Instance.new("Folder",char)
1149
accessories.Name = "Add-ons"
1150
1151
function createbodypart(TYPE,COLOR,PART,OFFSET,SIZE)
1152
if TYPE == "Gem" then
1153
	local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", Vector3.new(0,0,0))
1154
	acs.Anchored = false
1155
    acs.CanCollide = false
1156
	acs.CFrame = PART.CFrame
1157
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "9756362", "", SIZE, OFFSET)
1158
weldBetween(PART,acs)
1159
elseif TYPE == "Skull" then
1160
	local acs = CreatePart(3, accessories, "Plastic", 0, 0, COLOR, "Part", Vector3.new(0,0,0))
1161
	acs.Anchored = false
1162
    acs.CanCollide = false
1163
	acs.CFrame = PART.CFrame
1164
	local acs2 = CreateMesh("SpecialMesh", acs, "FileMesh", "4770583", "", SIZE, OFFSET)
1165
weldBetween(PART,acs)
1166
elseif TYPE == "Eye" then
1167
	local acs = CreatePart(3, accessories, "Neon", 0, 0, COLOR, "Part", Vector3.new(0,0,0))
1168
	acs.Anchored = false
1169
    acs.CanCollide = false
1170
	acs.CFrame = PART.CFrame
1171
	local acs2 = CreateMesh("SpecialMesh", acs, "Sphere", "", "", SIZE, OFFSET)
1172
weldBetween(PART,acs)
1173
end
1174
end
1175
1176
createbodypart("Eye","Really black",hed,Vector3.new(0.2, 0.17, -0.55),Vector3.new(3,5,3))
1177
createbodypart("Eye","White",hed,Vector3.new(-0.2, 0.17, -0.55),Vector3.new(3,5,3))
1178
1179
--Extras--
1180
q = char:GetChildren()
1181
		for u = 1, #q do
1182
		if q[u].ClassName == "Accessory" or q[u].ClassName == "Hat" then
1183
				q[u]:remove()
1184
				elseif q[u].ClassName == "CharacterMesh" then
1185
				q[u]:remove()
1186
			elseif q[u].ClassName == "ShirtGraphic" then
1187
				q[u]:remove()
1188
	elseif q[u].ClassName == "Shirt" then
1189
		q[u]:Destroy()
1190
elseif q[u].ClassName == "Pants" then
1191
	q[u]:Destroy()
1192
	end
1193
end	
1194
local top = Instance.new("Shirt")
1195
top.ShirtTemplate = "rbxassetid://831629350"
1196
top.Parent = char
1197
local bottom = Instance.new("Pants")
1198
bottom.PantsTemplate = "rbxassetid://227915108"
1199
bottom.Parent = char
1200
1201
local BodyColors =  char:FindFirstChildOfClass"BodyColors"
1202
if BodyColors then
1203
	BodyColors.HeadColor = BrickColor.new"Institutional white"
1204
	BodyColors.TorsoColor = BrickColor.new"Institutional white"
1205
	BodyColors.LeftArmColor = BrickColor.new"Institutional white"
1206
	BodyColors.RightArmColor = BrickColor.new"Institutional white"
1207
	BodyColors.LeftLegColor = BrickColor.new"Institutional white"
1208
	BodyColors.RightLegColor = BrickColor.new"Institutional white"
1209
end
1210
1211
--Scarfs--
1212
local Blobby = Instance.new("Part", char)
1213
Blobby.Name = "Blob"
1214
Blobby.CanCollide = false
1215
Blobby.BrickColor = BrickColor.new("Institutional white")
1216
Blobby.Transparency = 0
1217
Blobby.Material = "Plastic"
1218
Blobby.Size = Vector3.new(1, 1, 2)
1219
Blobby.TopSurface = Enum.SurfaceType.Smooth
1220
Blobby.BottomSurface = Enum.SurfaceType.Smooth
1221
1222
local Weld = Instance.new("Weld", Blobby)
1223
Weld.Part0 = hed
1224
Weld.Part1 = Blobby
1225
Weld.C1 = CFrame.new(0, 1.1, 0)
1226
Weld.C0 = CFrame.Angles(math.rad(0),math.rad(180),0)
1227
1228
local M2 = Instance.new("SpecialMesh")
1229
M2.Parent = Blobby
1230
M2.MeshId = "http://www.roblox.com/asset/?id=448710145"
1231
M2.Scale = Vector3.new(0.8, 0.8, 0.8)
1232
1233
local Blobby2 = Instance.new("Part", char)
1234
Blobby2.Name = "Blob"
1235
Blobby2.CanCollide = false
1236
Blobby2.BrickColor = BrickColor.new("Really black")
1237
Blobby2.Transparency = 0
1238
Blobby2.Material = "Plastic"
1239
Blobby2.Size = Vector3.new(1, 1, 2)
1240
Blobby2.TopSurface = Enum.SurfaceType.Smooth
1241
Blobby2.BottomSurface = Enum.SurfaceType.Smooth
1242
1243
local Weld = Instance.new("Weld", Blobby2)
1244
Weld.Part0 = hed
1245
Weld.Part1 = Blobby2
1246
Weld.C1 = CFrame.new(0, 1.2, 0)
1247
Weld.C0 = CFrame.Angles(math.rad(0),math.rad(180),0)
1248
1249
local M2 = Instance.new("SpecialMesh")
1250
M2.Parent = Blobby2
1251
M2.MeshId = "http://www.roblox.com/asset/?id=448710145"
1252
M2.Scale = Vector3.new(0.8, 0.8, 0.8)
1253
1254
--Hair--
1255
local Hair = Instance.new("Part", char)
1256
Hair.Name = "Hair"
1257
Hair.CanCollide = false
1258
Hair.BrickColor = BrickColor.new("Institutional white")
1259
Hair.Transparency = 0
1260
Hair.Material = "Plastic"
1261
Hair.Size = Vector3.new(1, 1, 2)
1262
Hair.TopSurface = Enum.SurfaceType.Smooth
1263
Hair.BottomSurface = Enum.SurfaceType.Smooth
1264
1265
local Weld = Instance.new("Weld", Hair)
1266
Weld.Part0 = hed
1267
Weld.Part1 = Hair
1268
Weld.C1 = CFrame.new(0, -.5, 0)
1269
Weld.C0 = CFrame.Angles(math.rad(0),math.rad(0),0)
1270
1271
local M2 = Instance.new("SpecialMesh")
1272
M2.Parent = Hair
1273
M2.MeshId = "http://www.roblox.com/asset/?id=346578029"
1274
M2.Scale = Vector3.new(1.2, 1.1, 1.1)
1275
1276
--Hood--
1277
local Hood = Instance.new("Part", char)
1278
Hood.Name = "Hood"
1279
Hood.CanCollide = false
1280
Hood.BrickColor = BrickColor.new("Institutional white")
1281
Hood.Transparency = 0
1282
Hood.Material = "Plastic"
1283
Hood.Size = Vector3.new(1, 1, 2)
1284
Hood.TopSurface = Enum.SurfaceType.Smooth
1285
Hood.BottomSurface = Enum.SurfaceType.Smooth
1286
1287
local Weld = Instance.new("Weld", Hood)
1288
Weld.Part0 = tors
1289
Weld.Part1 = Hood
1290
Weld.C1 = CFrame.new(0, .4, -.9)
1291
Weld.C0 = CFrame.Angles(math.rad(-0),math.rad(0),math.rad(180))
1292
1293
local M2 = Instance.new("SpecialMesh")
1294
M2.Parent = Hood
1295
M2.MeshId = "http://www.roblox.com/asset/?id=18010902"
1296
M2.Scale = Vector3.new(0.922, 0.922, 0.922)
1297
hed.face.Texture = "http://www.roblox.com/asset/?id=176217905"
1298
1299
1300
1301
Slashy = Instance.new("Sound", ra)
1302
Slashy.Volume = 5
1303
Slashy.Pitch = 1
1304
Slashy.SoundId = "http://www.roblox.com/asset/?id=978101945"
1305
Slashy.Looped = false
1306
1307
local VALUE1 = false
1308
local sine=0
1309
for _, v in pairs(XBlade:GetChildren()) do
1310
    if v:IsA'BasePart' then
1311
    v.CanCollide = false
1312
	v.Transparency = 1
1313
end
1314
end
1315
function intro()
1316
attack = true
1317
chatfunc("Finally, after all this time.",3)
1318
hum.WalkSpeed = 0
1319
for i = 0,6,0.1 do
1320
	swait()
1321
	rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
1322
tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1323
RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1324
LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1325
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1)
1326
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.1)
1327
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(90),math.rad(0)), 0.15)
1328
end
1329
wait(2.5)
1330
chatfunc("At last I have a human soul.",3)
1331
for i = 0,6,0.1 do
1332
	swait()
1333
	rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
1334
tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1335
RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1336
LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1337
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1)
1338
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.1)
1339
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
1340
end
1341
wait(2.5)
1342
chatfunc("And finally not attached to that dumb Skeleton.",3)
1343
for i = 0,6,0.1 do
1344
	swait()
1345
	rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
1346
tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1347
RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1348
LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1349
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(5)), 0.1)
1350
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.1)
1351
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
1352
end
1353
wait(2.5)
1354
chatfunc("You'll get to live long enough to see something special.",5)
1355
1356
for i = 0,6,0.1 do
1357
swait()
1358
for _, v in pairs(XBlade:GetChildren()) do
1359
    if v:IsA'BasePart' then
1360
    v.CanCollide = false
1361
	v.Transparency = v.Transparency - .3
1362
end
1363
end
1364
rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
1365
tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1366
RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1367
LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1368
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(5)), 0.1)
1369
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-5)), 0.1)
1370
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(180)), 0.15)
1371
end
1372
wait(4.5)
1373
chatfunc("Welcome my friend, to the XEvent.",3)
1374
wait(2.5)
1375
CreateSound("367453005", hed, 10, 1)
1376
ShadowHead = New("Part",char,"ShadowHead",{CanCollide = false,BrickColor = BrickColor.new("Really black"),Size = Vector3.new(1.20000005, 0.600000024, 1),CFrame = CFrame.new(68.5999985, 0.700013041, 9.89999962, 1, 0, 0, 0, 1, 0, 0, 0, 1),Color = Color3.new(0.0666667, 0.0666667, 0.0666667),})
1377
Mesh = New("SpecialMesh",ShadowHead,"Mesh",{Scale = Vector3.new(1.25999999, 1.5, 1.25999999),})
1378
Weld = New("Weld",ShadowHead,"mot",{Part0 = ShadowHead,Part1 = char.Head,C1 = CFrame.new(0, 0.200000048, 0, 1, 0, 0, 0, 1, 0, 0, 0, 1),})
1379
Effects.Ring.Create(BrickColor.new("Institutional white"), tors.CFrame*angles(math.rad(90),math.rad(0),math.rad(0)), 2, 2, 2, 7.6, 7.6, 7.6, 0.03)
1380
Effects.Sphere.Create(maincolor, tors.CFrame, 2, 2, 2, 17.6, 17.6, 17.6, 0.02)
1381
Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 10.6, 10.6, 10.6, 0.02)
1382
Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 14.6, 14.6, 14.6, 0.02)
1383
Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 16.6, 16.6, 16.6, 0.02)
1384
Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 5.6, 5.6, 5.6, 0.02)
1385
local bigboi = Instance.new("Sound",tors)
1386
bigboi.SoundId = "rbxassetid://736980589"
1387
bigboi.Volume = 2.5
1388
bigboi.Looped = true
1389
bigboi.Pitch = 1
1390
bigboi:Play()
1391
attack = false
1392
VALUE1 = true
1393
hum.WalkSpeed = 28
1394
end
1395
1396
1397
1398
1399
1400
function NothingPersonal()
1401
	if mouse.Target.Parent ~= char and mouse.Target.Parent.Parent ~= char and mouse.Target.Parent:FindFirstChildOfClass("Humanoid") ~= nil then
1402
		local HITBODY = mouse.Target.Parent
1403
		local TORS = HITBODY:FindFirstChild("Torso") or HITBODY:FindFirstChild("UpperTorso")
1404
		local HUMAN = mouse.Target.Parent:FindFirstChildOfClass("Humanoid")
1405
		if TORS ~= nil and HUMAN ~= nil then
1406
			attack = true
1407
			hum.WalkSpeed = 0
1408
			root.CFrame = TORS.CFrame * CFrame.new(-1,0,6)
1409
			TORS.Anchored = true
1410
			CreateSound("367453005", hed, 10, 1)
1411
			Effects.Sphere.Create(maincolor, tors.CFrame * CFrame.new(0, -1.2, 0), 100, 100, 100, 15, 15, 15, .1, .1)
1412
			for i = 0,6,0.1 do
1413
	swait()
1414
	rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(-20)),0.15)
1415
tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1416
RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1417
LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1418
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(125)), 0.1)
1419
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(-15)), 0.1)
1420
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(90),math.rad(0)), 0.15)
1421
			end
1422
			CreateSound("357417055", hed, 10, 1)
1423
			for i = 0,4,0.1 do
1424
	rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))*angles(math.rad(5),math.rad(0),math.rad(45)),0.15)
1425
tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(0),math.rad(0),math.rad(-50)),.3)
1426
RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*RHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1427
LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0.025*math.cos(sine/20))*LHCF*angles(math.rad(-2),math.rad(0),math.rad(0)),0.15)
1428
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(90), math.rad(0), math.rad(15)), 0.1)
1429
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(0), math.rad(-15)), 0.1)
1430
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(90),math.rad(0)), 0.15)
1431
			end
1432
			wait(2.5)
1433
			CreateSound("623904185", hed, 10, 1)
1434
			HITBODY:BreakJoints()
1435
			TORS.Anchored = false
1436
			attack = false
1437
			hum.WalkSpeed = 28
1438
			bleed(TORS,25)
1439
			end
1440
		end
1441
end
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
---ATTACKS N STUFF
1455
function HitboxFunction(Pose, lifetime, siz1, siz2, siz3, Radie, Min, Max, kb, atype)
1456
  Hitboxpart = Instance.new("Part", EffectModel)
1457
  RemoveOutlines(Hitboxpart)
1458
  Hitboxpart.Size = Vector3.new(siz1, siz2, siz3)
1459
  Hitboxpart.CanCollide = false
1460
  Hitboxpart.Transparency = 1
1461
  Hitboxpart.Anchored = true
1462
  Hitboxpart.CFrame = Pose
1463
  game:GetService("Debris"):AddItem(Hitboxpart, lifetime)
1464
  MagniDamage(Hitboxpart, Radie, Min, Max, kb, atype)
1465
end
1466
wait2 = false
1467
combo = 1
1468
mouse.Button1Down:connect(function(key)
1469
  if attack == false then
1470
    attack = true
1471
    hum.WalkSpeed = 3.01
1472
    if combo == 1 and wait2 == false then
1473
      wait2 = true
1474
      for i = 0, 1.2, 0.1 do
1475
        swait()
1476
        rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-15)), 0.3)
1477
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1478
        RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(175), math.rad(0), math.rad(0)), 0.1)
1479
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
1480
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-0)), 0.3)
1481
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(15), math.rad(-20)), 0.3)
1482
      end
1483
Effects.Ring.Create(BrickColor.new("Institutional white"), ra.CFrame, 2, 2, 2, 0.1, 0.1, 0.1, 0.03)
1484
Slashy:Play()
1485
      HitboxFunction(Wedge.CFrame * CFrame.new(0, 0, -.9), 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
1486
      for i = 0, 1.2, 0.1 do
1487
        swait()
1488
        rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(15)), 0.3)
1489
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1490
        RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -0.8) * angles(math.rad(-25), math.rad(0), math.rad(0)), 0.1)
1491
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
1492
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-15), math.rad(-20)), 0.3)
1493
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(-0), math.rad(0)), 0.3)
1494
      end
1495
      combo = 2
1496
    end
1497
    if combo == 2 and wait2 == false then
1498
      wait2 = true
1499
      HitboxFunction(ll.CFrame * CFrame.new(0, 0, .4), 0.01, 1, 1, 1, 7, 10, 20, 3, "Normal")
1500
      for i = 0, 1.4, 0.1 do
1501
        swait()
1502
       rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(-20),math.rad(0),math.rad(0)),0.15)
1503
	tors.Neck.C0=clerp(tors.Neck.C0,necko*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),0.15)
1504
	RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(10)), 0.3)
1505
	LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.5,0)*angles(math.rad(-25),math.rad(0),math.rad(-4.5)),0.15)
1506
	RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(90),math.rad(90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
1507
	LH.C0=clerp(LH.C0,cf(-1,-1,-1)*angles(math.rad(-60),math.rad(-90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
1508
      end
1509
      combo = 3
1510
    end
1511
    if combo == 3 and wait2 == false then
1512
      wait2 = true
1513
1514
      for i = 0, 1.2, 0.1 do
1515
        swait()
1516
        rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(-5), math.rad(0), math.rad(-15)), 0.3)
1517
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1518
        RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0.8) * angles(math.rad(0), math.rad(0), math.rad(50)), 0.1)
1519
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
1520
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1, -0.2) * RHCF * angles(math.rad(0), math.rad(0), math.rad(-0)), 0.3)
1521
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(15), math.rad(-20)), 0.3)
1522
      end
1523
      HitboxFunction(Wedge.CFrame * CFrame.new(0, 0, -.9), 0.01, 1, 1, 1, 7, 24, 36, 3, "Normal")
1524
  Effects.Ring.Create(BrickColor.new("Institutional white"), Wedge.CFrame, 2, 2, 2, 0.1, 0.1, 0.1, 0.03)
1525
Slashy:Play()
1526
      for i = 0, 1.2, 0.1 do
1527
        swait()
1528
        rootj.C0 = clerp(rootj.C0, RootCF * CFrame.new(0, -0.5, 0) * angles(math.rad(5), math.rad(0), math.rad(30)), 0.3)
1529
        tors.Neck.C0 = clerp(tors.Neck.C0, necko * angles(math.rad(0), math.rad(0), math.rad(0)), 0.1)
1530
        RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, -1) * angles(math.rad(55), math.rad(0), math.rad(40)), 0.1)
1531
        LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-25), math.rad(0), math.rad(-10)), 0.3)
1532
        RH.C0 = clerp(RH.C0, CFrame.new(1, -1, 0) * RHCF * angles(math.rad(0), math.rad(-15), math.rad(-20)), 0.3)
1533
        LH.C0 = clerp(LH.C0, CFrame.new(-1, -1, 0) * LHCF * angles(math.rad(0), math.rad(-0), math.rad(0)), 0.3)
1534
      end
1535
      combo = 1
1536
    end
1537
    hum.WalkSpeed = 16
1538
    wait2 = false
1539
    attack = false
1540
  end
1541
end)
1542
1543
1544
1545
1546
1547
1548
function DashingSpin()
1549
			attack = true
1550
			hum.WalkSpeed = 0
1551
			CreateSound("707957812", workspace, 5, 1)
1552
Effects.Block.Create(BrickColor.new("Institutional white"), tors.CFrame, 2, 2, 2, 3.6, 3.6, 3.6, 0.05)
1553
    Effects.Block.Create(BrickColor.new("Really black"), tors.CFrame, 2, 2, 2, 3.4, 3.4, 3.4, 0.03)
1554
Effects.Block.Create(BrickColor.new("Institutional white"), tors.CFrame, 2, 2, 2, 6.6, 6.6, 6.6, 0.05)
1555
    Effects.Block.Create(BrickColor.new("Really black"), tors.CFrame, 2, 2, 2, 6.4, 6.4, 6.4, 0.05)
1556
 Effects.Block.Create(BrickColor.new("Really black"), tors.CFrame, 2, 2, 2, 10.5, 10.5, 10.5, 0.05)
1557
1558
Effects.Ring.Create(BrickColor.new("Institutional white"), tors.CFrame, 2, 2, 2, 7.6, 7.6, 7.6, 0.03)
1559
Effects.Sphere.Create(maincolor, tors.CFrame, 2, 2, 2, 17.6, 17.6, 17.6, 0.02)
1560
Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 10.6, 10.6, 10.6, 0.02)
1561
Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 14.6, 14.6, 14.6, 0.02)
1562
Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 16.6, 16.6, 16.6, 0.02)
1563
Effects.Sphere.Create(BrickColor.new("Dark indigo"), tors.CFrame, 2, 2, 2, 5.6, 5.6, 5.6, 0.02)
1564
			root.CFrame = root.CFrame + root.CFrame.lookVector * 35
1565
			for i = 0,6,0.1 do
1566
--Not to put a swait here this is going to be like, you know what just dont put a swait kthx 
1567
rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-1.25)*angles(math.rad(0),math.rad(0),math.rad(0)),0.15)
1568
tors.Neck.C0=clerp(tors.Neck.C0,necko*cf(0,0,0)*angles(math.rad(30),math.rad(0),math.rad(0)),0.15)
1569
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(110), math.rad(90)), 0.1)
1570
LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.4,0)*angles(math.rad(0),math.rad(0),math.rad(-4.5)),0.15)
1571
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
1572
LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
1573
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
1574
			end
1575
			for i = 0,9,0.1 do
1576
				swait()
1577
				MagniDamage(Wedge, 12, 6, 12, 10, "Normal")
1578
rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-1.25+0.45*i)*angles(math.rad(0),math.rad(0),math.rad(0-255.45*i)),0.15)
1579
tors.Neck.C0=clerp(tors.Neck.C0,necko*cf(0,0,0)*angles(math.rad(30-5.35*i),math.rad(0),math.rad(0)),0.15)
1580
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.05*math.sin(sine/30), 0) * angles(math.rad(0), math.rad(110-25.35*i), math.rad(90)), 0.1)
1581
LW.C0=clerp(LW.C0,CFrame.new(-1.5,0.4,0)*angles(math.rad(0+17.35*i),math.rad(0-25.35*i),math.rad(-4.5)),0.15)
1582
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(-60+10.35*i),math.rad(90),math.rad(0))*angles(math.rad(-2.5),math.rad(0),math.rad(0)),0.15)
1583
LH.C0=clerp(LH.C0,cf(-0.75,0.25,-1)*angles(math.rad(-15),math.rad(-90),math.rad(0))*angles(math.rad(-15),math.rad(0),math.rad(0)),0.15)
1584
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
1585
			end
1586
			attack = false
1587
			hum.WalkSpeed = 28
1588
end
1589
1590
1591
1592
1593
1594
1595
1596
mouse.KeyDown:connect(function(key)
1597
	if attack == false then
1598
	if key == 'q' then
1599
		NothingPersonal()
1600
	elseif key == 'c' then
1601
		CreateSound("367453005", hed, 10, 1)
1602
		Effects.Sphere.Create(maincolor, tors.CFrame * CFrame.new(0, -1.2, 0), 100, 100, 100, 15, 15, 15, .1, .1)
1603
	    root.CFrame = CFrame.new(CFrame.new(mouse.Hit.p)*CFrame.new(0,2.8,0).p,root.Position)
1604
		Effects.Sphere.Create(maincolor, tors.CFrame * CFrame.new(0, -1.2, 0), 100, 100, 100, 15, 15, 15, .1, .1)
1605
	elseif key == 'f' then
1606
		DashingSpin()
1607
	elseif key == 't' then
1608
		CreateSound("649634100", hed, 10, .89)
1609
		end
1610
	end
1611
end)
1612
1613
1614
1615
ff = Instance.new("ForceField",char)
1616
ff.Visible = false
1617
1618
local idle=0
1619
local change = 1
1620
local val = 0
1621
toim = 0
1622
hum.Animator.Parent = nil
1623
idleanim=.4
1624
while true do
1625
swait()
1626
hum.MaxHealth = math.huge
1627
hum.Health = math.huge
1628
hum.Name = "TheXEvent"
1629
sine = sine + change
1630
local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude 
1631
local velderp=root.Velocity.y
1632
hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
1633
if equipped==true or equipped==false then
1634
if attack==false then
1635
idle=idle+1
1636
else
1637
idle=0
1638
end
1639
if root.Velocity.y > 1 and hitfloor==nil then 
1640
Anim="Jump"
1641
if attack==false then
1642
rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))* angles(math.rad(10),math.rad(0),math.rad(0)),.3)
1643
tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1644
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
1645
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
1646
LH.C0=clerp(LH.C0,cf(-1,-.9-0.1*math.cos(sine/20),-0.3)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15)
1647
RH.C0=clerp(RH.C0,cf(1,-1,0.3)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
1648
end
1649
elseif root.Velocity.y < -1 and hitfloor==nil then 
1650
Anim="Fall"
1651
if attack==false then
1652
rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,-0.1+0.1*math.cos(sine/20))* angles(math.rad(-5),math.rad(0),math.rad(0)),.3)
1653
tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1654
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(90)), 0.3)
1655
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-30), math.rad(0), math.rad(-90)), 0.3)
1656
LH.C0=clerp(LH.C0,cf(-1,-.4-0.1*math.cos(sine/20),-.6)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15)
1657
RH.C0=clerp(RH.C0,cf(1,-.3-0.1*math.cos(sine/20),-.6)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
1658
end
1659
elseif torvel<1 and hitfloor~=nil then
1660
Anim="Idle"
1661
change = 1
1662
if attack==false then
1663
rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0.6+0.5*math.cos(sine/20))*angles(math.rad(0),math.rad(0),math.rad(43)),0.15)
1664
tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5*math.cos(sine/20)),math.rad(0),math.rad(-25)),.3)
1665
RH.C0=clerp(RH.C0,cf(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
1666
LH.C0=clerp(LH.C0,cf(-1,-.6-0.1*math.cos(sine/20),-.085)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(0)),0.15)
1667
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0),math.rad(-40), math.rad(15)), 0.1)
1668
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0), math.rad(-0), math.rad(-10)), 0.1)
1669
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
1670
end
1671
1672
elseif (tors.Velocity).magnitude < 50 and hitfloor ~= nil then
1673
Anim="Walk"
1674
change = 1
1675
if attack==false then
1676
rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,0.6+0.5*math.cos(sine/20))*angles(math.rad(20),math.rad(0),math.rad(0)),0.15)
1677
tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(-2.5*math.cos(sine/20)),math.rad(0),math.rad(-0)),.3)
1678
RH.C0=clerp(RH.C0,cf(1,-.9-0.1*math.cos(sine/20),.025*math.cos(sine/20))*RHCF*angles(math.rad(-5),math.rad(0),math.rad(0)),0.15)
1679
LH.C0=clerp(LH.C0,cf(-1,-.4-0.1*math.cos(sine/20),-.3)*LHCF*angles(math.rad(-5),math.rad(-0),math.rad(20)),0.15)
1680
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0),math.rad(-5), math.rad(15)), 0.1)
1681
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5+0.1*math.sin(sine/30), 0.055*math.cos(sine/20)) * angles(math.rad(0), math.rad(-0), math.rad(-10)), 0.1)
1682
HW.C0 = clerp(HW.C0, CFrame.new(0,-.9,0)*angles (math.rad(-90),math.rad(0),math.rad(90)), 0.15)
1683
end
1684
end
1685
end
1686
1687
if 0 < #Effects then
1688
    for e = 1, #Effects do
1689
      if Effects[e] ~= nil then
1690
        local Thing = Effects[e]
1691
        if Thing ~= nil then
1692
          local Part = Thing[1]
1693
          local Mode = Thing[2]
1694
          local Delay = Thing[3]
1695
          local IncX = Thing[4]
1696
          local IncY = Thing[5]
1697
          local IncZ = Thing[6]
1698
          if 1 >= Thing[1].Transparency then
1699
            if Thing[2] == "Block1" then
1700
              Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1701
              local Mesh = Thing[1].Mesh
1702
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1703
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1704
            elseif Thing[2] == "Block2" then
1705
              Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1706
              local Mesh = Thing[7]
1707
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1708
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1709
            elseif Thing[2] == "Block3" then
1710
              Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50)) + Vector3.new(0, 0.15, 0)
1711
              local Mesh = Thing[7]
1712
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1713
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1714
            elseif Thing[2] == "Cylinder" then
1715
              local Mesh = Thing[1].Mesh
1716
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1717
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1718
            elseif Thing[2] == "Blood" then
1719
              local Mesh = Thing[7]
1720
              Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1721
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1722
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1723
            elseif Thing[2] == "Elec" then
1724
              local Mesh = Thing[1].Mesh
1725
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1726
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1727
            elseif Thing[2] == "Disappear" then
1728
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1729
            elseif Thing[2] == "Shatter" then
1730
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1731
              Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1732
              Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1733
              Thing[6] = Thing[6] + Thing[5]
1734
            end
1735
          else
1736
            Part.Parent = nil
1737
            table.remove(Effects, e)
1738
          end
1739
        end
1740
      end
1741
    end
1742
  end
1743
if VALUE1 == false and attack == false then
1744
		intro()
1745
	end
1746
end