View difference between Paste ID: W5NaAT2d and TCRMKMb1
SHOW: | | - or go back to the newest paste.
1
-- READ THIS PART
2
-- TO GET THIS TO WORK JUST PASTE IT AT THE TOP OF YOUR SCRIPT AND SAVE IT
3
-- NOW DELETE THESE LINES IF YOU WANT
4
5
6
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
7
local Player,game,owner = owner,game
8
local RealPlayer = Player
9
do
10
	print("FE Compatibility code by Mokiros, Edited by StarzoZero")
11
	local rp = RealPlayer
12
	script.Parent = rp.Character
13
	
14
	--RemoteEvent for communicating
15
	local Event = Instance.new("RemoteEvent")
16
	Event.Name = "UserInput_Event"
17
18
	--Fake event to make stuff like Mouse.KeyDown work
19
	local function fakeEvent()
20
		local t = {_fakeEvent=true,Functions={},Connect=function(self,f)table.insert(self.Functions,f) end}
21
		t.connect = t.Connect
22
		return t
23
	end
24
25
	--Creating fake input objects with fake variables
26
    local m = {Target=nil,Hit=CFrame.new(),KeyUp=fakeEvent(),KeyDown=fakeEvent(),Button1Up=fakeEvent(),Button1Down=fakeEvent(),Button2Up=fakeEvent(),Button2Down=fakeEvent()}
27
	local UIS = {InputBegan=fakeEvent(),InputEnded=fakeEvent()}
28
	local CAS = {Actions={},BindAction=function(self,name,fun,touch,...)
29
		CAS.Actions[name] = fun and {Name=name,Function=fun,Keys={...}} or nil
30
	end}
31
	--Merged 2 functions into one by checking amount of arguments
32
	CAS.UnbindAction = CAS.BindAction
33
34
	--This function will trigger the events that have been :Connect()'ed
35
	local function te(self,ev,...)
36
		local t = m[ev]
37
		if t and t._fakeEvent then
38
			for _,f in pairs(t.Functions) do
39
				f(...)
40
			end
41
		end
42
	end
43
	m.TrigEvent = te
44
	UIS.TrigEvent = te
45
46
	Event.OnServerEvent:Connect(function(plr,io)
47
	    if plr~=rp then return end
48
		m.Target = io.Target
49
		m.Hit = io.Hit
50
		if not io.isMouse then
51
			local b = io.UserInputState == Enum.UserInputState.Begin
52
			if io.UserInputType == Enum.UserInputType.MouseButton1 then
53
				return m:TrigEvent(b and "Button1Down" or "Button1Up")
54
			end
55
			if io.UserInputType == Enum.UserInputType.MouseButton2 then
56
				return m:TrigEvent(b and "Button2Down" or "Button2Up")
57
			end
58
			for _,t in pairs(CAS.Actions) do
59
				for _,k in pairs(t.Keys) do
60
					if k==io.KeyCode then
61
						t.Function(t.Name,io.UserInputState,io)
62
					end
63
				end
64
			end
65
			m:TrigEvent(b and "KeyDown" or "KeyUp",io.KeyCode.Name:lower())
66
			UIS:TrigEvent(b and "InputBegan" or "InputEnded",io,false)
67
	    end
68
	end)
69
	Event.Parent = NLS([==[
70
	local Player = game:GetService("Players").LocalPlayer
71
	local Event = script:WaitForChild("UserInput_Event")
72
	local Mouse = Player:GetMouse()
73
	local UIS = game:GetService("UserInputService")
74
	local input = function(io,a)
75
		if a then return end
76
		--Since InputObject is a client-side instance, we create and pass table instead
77
		Event:FireServer({KeyCode=io.KeyCode,UserInputType=io.UserInputType,UserInputState=io.UserInputState,Hit=Mouse.Hit,Target=Mouse.Target})
78
	end
79
	UIS.InputBegan:Connect(input)
80
	UIS.InputEnded:Connect(input)
81
	local h,t
82
	--Give the server mouse data 30 times every second, but only if the values changed
83
	--If player is not moving their mouse, client won't fire events
84
	while wait(1/30) do
85
		if h~=Mouse.Hit or t~=Mouse.Target then
86
			h,t=Mouse.Hit,Mouse.Target
87
			Event:FireServer({isMouse=true,Target=t,Hit=h})
88
		end
89
	end]==],Player.Character)
90
91
	----Sandboxed game object that allows the usage of client-side methods and services
92
	--Real game object
93
	local _rg = game
94
95
	--Metatable for fake service
96
	local fsmt = {
97
		__index = function(self,k)
98
			local s = rawget(self,"_RealService")
99
			if s then
100
				return typeof(s[k])=="function"
101
				and function(_,...)return s[k](s,...)end or s[k]
102
			end
103
		end,
104
		__newindex = function(self,k,v)
105
			local s = rawget(self,"_RealService")
106
			if s then s[k]=v end
107
		end
108
	}
109
	local function FakeService(t,RealService)
110
		t._RealService = typeof(RealService)=="string" and _rg:GetService(RealService) or RealService
111
		return setmetatable(t,fsmt)
112
	end
113
114
	--Fake game object
115
	local g = {
116
		GetService = function(self,s)
117
			return rawget(self,s) or _rg:GetService(s)
118
		end,
119
		Players = FakeService({
120
			LocalPlayer = FakeService({GetMouse=function(self)return m end},Player)
121
		},"Players"),
122
		UserInputService = FakeService(UIS,"UserInputService"),
123
		ContextActionService = FakeService(CAS,"ContextActionService"),
124
		RunService = FakeService({
125
			_btrs = {},
126
			RenderStepped = _rg:GetService("RunService").Heartbeat,
127
			BindToRenderStep = function(self,name,_,fun)
128
				self._btrs[name] = self.Heartbeat:Connect(fun)
129
			end,
130
			UnbindFromRenderStep = function(self,name)
131
				self._btrs[name]:Disconnect()
132
			end,
133
		},"RunService")
134
	}
135
	rawset(g.Players,"localPlayer",g.Players.LocalPlayer)
136
	g.service = g.GetService
137
	FakeService(g,game)
138
	--Changing owner to fake player object to support owner:GetMouse()
139
	game,owner = g,g.Players.LocalPlayer
140
end
141
wait(1/60)	
142
print('Made by Slenercat5')-- yo m8 this is old but i figured why not re upload sense the old link broke
143
print('Megumin')
144
print('F for Hero Mode')
145
print('Click to Use Explosion Magic')
146
147
148
lerp = function(a, b, t)
149
	
150
	return a + (b - a) * t
151
end
152
Lerp = function(c1, c2, al)
153
	
154
	local com1 = {c1.X, c1.Y, c1.Z, c1:toEulerAnglesXYZ()}
155
	local com2 = {c2.X, c2.Y, c2.Z, c2:toEulerAnglesXYZ()}
156
	for i,v in pairs(com1) do
157
		com1[i] = v + (com2[i] - v) * al
158
	end
159
	return CFrame.new(com1[1], com1[2], com1[3]) * CFrame.Angles(select(4, unpack(com1)))
