View difference between Paste ID: BebbcbhC and DqNGev2i
SHOW: | | - or go back to the newest paste.
1
--Sans?
2
3
4
Player = game:GetService("Players").LocalPlayer
5
pls = game:GetService'Players'
6
rs = game:GetService'RunService'
7
uinps = game:GetService'UserInputService'
8
lp = pls.LocalPlayer
9
c = lp.Character
10
human = c.Humanoid
11
PlayerGui = Player.PlayerGui
12
Cam = workspace.CurrentCamera
13
Backpack = Player.Backpack
14
Character = Player.Character
15
Humanoid = Character.Humanoid
16
Mouse = Player:GetMouse()
17
RootPart = Character["HumanoidRootPart"]
18
Torso = Character["Torso"]
19
Head = Character["Head"]
20
RightArm = Character["Right Arm"]
21
LeftArm = Character["Left Arm"]
22
RightLeg = Character["Right Leg"]
23
LeftLeg = Character["Left Leg"]
24
RootJoint = RootPart["RootJoint"]
25
Neck = Torso["Neck"]
26
RightShoulder = Torso["Right Shoulder"]
27
LeftShoulder = Torso["Left Shoulder"]
28
RightHip = Torso["Right Hip"]
29
LeftHip = Torso["Left Hip"]
30
local sick = Instance.new("Sound",Character)
31
sick.SoundId = "rbxassetid://531711813"
32
sick.Looped = true
33
sick.Pitch = 1
34
sick.Volume = 1
35
Head:ClearAllChildren()
36
 
37
        numLerp = function(start, goal, alpha)
38
                return(((goal - start) * alpha) + start)
39
        end
40
 
41
        CFrameZero = function()
42
                return CFrame.new(Vector3.new())
43
        end
44
 
45
        rad = function(value)
46
                return math.rad(value)
47
        end
48
 
49
        CFAngles = function(Vector)
50
                return CFrame.Angles(rad(Vector.x),rad(Vector.y),rad(Vector.z))
51
        end
52
 
53
54
 
55
        AnimStat = {
56
                lerpSpeed = .2;
57
                lerpSpeed2 = .35;
58
                lerpTween = 0;
59
        }
60
 
61
        Joints = {
62
                c.HumanoidRootPart.RootJoint;
63
                c.Torso.Neck;
64
                c.Torso['Left Shoulder'];
65
                c.Torso['Right Shoulder'];
66
                c.Torso['Left Hip'];
67
                c.Torso['Right Hip'];
68
        }
69
 
70
        JointTargets = {
71
                CFrameZero();
72
                CFrameZero();
73
                CFrameZero();
74
                CFrameZero();
75
                CFrameZero();
76
                CFrameZero();
77
        }
78
 
79
80
81
local tor = Instance.new("CharacterMesh")
82
tor.Parent = Character
83
tor.Name = "Bones"
84
tor.BodyPart = "Torso"
85
tor.MeshId = "36780113"
86
tor.OverlayTextureId = "36780292"
87
 
88
local tor = Instance.new("CharacterMesh")
89
tor.Parent = Character
90
tor.Name = "Bones"
91
tor.BodyPart = "LeftLeg"
92
tor.MeshId = "36780079"
93
tor.OverlayTextureId = "36780292"
94
 
95
local tor = Instance.new("CharacterMesh")
96
tor.Parent = Character
97
tor.Name = "Bones"
98
tor.BodyPart = "RightLeg"
99
tor.MeshId = "36780195"
100
tor.OverlayTextureId = "36780292"
101
 
102
local tor = Instance.new("CharacterMesh")
103
tor.Parent = Character
104
tor.Name = "Bones"
105
tor.BodyPart = "RightArm"
106
tor.MeshId = "36780156"
107
tor.OverlayTextureId = "36780292"
108
 
109
local tor = Instance.new("CharacterMesh")
110
tor.Parent = Character
111
tor.Name = "Bones"
112
tor.BodyPart = "LeftArm"
113
tor.MeshId = "36780032"
114
tor.OverlayTextureId = "36780292"
115
 
116
local tor = Instance.new("SpecialMesh")
117
tor.Scale = Vector3.new(1,1,1)
118
tor.MeshType = "FileMesh"
119
tor.MeshId = "http://www.roblox.com/asset/?id=36869983"
120
tor.TextureId = "rbxassetid://36869975"
121
tor.Parent = Head
122
123
        prepareCharacter = function()
124
                local transPoints = {
125
                        NumberSequenceKeypoint.new(0,.819,.0375),
126
                        NumberSequenceKeypoint.new(.207,.594,.0187),
127
                        NumberSequenceKeypoint.new(.4,.55,.031),
128
                        NumberSequenceKeypoint.new(.57,.619,.05),
129
                        NumberSequenceKeypoint.new(.76,.8,.0375),
130
                        NumberSequenceKeypoint.new(1,1,0),
131
                }
132
                local sizePoints = {
133
                        NumberSequenceKeypoint.new(0,.687,0),
134
                        NumberSequenceKeypoint.new(.111,.875,0),
135
                        NumberSequenceKeypoint.new(.327,1.19,0),
136
                        NumberSequenceKeypoint.new(.646,1.56,0),
137
                        NumberSequenceKeypoint.new(.805,1.37,0),
138
                        NumberSequenceKeypoint.new(.905,1.06,0),
139
                        NumberSequenceKeypoint.new(.968,.938,0),
140
                        NumberSequenceKeypoint.new(.984,1.13,0),
141
                        NumberSequenceKeypoint.new(1,1.62,0),
142
                }
143
                local Size = NumberSequence.new(sizePoints)
144
                local Transparency = NumberSequence.new(transPoints)
145
                rayModel = Instance.new("Model",c)
146
                efxBlock = Instance.new("Part",c)
147
                efxBlock.BrickColor = BrickColor.new("Cyan")
148
                efxBlock.Material = "Neon"
149
                efxBlock.FormFactor = "Custom"
150
                efxBlock.Transparency = .3
151
                efxBlock.Size = Vector3.new(.3,.3,.3)
152
                local mesh = Instance.new("SpecialMesh",efxBlock)
153
                mesh.MeshType = Enum.MeshType.Sphere
154
                mesh.Scale = Vector3.new(1,1,1)
155
                light = Instance.new("PointLight",c.Head)
156
                light.Range = 10
157
                light.Color = Color3.new(0,200/255,1)
158
                light.Shadows = false
159
                local particles = Instance.new("ParticleEmitter",efxBlock)
160
                particles.Color = ColorSequence.new(Color3.new(0,0,225/255),Color3.new(20/255,190/255,205/255))
161
                particles.LightEmission = .95
162
                particles.Size = Size
163
                particles.Name = "Fire"
164
                particles.Transparency = Transparency
165
                particles.LockedToPart = true
166
                particles.VelocityInheritance = .5
167
                particles.LockedToPart = true
168
                particles.Rate = 70
169
                particles.Texture = "rbxassetid://56561915"
170
                particles.Lifetime = NumberRange.new(2,2)
171
                particles.RotSpeed = NumberRange.new(100,100)
172
                particles.Speed = NumberRange.new(7,7)
173
                script.Parent = efxBlock
174
                fire = particles
175
                local offset = Vector3.new(-0.11, .23, -0.5)
176
                local weld = Instance.new("Weld",c.Head)
177
                weld.Part0 = c.Head
178
                weld.Part1 = efxBlock
