View difference between Paste ID: PP73PzHZ and LNrJgVpG
SHOW: | | - or go back to the newest paste.
1
-----------//KRYSTAL DANCE V2\\-----------
2-
--[[Movelist
2+
warn(--[[Movelist)
3-
Q = The Swoosher
3+
print("Q = The Swoosher")
4-
E = The nutty
4+
print("E = The nutty")
5-
R = Spin me right round!
5+
print("R = Spin me right round!")
6-
T = Plum juice dance
6+
print("T = Plum juice dance")
7-
Y = Moonwalk
7+
print("Y = Moonwalk")
8-
U = Slav dance
8+
print("U = Slav dance")
9-
P = Barrel roll
9+
print("P = Barrel roll")
10-
F = The Jerky
10+
print("F = The Jerky")
11-
G = The Shuffle
11+
print("G = The Shuffle")
12-
H = The Spongebob
12+
print("H = The Spongebob")
13-
J = Here comes the money!
13+
print("J = Here comes the money!")
14-
K = Runnin' in the 90's
14+
print("K = Runnin' in the 90's")
15-
---------]]
15+
warn(---------]])
16
17
--Alright so before i start rambling on about absolute nonsense, please subscribe to Pewdiepie on youtube! Help him defeat T-Series!--
18
--Also subscribe to Vengefulprogram--
19
--Krystal dance! The old famous script that sadly has been broken(sorta), i've decided to rework this thing because... nostalgia.--
20
--This is one of the first scripts i've ever ran on SB, seeing this back again really reminds me of how much of a noob i was.--
21
--Credits to Krystalteam, they made the original krystal dance! Be sure to respect them or else...--
22
--#makeoldscriptsgreatagain--
23
24
if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");InternalData = {}
25
do
26
	script.Parent = owner.Character
27
	local Event = Instance.new("RemoteEvent");Event.Name = "UserInput"
28
	local function NewFakeEvent()
29
		local Bind = Instance.new("BindableEvent")
30
		local Fake;Fake = {Connections = {},
31
		fakeEvent=true;
32
		Connect=function(self,Func)
33
			Bind.Event:connect(Func)
34
			self.Connections[Bind] = true
35
			return setmetatable({Connected = true},{
36
			__index = function (self,Index)
37
				if Index:lower() == "disconnect" then
38
					return function() Fake.Connections[Bind] = false;self.Connected = false end
39
				end
40
				return Fake[Index]
41
			end;
42
			__tostring = function() return "Connection" end;
43
		})
44
		end}
45
		Fake.connect = Fake.Connect;return Fake;
46
	end
47
	local Mouse = {Target=nil,Hit=CFrame.new(),KeyUp=NewFakeEvent(),KeyDown=NewFakeEvent(),Button1Up=NewFakeEvent(),Button1Down=NewFakeEvent()}
48
	local UserInputService = {InputBegan=NewFakeEvent(),InputEnded=NewFakeEvent()}
49
	local ContextActionService = {Actions={},BindAction = function(self,actionName,Func,touch,...)
50
		self.Actions[actionName] = Func and {Name=actionName,Function=Func,Keys={...}} or nil
51
	end};ContextActionService.UnBindAction = ContextActionService.BindAction
52
	local function TriggerEvent(self,Event,...)
53
		local Trigger = Mouse[Event]
54
		if Trigger and Trigger.fakeEvent and Trigger.Connections then
55
			for Connection,Active in pairs(Trigger.Connections) do if Active then Connection:Fire(...) end end
56
		end
57
	end
58
	Mouse.TrigEvent = TriggerEvent;UserInputService.TrigEvent = TriggerEvent
59
	Event.OnServerEvent:Connect(function(FiredBy,Input)
60
		if FiredBy.Name ~= owner.Name then return end
61
		if Input.MouseEvent then
62
			Mouse.Target = Input.Target;Mouse.Hit = Input.Hit
63
		else
64
			local Begin = Input.UserInputState == Enum.UserInputState.Begin
65
			if Input.UserInputType == Enum.UserInputType.MouseButton1 then return Mouse:TrigEvent(Begin and "Button1Down" or "Button1Up") end
66
			for _,Action in pairs(ContextActionService.Actions) do
67
				for _,Key in pairs(Action.Keys) do if Key==Input.KeyCode then Action.Function(Action.Name,Input.UserInputState,Input) end end
68
			end
69
			Mouse:TrigEvent(Begin and "KeyDown" or "KeyUp",Input.KeyCode.Name:lower())
70
			UserInputService:TrigEvent(Begin and "InputBegan" or "InputEnded",Input,false)
71
		end
72
	end)
73
	InternalData["Mouse"] = Mouse;InternalData["ContextActionService"] = ContextActionService;InternalData["UserInputService"] = UserInputService
74
	Event.Parent = NLS([[
75
		local Player = owner;local Event = script:WaitForChild("UserInput");local UserInputService = game:GetService("UserInputService");local Mouse = Player:GetMouse()
76
		local Input = function(Input,gameProcessedEvent)
77
			if gameProcessedEvent then return end
78
			Event:FireServer({KeyCode=Input.KeyCode,UserInputType=Input.UserInputType,UserInputState=Input.UserInputState})
79
		end
80
		UserInputService.InputBegan:Connect(Input);UserInputService.InputEnded:Connect(Input)
81
		local Hit,Target
82
		while wait(1/30) do
83
			if Hit ~= Mouse.Hit or Target ~= Mouse.Target then
84
				Hit,Target = Mouse.Hit,Mouse.Target;Event:FireServer({["MouseEvent"]=true,["Target"]=Target,["Hit"]=Hit})
85
			end
86
		end
87
	]],owner.Character)