160
end
161
162
	sine=0
163
	change=0
164
165
-- this is my secound script using character animations based on lerping
166
-- if you found this i hope you enjoy :)
167
-- attacks
168
--click[hold] for punching
169
--q for teleport(within 100 studs)
170
--f for super jump(Temporarily down)
171
wait(1 / 60)
172
local jklmaoR=0
173
Effects = { }
174
local Player = game.Players.localPlayer
175
local Character = Player.Character
176
local Humanoid = Character.Humanoid
177
Humanoid.WalkSpeed = 30
178
local Mouse = Player:GetMouse()
179
local LeftArm = Character["Left Arm"]
180
local RightArm = Character["Right Arm"]
181
local LeftLeg = Character["Left Leg"]
182
local RightLeg = Character["Right Leg"]
183
local Head = Character.Head
184
local Torso = Character.Torso
185
local Camera = game.Workspace.CurrentCamera	
186
local RootPart = Character.HumanoidRootPart
187
local RootJoint = RootPart.RootJoint
188
local attack = false
189
local Anim = 'Idle'
190
local Create = LoadLibrary("RbxUtility").Create
191
local velocity = RootPart.Velocity.y
192
Character.Animate.Disabled=false
193
local sine = 0
194
local change = 1
195
local ms=Player:GetMouse()
196
local DORARA=false
197
local sforce=false
198
local fcount=0
199
200
Character.Humanoid.Health=10000000000000000000000000000000000000000000000000000000000000
201
	
202
	torso=Character:findFirstChild('Torso')
203
	root=Character:FindFirstChild('HumanoidRootPart')
204
function clerp(a, b, t)
205
	return a:lerp(b, t)
206
end
207
208
Humanoid.Animator.Parent = nil
209
Character.Animate.Parent = nil
210
211
local newMotor = function(part0, part1, c0, c1)
212
	local w = Create('Motor'){
213
		Parent = part0,
214
		Part0 = part0,
215
		Part1 = part1,
216
		C0 = c0,
217
		C1 = c1,
218
	}
219
	return w
220
end
221
222
223
RootCF = CFrame.fromEulerAnglesXYZ(-1.57, 0, 3.14)
224
NeckCF = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
225
226
local RW = newMotor(Torso, RightArm, CFrame.new(1.5, 0, 0), CFrame.new(0, 0, 0)) 
227
local LW = newMotor(Torso, LeftArm, CFrame.new(-1.5, 0, 0), CFrame.new(0, 0, 0))
228
local RH = newMotor(Torso, RightLeg, CFrame.new(.5, -2, 0), CFrame.new(0, 0, 0))
229
local LH = newMotor(Torso, LeftLeg, CFrame.new(-.5, -2, 0), CFrame.new(0, 0, 0))
230
RootJoint.C1 = CFrame.new(0, 0, 0)
231
RootJoint.C0 = CFrame.new(0, 0, 0)
232
Torso.Neck.C1 = CFrame.new(0, 0, 0)
233
Torso.Neck.C0 = CFrame.new(0, 1.5, 0)
234
235
local rarmc1 = RW.C1
236
local larmc1 = LW.C1
237
local rlegc1 = RH.C1
238
local llegc1 = LH.C1
239
240
local resetc1 = false
241
242
243
244
245
246
function PlayAnimationFromTable(table, speed, bool)
247
	RootJoint.C0 = clerp(RootJoint.C0, table[1], speed) 
248
	Torso.Neck.C0 = clerp(Torso.Neck.C0, table[2], speed) 
249
	RW.C0 = clerp(RW.C0, table[3], speed) 
250
	LW.C0 = clerp(LW.C0, table[4], speed) 
251
	RH.C0 = clerp(RH.C0, table[5], speed) 
252
	LH.C0 = clerp(LH.C0, table[6], speed) 
253
	if bool == true then
254
		if resetc1 == false then
255
			resetc1 = true
256
			RootJoint.C1 = RootJoint.C1
257
			Torso.Neck.C1 = Torso.Neck.C1
258
			RW.C1 = rarmc1
259
			LW.C1 = larmc1
260
			RH.C1 = rlegc1
261
			LH.C1 = llegc1
262
		end
263
	end
264
end
265
266
267
268
269
270
271
272
273
ArtificialHB = Create("BindableEvent", script){
274
	Parent = script,
275
	Name = "Heartbeat",
276
}
277
278
script:WaitForChild("Heartbeat")
279
280
frame = 1 / 35
281
tf = 0
282
allowframeloss = false
283
tossremainder = false
284
lastframe = tick()
285
script.Heartbeat:Fire()
286
287
288
289
290
291
game:GetService("RunService").Heartbeat:connect(function(s, p)
292
	tf = tf + s
293
	if tf >= frame then
294
		if allowframeloss then
295
			script.Heartbeat:Fire()
296
			lastframe = tick()
297
		else
298
			for i = 1, math.floor(tf / frame) do
299
				script.Heartbeat:Fire()
300
			end
301
			lastframe = tick()
302
		end
303
		if tossremainder then
304
			tf = 0
305
		else
306
			tf = tf - frame * math.floor(tf / frame)
307
		end
308
	end
309
end)
310
311
312
313
314
315
316
function swait(num)
317
	if num == 0 or num == nil then
318
		ArtificialHB.Event:wait()
319
	else
320
		for i = 0, num do
321
			ArtificialHB.Event:wait()
322
		end
323
	end
324
end
325
326
327
328
329
330
331
function RemoveOutlines(part)
332
	part.TopSurface, part.BottomSurface, part.LeftSurface, part.RightSurface, part.FrontSurface, part.BackSurface = 10, 10, 10, 10, 10, 10
333
end
334
function ShowDamage(Pos, Text, Time, Color)
335
	local Rate = (1 / 30)
336
	local Pos = (Pos or Vector3.new(0, 0, 0))
337
	local Text = (Text or "")
338
	local Time = (Time or 2)
339
	local Color = (Color or Color3.new(1, 0, 1))
340
	local EffectPart = CFuncs.Part.Create(workspace, "SmoothPlastic", 0, 1, BrickColor.new(Color), "Effect", Vector3.new(0, 0, 0))
341
	EffectPart.Anchored = true
342
	local BillboardGui = Create("BillboardGui"){
343
		Size = UDim2.new(3, 0, 3, 0),
344
		Adornee = EffectPart,
345
		Parent = EffectPart,
346
	}
347
	local TextLabel = Create("TextLabel"){
348
		BackgroundTransparency = 1,
349
		Size = UDim2.new(1, 0, 1, 0),
350
		Text = Text,
351
		Font = "SciFi",
352
		TextColor3 = Color,
353
		TextScaled = true,
354
		Parent = BillboardGui,
355
	}
356
	game.Debris:AddItem(EffectPart, (Time))
357
	EffectPart.Parent = game:GetService("Workspace")