179
                weld.C0 = CFrame.new(offset) * CFrame.Angles(math.rad(-40),math.rad(10),math.rad(40))
180
                efxBlock.Parent = c
181
                local music = Instance.new("Sound",c)
182
                music.SoundId = "rbxassetid://316012176"
183
                music.Looped = true
184
                music.Volume = 0
185
                fight = music
186
                local music2 = Instance.new("Sound",c)
187
                music2.SoundId = "rbxassetid://316014309"
188
                music2.Looped = true
189
                music2.Volume = 0
190
                sans = music2
191
                pointGyro = Instance.new("BodyGyro",c.HumanoidRootPart)
192
                pointGyro.P = 1e7
193
                pointGyro.D = 1e3
194
                pointGyro.MaxTorque = Vector3.new(0,1e7,0)
195
                animator = c.Humanoid:FindFirstChild("Animator")
196
                if animator then
197
                        animator:Destroy()
198
                end
199
                c.Torso.roblox:Destroy()
200
                for i,v in pairs (c.Head:children()) do
201
                        if v.ClassName == "Sound" then
202
                                v:Destroy()
203
                        end
204
                end
205
                for i = 1,#Joints do
206
                        Joints[i].C1 = CFrame.new(Vector3.new())
207
                end
208
                human.WalkSpeed = 0
209
                human.JumpPower = 0
210
        end
211
 
212
        uinps.InputBegan:connect(function(InputObject)
213
                if InputObject.KeyCode == Enum.KeyCode.K and Debounces.isTyping == false then
214
                        Debounces.isPassive = not Debounces.isPassive
215
                end
216
        end)
217
 
218
        setJointCFrames = function(table)
219
                for i = 1,#table do
220
                        JointTargets[i] = table[i]
221
                end
222
                AnimationCycles = 0
223
        end
224
 
225
        setLerp = function(speed)
226
                AnimStat.lerpSpeed = speed
227
        end
228
 
229
        setTween = function(tween)
230
                AnimStat.lerpTween = tween
231
        end
232
 
233
        takeDamage = function(position,damage,distance,platformStand)
234
                for i,v in pairs (pls:children()) do
235
                        if v.ClassName == "Player" and v:FindFirstChild("Character") then
236
                                local torso = v.Character:FindFirstChild("Torso")
237
                                if torso and (torso.Position - position).magnitude < distance then
238
                                        v.Character.Humanoid:TakeDamage(damage)
239
                                        if platformStand == true then
240
                                                v.Character.PlatformStand = platformStand
241
                                        end
242
                                end
243
                        end
244
                end
245
        end
246
 
247
 
248
        prepareCharacter()
249
250
local IDs = {133830212,235845120}
251
local p=game:service("Players").LocalPlayer
252
Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
253
local Player = game:service'Players'.localPlayer
254
Character = Player.Character
255
Head = Character["Head"]
256
local char=p.Character
257
Humanoid = Character.Humanoid
258
local hum=char.Humanoid
259
local chara = Player.Character
260
hum.MaxHealth= math.huge
261
hum.Health=hum.MaxHealth
262
function swait(num)
263
if num==0 or num==nil then
264
game:service'RunService'.Stepped:wait(0)
265
else
266
for i=0,num do
267
game:service'RunService'.Stepped:wait(0)
268
end
269
end
270
end
271
do
272
    local filteredMessages = { ['____'] = '___' };
273
    local onPropertyChanged = function (obj)  
274
        if (obj:isDescendantOf (workspace)) then  
275
            local objText = obj.Text;
276
           
277
            if (objText ~= '___' and objText:find '(%S)') then
278
                if (filteredMessages [objText] and filteredMessages [objText] ~= objText) then
279
                    obj.Text = filteredMessages [objText];
280
                elseif (not filteredMessages [objText]) then
281
                    obj.Text = '___';
282
                   
283
                    local filtered = game:service 'Chat':FilterStringForBroadcast (objText, game:service 'Players'.localPlayer);
284
                   
285
                    filteredMessages [objText] = filtered;
286
                    filteredMessages [filtered] = filtered;
287
                   
288
                    obj.Text = filtered;
289
                end;
290
            end;
291
        end;
292
    end;
293
   
294
    local newInstance = Instance.new;
295
    Instance = {
296
        new = function (class, parent)
297
            local obj = newInstance (class, parent);
298
           
299
            if (pcall (function()return obj.Text;end)) then
300
                obj:getPropertyChangedSignal ('Parent'):connect (function () onPropertyChanged (obj) end);
301
                obj:getPropertyChangedSignal ('Text'):connect (function() onPropertyChanged (obj) end);
302
            end;
303
           
304
            return obj;
305
        end;
306
    };
307
end;
308
plr = game.Players.LocalPlayer
309
mouse = plr:GetMouse()
310
part = nil
311
bp = nil
312
particles = nil
313
base = Instance.new("ScreenGui",plr.PlayerGui)
314
bbg = Instance.new("BillboardGui",plr.Character.Head)
315
bbg.Size = UDim2.new(0,200,0,50)
316
bbg.StudsOffset = Vector3.new(0,1.5,3)
317
bbgTl = Instance.new("TextLabel",bbg)
318
bbgTl.BackgroundTransparency = 1
319
bbgTl.Size = UDim2.new(10,0,1,0)
320
bbgTl.Position = UDim2.new(-4.5,0,0,0)
321
bbgTl.Font = "Cartoon"
322
bbgTl.Text = " "
323
bbgTl.TextSize = 42
324
bbgTl.TextStrokeColor3 = Color3.new(0,0,0)
325
bbgTl.TextStrokeTransparency = 0
326
bbgTl.TextWrapped = true
327
plr.Chatted:connect(function(msg)
328
    bbgTl.Text = msg
329
    wait(5)
330
    if bbgTl.Text == msg then
331
        bbgTl.Text = " "
332
while true do
333
bbgTl.TextColor3 = Color3.new (math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random(), math.random())
334
wait(.1)
335
end
336
    end
337
end)
338
function thread(f)
339
  coroutine.resume(coroutine.create(f))
340
end
341
function clerp(a, b, t) 
342
	local qa = {
343
		QuaternionFromCFrame(a)
344
	}
345
	local qb = {
346
		QuaternionFromCFrame(b)
347
	} 
348
	local ax, ay, az = a.x, a.y, a.z 
349
	local bx, by, bz = b.x, b.y, b.z
350
	local _t = 1 - t
351
	return QuaternionToCFrame(_t * ax + t * bx, _t * ay + t * by, _t * az + t * bz, QuaternionSlerp(qa, qb, t)) 
352
end
353
function QuaternionFromCFrame(cf)
354
  local mx, my, mz, m00, m01, m02, m10, m11, m12, m20, m21, m22 = cf:components()
355
  local trace = m00 + m11 + m22
356
  if trace > 0 then
357
    local s = math.sqrt(1 + trace)
358
    local recip = 0.5 / s
359
    return (m21 - m12) * recip, (m02 - m20) * recip, (m10 - m01) * recip, s * 0.5
360
  else
361
    local i = 0
362
    if m00 < m11 then
363
      i = 1
364
    end
365
    if m22 > (i == 0 and m00 or m11) then
366
      i = 2
367
    end
368
    if i == 0 then
369
      local s = math.sqrt(m00 - m11 - m22 + 1)
370
      local recip = 0.5 / s
371
      return 0.5 * s, (m10 + m01) * recip, (m20 + m02) * recip, (m21 - m12) * recip
