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