358
	delay(0, function()
359
		local Frames = (Time / Rate)
360
		for Frame = 1, Frames do
361
			wait(Rate)
362
			local Percent = (Frame / Frames)
363
			EffectPart.CFrame = CFrame.new(Pos) + Vector3.new(0, Percent, 0)
364
			TextLabel.TextTransparency = Percent
365
		end
366
		if EffectPart and EffectPart.Parent then
367
			EffectPart:Destroy()
368
		end
369
	end)
370
end
371
Sound=false
372
function Damage(hit,Dag)
373
	if hit.Parent==Character or hit.Parent==workspace or hit.Parent.ClassName=='Asseccory' then
374
		return
375
	else
376
		wait(.1)
377
	local Hum=hit.Parent:FindFirstChild('Humanoid')
378
wait(.1)
379
if Hum~=nil then
380
--	print(hit.Parent.name..' is getting hurt')
381
if Nock==true then
382
	hit.Parent.Torso.Velocity=Character.HumanoidRootPart.CFrame.lookVector*100
383
end
384
		ShowDamage(hit.Position,Dag)
385
	local DORA = CFuncs.Sound.Create("383548205", hit, 1, 1)
386
		Sound=true
387
		hit.Parent.Humanoid.Health=hit.Parent.Humanoid.Health-Dag
388
wait(.1)
389
else
390
return
391
end
392
393
	end
394
end
395
396
CFuncs = {	
397
	Part = {
398
		Create = function(Parent, Material, Reflectance, Transparency, BColor, Name, Size)
399
			local Part = Create("Part"){
400
				Parent = Parent,
401
				Reflectance = Reflectance,
402
				Transparency = Transparency,
403
				CanCollide = false,
404
				Locked = true,
405
				BrickColor = BrickColor.new(tostring(BColor)),
406
				Name = Name,
407
				Size = Size,
408
				Material = Material,
409
			}
410
			RemoveOutlines(Part)
411
			return Part
412
		end;
413
	};
414
	
415
	Mesh = {
416
		Create = function(Mesh, Part, MeshType, MeshId, OffSet, Scale)
417
			local Msh = Create(Mesh){
418
				Parent = Part,
419
				Offset = OffSet,
420
				Scale = Scale,
421
			}
422
			if Mesh == "SpecialMesh" then
423
				Msh.MeshType = MeshType
424
				Msh.MeshId = MeshId
425
			end
426
			return Msh
427
		end;
428
	};
429
430
	Weld = {
431
		Create = function(Parent, Part0, Part1, C0, C1)
432
			local Weld = Create("Weld"){
433
				Parent = Parent,
434
				Part0 = Part0,
435
				Part1 = Part1,
436
				C0 = C0,
437
				C1 = C1,
438
			}
439
			return Weld
440
		end;
441
	};
442
443
	Sound = {
444
		Create = function(id, par, vol, pit) 
445
			local Sound = Create("Sound"){
446
				Volume = vol,
447
				Pitch = pit or 1,
448
				SoundId = "rbxassetid://" .. id,
449
				Parent = par or workspace,
450
			}
451
			Sound:play() 
452
			return Sound
453
		end;
454
	};
455
	
456
	Decal = {
457
		Create = function(Color, Texture, Transparency, Name, Parent)
458
			local Decal = Create("Decal"){
459
				Color3 = Color,
460
				Texture = "rbxassetid://" .. Texture,
461
				Transparency = Transparency,
462
				Name = Name,
463
				Parent = Parent,
464
			}
465
			return Decal
466
		end;
467
	};
468
	
469
	BillboardGui = {
470
		Create = function(Parent, Image, Position, Size)
471
			local BillPar = CFuncs.Part.Create(Parent, "SmoothPlastic", 0, 1, BrickColor.new("Black"), "BillboardGuiPart", Vector3.new(1, 1, 1))
472
			BillPar.CFrame = CFrame.new(Position)
473
			local Bill = Create("BillboardGui"){
474
				Parent = BillPar,
475
				Adornee = BillPar,
476
				Size = UDim2.new(1, 0, 1, 0),
477
				SizeOffset = Vector2.new(Size, Size),
478
			}
479
			local d = Create("ImageLabel", Bill){
480
				Parent = Bill,
481
				BackgroundTransparency = 1,
482
				Size = UDim2.new(1, 0, 1, 0),
483
				Image = "rbxassetid://" .. Image,
484
			}
485
			return BillPar
486
		end
487
	};
488
	
489
	ParticleEmitter = {
490
		Create = function(Parent, Color1, Color2, LightEmission, Size, Texture, Transparency, ZOffset, Accel, Drag, LockedToPart, VelocityInheritance, EmissionDirection, Enabled, LifeTime, Rate, Rotation, RotSpeed, Speed, VelocitySpread)
491
			local Particle = Create("ParticleEmitter"){
492
				Parent = Parent,
493
				Color = ColorSequence.new(Color1, Color2),
494
				LightEmission = LightEmission,
495
				Size = Size,
496
				Texture = Texture,
497
				Transparency = Transparency,
498
				ZOffset = ZOffset,
499
				Acceleration = Accel,
500
				Drag = Drag,
501
				LockedToPart = LockedToPart,
502
				VelocityInheritance = VelocityInheritance,
503
				EmissionDirection = EmissionDirection,
504
				Enabled = Enabled,
505
				Lifetime = LifeTime,
506
				Rate = Rate,
507
				Rotation = Rotation,
508
				RotSpeed = RotSpeed,
509
				Speed = Speed,
510
				VelocitySpread = VelocitySpread,
511
			}
512
			return Particle
513
		end;
514
515
516
517
518
519
	};
520
	
521
	CreateTemplate = {
522
		
523
	};
524
}
525
526
lp=Player
527
528
529
for _,v in pairs(lp.Character:GetChildren()) do
530
	if v.className=='Shirt' or v.className=='Pants' or v.className=='Accessory' then
531
		v:remove()
532
	end
533
	if v.className=='Part' then
534
		v.BrickColor=BrickColor.new('Pastel brown')
535
	end
536
end
537
function AutoWeld(Foop, OOF)
538
				local W = Instance.new("Weld")
539
				W.Part0 = Foop
540
				W.Part1 = OOF
541
				local CJ = CFrame.new(Foop.Position)
542
				local C0 = Foop.CFrame:inverse()*CJ
543
				local C1 = OOF.CFrame:inverse()*CJ
544
				W.C0 = C0
545
				W.C1 = C1
546
				W.Name='o0o'
547
				W.Parent = Foop