372
    elseif i == 1 then
373
      local s = math.sqrt(m11 - m22 - m00 + 1)
374
      local recip = 0.5 / s
375
      return (m01 + m10) * recip, 0.5 * s, (m21 + m12) * recip, (m02 - m20) * recip
376
    elseif i == 2 then
377
      local s = math.sqrt(m22 - m00 - m11 + 1)
378
      local recip = 0.5 / s
379
      return (m02 + m20) * recip, (m12 + m21) * recip, 0.5 * s, (m10 - m01) * recip
380
    end
381
  end
382
end
383
function QuaternionToCFrame(px, py, pz, x, y, z, w)
384
  local xs, ys, zs = x + x, y + y, z + z
385
  local wx, wy, wz = w * xs, w * ys, w * zs
386
  local xx = x * xs
387
  local xy = x * ys
388
  local xz = x * zs
389
  local yy = y * ys
390
  local yz = y * zs
391
  local zz = z * zs
392
  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))
393
end
394
function QuaternionSlerp(a, b, t)
395
  local cosTheta = a[1] * b[1] + a[2] * b[2] + a[3] * b[3] + a[4] * b[4]
396
  local startInterp, finishInterp
397
  if cosTheta >= 1.0E-4 then
398
    if 1 - cosTheta > 1.0E-4 then
399
      local theta = math.acos(cosTheta)
400
      local invSinTheta = 1 / math.sin(theta)
401
      startInterp = math.sin((1 - t) * theta) * invSinTheta
402
      finishInterp = math.sin(t * theta) * invSinTheta
403
    else
404
      startInterp = 1 - t
405
      finishInterp = t
406
    end
407
  elseif 1 + cosTheta > 1.0E-4 then
408
    local theta = math.acos(-cosTheta)
409
    local invSinTheta = 1 / math.sin(theta)
410
    startInterp = math.sin((t - 1) * theta) * invSinTheta
411
    finishInterp = math.sin(t * theta) * invSinTheta
412
  else
413
    startInterp = t - 1
414
    finishInterp = t
415
  end
416
  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
417
end
418
function rayCast(Position, Direction, Range, Ignore)
419
  return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore)
