R

Fe krystal

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