548
end
549
550
551
Shirt=Instance.new("Shirt",lp.Character)
552
Shirt.ShirtTemplate='rbxassetid://692946861'
553
Pants=Instance.new("Pants",lp.Character)
554
Pants.PantsTemplate='rbxassetid://692946962'
555
556
lp.Character.Head.face.Texture='http://www.roblox.com/asset/?id=1190881618'
557
D2=Instance.new('Decal',lp.Character.Head)
558
D2.Texture='http://www.roblox.com/asset/?id=26926115'
559
560
mec=Instance.new('CharacterMesh',lp.Character)
561
mec.BodyPart='Torso'
562
mec.MeshId='48112070'
563
564
565
566
567
h2=Instance.new('Part',lp.Character)
568
h2.CanCollide=false
569
h2.BrickColor=BrickColor.new('Dark stone grey')
570
h2.CFrame=lp.Character.Head.CFrame*CFrame.new(0,-.3,0.1)
571
m3=Instance.new('SpecialMesh',h2)
572
m3.MeshId='http://www.roblox.com/asset/?id=283714534'
573
m3.TextureId='http://www.roblox.com/asset/?id=398616339'
574
575
576
577
hb=Instance.new('Part',lp.Character)
578
hb.CFrame=lp.Character.Head.CFrame*CFrame.new(0,0.3,-0.1)
579
hb.CanCollide=false
580
mb=Instance.new('SpecialMesh',hb)
581
mb.MeshId='rbxassetid://74969506'
582
mb.TextureId='rbxassetid://74226311'
583
584
h5=Instance.new('Part',lp.Character)
585
h5.CFrame=lp.Character.Head.CFrame*CFrame.new(0,1.5,0)*CFrame.Angles(0,0,0)
586
h5.CanCollide=false
587
m6=Instance.new('SpecialMesh',h5)
588
m6.Scale=Vector3.new(1.2,1.2,1.2)
589
m6.MeshId='rbxassetid://110214262'
590
m6.TextureId='http://www.roblox.com/asset/?id=110212521'
591
592
593
AutoWeld(hb,lp.Character.Head)
594
595
AutoWeld(h2,lp.Character.Head)
596
AutoWeld(h5,lp.Character.Head)
597
598
base = Instance.new("ScreenGui",Player.PlayerGui)
599
bbg = Instance.new("BillboardGui",Player.Character.Head)
600
bbg.Size = UDim2.new(0,200,0,50)
601
bbg.StudsOffset = Vector3.new(0,3,0)
602
603
bbgTl = Instance.new("TextLabel",bbg)
604
bbgTl.BackgroundTransparency = 1
605
bbgTl.Size = UDim2.new(10,0,1,0)
606
bbgTl.Position = UDim2.new(-4.5,0,0,0)
607
bbgTl.Font = "Code"
608
bbgTl.Text = " "
609
bbgTl.TextSize = 25
610
bbgTl.TextStrokeColor3 = Color3.new(1,1,1)
611
bbgTl.TextColor3 = Color3.new(0,0,0)
612
bbgTl.TextStrokeTransparency = 0
613
bbgTl.TextWrapped = true
614
615
function Chat(msg)
616
	bbgTl.Text = msg
617
	wait(1)
618
	if bbgTl.Text == msg then
619
		bbgTl.Text = " "
620
	end
621
end
622-
Chat('Megumin by slenercat5')
622+
Chat('')
623
624
625
KML=CFuncs.Sound.Create(167135038,Character.Head,1,1)-- secret-->1108274211
626
KML.Looped=true
627
KML:stop()
628
Explosion=CFuncs.Sound.Create(762570073,Character.Head,1,1)
629
Explosion:stop()
630
reload=false
631
scoobis=false
632
scoobismesh='rbxassetid://1107996700'
633
scoobistexture='rbxassetid://1107996710'
634
Nock=true
635
ms.KeyDown:connect(function(k)
636
	k=k:lower()
637
	if k=='f' then
638
		if scoobis==false and reload==false and taunt==false and attack==false then
639
		scoobis=true
640
		KML:Play()
641
		hb.Transparency=1
642
		for _,v in pairs(Staff) do
643
			v.Transparency=0
644
		end
645
		reload=true
646
		wait(1)
647
		reload=false
648
		elseif scoobis==true and reload==false then
649
KML:stop()
650
 		hb.Transparency=0	
651
		for _,v in pairs(Staff) do
652
			v.Transparency=1
653
		end
654
			scoobis=false
655
			Character.Head.Mesh.MeshType='Head'
656
			Character.Head.Mesh.Scale=Vector3.new(1.25, 1.25, 1.25)
657
658
			reload=true
659
			wait(1)
660
			reload=false
661
			
662
		end
663
	elseif k=='g' then
664
		if scoobis==false then
665
		if attack==false then
666
		if taunt then
667
		taunt=false
668
		TauntS:Stop()
669
		else
670
			taunt=true
671
			TauntS:Play()
672
		end
673
		print(taunt)
674
		end
675
		end
676
	end
677
	
678
	
679
end)
680
681
--Particles--
682
683
684
685
686
----------
687
688
689
690
691
692
TauntS=Instance.new('Sound',Character.Head)
693
TauntS.SoundId='rbxassetid://665015838'
694
TauntS.Looped=true
695
KML.Volume=.3
696
Lead=CFuncs.Sound.Create(530138502,Character.Head,1,1)
697
Lead:Stop()
698
function Attack()
699
Lead:Play()
700
KML:Stop()
701
702
Dip=Instance.new('Part',Character)
703
Dip.Transparency=1
704
Dip.Size=Vector3.new(20,1,20)
705
Dip.Anchored=true
706
deo=Instance.new('Decal',Dip)
707
deo.Texture='http://www.roblox.com/asset/?id=352764483'
708
deo.Transparency=0
709
deo.Face='Top'
710
Dip.CFrame=Character.HumanoidRootPart.CFrame*CFrame.new(0,-2,0)
711
Bp=Instance.new('Part',Dip)
712
Bp.Name='BP'
713
Bp.Anchored=true
714
Bp.Transparency=1
715
Bp.CFrame=Dip.CFrame*CFrame.new(-10,0,0)
716
Bp2=Instance.new('Part',Dip)
717
Bp2.Anchored=true
718
Bp2.Name='BP2'
719
Bp2.Transparency=1
720
Bp2.CFrame=Dip.CFrame*CFrame.new(10,0,0)
721
ac=Instance.new('Attachment',Bp)
722
ac2=Instance.new('Attachment',Bp2)
723
724
local keypoints = {}
725
 
726
for i = 0,1,0.1 do
727
	local color = Color3.fromHSV(i,1,1)
728
	local keypoint = ColorSequenceKeypoint.new(i,color)
729
	table.insert(keypoints,keypoint)
730
end
731
732
local particle = Instance.new('Beam',Bp)
733
particle.Color = ColorSequence.new(keypoints)
734
particle.Texture='rbxassetid://1135136643'
735
particle.Attachment0=ac
736
particle.Attachment1=AC
737
particle.Width0=6
738
particle.Width1=9
739
particle.CurveSize0=-10
740
particle.CurveSize1=10
741
particle.LightEmission=1
742
743
local particle2 = Instance.new('Beam',Bp2)
744
particle2.Color = ColorSequence.new(keypoints)
745
particle2.LightEmission=1
746
particle2.Texture='rbxassetid://1135136643'
747
particle2.Attachment0=ac2
748
particle2.Attachment1=AC
749
particle2.CurveSize0=10
750
particle2.CurveSize1=10
751
particle2.Width0=6
752
particle2.Width1=9
753
754
particle3=Instance.new('ParticleEmitter',Dip)
755
particle3.Color = ColorSequence.new(keypoints)
756
particle3.LightEmission=1
757
particle3.Texture='rbxassetid://187012669'
758
particle3.Size=NumberSequence.new(.2)
759
particle3.Acceleration=Vector3.new(0,10,0)
760
particle3.EmissionDirection='Bottom'
761
particle3.SpreadAngle=Vector2.new(90,90)
762
HK=Instance.new('Part',Character)
763
HK.CanCollide=false
764
HK.Shape='Ball'
765
HK.Size=Vector3.new(2,2,2)
766
HK.Material='Neon'
767
HK.BrickColor=BrickColor.new('Gold')
768
HK.Transparency=.5
769
HK.CFrame=Character['Left Arm'].CFrame*CFrame.new(0,-1,-2)
770
AutoWeld(HK,Character['Left Arm'])
771
		attack = true