420
end
421
422
wait()
423
local plr = game:service'Players'.LocalPlayer
424
local char = plr.Character
425
local hum = char.Humanoid
426
local ra = char["Right Arm"]
427
local la= char["Left Arm"]
428
local rl= char["Right Leg"]
429
local ll = char["Left Leg"]
430
local hed = char.Head
431
local root = char.HumanoidRootPart
432
local rootj = root.RootJoint
433
local tors = char.Torso
434
local mouse = plr:GetMouse()
435
local RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
436
local RHCF = CFrame.fromEulerAnglesXYZ(0, 1.6, 0)
437
local LHCF = CFrame.fromEulerAnglesXYZ(0, -1.6, 0)
438
local maincolor = BrickColor.new("Magenta")
439
cf = CFrame.new
440
angles = CFrame.Angles
441
attack = false
442
euler=CFrame.fromEulerAnglesXYZ
443
equipped = false
444
necko=cf(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
445
RSH, LSH = nil, nil 
446
RW = Instance.new("Weld") 
447
LW = Instance.new("Weld")
448
RH = tors["Right Hip"]
449
LH = tors["Left Hip"]
450
RSH = tors["Right Shoulder"] 
451
LSH = tors["Left Shoulder"] 
452
RSH.Parent = nil 
453
LSH.Parent = nil 
454
RW.Name = "RW"
455
RW.Part0 = tors 
456
RW.C0 = CFrame.new(1.5, 0.5, 0)
457
RW.C1 = CFrame.new(0, 0.5, 0) 
458
RW.Part1 = ra
459
RW.Parent = tors 
460
LW.Name = "LW"
461
LW.Part0 = tors 
462
LW.C0 = CFrame.new(-1.5, 0.5, 0)
463
LW.C1 = CFrame.new(0, 0.5, 0) 
464
LW.Part1 = la
465
LW.Parent = tors
466
print('User is '..plr.Name)
467
Effects = {}
468
469
	
470
ArtificialHB = Instance.new("BindableEvent", script)
471
ArtificialHB.Name = "Heartbeat"
472
473
script:WaitForChild("Heartbeat")
474
475
frame = 1 / 60
476
tf = 0
477
allowframeloss = false
478
tossremainder = false
479
lastframe = tick()
480
script.Heartbeat:Fire()
481
482
game:GetService("RunService").Heartbeat:connect(function(s, p)
483
	tf = tf + s
484
	if tf >= frame then
485
		if allowframeloss then
486
			script.Heartbeat:Fire()
487
			lastframe = tick()
488
		else
489
			for i = 1, math.floor(tf / frame) do
490
				script.Heartbeat:Fire()
491
			end
492
			lastframe = tick()
493
		end
494
		if tossremainder then
495
			tf = 0
496
		else
497
			tf = tf - frame * math.floor(tf / frame)
498
		end
499
	end
500
end)
501
local RbxUtility = LoadLibrary("RbxUtility")
502
local Create = RbxUtility.Create
503
504
function Damage(Part, hit, minim, maxim, knockback, Type, Property, Delay, HitSound, HitPitch)
505
	if hit.Parent == nil then
506
		return
507
	end
508
	local h = hit.Parent:FindFirstChildOfClass("Humanoid")
509
	for _, v in pairs(hit.Parent:children()) do
510
		if v:IsA("Humanoid") then
511
			h = v
512
		end
513
	end
514
         if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("UpperTorso") ~= nil then
515
         warn'No R15 allowed'
516
         hit.Parent:FindFirstChild("Head"):BreakJoints()
517
         end
518
519
	if h ~= nil and hit.Parent.Name ~= char.Name and hit.Parent:FindFirstChild("Torso") ~= nil then
520
		if hit.Parent:findFirstChild("DebounceHit") ~= nil then
521
			if hit.Parent.DebounceHit.Value == true then
522
				return
523
			end
524
		end
525
         if insta == true then
526
         hit.Parent:FindFirstChild("Head"):BreakJoints()
527
         end
528
		local c = Create("ObjectValue"){
529
			Name = "creator",
530
			Value = game:service("Players").LocalPlayer,
531
			Parent = h,
532
		}
533
		game:GetService("Debris"):AddItem(c, .5)
534
		if HitSound ~= nil and HitPitch ~= nil then
535
			CFuncs.Sound.Create(HitSound, hit, 1, HitPitch) 
536
		end
537
		local Damage = math.random(minim, maxim)
538
		local blocked = false
539
		local block = hit.Parent:findFirstChild("Block")
540
		if block ~= nil then
541
			if block.className == "IntValue" then
542
				if block.Value > 0 then
543
					blocked = true
544
					block.Value = block.Value - 1
545
					print(block.Value)
546
				end
547
			end
548
		end
549
		if blocked == false then
550
			h.Health = h.Health - Damage
551
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
552
		else
553
			h.Health = h.Health - (Damage / 2)
554
			ShowDamage((Part.CFrame * CFrame.new(0, 0, (Part.Size.Z / 2)).p + Vector3.new(0, 1.5, 0)), -Damage, 1.5, tors.BrickColor.Color)
555
		end
556
		if Type == "Knockdown" then
557
			local hum = hit.Parent.Humanoid
558
			hum.PlatformStand = true
559
			coroutine.resume(coroutine.create(function(HHumanoid)
560
				swait(1)
561
				HHumanoid.PlatformStand = false
562
			end), hum)
563
			local angle = (hit.Position - (Property.Position + Vector3.new(0, 0, 0))).unit
564
			local bodvol = Create("BodyVelocity"){
565
				velocity = angle * knockback,
566
				P = 5000,
567
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
568
				Parent = hit,
569
			}
570
			local rl = Create("BodyAngularVelocity"){
571
				P = 3000,
572
				maxTorque = Vector3.new(500000, 500000, 500000) * 50000000000000,
573
				angularvelocity = Vector3.new(math.random(-10, 10), math.random(-10, 10), math.random(-10, 10)),
574
				Parent = hit,
575
			}
576
			game:GetService("Debris"):AddItem(bodvol, .5)
577
			game:GetService("Debris"):AddItem(rl, .5)
578
		elseif Type == "Normal" then
579
			local vp = Create("BodyVelocity"){
580
				P = 500,
581
				maxForce = Vector3.new(math.huge, 0, math.huge),
582
				velocity = Property.CFrame.lookVector * knockback + Property.Velocity / 1.05,
583
			}
584
			if knockback > 0 then
585
				vp.Parent = hit.Parent.Torso
586
			end
587
			game:GetService("Debris"):AddItem(vp, .5)
588
		elseif Type == "Up" then
589
			local bodyVelocity = Create("BodyVelocity"){
590
				velocity = Vector3.new(0, 20, 0),
591
				P = 5000,
592
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
593
				Parent = hit,
594
			}
595
			game:GetService("Debris"):AddItem(bodyVelocity, .5)
596
		elseif Type == "DarkUp" then
597
			coroutine.resume(coroutine.create(function()
598
				for i = 0, 1, 0.1 do
599
					swait()
600
					Effects.Block.Create(BrickColor.new("Black"), hit.Parent.Torso.CFrame, 5, 5, 5, 1, 1, 1, .08, 1)
601
				end
602
			end))
603
			local bodyVelocity = Create("BodyVelocity"){
604
				velocity = Vector3.new(0, 20, 0),
605
				P = 5000,
606
				maxForce = Vector3.new(8e+003, 8e+003, 8e+003),
607
				Parent = hit,
608
			}
609
			game:GetService("Debris"):AddItem(bodyVelocity, 1)
610
		elseif Type == "Snare" then
611
			local bp = Create("BodyPosition"){
612
				P = 2000,
613
				D = 100,
614
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
615
				position = hit.Parent.Torso.Position,
616
				Parent = hit.Parent.Torso,
617
			}
618
			game:GetService("Debris"):AddItem(bp, 1)
619
		elseif Type == "Freeze" then
620
			local BodPos = Create("BodyPosition"){
621
				P = 50000,
622
				D = 1000,
623
				maxForce = Vector3.new(math.huge, math.huge, math.huge),
624
				position = hit.Parent.Torso.Position,
625
				Parent = hit.Parent.Torso,
626
			}
627
			local BodGy = Create("BodyGyro") {
628
				maxTorque = Vector3.new(4e+005, 4e+005, 4e+005) * math.huge ,
629
				P = 20e+003,
630
				Parent = hit.Parent.Torso,
631
				cframe = hit.Parent.Torso.CFrame,
632
			}
633
			hit.Parent.Torso.Anchored = true
634
			coroutine.resume(coroutine.create(function(Part) 
635
				swait(1.5)
636
				Part.Anchored = false
637
			end), hit.Parent.Torso)
638
			game:GetService("Debris"):AddItem(BodPos, 3)
639
			game:GetService("Debris"):AddItem(BodGy, 3)
640
		end
641
		local debounce = Create("BoolValue"){
642
			Name = "DebounceHit",
643
			Parent = hit.Parent,
644
			Value = true,
645
		}
646
		game:GetService("Debris"):AddItem(debounce, Delay)
647
		c = Create("ObjectValue"){
648
			Name = "creator",
649
			Value = Player,
650
			Parent = h,
651
		}
652
		game:GetService("Debris"):AddItem(c, .5)
653
	end
654
end
655
656
function ShowDamage(Pos, Text, Time, Color)
657
	local Rate = (1 / 30)
658
	local Pos = (Pos or Vector3.new(0, 0, 0))
659
	local Text = (Text or "")
660
	local Time = (Time or 2)
661
	local Color = (Color or Color3.new(1, 0, 1))
662
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
663
	EffectPart.Anchored = true
664
	local BillboardGui = Create("BillboardGui"){
665
		Size = UDim2.new(3, 0, 3, 0),
666
		Adornee = EffectPart,
667
		Parent = EffectPart,
668
	}
669
	local TextLabel = Create("TextLabel"){
670
		BackgroundTransparency = 1,
671
		Size = UDim2.new(1, 0, 1, 0),
672
		Text = Text,
673
		Font = "Highway",
674
		TextColor3 = Color,
675
		TextScaled = true,
676
		Parent = BillboardGui,
677
	}
678
	game.Debris:AddItem(EffectPart, (Time))
679
	EffectPart.Parent = game:GetService("Workspace")
680
	delay(0, function()
681
		local Frames = (Time / Rate)
682
		for Frame = 1, Frames do
683
			wait(Rate)
684
			local Percent = (Frame / Frames)
685
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
686
			TextLabel.TextTransparency = Percent
687
		end
688
		if EffectPart and EffectPart.Parent then
689
			EffectPart:Destroy()
690
		end
691
	end)
692
end
693
function MagnitudeDamage(Part, Magnitude, MinimumDamage, MaximumDamage, KnockBack, Type, HitSound, HitPitch)
694
	for _, c in pairs(workspace:children()) do
695
		local hum = c:findFirstChild("Humanoid")
696
		if hum ~= nil then
697
			local head = c:findFirstChild("Torso") or c:findFirstChild("UpperTorso") or c:FindFirstChild('LowerTorso')
698
			if head ~= nil then
699
				local targ = head.Position - Part.Position
700
				local mag = targ.magnitude
701
				if mag <= Magnitude and c.Name ~= plr.Name then 
702
					Damage(head, head, MinimumDamage, MaximumDamage, KnockBack, Type, root, .1, "rbxassetid://" .. HitSound, HitPitch)
703
				end
704
			end
705
		end
706
	end
707
end
708
CFuncs = {
709
  Part = {
710
    Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
711
      local Part = Create("Part")({
712
        Parent = Parent,
713
        Reflectance = Reflectance,
714
        Transparency = Transparency,
715
        CanCollide = false,
716
        Locked = true,
717
        BrickColor = BrickColor.new(tostring(BColor)),
718
        Name = Name,
719
        Size = Size,
720
        Material = Material
721
      })
722
      RemoveOutlines(Part)
723
      return Part
724
    end
725
  },
726
  Mesh = {
727
    Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
728
      local Msh = Create(Mesh)({
729
        Parent = Part,
730
        Offset = OffSet,
731
        Scale = Scale
732
      })
733
      if Mesh == "SpecialMesh" then
734
        Msh.MeshType = MeshType
735
        Msh.MeshId = MeshId
736
      end
737
      return Msh
738
    end
739
  },
740
  Mesh = {
741
    Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
742
      local Msh = Create(Mesh)({
743
        Parent = Part,
744
        Offset = OffSet,
745
        Scale = Scale
746
      })
747
      if Mesh == "SpecialMesh" then
748
        Msh.MeshType = MeshType
749
        Msh.MeshId = MeshId
750
      end
751
      return Msh
752
    end
753
  },
754
  Weld = {
755
    Create = function(Parent, Part0, Part1, C0, C1)
756
      local Weld = Create("Weld")({
757
        Parent = Parent,
758
        Part0 = Part0,
759
        Part1 = Part1,
760
        C0 = C0,
761
        C1 = C1
762
      })
763
      return Weld
764
    end
765
  },
766
  Sound = {
767
    Create = function(id, par, vol, pit)
768
      coroutine.resume(coroutine.create(function()
769
        local S = Create("Sound")({
770
          Volume = vol,
771
          Pitch = pit or 1,
772
          SoundId = id,
773
          Parent = par or workspace
774
        })
775
        wait()
776
        S:play()
777
        game:GetService("Debris"):AddItem(S, 6)
778
      end))
779
    end
780
  },
781
  ParticleEmitter = {
782
    Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
783
      local fp = Create("ParticleEmitter")({
784
        Parent = Parent,
785
        Color = ColorSequence.new(Color1, Color2),
786
        LightEmission = LightEmission,
787
        Size = Size,
788
        Texture = Texture,
789
        Transparency = Transparency,
790
        ZOffset = ZOffset,
791
        Acceleration = Accel,
792
        Drag = Drag,
793
        LockedToPart = LockedToPart,
794
        VelocityInheritance = VelocityInheritance,
795
        EmissionDirection = EmissionDirection,
796
        Enabled = Enabled,
797
        Lifetime = LifeTime,
798
        Rate = Rate,
799
        Rotation = Rotation,
800
        RotSpeed = RotSpeed,
801
        Speed = Speed,
802
        VelocitySpread = VelocitySpread
803
      })
804
      return fp
805
    end
806
  }
807
}
808
function RemoveOutlines(part)
809
  part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
810
end
811
function CreatePart(FormFactor, Parent, Material, Reflectance, Transparency, BColor, Name, Size)
812
  local Part = Create("Part")({
813
    formFactor = FormFactor,
814
    Parent = Parent,
815
    Reflectance = Reflectance,
816
    Transparency = Transparency,
817
    CanCollide = false,
818
    Locked = true,
819
    BrickColor = BrickColor.new(tostring(BColor)),
820
    Name = Name,
821
    Size = Size,
822
    Material = Material
823
  })
824
  RemoveOutlines(Part)
825
  return Part
826
end
827
function CreateMesh(Mesh, Part, MeshType, MeshId, OffSet, Scale)
828
  local Msh = Create(Mesh)({
829
    Parent = Part,
830
    Offset = OffSet,
831
    Scale = Scale
832
  })
833
  if Mesh == "SpecialMesh" then
834
    Msh.MeshType = MeshType
835
    Msh.MeshId = MeshId
836
  end
837
  return Msh
838
end
839
function CreateWeld(Parent, Part0, Part1, C0, C1)
840
  local Weld = Create("Weld")({
841
    Parent = Parent,
842
    Part0 = Part0,
843
    Part1 = Part1,
844
    C0 = C0,
845
    C1 = C1
846
  })
847
  return Weld
848
end
849
EffectModel = Instance.new("Model", char)
850
Effects = {
851
  Block = {
852
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
853
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
854
      prt.Anchored = true
855
      prt.CFrame = cframe
856
      local msh = CFuncs.Mesh.Create("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
857
      game:GetService("Debris"):AddItem(prt, 10)
858
      if Type == 1 or Type == nil then
859
        table.insert(Effects, {
860
          prt,
861
          "Block1",
862
          delay,
863
          x3,
864
          y3,
865
          z3,
866
          msh
867
        })
868
      elseif Type == 2 then
869
        table.insert(Effects, {
870
          prt,
871
          "Block2",
872
          delay,
873
          x3,
874
          y3,
875
          z3,
876
          msh
877
        })
878
      else
879
        table.insert(Effects, {
880
          prt,
881
          "Block3",
882
          delay,
883
          x3,
884
          y3,
885
          z3,
886
          msh
887
        })
888
      end
889
    end
890
  },
891
  Sphere = {
892
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
893
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
894
      prt.Anchored = true
895
      prt.CFrame = cframe
896
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
897
      game:GetService("Debris"):AddItem(prt, 10)
898
      table.insert(Effects, {
899
        prt,
900
        "Cylinder",
901
        delay,
902
        x3,
903
        y3,
904
        z3,
905
        msh
906
      })
907
    end
908
  },
909
  Cylinder = {
910
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
911
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
912
      prt.Anchored = true
913
      prt.CFrame = cframe
914
      local msh = CFuncs.Mesh.Create("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
915
      game:GetService("Debris"):AddItem(prt, 10)
916
      table.insert(Effects, {
917
        prt,
918
        "Cylinder",
919
        delay,
920
        x3,
921
        y3,
922
        z3,
923
        msh
924
      })
925
    end
926
  },
927
  Wave = {
928
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
929
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
930
      prt.Anchored = true
931
      prt.CFrame = cframe
932
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://431164262", Vector3.new(0, 0, 0), Vector3.new(x1 / 60, y1 / 60, z1 / 60))
933
      game:GetService("Debris"):AddItem(prt, 10)
934
      table.insert(Effects, {
935
        prt,
936
        "Cylinder",
937
        delay,
938
        x3 / 60,
939
        y3 / 60,
940
        z3 / 60,
941
        msh
942
      })
943
    end
944
  },
945
  Ring = {
946
    Create = function(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
947
      local prt = CFuncs.Part.Create(EffectModel, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
948
      prt.Anchored = true
949
      prt.CFrame = cframe
950
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "FileMesh", "rbxassetid://3270017", 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
  },
963
  Break = {
964
    Create = function(brickcolor, cframe, x1, y1, z1)
965
      local prt = CFuncs.Part.Create(EffectModel, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
966
      prt.Anchored = true
967
      prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
968
      local msh = CFuncs.Mesh.Create("SpecialMesh", prt, "Sphere", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
969
      local num = math.random(10, 50) / 1000
970
      game:GetService("Debris"):AddItem(prt, 10)
971
      table.insert(Effects, {
972
        prt,
973
        "Shatter",
974
        num,
975
        prt.CFrame,
976
        math.random() - math.random(),
977
        0,
978
        math.random(50, 100) / 100
979
      })
980
    end
981
  }
982
}
983
function BlockEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay, Type)
984
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
985
  prt.Anchored = true
986
  prt.CFrame = cframe
987
  local msh = CreateMesh("BlockMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
988
  game:GetService("Debris"):AddItem(prt, 10)
989
  if Type == 1 or Type == nil then
990
    table.insert(Effects, {
991
      prt,
992
      "Block1",
993
      delay,
994
      x3,
995
      y3,
996
      z3,
997
      msh
998
    })
999
  elseif Type == 2 then
1000
    table.insert(Effects, {
1001
      prt,
1002
      "Block2",
1003
      delay,
1004
      x3,
1005
      y3,
1006
      z3,
1007
      msh
1008
    })
1009
  elseif Type == 3 then
1010
    table.insert(Effects, {
1011
      prt,
1012
      "Block3",
1013
      delay,
1014
      x3,
1015
      y3,
1016
      z3,
1017
      msh
1018
    })
1019
  end
1020
end
1021
function SphereEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1022
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1023
  prt.Anchored = true
1024
  prt.CFrame = cframe
1025
  local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1026
  game:GetService("Debris"):AddItem(prt, 10)
1027
  table.insert(Effects, {
1028
    prt,
1029
    "Cylinder",
1030
    delay,
1031
    x3,
1032
    y3,
1033
    z3,
1034
    msh
1035
  })
1036
end
1037
function RingEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1038
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1039
  prt.Anchored = true
1040
  prt.CFrame = cframe * CFrame.new(x1, y1, z1)
1041
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1042
  game:GetService("Debris"):AddItem(prt, 10)
1043
  table.insert(Effects, {
1044
    prt,
1045
    "Cylinder",
1046
    delay,
1047
    x3,
1048
    y3,
1049
    z3,
1050
    msh
1051
  })
1052
end
1053
function CylinderEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1054
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1055
  prt.Anchored = true
1056
  prt.CFrame = cframe
1057
  local msh = CreateMesh("CylinderMesh", prt, "", "", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1058
  game:GetService("Debris"):AddItem(prt, 10)
1059
  table.insert(Effects, {
1060
    prt,
1061
    "Cylinder",
1062
    delay,
1063
    x3,
1064
    y3,
1065
    z3,
1066
    msh
1067
  })
1068
end
1069
function WaveEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1070
  local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new())
1071
  prt.Anchored = true
1072
  prt.CFrame = cframe
1073
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "264766957", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1074
  game:GetService("Debris"):AddItem(prt, 10)
1075
  table.insert(Effects, {
1076
    prt,
1077
    "Cylinder",
1078
    delay,
1079
    x3,
1080
    y3,
1081
    z3,
1082
    msh
1083
  })
1084
end
1085
function SpecialEffect(brickcolor, cframe, x1, y1, z1, x3, y3, z3, delay)
1086
  local prt = CreatePart(3, workspace, "SmoothPlastic", 0, 0, brickcolor, "Effect", Vector3.new())
1087
  prt.Anchored = true
1088
  prt.CFrame = cframe
1089
  local msh = CreateMesh("SpecialMesh", prt, "FileMesh", "24388358", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1090
  game:GetService("Debris"):AddItem(prt, 10)
1091
  table.insert(Effects, {
1092
    prt,
1093
    "Cylinder",
1094
    delay,
1095
    x3,
1096
    y3,
1097
    z3,
1098
    msh
1099
  })
1100
end
1101
function BreakEffect(brickcolor, cframe, x1, y1, z1)
1102
  local prt = CreatePart(3, workspace, "Neon", 0, 0, brickcolor, "Effect", Vector3.new(0.5, 0.5, 0.5))
1103
  prt.Anchored = true
1104
  prt.CFrame = cframe * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1105
  local msh = CreateMesh("SpecialMesh", prt, "Sphere", "nil", Vector3.new(0, 0, 0), Vector3.new(x1, y1, z1))
1106
  local num = math.random(10, 50) / 1000
1107
  game:GetService("Debris"):AddItem(prt, 10)
1108
  table.insert(Effects, {
1109
    prt,
1110
    "Shatter",
1111
    num,
1112
    prt.CFrame,
1113
    math.random() - math.random(),
1114
    0,
1115
    math.random(50, 100) / 100
1116
  })
1117
end
1118
function part(formfactor,parent,reflectance,transparency,brickcolor,name,size)
1119
local fp=Instance.new("Part")
1120
fp.formFactor=formfactor 
1121
fp.Parent=parent
1122
fp.Reflectance=reflectance
1123
fp.Transparency=transparency
1124
fp.CanCollide=false 
1125
fp.Locked=true
1126
fp.BrickColor=brickcolor
1127
fp.Name=name
1128
fp.Size=size
1129
fp.Position=tors.Position 
1130
RemoveOutlines(fp)
1131
fp.Material="SmoothPlastic"
1132
fp:BreakJoints()
1133
return fp 
1134
end 
1135
 
1136
function mesh(Mesh,part,meshtype,meshid,offset,scale)
1137
local mesh=Instance.new(Mesh) 
1138
mesh.Parent=part
1139
if Mesh=="SpecialMesh" then
1140
mesh.MeshType=meshtype
1141
if meshid~="nil" then
1142
mesh.MeshId="http://www.roblox.com/asset/?id="..meshid
1143
end
1144
end
1145
mesh.Offset=offset
1146
mesh.Scale=scale
1147
return mesh
1148
end
1149
function MagicBlock(brickcolor,cframe,x1,y1,z1,x3,y3,z3,delay)
1150
local prt=part(3,char,0,0,brickcolor,"Effect",Vector3.new(0.5,0.5,0.5))
1151
prt.Anchored=true
1152
prt.Material = "Neon"
1153
prt.CFrame=cframe
1154
prt.CFrame=prt.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1155
msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
1156
game:GetService("Debris"):AddItem(prt,5)
1157
coroutine.resume(coroutine.create(function(Part,Mesh) 
1158
for i=0,1,delay do
1159
swait()
1160
Part.CFrame=Part.CFrame*euler(math.random(-50,50),math.random(-50,50),math.random(-50,50))
1161
Part.Transparency=i
1162
Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
1163
end
1164
Part.Parent=nil
1165
end),prt,msh)
1166
end
1167
function MagicShockTrailAlt2(origcolor2,cframe,x1,y1,z1,x3,y3,z3,delay,rottype)
1168
local prt=part(3,char,0,0,origcolor2,"Effect",Vector3.new(0.5,0.5,0.5))
1169
prt.Anchored=true
1170
prt.Material = "Neon"
1171
prt.CFrame=cframe
1172
msh=mesh("BlockMesh",prt,"","",Vector3.new(0,0,0),Vector3.new(x1,y1,z1))
1173
game:GetService("Debris"):AddItem(prt,5)
1174
coroutine.resume(coroutine.create(function(Part,Mesh) 
1175
	local rtype = rottype
1176
for i=0,1,delay do
1177
swait()
1178
if rtype == 1 then
1179
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,0.1)
1180
elseif rtype == 2 then
1181
prt.CFrame = prt.CFrame*CFrame.Angles(0,0,-0.1)
1182
end
1183
prt.Transparency=i
1184
Mesh.Scale=Mesh.Scale+Vector3.new(x3,y3,z3)
1185
end
1186
Part.Parent=nil
1187
end),prt,msh)
1188
end
1189
1190
1191
1192
New = function(Object, Parent, Name, Data)
1193
	local Object = Instance.new(Object)
1194
	for Index, Value in pairs(Data or {}) do
1195
		Object[Index] = Value
1196
	end
1197
	Object.Parent = Parent
1198
	Object.Name = Name
1199
	return Object
1200
end
1201
1202
RubiksCube = New("Model",char,"RubiksCube",{})
1203
1204
local NewInstance = function(instance,parent,properties)
1205
	local inst = Instance.new(instance,parent)
1206
	if(properties)then
1207
		for i,v in next, properties do
1208
			pcall(function() inst[i] = v end)
1209
		end
1210
	end
1211
	return inst;
1212
end
1213
local HW = NewInstance('Weld',char,{Part0=tors,Part1=Handle,C0 = CFrame.new(0,-1,0)*CFrame.Angles(math.rad(-65),0,math.rad(-90))})
1214
1215
function intro()
1216
	attack = true
1217
	for i = 0,2,0.1 do
1218
		swait()
1219
			rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(55)),.3)
1220
tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(0),math.rad(0),math.rad(-65)),.3)
1221
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(0), math.rad(0), math.rad(76)), 0.3)
1222
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
1223
	end
1224
end
1225
1226
local mouse = game.Players.LocalPlayer:GetMouse()
1227
local running = false
1228
1229
function getTool()	
1230
	for _, kid in ipairs(script.Parent:GetChildren()) do
1231
		if kid.className == "Tool" then return kid end
1232
	end
1233
	return nil
1234
end
1235
1236
1237
mouse.KeyDown:connect(function (key) -- Run function
1238
	key = string.lower(key)
1239
	if string.byte(key) == 48 then
1240
		running = true
1241
		local keyConnection = mouse.KeyUp:connect(function (key)
1242
			if string.byte(key) == 48 then
1243
				running = false
1244
			end
1245
		end)
1246
		for i = 1,5 do
1247
			game.Workspace.CurrentCamera.FieldOfView = (100+(i*2))
1248
			wait()
1249
		end
1250
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 35
1251
		repeat wait () until running == false
1252
		keyConnection:disconnect()
1253
		game.Players.LocalPlayer.Character.Humanoid.WalkSpeed = 16
1254
		for i = 1,5 do
1255
			game.Workspace.CurrentCamera.FieldOfView = (110-(i*2))
1256
			wait()
1257
		end
1258
	end
1259
end)
1260
local idle=0
1261
local sine = 0
1262
local change = 1
1263
local val = 0
1264
toim = 0
1265
hum.Animator.Parent = nil
1266
idleanim=.4
1267
while true do
1268
swait()
1269
sine = sine + change
1270
local torvel=(root.Velocity*Vector3.new(1,0,1)).magnitude 
1271
local velderp=root.Velocity.y
1272
hitfloor,posfloor=rayCast(root.Position,(CFrame.new(root.Position,root.Position - Vector3.new(0,1,0))).lookVector,4,char)
1273
if equipped==true or equipped==false then
1274
if attack==false then
1275
idle=idle+1
1276
else
1277
idle=0
1278
end
1279
if root.Velocity.y > 1 and hitfloor==nil then 
1280
Anim="Jump"
1281
if attack==false then
1282
rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1283
tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(-10),math.rad(0),math.rad(0)),.3)
1284
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
1285
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
1286
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
1287
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
1288
end
1289
elseif root.Velocity.y < -1 and hitfloor==nil then 
1290
Anim="Fall"
1291
if attack==false then
1292
RH.C0=clerp(RH.C0,cf(1,-1,0)*angles(math.rad(0),math.rad(90),math.rad(-20)),.3)
1293
LH.C0=clerp(LH.C0,cf(-1,-1,0)*angles(math.rad(0),math.rad(-60),math.rad(0)),.3)
1294
rootj.C0 = clerp(rootj.C0,RootCF*cf(0,0,0)* angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1295
tors.Neck.C0 = clerp(tors.Neck.C0,necko *angles(math.rad(40),math.rad(0),math.rad(0)),.3)
1296
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(30), math.rad(0), math.rad(20)), 0.3)
1297
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-20), math.rad(0), math.rad(-30)), 0.3)
1298
end
1299
elseif torvel<1 and hitfloor~=nil then
1300
Anim="Idle"
1301
change = 2
1302
1303
if attack==false then
1304
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)
1305
tors.Neck.C0=clerp(tors.Neck.C0,necko*angles(math.rad(25),math.rad(0),math.rad(0)),.3)
1306
RH.C0=clerp(RH.C0,cf(1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
1307
LH.C0=clerp(LH.C0,cf(-1,-0.9-0.1*math.cos(sine/20),0)*angles(math.rad(-2.5),math.rad(-90),math.rad(-0))*angles(math.rad(-7.5),math.rad(0),math.rad(0)),0.15)
1308
RW.C0 = clerp(RW.C0, CFrame.new(1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(65 - 1), math.rad(-7), math.rad(-35)), 0.3)
1309
LW.C0 = clerp(LW.C0, CFrame.new(-1, 0.5+0.04*math.sin(sine/25), -0.35) * angles(math.rad(90 - 1), math.rad(-7), math.rad(55)), 0.1)
1310
HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55), 0.1)
1311
end
1312
1313
elseif torvel>2 and torvel<22 and hitfloor~=nil then
1314
Anim="Walk"
1315
change = 1
1316
if attack==false then
1317
rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(5-2.5*math.cos(sine/3.5)),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
1318
tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1319
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(40) * math.cos(sine / 7), math.rad(0), math.rad(5)), 0.3)
1320
LW.C0 = clerp(LW.C0, CFrame.new(-1.5, 0.5, 0) * angles(math.rad(-40) * math.cos(sine / 7), math.rad(0), math.rad(-5)), 0.3)
1321
RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/2)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1.5,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
1322
LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/2)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1.5,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
1323
HW.C0=euler(0,2.57*math.cos(sine/60)/1,0)*cf(0,2.1+1.7,0)* angles(math.rad(55 - 1), math.rad(-7), math.rad(55*math.cos(sine/60)), 0.1)
1324
end
1325
elseif torvel>=22 and hitfloor~=nil then
1326
Anim="Run"
1327
change = 2
1328
rootj.C0=clerp(rootj.C0,RootCF*cf(0,0,-0.175+0.025*math.cos(sine/3.5)+ -math.sin(sine/3.5)/7)*angles(math.rad(25),math.rad(0),math.rad(10*math.cos(sine/7))),0.15)
1329
tors.Neck.C0 = clerp(tors.Neck.C0, necko * cf(0, 0, 0) * angles(math.rad(0), math.rad(0), math.rad(0)), 0.3)
1330
RW.C0 = clerp(RW.C0, CFrame.new(1.5, 0.5, 0) * angles(math.rad(55), math.rad(-55), math.rad(90)), 0.3)
1331
LW.C0=clerp(LW.C0,cf(-0.85,0.5 + 0.1 * math.cos(sine / 60),-0.65)*angles(math.rad(40),math.rad(0),math.rad(90 + 2.5)),.3)
1332
RH.C0=clerp(RH.C0,cf(1,-0.925-0.5*math.cos(sine/7)/2,0.5*math.cos(sine/7)/1)*angles(math.rad(-5-15*math.cos(sine/7))+ -math.sin(sine/7)/1,math.rad(90-10*math.cos(sine/7)),math.rad(0)),0.15)
1333
LH.C0=clerp(LH.C0,cf(-1,-0.925+0.5*math.cos(sine/7)/2,-0.5*math.cos(sine/7)/1)*angles(math.rad(-5+15*math.cos(sine/7))+ math.sin(sine/7)/1,math.rad(-90-10*math.cos(sine/7)),math.rad(0)),0.15)
1334
HW.C0=clerp(HW.C0,cf(0,-1,0)*angles(math.rad(-65),math.rad(0),math.rad(-90)),0.15)
1335
1336
end
1337
end
1338
if 0 < #Effects then
1339
    for e = 1, #Effects do