88
end
89
RealGame = game;game = setmetatable({},{
90
	__index = function (self,Index)
91
		local Sandbox = function (Thing)
92
			if Thing:IsA("Player") then
93
				local RealPlayer = Thing
94
				return setmetatable({},{
95
					__index = function (self,Index)
96
						local Type = type(RealPlayer[Index])
97
						if Type == "function" then
98
							if Index:lower() == "getmouse" or Index:lower() == "mouse" then
99
								return function (self)return InternalData["Mouse"] end
100
							end
101
							return function (self,...)return RealPlayer[Index](RealPlayer,...) end
102
						end
103
						return RealPlayer[Index]
104
					end;
105
					__tostring = function(self) return RealPlayer.Name end
106
				})
107
			end
108
		end
109
		if RealGame[Index] then
110
			local Type = type(RealGame[Index])
111
			if Type == "function" then
112
				if Index:lower() == "getservice" or Index:lower() == "service" then
113
					return function (self,Service)
114
						local FakeServices = {
115
							["players"] = function()
116
								return setmetatable({},{
117
									__index = function (self2,Index2)
118
										local RealService = RealGame:GetService(Service)
119
										local Type2 = type(Index2)
120
										if Type2 == "function" then
121
											return function (self,...) return RealService[Index2](RealService,...)end
122
										else
123
											if Index2:lower() == "localplayer" then return Sandbox(owner) end
124
											return RealService[Index2]
125
										end
126
									end;
127
									__tostring = function(self) return RealGame:GetService(Service).Name end
128
								})
129
							end;
130
							["contextactionservice"] = function() return InternalData["ContextActionService"] end;
131
							["userinputservice"] = function() return InternalData["UserInputService"] end;
132
							["runservice"] = function()
133
								return setmetatable({},{
134
									__index = function(self2,Index2)
135
										local RealService = RealGame:GetService(Service)
136
										local Type2 = type(Index2)
137
										if Type2 == "function" then
138
											return function (self,...) return RealService[Index2](RealService,...) end
139
										else
140
											local RunServices = {
141
												["bindtorenderstep"] = function() return function (self,Name,Priority,Function) return RealGame:GetService("RunService").Stepped:Connect(Function) end end;
142
												["renderstepped"] = function() return RealService["Stepped"] end
143
											}
144
											if RunServices[Index2:lower()] then return RunServices[Index2:lower()]() end
145
											return RealService[Index2]
146
										end
147
									end
148
								})
149
							end
150
						}
151
						if FakeServices[Service:lower()] then return FakeServices[Service:lower()]() end
152
						return RealGame:GetService(Service)
153
					end
154
				end
155
				return function (self,...) return RealGame[Index](RealGame,...) end
156
			else
157
				if game:GetService(Index) then return game:GetService(Index) end
158
				return RealGame[Index]
159
			end
160
		end
161
		return nil
162
	end
163
});Game = game;owner = game:GetService("Players").LocalPlayer;script = Instance.new("Script");print("Complete! Running...")
164
165
Player=game.Players.LocalPlayer
166
Character=Player.Character
167
Character.Humanoid.Name = "noneofurbusiness"
168
hum = Character.noneofurbusiness
169
LeftArm=Character["Left Arm"]
170
LeftLeg=Character["Left Leg"]
171
RightArm=Character["Right Arm"]
172
RightLeg=Character["Right Leg"]
173
Root=Character["HumanoidRootPart"]
174
Head=Character["Head"]
175
Torso=Character["Torso"]
176
Neck=Torso["Neck"]
177
mouse = Player:GetMouse()
178
walking = false
179
jumping = false
180
attacking = false
181
firsttime = false
182
tauntdebounce = false
183
position = nil
184
MseGuide = true
185
running = false
186
settime = 0
187
sine = 0
188
t = 0
189
ws = 10
190
change = 1
191
combo1 = true
192
dancing = false
193
equip = false
194
dgs = 75
195
combo2 = false
196
switch1 = true
197
switch2 = false
198
firsttime2 = false
199
combo3 = false
200
gunallowance = false
201
shooting = false
202
RunSrv = game:GetService("RunService")
203
RenderStepped = game:GetService("RunService").RenderStepped
204
removeuseless = game:GetService("Debris")
205
206
screenGui = Instance.new("ScreenGui")
207
screenGui.Parent = script.Parent
208
209
local HEADLERP = Instance.new("ManualWeld")
210
HEADLERP.Parent = Head
211
HEADLERP.Part0 = Head
212
HEADLERP.Part1 = Head
213
HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
214
215
local TORSOLERP = Instance.new("ManualWeld")
216
TORSOLERP.Parent = Root
217
TORSOLERP.Part0 = Torso
218
TORSOLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
219
220
local ROOTLERP = Instance.new("ManualWeld")
221
ROOTLERP.Parent = Root
222
ROOTLERP.Part0 = Root
223
ROOTLERP.Part1 = Torso
224
ROOTLERP.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
225
226
local RIGHTARMLERP = Instance.new("ManualWeld")
227
RIGHTARMLERP.Parent = RightArm
228
RIGHTARMLERP.Part0 = RightArm
229
RIGHTARMLERP.Part1 = Torso
230
RIGHTARMLERP.C0 = CFrame.new(-1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
231
232
local LEFTARMLERP = Instance.new("ManualWeld")
233
LEFTARMLERP.Parent = LeftArm
234
LEFTARMLERP.Part0 = LeftArm
235
LEFTARMLERP.Part1 = Torso
236
LEFTARMLERP.C0 = CFrame.new(1.5, 0, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
237
238
local RIGHTLEGLERP = Instance.new("ManualWeld")
239
RIGHTLEGLERP.Parent = RightLeg
240
RIGHTLEGLERP.Part0 = RightLeg
241
RIGHTLEGLERP.Part1 = Torso
242
RIGHTLEGLERP.C0 = CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
243
244
local LEFTLEGLERP = Instance.new("ManualWeld")
245
LEFTLEGLERP.Parent = LeftLeg
246
LEFTLEGLERP.Part0 = LeftLeg
247
LEFTLEGLERP.Part1 = Torso
248
LEFTLEGLERP.C0 = CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
249
250
local function weldBetween(a, b)
251
    local weld = Instance.new("ManualWeld", a)
252
    weld.Part0 = a
253
    weld.Part1 = b
254
    weld.C0 = a.CFrame:inverse() * b.CFrame
255
    return weld
256
end
257
258
function MAKETRAIL(PARENT,POSITION1,POSITION2,LIFETIME,COLOR)
259
A = Instance.new("Attachment", PARENT)
260
A.Position = POSITION1
261
A.Name = "A"
262
B = Instance.new("Attachment", PARENT)
263
B.Position = POSITION2
264
B.Name = "B"
265
tr1 = Instance.new("Trail", PARENT)
266
tr1.Attachment0 = A
267
tr1.Attachment1 = B
268
tr1.Enabled = true
269
tr1.Lifetime = LIFETIME
270
tr1.TextureMode = "Static"
271
tr1.LightInfluence = 0
272
tr1.Color = COLOR
273
tr1.Transparency = NumberSequence.new(0, 1)
274
end
275
276
introsound = Instance.new("Sound",Head)
277
introsound.SoundId = "rbxassetid://236146895"
278
introsound.Volume = 8
279
introsound:Play()
280
281
shades = Instance.new("Part",Character)
282-
shades.Size = Vector3.new(2,2,2)
282+
shades.Size = Vector3.new(2.1,2.1,2.1)
283
shades.CFrame = Head.CFrame
284
shades.CanCollide = false
285
shadesweld = Instance.new("Weld",shades)
286
shadesweld.Part0 = shades
287
shadesweld.Part1 = Head
288
shadesweld.C0 = shades.CFrame:inverse() * Head.CFrame * CFrame.new(0,-.2,.15)
289
mshades = Instance.new("SpecialMesh", shades)
290
mshades.MeshType = "FileMesh"
291-
mshades.Scale = Vector3.new(1.04, 1.28, 1.04)
291+
mshades.Scale = Vector3.new(1.06, 1.30, 1.06)
292-
mshades.MeshId = 'http://www.roblox.com/asset/?id=1577360'
292+
mshades.MeshId,mshades.TextureId = 'http://www.roblox.com/asset/?id=1577360','http://www.roblox.com/asset/?id=1577349'
293-
mshades.TextureId = 'https://web.roblox.com/library/4709847816/Clockwork-Shades-Blue'
293+
294-
-- http://www.roblox.com/asset/?id=1577349
294+
295
while wait() do
296
hum.WalkSpeed = ws
297
end
298-
Head.face.Texture = "rbxasset://textures/face.png"
298+
299
godmode = coroutine.wrap(function()
300
for i,v in pairs(Character:GetChildren()) do
301
if v:IsA("BasePart") and v ~= Root then
302
v.Anchored = false
303
end
304
end
305
while true do
306
hum.MaxHealth = math.huge
307
wait(0.0000001)
308
hum.Health = math.huge
309
wait()
310
end
311
end)
312
godmode()
313
ff = Instance.new("ForceField", Character)
314
ff.Visible = false
315
316
coroutine.wrap(function()
317
for i,v in pairs(Character:GetChildren()) do
318
if v.Name == "Animate" then v:Remove()
319
end
320
end
321
end)()
322
323
function damagealll(Radius,Position)		
324
	local Returning = {}		
325
	for _,v in pairs(workspace:GetChildren()) do		
326
		if v~=Character and v:FindFirstChildOfClass('Humanoid') and v:FindFirstChild('Torso') or v:FindFirstChild('UpperTorso') then
327
if v:FindFirstChild("Torso") then		
328
			local Mag = (v.Torso.Position - Position).magnitude		
329
			if Mag < Radius then		
330
				table.insert(Returning,v)		
331
			end
332
elseif v:FindFirstChild("UpperTorso") then	
333
			local Mag = (v.UpperTorso.Position - Position).magnitude		
334
			if Mag < Radius then		
335
				table.insert(Returning,v)		
336
			end
337
end	
338
		end		
339
	end		
340
	return Returning		
341
end
342
343
ArtificialHB = Instance.new("BindableEvent", script)
344
ArtificialHB.Name = "Heartbeat"
345
script:WaitForChild("Heartbeat")
346
347
frame = 1 / 60
348
tf = 0
349
allowframeloss = false
350
tossremainder = false
351
352
353
lastframe = tick()
354
script.Heartbeat:Fire()
355
356
357
game:GetService("RunService").Heartbeat:connect(function(s, p)
358
	tf = tf + s
359
	if tf >= frame then
360
		if allowframeloss then
361
			script.Heartbeat:Fire()
362
			lastframe = tick()
363
		else
364
			for i = 1, math.floor(tf / frame) do
365
				script.Heartbeat:Fire()
366
			end
367
			lastframe = tick()
368
		end
369
		if tossremainder then
370
			tf = 0
371
		else
372
			tf = tf - frame * math.floor(tf / frame)
373
		end
374
	end
375
end)
376
377
function swait(num)
378
	if num == 0 or num == nil then
379
		game:service("RunService").Stepped:wait(0)
380
	else
381
		for i = 0, num do
382
			game:service("RunService").Stepped:wait(0)
383
		end
384
	end
385
end
386
387
intro = true
388
ws = 0
389
for i,v in pairs(Character:GetDescendants()) do
390
if v:IsA("Part") and v.Name ~= "mbigf" then v.Transparency = 1
391
end
392
end
393-
bigfedora = Instance.new("Part",Character)
393+
394-
bigfedora.Size = Vector3.new(2,2,2)
394+
CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),09)
395-
bigfedora.CFrame = bigfedora.CFrame:inverse() * Root.CFrame * CFrame.new(math.random(-60,60),-.2,math.random(-60,60)) * CFrame.Angles(0,math.rad(math.random(-180,180)),0)
395+
396-
bigfedora.CanCollide = false
396+
397-
bigfedora.Anchored = true
397+
398-
bigfedora.Name = "mbigf"
398+
399-
mbigfedora = Instance.new("SpecialMesh", bigfedora)
399+
400-
mbigfedora.MeshType = "FileMesh"
400+
401-
mbigfedora.Scale = Vector3.new(6, 7, 7)
401+
402-
mbigfedora.MeshId,mbigfedora.TextureId = 'http://www.roblox.com/asset/?id=13640868','http://www.roblox.com/asset/?id=18987684'
402+
403
swait()
404
end
405
zmc = 0
406
for i = 1, 29 do
407
zmc = zmc + 2
408-
bigfedora.CFrame = bigfedora.CFrame:lerp(CFrame.new(Root.Position) * CFrame.new(0,-.1,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.09)
408+
409
end
410
411
ws = 14
412
413
function SOUND(PARENT,ID,VOL,LOOP,REMOVE)
414
so = Instance.new("Sound")
415
so.Parent = PARENT
416
so.SoundId = "rbxassetid://"..ID
417-
bigfedora:Destroy()
417+
418
so.Looped = LOOP
419
420
so:Play()
421
removeuseless:AddItem(so,REMOVE)
422
end
423-
mbigfedora.Scale = mbigfedora.Scale - Vector3.new(.25,.25,.25)
423+
424-
bigfedora.CFrame = bigfedora.CFrame * CFrame.Angles(math.rad(0),math.rad(zmc),0)
424+
425
Press=Press:lower()
426
if Press=='k' then
427-
bigfedora:Remove()
427+
428
dancing = false
429
else
430
dancing = true
431
ws = 0
432
change = .5
433
attacking = true
434
jam = Instance.new("Sound",Torso)
435
jam.SoundId = "rbxassetid://665751753"
436
jam.Volume = 8
437
jam.Looped = true
438
jam.TimePosition = 22.3
439
jam:Play()
440
lol90 = 0
441
coroutine.wrap(function()
442
while dancing do
443
lol90 = lol90 + 11
444
ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(1 * math.sin(sine/10),.1 + .8 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(0 * math.sin(sine/8)),math.rad(8 * math.sin(sine/7))),.25)
445
ROOTLERP.C1 = ROOTLERP.C1:lerp(CFrame.new(0 * math.sin(sine/14),0,0) * CFrame.Angles(math.rad(0),math.rad(lol90),0),.25)
446
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-5 * math.sin(sine/3)),math.rad(-6 * math.sin(sine/3))),0.25)
447
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(5 * math.sin(sine/3)),math.rad(6 * math.sin(sine/3))), 0.25)
448
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10 + 5 * math.sin(sine/3))), 0.25)
449
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10 - 5 * math.sin(sine/3))), 0.25)
450
swait()
451
end
452
ws = 14
453
jam:Remove()
454
ROOTLERP.C1 = CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0))
455
attacking = false
456
end)()
457
end
458
end
459
end)
460
461
mouse.KeyDown:connect(function(Press)
462
Press=Press:lower()
463
if Press=='j' then
464
if dancing then
465
dancing = false
466
else
467
dancing = true
468
ws = 2
469
change = .5
470
attacking = true
471
g1 = Instance.new("BodyGyro", Root)
472
g1.D = 175
473
g1.P = 20000
474
g1.MaxTorque = Vector3.new(0,9000,0)
475
herecomesthemoney = Instance.new("Sound",Torso)
476
herecomesthemoney.Pitch = 1
477
herecomesthemoney.SoundId = "rbxassetid://2426693638"
478
herecomesthemoney.Volume = 10
479
herecomesthemoney.Looped = true
480
herecomesthemoney:Play()
481
robuxpile = Instance.new("Part",Torso)
482
robuxpile.Size = Vector3.new(1,1,1)
483
robuxpile.CFrame = LeftArm.CFrame
484
robuxpile.CanCollide = false
485
robuxpileweld = Instance.new("Weld",robuxpile)
486-
ws = 3
486+
487
robuxpileweld.Part1 = Torso
488
robuxpileweld.C0 = robuxpile.CFrame:inverse() * LeftArm.CFrame * CFrame.new(1,-.7,1.4)
489
mrobuxpile = Instance.new("SpecialMesh", robuxpile)
490
mrobuxpile.MeshType = "FileMesh"
491
mrobuxpile.Scale = Vector3.new(0.85, .85, .85)
492
mrobuxpile.MeshId,mrobuxpile.TextureId = 'http://www.roblox.com/asset/?id=1285245','http://www.roblox.com/asset/?id=8587344'
493
coroutine.wrap(function()
494
coroutine.wrap(function()
495
while wait(.35) do
496-
herecomesthemoney.Volume = 8
496+
497
local robux = Instance.new("Part",Torso)
498
robux.CFrame = robuxpile.CFrame * CFrame.Angles(math.rad(0),math.rad(90),math.rad(90))
499
robux.Anchored = false
500
robux.CanCollide = true
501
robux.Size = Vector3.new(1,1,1)
502
removeuseless:AddItem(robux,15)
503
mrobux = Instance.new("SpecialMesh", robux)
504
mrobux.MeshType = "FileMesh"
505
mrobux.Scale = Vector3.new(1.25, 1.25, 1.25)
506
mrobux.MeshId,mrobux.TextureId = 'http://www.roblox.com/asset/?id=667285348','http://www.roblox.com/asset/?id=665939136'
507
bov = Instance.new("BodyVelocity",robux)
508
bov.maxForce = Vector3.new(99999,99999,99999)
509
robux.CFrame = CFrame.new(robux.Position,mouse.Hit.p)
510
bov.velocity = robux.CFrame.lookVector*45
511
removeuseless:AddItem(bov,.1)
512
end
513
end)()
514
while dancing do
515
g1.CFrame = g1.CFrame:lerp(CFrame.new(Root.Position,mouse.Hit.p),.4)
516
ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.3,0) * CFrame.Angles(math.rad(20),math.rad(0 * math.sin(sine/8)),math.rad(0)),.25)
517
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,.5 + .5 * math.sin(sine/2),.5) * CFrame.Angles(math.rad(-97),math.rad(40 - 20 * math.sin(sine/2)),math.rad(0)), 0.25)
518
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,.5,.5) * CFrame.Angles(math.rad(-87),math.rad(-20),math.rad(0)), 0.25)
519
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , .5) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(-10)), 0.25)
520-
removeuseless:AddItem(robux,4)
520+
521
swait()
522
end
523
ws = 14
524
removeuseless:AddItem(g1,.001)
525
robuxpile:Remove()
526
attacking = false
527
end)()
528
end
529
end
530
end)
531
532
mouse.KeyDown:connect(function(Press)
533
Press=Press:lower()
534
if Press=='h' then
535
if dancing then
536
dancing = false
537
else
538
dancing = true
539
ws = 0
540
change = .5
541
attacking = true
542
jellyfishjam = Instance.new("Sound",Torso)
543
jellyfishjam.SoundId = "rbxassetid://840189092"
544
jellyfishjam.Volume = 8
545
jellyfishjam.Looped = true
546
jellyfishjam.TimePosition = 14.8
547
jellyfishjam:Play()
548
coroutine.wrap(function()
549
while dancing do
550
for i = 1, 15 do
551
if not dancing then break end
552
ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(20)),.25)
553
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
554
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
555
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(0.25, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-35)), 0.25)
556
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(14)), 0.25)
557
swait()
558
end
559
for i = 1, 15 do
560
if not dancing then break end
561
ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25)
562
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
563
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
564
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(25), math.rad(-2)), 0.25)
565
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.25)
566
swait()
567
end
568
for i = 1, 15 do
569
if not dancing then break end
570
ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.4 + .1 * math.sin(sine/4),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(-20)),.25)
571
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
572
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
573
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.25)
574
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(-0.25, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(35)), 0.25)
575
swait()
576
end
577
for i = 1, 15 do
578
if not dancing then break end
579
ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(-.5,-.1,0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/8)),math.rad(0)),.25)
580
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.3)
581
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(-50 - 3 * math.sin(sine/12)),math.rad(-3 + 1 * math.sin(sine/12))), .3)
582
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(-14)), 0.3)
583
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.25, .7,1.5) * CFrame.Angles(math.rad(72), math.rad(-25), math.rad(-2)), 0.25)
584
swait()
585
end
586
swait()
587
end
588
ws = 14
589
attacking = false
590
end)()
591
end
592
end
593
end)
594
595
mouse.KeyDown:connect(function(Press)
596
Press=Press:lower()
597
if Press=='g' then
598
if dancing then
599
dancing = false
600
else
601
dancing = true
602
ws = 0
603
change = .5
604
attacking = true
605
deadmau7 = Instance.new("Sound",Torso)
606
deadmau7.SoundId = "rbxassetid://168166611"
607
deadmau7.Volume = 8
608
deadmau7.Looped = true
609
deadmau7:Play()
610
coroutine.wrap(function()
611
coroutine.wrap(function()
612
while dancing do
613
ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(2 * math.sin(sine/9),-.4 + .1 * math.sin(sine/3),0) * CFrame.Angles(math.rad(0),math.rad(20 * math.sin(sine/9)),0),.25)
614
swait()
615
end
616
end)()
617
while dancing do
618
for i = 1, 28 do
619
if not dancing then break end
620
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2)
621
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2)
622
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, .7,1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(0)), 0.25)
623
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05,-.1) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(-2)), 0.3)
624
swait()
625
end
626
for i = 1, 28 do
627
if not dancing then break end
628
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.9,.65 + .4 * math.sin(sine/12),1.2) * CFrame.Angles(math.rad(-35 - 15 * math.sin(sine/12)),math.rad(50 + 3 * math.sin(sine/12)),math.rad(3 - 1 * math.sin(sine/12))),.2)
629
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.2,1.5,0) * CFrame.Angles(math.rad(180 - 7 * math.sin(sine/3)),math.rad(7 * math.sin(sine/3)),math.rad(7*math.sin(sine/3))), 0.2)
630
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05,.1) * CFrame.Angles(math.rad(-10), math.rad(0), math.rad(-8)), 0.25)
631
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, .7,1.1) * CFrame.Angles(math.rad(75 - 10 * math.sin(sine/2)), math.rad(0), math.rad(-2)), 0.25)
632
swait()
633
end
634
swait()
635
end
636
ws = 14
637
deadmau7:Remove()
638
attacking = false
639
end)()
640
end
641
end
642
end)
643
644
mouse.KeyDown:connect(function(Press)
645
Press=Press:lower()
646
if Press=='f' then
647
if dancing then
648
dancing = false
649
else
650
dancing = true
651
ws = 6
652
change = .5
653
attacking = true
654
bennyhill = Instance.new("Sound",Torso)
655
bennyhill.SoundId = "rbxassetid://138211362"
656
bennyhill.Pitch = 1.5
657
bennyhill.Volume = 8
658
bennyhill.Looped = true
659
bennyhill:Play()
660
coroutine.wrap(function()
661
while dancing do
662
ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(0,-.4,0) * CFrame.Angles(math.rad(20 + 5 * math.sin(sine/2)),math.rad(10 * math.sin(sine/4)),0),.25)
663
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.89 - .4 * -math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70 + 20 * -math.sin(sine/2)),0,math.rad(0)),.25)
664
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.89 - .4 * math.sin(sine/2),.49) * CFrame.Angles(math.rad(-70  + 20 * math.sin(sine/2)),0,math.rad(0)),.25)
665
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, -.2 + .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * -math.sin(sine/2)), math.rad(0), math.rad(-8)), 0.25)
666
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0,-.2 - .3 * math.sin(sine/2)) * CFrame.Angles(math.rad(-20 - 20 * math.sin(sine/2)), math.rad(0), math.rad(8)), 0.25)
667
swait()
668
end
669
ws = 14
670
bennyhill:Remove()
671
attacking = false
672
end)()
673
end
674
end
675
end)
676
677
mouse.KeyDown:connect(function(Press)
678
Press=Press:lower()
679
if Press=='p' then
680
if dancing then
681
dancing = false
682
else
683
dancing = true
684
ws = 0
685
change = .5
686
attacking = true
687
barrelspin = 0
688
barrelrollsound = Instance.new("Sound",Torso)
689
barrelrollsound.SoundId = "rbxassetid://505320170"
690
barrelrollsound.Volume = 8
691
barrelrollsound.Looped = true
692
barrelrollsound:Play()
693
barrol = Instance.new("Part",Torso)
694
barrol.Size = Vector3.new(1,1,1)
695
barrol.CFrame = Torso.CFrame
696
barrol.CanCollide = false
697
barrolweld = Instance.new("Weld",barrol)
698
barrolweld.Part0 = barrol
699
barrolweld.Part1 = Torso
700
barrolweld.C0 = barrol.CFrame:inverse() * Torso.CFrame * CFrame.new(0,0,0)
701
mbarrol = Instance.new("SpecialMesh", barrol)
702
mbarrol.MeshType = "FileMesh"
703
mbarrol.Scale = Vector3.new(1.07, .97, 1.07)
704
mbarrol.MeshId,mbarrol.TextureId = 'http://www.roblox.com/asset/?id=29873142','http://www.roblox.com/asset/?id=31082268'
705
coroutine.wrap(function()
706
while dancing do
707
ROOTLERP.C0 = ROOTLERP.C0:Lerp(CFrame.new(5 * math.sin(sine/8),-1.8,0) * CFrame.Angles(math.rad(-90),math.rad(180 * math.sin(sine/8)),0),.25)
708
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
709
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,1.5,0) * CFrame.Angles(math.rad(180),0,math.rad(0)),.25)
710
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(.5,2,0) * CFrame.Angles(0,0,0),.25)
711
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-.5,2,0) * CFrame.Angles(0,0,0),.25)
712
swait()
713
end
714
ws = 14
715
barrol:Remove()
716
attacking = false
717
end)()
718
end
719
end
720-
mbarrol.Scale = Vector3.new(1.05, .95, 1.05)
720+
721
722
mouse.KeyDown:connect(function(Press)
723
Press=Press:lower()
724
if Press=='q' then
725
if dancing then
726
dancing = false
727
else
728
dancing = true
729
ws = 0
730
change = .5
731
spinningmove = 0
732
dbwouldlovethis = Instance.new("Sound",Torso)
733
dbwouldlovethis.SoundId = "rbxassetid://1532157598"
734
dbwouldlovethis.Volume = 8
735
dbwouldlovethis.Looped = true
736
dbwouldlovethis:Play()
737
attacking = true
738
coroutine.wrap(function()
739
while dancing do
740
spinningmove = spinningmove + 10
741
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.9, -.35) * CFrame.Angles(math.rad(-30), math.rad(0), math.rad(0)),.2)
742
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.9, .35) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
743
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.2 * math.sin(sine/3), -.52, .2 * math.sin(sine/4)) * CFrame.Angles(math.rad(180),math.rad(spinningmove),math.rad(15 * math.sin(sine/9))),.2)
744
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(-1),math.rad(-3 * math.sin(sine/2))),0.3)
745
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.4,1.45,0) * CFrame.Angles(math.rad(180),math.rad(1),math.rad(3 * math.sin(sine/2))), 0.3)
746
swait()
747
end
748
ws = 14
749
dbwouldlovethis:Remove()
750
attacking = false
751
end)()
752
end
753
end
754
end)
755
756
757
mouse.KeyDown:connect(function(Press)
758
Press=Press:lower()
759
if Press=='u' then
760
if dancing then
761
dancing = false
762
else
763
dancing = true
764
ws = 6
765
change = .5
766
attacking = true
767
slavdance = Instance.new("Sound",Torso)
768
slavdance.SoundId = "rbxassetid://2341226836"
769
slavdance.Volume = 6
770
slavdance.Looped = true
771
slavdance:Play()
772
coroutine.wrap(function()
773
while dancing do
774
for i = 1, 17 do
775
if not dancing then break end
776
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
777
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
778
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2)
779
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3)
780
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3)
781
swait()
782
end
783
for i = 1, 17 do
784
if not dancing then break end
785
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.52, 1.2, .55) * CFrame.Angles(math.rad(30), math.rad(0), math.rad(0)),.2)
786
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.52, 1.5, -.5) * CFrame.Angles(math.rad(-60), math.rad(0), math.rad(0)),.2)
787
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.8 + .1 * math.sin(sine/3), 0) * CFrame.Angles(math.rad(22 - 2 * math.sin(sine/3)),math.rad(0),math.rad(0)),.2)
788
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,-.2,.4) * CFrame.Angles(math.rad(-87 + .01 * math.sin(sine/9)),math.rad(80 - 3 * math.sin(sine/9)),math.rad(0)), 0.3)
789
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.7,-.2,.4) * CFrame.Angles(math.rad(-87 - .01 * math.sin(sine/9)),math.rad(-88 + .7 * math.sin(sine/9)),math.rad(0)), 0.3)
790
swait()
791
end
792
swait()
793
end
794
ws = 14
795
slavdance:Remove()
796
attacking = false
797
end)()
798
end
799
end
800
end)
801
802
mouse.KeyDown:connect(function(Press)
803
Press=Press:lower()
804
if Press=='y' then
805
if dancing then
806
dancing = false
807
else
808
dancing = true
809
ws = 0
810
change = .5
811
walkforward = 0
812
walkrotation = 0
813
attacking = true
814
truelegend = Instance.new("Sound",Torso)
815
truelegend.SoundId = "rbxassetid://487872908"
816
truelegend.TimePosition = 13.98
817
truelegend.Volume = 8
818
truelegend.Looped = true
819
truelegend:Play()
820
coroutine.wrap(function()
821
while dancing do
822
for i = 1, 100 do
823
if not dancing then break end
824
walkforward = walkforward + .1
825
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2.05 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
826
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2.05, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
827
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.2)
828
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
829
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
830
swait()
831
end
832
for i = 1, 50 do
833
if not dancing then break end
834
walkrotation = walkrotation + 15
835
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
836
swait()
837
end
838
walkrotation = 0
839
for i = 1, 100 do
840
if not dancing then break end
841
walkforward = walkforward - .1
842
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.31, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
843
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.31, 2, -.15 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
844
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(-180),math.rad(-0)),.2)
845
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3,.7,.2) * CFrame.Angles(math.rad(220),math.rad(0),math.rad(-30)), 0.4)
846
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.3)
847
swait()
848
end
849
for i = 1, 50 do
850
if not dancing then break end
851
walkrotation = walkrotation + 15
852
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,0,0) * CFrame.Angles(0,0,math.rad(0)),.1)
853
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, walkforward) * CFrame.Angles(math.rad(0),math.rad(walkrotation),math.rad(-0)),.2)
854
swait()
855
end
856
walkrotation = 0
857
swait()
858
end
859
ws = 14
860
truelegend:Remove()
861
attacking = false
862
end)()
863
end
864
end
865
end)
866
867
mouse.KeyDown:connect(function(Press)
868
Press=Press:lower()
869
if Press=='t' then
870
if dancing then
871
dancing = false
872
else
873
dancing = true
874
ws = 0
875
change = .5
876
attacking = true
877
plummusic = Instance.new("Sound",Torso)
878
plummusic.Volume = 8
879
plummusic.Looped = true
880
plummusic.SoundId = "rbxassetid://2526093213"
881
plummusic:Play()
882
coroutine.wrap(function()
883
while dancing do
884
for i = 1, 20 do
885
if not dancing then break end
886
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2 , .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
887
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
888
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15)),.2)
889
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(.5,1.98,.05) * CFrame.Angles(0,0,math.rad(-140)),.2)
890
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1,1.3,.05) * CFrame.Angles(0,0,math.rad(50)),.2)
891
swait()
892
end
893
for i = 1, 20 do
894
if not dancing then break end
895
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.33, 2, .05) * CFrame.Angles(math.rad(3), math.rad(0), math.rad(-8)), 0.2)
896
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.33, 2.0, -.05) * CFrame.Angles(math.rad(-3), math.rad(0), math.rad(8)), 0.2)
897
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(-15)),.2)
898
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1,1.4,.05) * CFrame.Angles(0,0,math.rad(-50)),.2)
899
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(-.6,2,.05) * CFrame.Angles(0,0,math.rad(140)),.2)
900
swait()
901
end
902
swait()
903
end
904
ws = 14
905
plummusic:Remove()
906
attacking = false
907
end)()
908
end
909
end
910
end)
911
912
mouse.KeyDown:connect(function(Press)
913
Press=Press:lower()
914
if Press=='e' then
915
if dancing then
916
dancing = false
917
else
918
dancing = true
919
ws = 0
920
change = .5
921
attacking = true
922
mrozo = Instance.new("Sound",Torso)
923
mrozo.Volume = 8
924
mrozo.SoundId = "rbxassetid://335701357"
925
mrozo.Looped = true
926
mrozo.TimePosition = 10
927
mrozo:Play()
928
coroutine.wrap(function()
929
while dancing do
930
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 , 0) * CFrame.Angles(0, math.rad(0), math.rad(-10)), 0.1)
931
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0, 0) * CFrame.Angles(0, math.rad(0), math.rad(10)), 0.1)
932
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(0),math.rad(0*math.sin(sine/4)),math.rad(15*math.sin(sine/4))),.2)
933
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.3 + .3 * math.sin(sine/3.5),.5 * -math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2)
934
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.3 + .3 * math.sin(sine/3.5),.5 * math.sin(sine/3.5),.1) * CFrame.Angles(math.rad(0 * math.sin(sine/2)),0,math.rad(30 * math.sin(sine/3.5))),.2)
935
swait()
936
end
937
mrozo:Remove()
938
ws = 14
939
attacking = false
940
end)()
941
end
942
end
943
end)
944
945
mouse.KeyDown:connect(function(Press)
946
Press=Press:lower()
947
if Press=='r' then
948
if dancing then
949
dancing = false
950
else
951
ws = 6
952
recordbaby = 0
953
dancing = true
954
change = .5
955
attacking = true
956
spinme = Instance.new("Sound",Torso)
957
spinme.Volume = 8
958
spinme.SoundId = "rbxassetid://145799973"
959
spinme.Looped = true
960
spinme:Play()
961
coroutine.wrap(function()
962
while dancing do
963
recordbaby = recordbaby + 10
964
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.27, 2 , .1 * math.sin(sine/4)) * CFrame.Angles(math.rad(10 * math.sin(sine/4)), math.rad(0), math.rad(-8)), 0.3)
965
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.27, 2.0, -.1 * math.sin(sine/4)) * CFrame.Angles(math.rad(-10 * math.sin(sine/4)), math.rad(0), math.rad(8)), 0.3)
966
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(.5 * math.sin(sine/5), -.2, .5 * math.sin(sine/4)) * CFrame.Angles(math.rad(0),math.rad(recordbaby),math.rad(0)),.3)
967
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-.5,1.98,0) * CFrame.Angles(0,0,math.rad(-90)),.3)
968
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(.5,1.98,0) * CFrame.Angles(0,0,math.rad(90)),.3)
969
swait()
970
end
971
spinme:Remove()
972
ws = 14
973
attacking = false
974
end)()
975
end
976
end
977
end)
978
979
function ray(pos, dir, rang, ignoredesc)
980
	return workspace:FindPartOnRay(Ray.new(pos, dir.unit * rang), ignoredesc)