772
--	RootPart.CFrame = clerp(RootPart.CFrame,stand.HumanoidRootPart.CFrame*CFrame.new(0,0,-5), .1) 
773
	StageTime=0
774
	Stage=1
775
	chatfunc('I am Megumin,Controller of the finest power Crimson Demons posses,')
776
while Stage==1 do
777
		for i = 0, 1, 0.7 do
778
			swait()
779
			PlayAnimationFromTable({
780
				CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0), 
781
				CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0), 
782
				CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
783
				CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(20, -.5, 0), 
784
				CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
785
				CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
786
			},.5,false)	
787
						StageTime=StageTime+.02
788
			if StageTime>3.5 then
789
				Stage=Stage+1
790
			end
791
		end
792
end
793
Stage=2
794
--		wait(4)
795
			StageTime=0
796
	chatfunc(', and I command explosion magic!')
797
798
799
while Stage==2 do
800
			for i = 0, 1, 0.7 do
801
			swait()
802
			PlayAnimationFromTable({
803
				CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0), 
804
				CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(-.5, 0.5, 0), 
805
				CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
806
				CFrame.new(-1.5, 0, -0) * CFrame.new(0, .5, 0) * CFrame.Angles(20.5, -.5, 0), 
807
				CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
808
				CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
809
			},.5,false)	
810
			StageTime=StageTime+.02
811
			if StageTime>3.5 then
812
				Stage=Stage+1
813
				end
814
			if StageTime>1 and StageTime<1.1 then
815
				chatfunc('The Devil King fancies himself superior to us and dares call himself "strongest"!')
816
			end
817
			end
818
end
819
820
821
			chatfunc('I shall obliterate his vile presence with our strongest of magics!')
822
823
		StageTime=0
824
			Stage=3
825
			while Stage==3 do
826
			for i = 0, 1, 0.7 do
827
			swait()
828
			PlayAnimationFromTable({
829
				CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0), 
830
				CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0), 
831
				CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
832
				CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(20, -.5, 0), 
833
				CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
834
				CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
835
			},.5,false)	
836
			end		
837
			StageTime=StageTime+.03
838
			if StageTime>1.7 then
839
				Stage=Stage+1
840
			end
841
			end
842
843
	StageTime=0
844
		for i = 0, 1, 0.7 do
845
			swait()
846
			PlayAnimationFromTable({
847
				CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0), 
848
				CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0.5, 0), 
849
				CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
850
				CFrame.new(-1.5, 0, -0) * CFrame.new(0, 1, 0) * CFrame.Angles(21, -.5, 0), 
851
				CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
852
				CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
853
			},.5,false)	
854
		end
855
					chatfunc('Explosion!')
856
		wait()
857
	Explosion:Play()
858
	HK:Remove()
859
G=Instance.new('Part',Character)
860
G.Size=Vector3.new(20,20,20)
861
G.CanCollide=false
862
G.Shape='Ball'
863
G.Position=ms.Hit.p
864
G.Transparency=.4
865
G.Material='Neon'
866
G.Anchored=true
867
GEK=Instance.new('Explosion',G)
868
GEK.BlastRadius=20
869
GEK.BlastPressure=2
870
GEK.DestroyJointRadiusPercent=2
871
FF=Instance.new('ForceField',Character)
872
FF.Visible=false
873
Beam=Instance.new('Part',Character)
874
Beam.BrickColor=BrickColor.new('Gold')
875
Beam.Transparency=.5
876
Beam.Anchored=true
877
Beam.Material='Neon'
878
local distance = (G.Position - Dis.Position).magnitude
879
	Beam.Size = Vector3.new(2, distance, 2)
880
	Beam.CFrame = CFrame.new(Dis.Position) * CFrame.new(0, -distance/2, 0)
881
882
GEK.Hit:connect(function(h)
883
	if h.Parent~=Character then
884
h.Velocity=Vector3.new(math.random(-30,30),20,math.random(-30,30))
885
end
886
end)
887
GEK.ExplosionType=Enum.ExplosionType.NoCraters
888
GEK.Position=G.Position
889
CFuncs.Sound.Create(539294959,G,1,1)
890
891
G.BrickColor=BrickColor.new('Gold')
892
con1=G.Touched:connect(function(h)
893
if h.Parent~=Character then
894
h:remove()
895
end	
896
end)
897
K=Instance.new('BodyGyro',G)
898
K.P=Vector3.new(0,100,0)
899
wait(1)
900
FF:remove()
901
Dip:Remove()	
902
	wait(1)
903
G:remove()
904
Beam:remove()
905
bbgTl.Text=" "
906
	attack = false
907
	collapse=true
908
	end