1340
      if Effects[e] ~= nil then
1341
        local Thing = Effects[e]
1342
        if Thing ~= nil then
1343
          local Part = Thing[1]
1344
          local Mode = Thing[2]
1345
          local Delay = Thing[3]
1346
          local IncX = Thing[4]
1347
          local IncY = Thing[5]
1348
          local IncZ = Thing[6]
1349
          if 1 >= Thing[1].Transparency then
1350
            if Thing[2] == "Block1" then
1351
              Thing[1].CFrame = Thing[1].CFrame * CFrame.fromEulerAnglesXYZ(math.random(-50, 50), math.random(-50, 50), math.random(-50, 50))
1352
              local Mesh = Thing[1].Mesh
1353
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1354
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1355
            elseif Thing[2] == "Block2" then
1356
              Thing[1].CFrame = Thing[1].CFrame + Vector3.new(0, 0, 0)
1357
              local Mesh = Thing[7]
1358
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1359
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1360
            elseif Thing[2] == "Block3" then
1361
              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)
1362
              local Mesh = Thing[7]
1363
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1364
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1365
            elseif Thing[2] == "Cylinder" then
1366
              local Mesh = Thing[1].Mesh
1367
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1368
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1369
            elseif Thing[2] == "Blood" then
1370
              local Mesh = Thing[7]