981
end
982
983
function ray2(startpos, endpos, distance, ignore)
984
local dir = CFrame.new(startpos,endpos).lookVector
985
return ray(startpos, dir, distance, ignore)
986
end
987
988
checks1 = coroutine.wrap(function() -------Checks
989
while true do
990
hf = ray(Root.Position,(CFrame.new(Root.Position,Root.Position+Vector3.new(0,-1,0))).lookVector,3*3,Character)
991
if Root.Velocity.y > 1 then
992
position = "Jump"
993
elseif Root.Velocity.y < -1 then
994
position = "Falling"
995
elseif Root.Velocity.Magnitude < 2 then
996
position = "Idle"
997
elseif Root.Velocity.Magnitude > 2 then
998
position = "Walking"
999
elseif Root.Velocity.Magnitude > 20 then
1000
position = "Running"
1001
else
1002
end
1003
wait()
1004
end
1005
end)
1006
checks1()
1007
1008
function ray(POSITION, DIRECTION, RANGE, IGNOREDECENDANTS)
1009
	return workspace:FindPartOnRay(Ray.new(POSITION, DIRECTION.unit * RANGE), IGNOREDECENDANTS)
1010
end
1011
1012
function ray2(StartPos, EndPos, Distance, Ignore)
1013
local DIRECTION = CFrame.new(StartPos,EndPos).lookVector
1014
return ray(StartPos, DIRECTION, Distance, Ignore)
1015
end
1016
1017
OrgnC0 = Neck.C0
1018
local movelimbs = coroutine.wrap(function()
1019
while RunSrv.RenderStepped:wait() do
1020
TrsoLV = Torso.CFrame.lookVector
1021
Dist = nil
1022
Diff = nil
1023
if not MseGuide then
1024
print("Failed to recognize")
1025
else
1026
local _, Point = Workspace:FindPartOnRay(Ray.new(Head.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
1027
Dist = (Head.CFrame.p-Point).magnitude
1028
Diff = Head.CFrame.Y-Point.Y
1029
local _, Point2 = Workspace:FindPartOnRay(Ray.new(LeftArm.CFrame.p, mouse.Hit.lookVector), Workspace, false, true)
1030
Dist2 = (LeftArm.CFrame.p-Point).magnitude
1031
Diff2 = LeftArm.CFrame.Y-Point.Y
1032
HEADLERP.C0 = CFrame.new(0, -1.5, -0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0))
1033
Neck.C0 = Neck.C0:lerp(OrgnC0*CFrame.Angles((math.tan(Diff/Dist)*1), 0, (((Head.CFrame.p-Point).Unit):Cross(Torso.CFrame.lookVector)).Y*1), .1)
1034
end
1035
end
1036
end)
1037
movelimbs()
1038
immortal = {}
1039
for i,v in pairs(Character:GetDescendants()) do
1040
	if v:IsA("BasePart") and v.Name ~= "lmagic" and v.Name ~= "rmagic" then
1041
		if v ~= Root and v ~= Torso and v ~= Head and v ~= RightArm and v ~= LeftArm and v ~= RightLeg and v.Name ~= "lmagic" and v.Name ~= "rmagic" and v ~= LeftLeg then
1042
			v.CustomPhysicalProperties = PhysicalProperties.new(0, 0, 0, 0, 0)
1043
		end
1044
		table.insert(immortal,{v,v.Parent,v.Material,v.Color,v.Transparency})
1045
	elseif v:IsA("JointInstance") then
1046
		table.insert(immortal,{v,v.Parent,nil,nil,nil})
1047
	end
1048
end
1049
for e = 1, #immortal do
1050
	if immortal[e] ~= nil then
1051
		local STUFF = immortal[e]
1052
		local PART = STUFF[1]
1053
		local PARENT = STUFF[2]
1054
		local MATERIAL = STUFF[3]
1055
		local COLOR = STUFF[4]
1056
		local TRANSPARENCY = STUFF[5]
1057
if levitate then
1058
		if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= eyo1 and PART.Name ~= eyo2 and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
1059
			PART.Material = MATERIAL
1060
			PART.Color = COLOR
1061
			PART.Transparency = TRANSPARENCY
1062
		end
1063
		PART.AncestryChanged:connect(function()
1064
			PART.Parent = PARENT
1065
		end)
1066
else
1067
		if PART.ClassName == "Part" and PART ~= Root and PART.Name ~= "lmagic" and PART.Name ~= "rmagic" then
1068
			PART.Material = MATERIAL
1069
			PART.Color = COLOR
1070
			PART.Transparency = TRANSPARENCY
1071
		end
1072
		PART.AncestryChanged:connect(function()
1073
			PART.Parent = PARENT
1074
		end)
1075
end
1076
	end
1077
end
1078
function immortality()
1079
	for e = 1, #immortal do
1080
		if immortal[e] ~= nil then
1081
			local STUFF = immortal[e]
1082
			local PART = STUFF[1]
1083
			local PARENT = STUFF[2]
1084
			local MATERIAL = STUFF[3]
1085
			local COLOR = STUFF[4]
1086
			local TRANSPARENCY = STUFF[5]
1087
			if PART.ClassName == "Part" and PART == Root then
1088
				PART.Material = MATERIAL
1089
				PART.Color = COLOR
1090
				PART.Transparency = TRANSPARENCY
1091
			end
1092
			if PART.Parent ~= PARENT then
1093
				hum:Remove()
1094
				PART.Parent = PARENT
1095
				hum = Instance.new("Humanoid",Character)
1096
                                hum.Name = "noneofurbusiness"
1097
			end
1098
		end
1099
	end
1100
end
1101
coroutine.wrap(function()
1102
while true do
1103
if hum.Health < .1 then
1104
deadsound = Instance.new("Sound", Torso)
1105
deadsound.Volume = 6
1106
deadsound.SoundId = "rbxassetid://1411352723"
1107
deadsound:Play()
1108
immortality()
1109
end
1110
wait()
1111
end
1112
end)()
1113
1114
local anims = coroutine.wrap(function()
1115
while true do
1116
settime = 0.05
1117
sine = sine + change
1118
if position == "Jump" and attacking == false then
1119
change = 1
1120
spin = false
1121
for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1122
LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
1123
RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
1124
LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
1125
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(0), math.rad(0), math.rad(0)), 0.2)
1126
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.4,.1,-.2) * CFrame.Angles(math.rad(20),math.rad(-3),math.rad(-4)), 0.2)
1127
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(10), math.rad(0), math.rad(0)), 0.2)
1128
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.0, .9) * CFrame.Angles(math.rad(20), math.rad(0), math.rad(0)), 0.2)
1129
elseif position == "Falling" and attacking == false then
1130
change = 1
1131
spin = false
1132
for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1133
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, 0, 0) * CFrame.Angles(math.rad(15), math.rad(0), math.rad(0)), 0.15)
1134
LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.1)
1135
RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(math.rad(0),0,0),.1)
1136
LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(0,0,0) * CFrame.Angles(0,0,0),.4)
1137
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(4), math.rad(0)), 0.2)
1138
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 2, 0) * CFrame.Angles(math.rad(8), math.rad(-4), math.rad(0)), 0.2)
1139
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(45)), 0.2)
1140
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.94 + .02 * math.sin(sine/12),-0) * CFrame.Angles(math.rad(28 + 5 * math.sin(sine/12)),math.rad(0),math.rad(-45)), 0.2)
1141
elseif position == "Walking" and attacking == false and running == false then
1142
change = 1.2
1143
walking = true
1144
spin = false
1145
for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1146
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5 + Root.RotVelocity.Y / 85,.35,-.5*math.sin(sine/11)) * CFrame.Angles(math.rad(35*math.sin(sine/11)),math.rad(0*math.sin(sine/11)),math.rad(-10 + Root.RotVelocity.Y / 10, math.sin(-20 * math.sin(sine/4)))),.3)
1147
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5 + Root.RotVelocity.Y / 85,.45,.5*math.sin(sine/11)) * CFrame.Angles(math.rad(-55*math.sin(sine/11)),math.rad(-5*math.sin(sine/8)),math.rad(10 + Root.RotVelocity.Y / 10, math.sin(20 * math.sin(sine/4)))),.3)
1148
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.15 * 0.6*-math.sin(sine/5.5), 0) * CFrame.Angles(math.rad(10), math.rad(12 * -math.sin(sine/11)), math.rad(0) + Root.RotVelocity.Y / 30, math.cos(25 * math.cos(sine/10))), 0.3)
1149
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.92 - 0.35 * math.cos(sine/11)/2.8, -.2  + 0.2 - math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) + -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0), math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
1150
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.92 + 0.35 * math.cos(sine/11)/2.8, -.2 + 0.2 + math.sin(sine/11)/3.4) * CFrame.Angles(math.rad(25 - 25) - -math.sin(sine/11)/2.3, math.rad(0)*math.cos(sine/1), math.rad(0) , math.cos(-15 * 25 * math.cos(sine/11))), 0.3)
1151
elseif position == "Idle" and attacking == false and running == false then
1152
change = .5
1153
spin = true
1154
for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1155
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2 + -.1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)),math.rad(0),math.rad(0)),.1)
1156
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(10)), 0.1)
1157
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(-1.5,.27 + .02 * math.sin(sine/12),.20 * -math.sin(sine/12)) * CFrame.Angles(math.rad(20 * math.sin(sine/12)),math.rad(0),math.rad(-10)), 0.1)
1158
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.3, 2 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(-10)), 0.1)
1159
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.3, 2.0 - .1 * math.sin(sine/12), 0) * CFrame.Angles(math.rad(6 * -math.sin(sine/12)), math.rad(0), math.rad(10)), 0.1)
1160
elseif position == "Running" and attacking == false then
1161
change = 1
1162
for i,v in pairs(Torso:GetChildren()) do if v:IsA("Sound") then v:Remove() end end
1163
RIGHTARMLERP.C0 = RIGHTARMLERP.C0:lerp(CFrame.new(0, .5, 0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)), 0.3)
1164
LEFTARMLERP.C1 = LEFTARMLERP.C1:lerp(CFrame.new(-1.24+.6*math.sin(sine/4)/1.4, 0.54, 0-0.8*math.sin(sine/4))*CFrame.Angles(math.rad(6+140*math.sin(sine/4)/1.2), math.rad(0), math.rad(20+70*math.sin(sine/4))), 0.3)
1165
LEFTARMLERP.C0 = LEFTARMLERP.C0:lerp(CFrame.new(0,.5,0)*CFrame.Angles(math.rad(0),math.rad(0),math.rad(0)),.3)
1166
ROOTLERP.C0 = ROOTLERP.C0:lerp(CFrame.new(0, -.2, 0) * CFrame.Angles(math.rad(-20 - 0 * math.sin(sine/4)), math.rad(0 + 6 * math.sin(sine/4)), math.rad(0) + Root.RotVelocity.Y / 30, math.sin(10 * math.sin(sine/4))), 0.3)
1167
RIGHTLEGLERP.C1 = RIGHTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*-math.sin(sine/4)),.3)
1168
RIGHTLEGLERP.C0 = RIGHTLEGLERP.C0:lerp(CFrame.new(-0.5, 1.6+0.1*math.sin(sine/4),.7*-math.sin(sine/4)) * CFrame.Angles(math.rad(15+ -50 * math.sin(sine/4)),0,0),.3)
1169
LEFTLEGLERP.C1 = LEFTLEGLERP.C1:lerp(CFrame.new(0,0,-.2 + .5*math.sin(sine/4)),.3)
1170
LEFTLEGLERP.C0 = LEFTLEGLERP.C0:lerp(CFrame.new(0.5, 1.6-0.1*math.sin(sine/4),.7*math.sin(sine/4)) * CFrame.Angles(math.rad(15 + 50 * math.sin(sine/4)),0,0),.3)
1171
end
1172
swait()
1173
end
1174
end)
1175
anims()
1176
warn("Back from the past to dance the dance. Made by Supr14(Credits to Krystalteam).")