909
910
reload2=false
911
912
collapse=false
913
taunt=false
914
Mouse.Button1Down:connect(function()
915
if scoobis==true and reload2==false and taunt==false then
916
	reload2=true
917
	Attack()
918
	scoobis=false
919
	KML:stop()
920
		for _,v in pairs(Staff) do
921
			v.Transparency=1
922
		end
923
	hb.Transparency=0
924
	wait(5)
925
	collapse=false
926
	reload2=false
927
928
929
end	
930
end)	
931
Staff={
932
	
933
}
934
935
Part=Instance.new("Part",Character)
936
Part.Size= Vector3.new(
937
1, 2, 1
938
)
939
Part.Shape=
940
Enum.PartType.Block
941
Part.Name="Base"
942
Part.Transparency=1
943
Part.BrickColor= BrickColor.new("Medium stone grey")
944
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
945
0, 0, 0, 0, 0, 1, 0, 1, -0, -1, 0, 0
946
)
947
AutoWeld(Part,Character["Left Arm"])
948
Part.CanCollide=false
949
Part.Material=
950
Enum.Material.SmoothPlastic
951
952
-------------------------------------------------------------
953
Part=Instance.new("Part",Character)
954
Part.Size= Vector3.new(
955
4.88999748, 0.270000011, 0.38500011
956
)
957
Part.Shape=
958
Enum.PartType.Block
959
Part.Name="Stick"
960
Part.BrickColor= BrickColor.new("Burnt Sienna")
961
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
962
0.0716470033, -1.0380317, 0.778614879, 0, 0, -1, 0, -1, -0, -1, 0, -0
963
)
964
AutoWeld(Part,Character["Left Arm"])
965
Part.CanCollide=false
966
Part.Material=
967
Enum.Material.SmoothPlastic
968
table.insert(Staff,Part)
969
970
-------------------------------------------------------------
971
Part=Instance.new("Part",Character)
972
Part.Size= Vector3.new(
973
0.910000563, 0.289999932, 0.38500011
974
)
975
Part.Shape=
976
Enum.PartType.Block
977
Part.Name="Stick"
978
Part.BrickColor= BrickColor.new("Burnt Sienna")
979
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
980
-0.188353002, -1.0380317, -1.88138556, -0.657677054, 0, -0.75330013, 0, -1, 0, -0.75330013, 0, 0.657677054
981
)
982
AutoWeld(Part,Character["Left Arm"])
983
Part.CanCollide=false
984
Part.Material=
985
Enum.Material.SmoothPlastic
986
table.insert(Staff,Part)
987
988
-------------------------------------------------------------
989
Part=Instance.new("Part",Character)
990
Part.Size= Vector3.new(
991
0.910000563, 0.289999902, 0.38500011
992
)
993
Part.Shape=
994
Enum.PartType.Block
995
Part.Name="Stick"
996
Part.BrickColor= BrickColor.new("Burnt Sienna")
997
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
998
-0.448352933, -1.0380317, -2.52138495, 0.0150980018, 0, -0.999886096, 0, -1, 0, -0.999886096, 0, -0.0150980027
999
)
1000
AutoWeld(Part,Character["Left Arm"])
1001
Part.CanCollide=false
1002
Part.Material=
1003
Enum.Material.SmoothPlastic
1004
table.insert(Staff,Part)
1005
1006
-------------------------------------------------------------
1007
Part=Instance.new("Part",Character)
1008
Part.Size= Vector3.new(
1009
0.640000582, 0.269999981, 0.38500011
1010
)
1011
Part.Shape=
1012
Enum.PartType.Block
1013
Part.Name="Stick"
1014
Part.BrickColor= BrickColor.new("Burnt Sienna")
1015
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
1016
-0.277138978, -1.02803171, -3.09968996, -0.657677054, 0, -0.75330013, 0, 1, 0, 0.75330013, 0, -0.657677054
1017
)
1018
AutoWeld(Part,Character["Left Arm"])
1019
Part.CanCollide=false
1020
Part.Material=
1021
Enum.Material.SmoothPlastic
1022
table.insert(Staff,Part)
1023
1024
-------------------------------------------------------------
1025
Part=Instance.new("Part",Character)
1026
Part.Size= Vector3.new(
1027
0.840000451, 0.229999989, 0.38500011
1028
)
1029
Part.Shape=
1030
Enum.PartType.Block
1031
Part.Name="Stick"
1032
Part.BrickColor= BrickColor.new("Burnt Sienna")
1033
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
1034
0.15343301, -1.02803171, -3.08046007, -0.91565901, 0, -0.401955992, 0, -1, 0, -0.401955992, 0, 0.91565901
1035
)
1036
AutoWeld(Part,Character["Left Arm"])
1037
Part.CanCollide=false
1038
Part.Material=
1039
Enum.Material.SmoothPlastic
1040
table.insert(Staff,Part)
1041
1042
-------------------------------------------------------------
1043
Part=Instance.new("Part",Character)
1044
Part.Size= Vector3.new(
1045
0.470000386, 0.209999919, 0.935000181
1046
)
1047
Part.Shape=
1048
Enum.PartType.Block
1049
Part.Name="Stick"
1050
Part.BrickColor= BrickColor.new("Burnt Sienna")
1051
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
1052
0.433368087, -1.02803171, -3.25790405, -0.91565901, 0, -0.401955992, 0, -1, 0, -0.401955992, 0, 0.91565901
1053
)
1054
AutoWeld(Part,Character["Left Arm"])
1055
Part.CanCollide=false
1056
Part.Material=
1057
Enum.Material.SmoothPlastic
1058
table.insert(Staff,Part)
1059
1060
-------------------------------------------------------------
1061
Part=Instance.new("Part",Character)
1062
Part.Size= Vector3.new(
1063
0.470000386, 0.189999968, 0.535000205
1064
)
1065
Part.Shape=
1066
Enum.PartType.Block
1067
Part.Name="Stick"
1068
Part.BrickColor= BrickColor.new("Burnt Sienna")
1069
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
1070
0.588867128, -1.02803171, -3.81795764, -0.99974674, 0, -0.0225039944, 0, -1, 0, -0.0225039944, 0, 0.99974674
1071
)
1072
AutoWeld(Part,Character["Left Arm"])
1073
Part.CanCollide=false
1074
Part.Material=
1075
Enum.Material.SmoothPlastic
1076
table.insert(Staff,Part)
1077
1078
-------------------------------------------------------------
1079
Part=Instance.new("Part",Character)
1080
Part.Size= Vector3.new(
1081
0.22999993, 0.578461468, 0.473846316
1082
)
1083
Part.Shape=
1084
Enum.PartType.Block
1085
Part.Name="Ring"
1086
Part.BrickColor= BrickColor.new("Br. yellowish orange")
1087
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
1088
-0.298082978, -1.0380317, -2.00398445, -0.657677054, 0, -0.75330013, 0, -1, 0, -0.75330013, 0, 0.657677054
1089
)
1090
AutoWeld(Part,Character["Left Arm"])
1091
Part.CanCollide=false
1092
Part.Material=
1093
Enum.Material.Glass
1094
table.insert(Staff,Part)
1095
1096
-------------------------------------------------------------
1097
Part=Instance.new("Part",Character)
1098
Part.Size= Vector3.new(
1099
0.22999993, 0.578461468, 0.473846316
1100
)
1101
Part.Shape=
1102
Enum.PartType.Block
1103
Part.Name="Ring"
1104
Part.BrickColor= BrickColor.new("Br. yellowish orange")
1105
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
1106
-0.118083, -1.0380317, -1.77398527, -0.657677054, 0, -0.75330013, 0, -1, 0, -0.75330013, 0, 0.657677054
1107
)
1108
AutoWeld(Part,Character["Left Arm"])
1109
Part.CanCollide=false
1110
Part.Material=
1111
Enum.Material.Glass
1112
table.insert(Staff,Part)
1113
1114
-------------------------------------------------------------
1115
Part=Instance.new("Part",Character)
1116
Part.Size= Vector3.new(
1117
2.91999722, 0.340163469, 0.458857328
1118
)
1119
Part.Shape=
1120
Enum.PartType.Block
1121
Part.Name="Bandage"
1122
Part.BrickColor= BrickColor.new("Lily white")
1123
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
1124
0.0716470033, -1.0380317, 0.543615103, 0, 0, -1, 0, -1, -0, -1, 0, -0
1125
)
1126
AutoWeld(Part,Character["Left Arm"])
1127
Part.CanCollide=false
1128
Part.Material=
1129
Enum.Material.SmoothPlastic
1130
table.insert(Staff,Part)
1131
1132
-------------------------------------------------------------
1133
Part=Instance.new("Part",Character)
1134
Part.Size= Vector3.new(
1135
0.669999778, 0.669999778, 0.669999778
1136
)
1137
Part.Shape=
1138
Enum.PartType.Ball
1139
Part.Name="Ball"
1140
Part.BrickColor= BrickColor.new("Really red")
1141
Part.CFrame=Character["Left Arm"].CFrame*CFrame.new(
1142
0.141646966, -1.0380317, -2.46138406, 0, 0, -1, 0, -1, -0, -1, 0, -0
1143
)
1144
AutoWeld(Part,Character["Left Arm"])
1145
Part.CanCollide=false
1146
Part.Material=
1147
Enum.Material.Glass
1148
table.insert(Staff,Part)
1149
-------------------------------------------------------------
1150
		for _,v in pairs(Staff) do