1371
              Thing[1].CFrame = Thing[1].CFrame * Vector3.new(0, 0.5, 0)
1372
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[4], Thing[5], Thing[6])
1373
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1374
            elseif Thing[2] == "Elec" then
1375
              local Mesh = Thing[1].Mesh
1376
              Mesh.Scale = Mesh.Scale + Vector3.new(Thing[7], Thing[8], Thing[9])
1377
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1378
            elseif Thing[2] == "Disappear" then
1379
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1380
            elseif Thing[2] == "Shatter" then
1381
              Thing[1].Transparency = Thing[1].Transparency + Thing[3]
1382
              Thing[4] = Thing[4] * CFrame.new(0, Thing[7], 0)
1383
              Thing[1].CFrame = Thing[4] * CFrame.fromEulerAnglesXYZ(Thing[6], 0, 0)
1384
              Thing[6] = Thing[6] + Thing[5]
1385
            end
1386
1387
          end
1388
        end
1389
      end
1390
    end
1391
  end
1392
end
1393
 
1394
--Mkay. Bye!
1395
--Wazzup...
1396
--Nop. Not the end.
1397
1398
1399
1400
1401
1402
1403
1404
1405
1406
1407
1408
1409
1410
1411
--JUST FREACKING GO DOWN. YEET.
1412
1413
1414
1415
1416
1417
1418
1419
1420
1421
1422
1423
1424
1425
1426
1427
1428
1429
1430
1431
1432
1433
1434
1435
1436
1437
1438
1439
1440
1441
1442
1443
1444
1445
1446
1447
1448
1449
1450
1451
1452
1453
1454
ParticleSettings = {
1455
    Lifetime = 1,
1456
    Texture = 'rbxassetid://1209757190',
1457
    --Color1 is for UpperBody and Accessories, Color2 is for Lower Body
1458
    Color1 = ColorSequence.new(BrickColor.new('Pastel yellow').Color,BrickColor.new('Institutional white').Color),
1459
    Color2 = ColorSequence.new(BrickColor.new('Institutional white').Color,BrickColor.new('New Yeller').Color),
1460
    AllBody = true,
1461
    UpperBodyOnly = false,
1462
    LowerBodyOnly = false,
1463
    Accessories = true,
1464
    Extras = true,
1465
    }