1151
			v.Transparency=1
1152
		end
1153
1154
function rayCast(Position, Direction, Range, Ignore)
1155
	return game:service("Workspace"):FindPartOnRay(Ray.new(Position, Direction.unit * (Range or 999.999)), Ignore) 
1156
end 
1157
1158
1159
1160
1161
1162
1163
sref = CFuncs.Part.Create(Character, "Neon", 0, 1, BrickColor.new("Black"), "Reference", Vector3.new())
1164
sref.Anchored = true
1165
1166
local m = Create("Model"){
1167
	Parent = Character,
1168
	Name = "WeaponModel",
1169
}
1170
local shield=false
1171
1172
function chatfunc(text)
1173
local chat = coroutine.wrap(function()
1174
if Character:FindFirstChild("TalkingBillBoard")~= nil then
1175
Character:FindFirstChild("TalkingBillBoard"):destroy()
1176
end
1177
local naeeym2 = Instance.new("BillboardGui",Character)
1178
naeeym2.Size = UDim2.new(0,100,0,40)
1179
naeeym2.StudsOffset = Vector3.new(0,3,0)
1180
naeeym2.Adornee = Character.Head
1181
naeeym2.Name = "TalkingBillBoard"
1182
local tecks2 = Instance.new("TextLabel",naeeym2)
1183
tecks2.BackgroundTransparency = 1
1184
tecks2.BorderSizePixel = 0
1185
tecks2.Text = ""
1186
tecks2.Font = "Fantasy"
1187
tecks2.FontSize = "Size32"
1188
tecks2.TextStrokeTransparency = 0
1189
tecks2.TextColor3 = Color3.new(.6,0,0)
1190
tecks2.TextStrokeColor3 = Color3.new(0,0,0)
1191
tecks2.Size = UDim2.new(1,0,0.5,0)
1192
local shk = coroutine.wrap(function()
1193
while tecks2 ~= nil do
1194
wait(.05)
1195
tecks2.Position = UDim2.new(0,math.random(-3,3),0,math.random(-3,3))
1196
end
1197
end)
1198
shk()
1199
for i = 1,string.len(text),1 do
1200
tecks2.Text = string.sub(text,1,i)
1201
wait(0.01)
1202
end
1203
wait(1)
1204
for i = 1, 5 do
1205
wait(.01)
1206
tecks2.Position = tecks2.Position - UDim2.new(0,0,.05,0)
1207
tecks2.TextStrokeTransparency = tecks2.TextStrokeTransparency +.2
1208
tecks2.TextTransparency = tecks2.TextTransparency + .2
1209
end
1210
naeeym2:Destroy()
1211
end)
1212
chat()
1213
end
1214
1215
Player.Chatted:connect(function(msg)
1216
	if attack==false then
1217
	chatfunc(msg)
1218
	end
1219
end)
1220
1221
1222
1223
Dis=Instance.new('Part',Character)
1224
Dis.Transparency=1
1225
Dis.Size=Vector3.new(20,1,20)
1226
Dis.Anchored=true
1227
Dis.CanCollide=false
1228
dek=Instance.new('Decal',Dis)
1229
dek.Face='Bottom'
1230
dek.Texture='http://www.roblox.com/asset/?id=352764483'
1231
dek.Transparency=1
1232
AC=Instance.new('Attachment',Dis)
1233
Dis.Name='Dis'
1234
light=Instance.new('SurfaceLight',Character.Torso)
1235
lightp=0
1236
light.Face='Top'
1237
while true do
1238
light.Color=Color3.new(lightp,lightp,lightp)
1239
1240
	if taunt==true then
1241
		lightp=TauntS.PlaybackLoudness/500
1242
		light.Enabled=true
1243
	else
1244
		lightp=0
1245
		light.Enabled=false
1246
	end
1247
	if attack==false then
1248
			dek.Transparency=1
1249
	else
1250
			dek.Transparency=0
1251
	end
1252
	Dis.CFrame=CFrame.new(ms.Hit.p.X,ms.Hit.p.Y,ms.Hit.p.Z)*CFrame.new(0,20,0)*CFrame.Angles(0,sine/2,0)
1253
	swait()
1254
	sref.CFrame = RightArm.CFrame * CFrame.new(0, -1.5, 0) * CFrame.fromEulerAnglesXYZ(-1.57, 0, 0)
1255
Character['Left Arm'].LocalTransparencyModifier=0
1256
Character['Right Arm'].LocalTransparencyModifier=0
1257
Character['Right Leg'].LocalTransparencyModifier=0
1258
Character['Left Leg'].LocalTransparencyModifier=0
1259
Character['Torso'].LocalTransparencyModifier=0
1260
1261
	wait()
1262
	sine=sine+change
1263
	change=.1
1264
	if taunt==true and collapse==false then
1265
			if attack == false then
1266
			change = 2
1267
			PlayAnimationFromTable({
1268
				CFrame.new(-0, -0.331043243, -0.246173918) * CFrame.new(0,0+ math.cos(sine/2)*3, 0) * CFrame.Angles(0, math.rad(15 * math.cos(sine / 4)), 0), 
1269
				CFrame.new(0, 1.4999913, 6.55651093e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, math.rad(15 * math.cos(sine/4)), 0), 
1270
				CFrame.new(1.5 , 0 + .2 * math.cos(sine / 4	) / 2, 0 - 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(70 *  math.sin(sine / 4)), math.rad(3), math.rad(0)),
1271
				CFrame.new(-1.5 , 0 - .2 * math.cos(sine / 4) / 2, 0 + 1 *  math.sin(sine / 4) ) * CFrame.Angles(math.rad(-70 *  math.sin(sine / 4)), math.rad(-3), math.rad(0)),
1272
				CFrame.new(.5 , -1.64 - 1 * math.cos(sine / 4) / 2, 0 + 1 *  math.sin(sine / 4) ) * CFrame.Angles(math.rad(-70 *  math.sin(sine / 4)), math.rad(-3), math.rad(0)),
1273
				CFrame.new(-.5 , -1.64 + 1 * math.cos(sine / 4	) / 2, 0 - 1 * math.sin(sine / 4) ) * CFrame.Angles(math.rad(70 *  math.sin(sine / 4)), math.rad(3), math.rad(0)),
1274
---root.RotVelocity.Y /20
1275
			}, .2, false)
1276
			
1277
			end
1278
			end
1279
if collapse==false then
1280
	if taunt==false then
1281
	Character.Humanoid.WalkSpeed=20
1282
local	speed = Vector3.new(torso.Velocity.X,0,torso.Velocity.Z)
1283
1284
1285
local	TiltOnAxis = (torso.CFrame-torso.CFrame.p):vectorToObjectSpace(speed/100)
1286
	Torsovelocity = (RootPart.Velocity * Vector3.new(1, 0, 1)).magnitude 
1287
	velocity = RootPart.Velocity.y
1288
	sine = sine + change
1289
	local hit, pos = rayCast(RootPart.Position, (CFrame.new(RootPart.Position, RootPart.Position - Vector3.new(0, 1, 0))).lookVector, 4, Character)
1290
	if RootPart.Velocity.y > 1 and hit == nil then 
1291
		Anim = "Jump"
1292
		if attack == false then
1293
			PlayAnimationFromTable({
1294
				CFrame.new(0, 0.0486936681, -0.0429394133, 1, 0, -0, 0, 0.996194661, -0.087155968, 0, 0.087155968, 0.996194661) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1295
				CFrame.new(0, 1.48698187, -0.0992434025, 1, 0, 0, 0, 0.98480767, 0.173648626, -0, -0.173648626, 0.98480767) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1296
				CFrame.new(1.66118193, 0.583681226, 0.430878729, 0.556951106, -0.772693694, -0.30454877, 0.830109596, 0.506009281, 0.234249175, -0.026898358, -0.383274168, 0.923242927) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1297
				CFrame.new(-1.65963519, 0.695907593, 0.339572817, 0.482961893, 0.810776234, 0.330741376, -0.866026103, 0.498096228, 0.0435779653, -0.129409045, -0.307477146, 0.94271481) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1298
				CFrame.new(0.499997795, -1.71809137, -0.102601528, 0.984807849, 3.55863392e-007, -0.173647791, 0.0593907312, 0.939692557, 0.336824298, 0.163175657, -0.342020214, 0.925416589) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1299
				CFrame.new(-0.599241376, -1.29528463, -0.396836221, 0.992403984, 0.086823605, 0.0871558413, -0.118890785, 0.858931601, 0.498097867, -0.0316142589, -0.504676282, 0.862729669) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1300
			}, .3, false)
1301
		end
1302
	elseif RootPart.Velocity.y < -1 and hit == nil then 
1303
		Anim = "Fall"
1304
		if attack == false then
1305
			PlayAnimationFromTable({
1306
				CFrame.new(-0, -0.0520263538, -0.0354017057, 1, 0, 0, 0, 0.965925872, 0.258818984, 0, -0.258818984, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1307
				CFrame.new(0, 1.51533091, -0.10684365, 1, 0, 0, 0, 0.965925872, 0.258819342, 0, -0.258819342, 0.965925872) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1308
				CFrame.new(1.67554009, 0.885679007, 0.385592818, 0.374123871, -0.696466088, -0.61234498, 0.914592147, 0.386364758, 0.119345918, 0.153468132, -0.604696095, 0.781530797) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1309
				CFrame.new(-1.67474985, 0.999329269, 0.296636045, 0.250219911, 0.753912985, 0.607457995, -0.927206695, 0.367205799, -0.0738086402, -0.278707415, -0.544770718, 0.79091537) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1310
				CFrame.new(0.504494727, -1.81757987, -0.0935191363, 0.984807849, -0.0449431092, -0.167730823, 0.059390761, 0.99484998, 0.0821366012, 0.163175508, -0.0908504426, 0.982405365) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1311
				CFrame.new(-0.623603821, -1.49203336, -0.421764404, 0.992403865, 0.122534379, 0.0109562073, -0.118891656, 0.978150725, -0.17054674, -0.0316146575, 0.167948633, 0.985288799) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1312
			}, .3, false)
1313
		end
1314
	elseif Torsovelocity < 1 and hit ~= nil then
1315
		Anim = "Idle"
1316
		if attack == false then
1317
			change = 1
1318
			PlayAnimationFromTable({
1319
				CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, 0, 0) * CFrame.Angles(0, .5, 0), 
1320
				CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, -.5, 0), 
1321
				CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1322
				CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1323
				CFrame.new(0.5,-1.8, 0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1324
				CFrame.new(-0.5,-1.8 ,0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1325
			}, .3, false)
1326
		end
1327
	elseif Torsovelocity > 2 and hit ~= nil then
1328
		Anim = "Walk"
1329
		if attack == false then
1330
			change = 2
1331
			PlayAnimationFromTable({
1332
				CFrame.new(-0, -0.331043243, -0.246173918) * CFrame.new(0, .1, 0) * CFrame.Angles(-.2, math.rad(-15 * math.cos(sine / 8)), 0+root.RotVelocity.Y/15), 
1333
				CFrame.new(0, 1.4999913, 6.55651093e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(.2, math.rad(15 * math.cos(sine / 8)), 0), 
1334
				CFrame.new(1.5 , 0 + .2 * math.cos(sine / 8	) / 2, 0 - 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(70 *  math.sin(sine / 8)), math.rad(3), math.rad(0)),
1335
				CFrame.new(-1.5 , 0 - .2 * math.cos(sine / 8) / 2, 0 + 1 *  math.sin(sine / 8) ) * CFrame.Angles(math.rad(-70 *  math.sin(sine / 8)), math.rad(-3), math.rad(0)),
1336
				CFrame.new(.5 , -1.64 - 1 * math.cos(sine / 8) / 2, 0 + 1 *  math.sin(sine / 8) ) * CFrame.Angles(math.rad(-70 *  math.sin(sine / 8)), math.rad(-3), math.rad(0)),
1337
				CFrame.new(-.5 , -1.64 + 1 * math.cos(sine / 8	) / 2, 0 - 1 * math.sin(sine / 8) ) * CFrame.Angles(math.rad(70 *  math.sin(sine / 8)), math.rad(3), math.rad(0)),
1338
---root.RotVelocity.Y /20
1339
			}, .2, false)
1340
			end
1341
		end
1342
	end
1343
elseif collapse==true then
1344
	Character.Humanoid.WalkSpeed=0
1345
				PlayAnimationFromTable({
1346
				CFrame.new(-0.0254490171, -0.100000001, -0.0245252885) * CFrame.new(0, -3, 0) * CFrame.Angles(-1.5, 0, 0), 
1347
				CFrame.new(-5.58793545e-008, 1.49999201, 2.23517418e-007) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0), 
1348
				CFrame.new(1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0.5), 
1349
				CFrame.new(-1.5, 0, -0) * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, -.5), 
1350
				CFrame.new(0.5,-1.8, 0) * CFrame.new(0.4, 0, 0) * CFrame.Angles(0, 0, .5), 
1351
				CFrame.new(-0.5,-1.8 ,0) * CFrame.new(-0.4, 0, 0) * CFrame.Angles(0, 0, -.5), 
1352
				}, .2, false)
1353
elseif attack==true then
1354
	Character.Humanoid.WalkSpeed=0
1355
1356
	end
1357
end	
1358
--https://www.hastebin.com/raw/fahamuqecu