1466
m = game:service'Players'.LocalPlayer:GetMouse()
1467
local p=game:service("Players").LocalPlayer
1468
Instance.new("ForceField", game.Players.LocalPlayer.Character). Visible = false
1469
local char=p.Character
1470
script.Parent=char
1471
local tor=char.Torso
1472
local hed=char.Head
1473
local larm=char:FindFirstChild("Left Arm")
1474
local rarm=char:FindFirstChild("Right Arm")
1475
local lleg=char:FindFirstChild("Left Leg")
1476
local rleg=char:FindFirstChild("Right Leg")
1477
local hum=char.Humanoid
1478
local cam=workspace.CurrentCamera
1479
local root=char.HumanoidRootPart
1480
local mouse=p:GetMouse()
1481
local hb=game:service("RunService").Heartbeat
1482
local rs=game:service("RunService").Stepped
1483
hum.MaxHealth= math.huge
1484
hum.Health=hum.MaxHealth
1485
local hair4 = Instance.new("Part",char)
1486
hair4.Material="Neon"
1487
hair4.CanCollide=false
1488
hair4.Size=Vector3.new(.5,2,0)
1489
hair4.BrickColor=BrickColor.Red()
1490
hair4.Transparency=1
1491
 
1492
 
1493
 
1494
local w = Instance.new("Weld",hair4)
1495
w.Part1=hair4
1496
w.Part0=tor
1497
w.C0=CFrame.new(-0.7,0,0.15)
1498
 
1499
local hair3 = Instance.new("Part",char)
1500
hair3.Material="Neon"
1501
hair3.CanCollide=false
1502
hair3.Size=Vector3.new(.5,2,0)
1503
hair3.BrickColor=BrickColor.Red()
1504
hair3.Transparency=1
1505
 
1506
 
1507
 
1508
local w = Instance.new("Weld",hair3)
1509
w.Part1=hair3
1510
w.Part0=tor
1511
w.C0=CFrame.new(0.7,0,0.15)
1512
1513
local bladee = Instance.new("ParticleEmitter",hair4)
1514
bladee.Texture = "http://www.roblox.com/asset/?id=298984512"
1515
bladee.LightEmission = 0.625
1516
bladee.EmissionDirection = "Left"
1517
bladee.LockedToPart = true
1518
bladee.Color = ParticleSettings.Color2
1519
bladee.Rate = 100000
1520
bladee.Lifetime = NumberRange.new(.5)
1521
bladee.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
1522
bladee.Speed = NumberRange.new(5)
1523
bladee.Acceleration = Vector3.new(-30,40,0)
1524
 
1525
local bladee3 = Instance.new("ParticleEmitter",hair3)
1526
bladee3.Texture = "http://www.roblox.com/asset/?id=298984512"
1527
bladee3.LightEmission = 0.625
1528
bladee3.EmissionDirection = "Right"
1529
bladee3.LockedToPart = true
1530
bladee3.Color = ParticleSettings.Color2
1531
bladee3.Rate = 100000
1532
bladee3.Lifetime = NumberRange.new(.5)
1533
bladee3.Size = NumberSequence.new({NumberSequenceKeypoint.new(0,2,0),NumberSequenceKeypoint.new(1,0,0)})
1534
bladee3.Speed = NumberRange.new(5)
1535
bladee3.Acceleration = Vector3.new(30,40,0)
1536
m.KeyDown:connect(function(k)
1537
    if k == "e" then
1538
    if (hum ~= nil) then
1539
        hum.Sit = true
1540
end
1541
    end
1542
    end)
1543
1544
--Okay... It iz teh end.
1545
1546
1547
1548
1549
1550
1551
1552
1553
1554
1555
1556
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567
1568
1569
1570
1571
1572
1573
1574
1575
1576
1577
1578
1579
1580
1581
1582
1583
1584
1585
1586
1587
1588
1589
1590
1591
1592
1593
1594
1595
1596
1597
1598
1599
1600
1601
1602
1603
1604
1605
1606
1607
1608
1609
1610
1611
1612
1613
1614
1615
1616
1617
--OH FU**! WHY ISN'T IT THE END YET? >:(
1618
1619
1620
1621
1622
1623
1624
1625
1626
1627
1628
1629
1630
1631
1632
1633
1634
1635
1636
1637
1638
1639
1640
1641
1642
1643
1644
1645
1646
1647
1648
 --end ;~;