View difference between Paste ID: qCJEtWLb and wKb62LbU
SHOW: | | - or go back to the newest paste.
1
--dancer
2
local percent = 0
3
for i = 1,101 do
4
    wait()
5
    print("Loading: "..percent.."%")
6
    percent = percent + 1
7
end
8
local plr=game.Players.LocalPlayer
9
local chr=plr.Character
10
local asin = math.asin
11
local atan2 = math.atan2
12
local rad = math.rad
13
local sin = math.sin
14
local abs = math.abs
15
local ceil = math.ceil
16
17
local function getAngles(cf)
18
    local sx,sy,sz,m00,m01,m02,m10,m11,m12,m20,m21,m22 = cf:components()
19
    return atan2(-m12,m22),asin(m02),atan2(-m01,m00)
20
end
21
Lerp = {
22
    Number = function(C1,C2,inc)
23
        return C1 + (C2 - C1) * inc
24
    end;
25
    CFrame = function(a,b,m)
26
		local c,d={a:components()},{b:components()}
27
		table.foreach(c,function(a,b)c[a]=c[a]+(d[a]-c[a])*m end)
28
		return CFrame.new(unpack(c))
29
	end;
30
}
31
local function genWeld(a,b)
32
    local w = Instance.new("Weld",a)
33
    w.Part0 = a
34
    w.Part1 = b
35
    return w
36
end
37
local Song = function(id)
38
    for i,v in pairs(chr:GetChildren()) do
39
        if v:IsA("Sound") then
40
            v:Destroy()
41
        end
42
    end
43
    sound = Instance.new("Sound",chr)
44
    sound.Volume = math.huge
45
    sound.Looped = true
46
    sound.SoundId="rbxassetid://"..id
47
    sound:Play()
48
end
49
Part = function(x,y,z,color,tr,cc,an,parent)
50
    local p = Instance.new('Part',parent or Weapon)
51
    p.formFactor = 'Custom'
52
    p.Size = Vector3.new(x,y,z)
53
    p.BrickColor = BrickColor.new(color)
54
    p.CanCollide = cc
55
    p.Transparency = tr
56
    p.Anchored = an
57
    p.TopSurface,p.BottomSurface = 0,0
58
	p:BreakJoints()
59
    return p
60
end
61
Weld = function(p0,p1,x,y,z,rx,ry,rz,par)
62
    local w = Instance.new('Motor',par or p0)
63
    w.Part0 = p0
64
    w.Part1 = p1
65
    w.C1 = CFrame.new(x,y,z)*CFrame.Angles(rx,ry,rz)
66
    return w
67
end
68
Mesh = function(par,num,x,y,z)
69
    local msh = nil
70
    if num == 1 then
71
        msh = Instance.new("CylinderMesh",par)
72
    elseif num == 2 then
73
        msh = Instance.new("SpecialMesh",par)
74
        msh.MeshType = 'Wedge'
75
    elseif num == 3 then
76
        msh = Instance.new("BlockMesh",par)
77
    elseif type(num) == 'string' then
78
        msh = Instance.new("SpecialMesh",par)
79
        msh.MeshId = num
80
    end
81
    msh.Scale = Vector3.new(x,y,z)
82
    return msh
83
end
84
anglespeed = 1
85
yeet = 0
86
count = 0
87
angle = 0
88
local dance = 0
89
speed = 1
90
local plr=game.Players.LocalPlayer
91
local chr=plr.Character
92
local torso=chr.Torso
93
local mouse=plr:GetMouse()
94
local Neck = genWeld(chr.Torso,chr.Head)
95
Neck.C0 = CFrame.new(0,1,0)
96
Neck.C1 = CFrame.new(0,-0.5,0)
97
local LeftShoulder = genWeld(chr.Torso,chr['Left Arm'])
98
LeftShoulder.C0 = CFrame.new(-1,0.5,0)
99
LeftShoulder.C1 = CFrame.new(0.5,0.5,0)
100
RightShoulder = genWeld(chr.Torso,chr['Right Arm'])
101
RightShoulder.C0 = CFrame.new(1,0.5,0)
102
RightShoulder.C1 = CFrame.new(-0.5,0.5,0)
103
local LeftHip = genWeld(chr.Torso,chr['Left Leg'])
104
LeftHip.C0 = CFrame.new(-1,-1,0)
105
LeftHip.C1 = CFrame.new(-0.5,1,0)
106
local RightHip = genWeld(chr.Torso,chr['Right Leg'])
107
RightHip.C0 = CFrame.new(1,-1,0)
108
RightHip.C1 = CFrame.new(0.5,1,0)
109
local RootJoint = genWeld(chr.HumanoidRootPart,chr.Torso)
110
RootJoint.C0 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
111
RootJoint.C1 = CFrame.new(0,0,0) * CFrame.Angles(-math.pi/2,0,math.pi)
112
local function newLerpTo(weld)
113
        return {
114
                Weld = weld; -- The weld that will lerp
115
                To = weld.C0; -- Where it will lerp to; a CFrame
116
                Cache = weld.C0; -- Cache of original position; it helps when making anim keyframes
117
                Speed = 0.1; -- Speed of lerp. 0.1 or 0.2 is best
118
        }
119
end
120
LerpTo = {
121
        Neck = newLerpTo(Neck);
122
        LeftArm = newLerpTo(LeftShoulder);
123
        RightArm = newLerpTo(RightShoulder);
124
        LeftLeg = newLerpTo(LeftHip);
125
        RightLeg = newLerpTo(RightHip);
126
        RootJoint = newLerpTo(RootJoint);
127
}
128
local anim = true
129
local function updateanims()
130
    if anim==true then
131
        if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude < 2 and dance == 0 then
132
            anglespeed = 1/3
133
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(sin(angle)*0.05,0,0)
134
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(abs(sin(angle))*.2,rad(0),rad(0))
135
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(-abs(sin(angle))*.2,0,0)
136
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,abs(sin(angle))*0.2)
137
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,-abs(sin(angle))*0.2) 
138
            LerpTo.RootJoint.To=LerpTo.RootJoint.Cache * CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
139
        end
140
        if Vector3.new(torso.Velocity.x, 0, torso.Velocity.z).magnitude > 2 and dance == 0 then
141
            anglespeed = 1.5
142
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,math.sin(angle)*0.05)
143
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(sin(angle)*.8,0,0)
144
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(-sin(angle)*.8,0,0)
145
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(-sin(angle)*.8,0,0)
146
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*.8,0,0) 
147
            LerpTo.RootJoint.To=LerpTo.RootJoint.Cache * CFrame.new(0,0,0)*CFrame.Angles(0,0,0)
148
        end
149
    end
150
    if anim == false then
151
        if dance == 1 then
152
            anglespeed = 3
153
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(10),0,sin(yeet)*0.1)
154
            LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(20),sin(angle)*0.2,sin(angle)*0.5) * CFrame.new(0,-abs(sin(angle))*0.5,0)
155
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90)-sin(angle)*1,0,-rad(10))
156
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)-sin(angle)*1,0,rad(10))
157
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(20),0,abs(sin(yeet))*0.1)
158
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(20),0,-abs(sin(yeet))*0.1) 
159
        end
160
        if dance == 2 then
161
            anglespeed = 3
162
            LerpTo.Neck.To = LerpTo.Neck.Cache*CFrame.Angles(0,0,sin(angle)*.1)
163
            LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,0,2+sin(angle)*.25)
164
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90)+sin(angle)*1,0,rad(5)+sin(angle)*-.5)
165
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)+sin(angle)*1,0,rad(5)-sin(angle)*-.5)
166
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(0),rad(0),sin(angle)*.25)
167
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(0),rad(0),sin(angle)*-.25)
168
        end
169
        if dance == 3 then
170
            anglespeed = 1.5
171
            LerpTo.Neck.To = LerpTo.Neck.Cache*CFrame.Angles(0,0,0)
172
            LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(0,0,0)*CFrame.new(sin(angle)*5,0,0)
173
            LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90)-sin(angle)*1,0,rad(0)-sin(angle)*.25)
174
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(0),rad(0),sin(angle)*.25)
175
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache*CFrame.Angles(0,0,sin(angle)*.1)
176
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache*CFrame.Angles(0,0,-sin(angle)*.1)
177
        end
178
        if dance == 4 then
179
            anglespeed = 1.5
180
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,0,0)
181
            LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0,sin(angle)*5,0)
182
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(0),rad(0),sin(angle)*.25)
183
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(0),rad(0),sin(angle)*.25)
184
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(sin(angle)*.25,0,0)
185
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(sin(angle)*-.25,0,0)
186
        end
187
        if dance == 5 then
188
            anglespeed = 3
189
            LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(sin(angle)*.5,0,0)
190
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,sin(angle)*.25)*CFrame.new(0,sin(angle)*.1,0)
191
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,sin(angle)*.25)*CFrame.new(0,sin(angle)*.1,0)
192
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0,0,sin(angle)*.25)*CFrame.new(0,sin(angle)*.1,0)
193
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0,0,sin(angle)*.25)*CFrame.new(0,sin(angle)*.1,0)
194
        end
195
        if dance == 6 then
196
            anglespeed = 2
197
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
198
            LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(0, 0, 0) * CFrame.Angles(0, 0,math.sin(angle)*.2)
199
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), 0,  math.sin(angle*1)*.5)
200
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*1), 0,  math.sin(angle*1)*.5)
201
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(0, math.sin(angle)*.2, math.rad(2.5))
202
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(0, -math.sin(angle)*.2, -math.rad(2.5))
203
        end
204
        if dance == 7 then -- insane spaz out l0l
205
            anglespeed = 1
206
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
207
            LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),0)*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
208
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
209
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
210
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
211
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.new(math.random(-5,5),math.random(-5,5),math.random(-5,5))*CFrame.Angles(math.random(-5,5),math.random(-5,5),math.random(-5,5))
212
        end
213
        if dance == 8 then -- roleo dance :D
214
            anglespeed = 4
215
            LerpTo.RightArm.To = LerpTo.RightArm.Cache*CFrame.Angles(rad(180),0,sin(angle)*.3)
216
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(180),0,sin(angle)*.3)
217
        end
218
        if dance == 9 then -- XD lol mast3r ba!t!ng dance :)
219
            anglespeed = 6
220
            LerpTo.RightArm.To = LerpTo.RightArm.Cache*CFrame.Angles(rad(90)+sin(angle)*1,0,rad(-45))
221
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(90)+sin(angle)*1,0,rad(45))
222
        end
223
        if dance == 10 then --but scratch :D
224
            anglespeed = 5
225
            LerpTo.RightArm.To = LerpTo.RightArm.Cache*CFrame.Angles(rad(-25),0,rad(-25))*CFrame.new(0,sin(angle)*.5,0)
226
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache*CFrame.Angles(rad(-25),0,rad(25))*CFrame.new(0,sin(angle)*.5,0)
227
        end
228
        if dance == 11 then -- CARTWHEELS LOLW0T!?
229
            anglespeed = 2
230
            LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(sin(angle)*2,0,0)*CFrame.new(0,sin(angle)*2,0)
231
        end
232
        if dance == 12 then -- EPICO :)
233
          anglespeed = 5
234
          LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(0,0,sin(angle)*2)
235
          LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,sin(angle)*2)
236
          LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90),rad(0),sin(angle)*2)
237
          LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(90),rad(0),sin(angle)*2)
238
        end
239
        if dance == 13 then -- EPICO2 :)
240
          anglespeed = 5
241
          LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(-25)+sin(angle)*.5,0,0)
242
          LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(90)+sin(angle)*.2,rad(0),rad(-15))
243
          LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(90)+sin(angle)*.2,rad(0),rad(15))
244
        elseif dance == 14 then -- FLIPS :)
245
	  anglespeed = 6
246
	  LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(math.cos(1,360)*angle,0,0)
247
          LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(45),rad(0),rad(0))
248
          LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(45),rad(0),rad(0))
249
          LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.new(0,1,-.75)
250
          LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.new(0,1,-.75)
251
        end
252
        if dance == 15 then
253
            anglespeed = 3
254
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(10),0,sin(yeet)*0.1)
255
            LerpTo.RootJoint.To = LerpTo.RootJoint.Cache * CFrame.Angles(rad(20),sin(angle)*0.2,sin(angle)*0.5) * CFrame.new(0,-abs(sin(angle))*2,0)
256
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(rad(90)-sin(angle)*1,0,-rad(10))
257
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(rad(90)-sin(angle)*1,0,rad(10))
258
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(20),0,abs(sin(yeet))*0.1)
259
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(20),0,-abs(sin(yeet))*0.1) 
260
        end
261
        if dance == 16 then
262
            anglespeed = 3
263
		LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(0),rad(90),rad(0))
264
		LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(rad(90),rad(0),rad(0))*CFrame.new(0,-2.5,0)
265
		LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(rad(170),rad(0),rad(15))
266
		LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(rad(0),rad(0),rad(-75))
267
		LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(rad(0),rad(0),rad(0))
268
		LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(rad(0),rad(0),rad(0))
269
        end
270
        if dance == 17 then
271
anglespeed = 2
272
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(math.pi/10-math.abs(math.sin(angle))*0.3,0, 0)
273
            LerpTo.RootJoint.To = LerpTo.RootJoint.Cache*CFrame.new(math.sin(angle)*2,0,0) * CFrame.Angles(math.pi/20,0,-math.sin(angle)*.5)
274
            LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), math.pi/20,  -math.pi/20)
275
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.pi/3+math.abs(math.sin(angle)*.5), -math.pi/20,  math.pi/20)
276
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(math.pi/20+math.sin(angle)*0.2, math.sin(angle)*0.08, math.rad(2.5))
277
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(math.pi/20-math.sin(angle)*0.2, -math.sin(angle)*0.08, -math.rad(2.5))
278
        end
279
        if dance == 18 then
280
anglespeed = 4
281
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(0,sin(angle)*2,0)       
282
	    LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0, 0,  math.rad(90)-sin(angle)*1)
283
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,  math.rad(-90)+sin(angle)*1)
284
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0))
285
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(0),rad(0),rad(0))
286
        end
287
        if dance == 19 then
288
anglespeed = 4
289
            LerpTo.Neck.To = LerpTo.Neck.Cache * CFrame.Angles(rad(30),0,0)  
290
	    LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(math.pi/5,0,0)     
291
	    LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.rad(180)-sin(angle)*1,0,0)
292
            LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.rad(180)-sin(angle)*1,0,0)
293
            LerpTo.RightLeg.To = LerpTo.RightLeg.Cache * CFrame.Angles(rad(30),rad(0),rad(0))
294
            LerpTo.LeftLeg.To = LerpTo.LeftLeg.Cache * CFrame.Angles(rad(30),rad(0),rad(0))
295
        end
296
	if dance == 20 then
297
		anglespeed = 5
298
		LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(math.cos(1,360)*angle,0,0)
299
	        LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.rad(180),0,0)
300
                LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.rad(180),0,0)
301
	end
302
	if dance == 21 then
303
		anglespeed = 5
304
		LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,sin(angle)*1)
305
		LerpTo.RightArm.To=LerpTo.RightArm.Cache*CFrame.Angles(-sin(angle)*1,0,0)
306
		LerpTo.LeftArm.To=LerpTo.LeftArm.Cache*CFrame.Angles(sin(angle)*1,0,0)
307
		LerpTo.RightLeg.To=LerpTo.RightLeg.Cache*CFrame.Angles(sin(angle)*1,0,0)
308
		LerpTo.LeftLeg.To=LerpTo.LeftLeg.Cache*CFrame.Angles(-sin(angle)*1,0,0)
309
	end
310
	if dance == 22 then
311
		anglespeed = 5
312
		LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,math.cos(1,360)*angle,0)
313
	        LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(math.rad(180),0,0)
314
                LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(math.rad(180),0,0)
315
	end
316
	if dance == 23 then
317
anglespeed = 3
318
LerpTo.Neck.To=LerpTo.Neck.Cache*CFrame.Angles(rad(25),0,0)
319
LerpTo.RootJoint.To=LerpTo.RootJoint.Cache*CFrame.Angles(0,0,sin(angle)*1)
320
LerpTo.RightArm.To = LerpTo.RightArm.Cache * CFrame.Angles(0,0,rad(90)+sin(angle)*2)
321
LerpTo.LeftArm.To = LerpTo.LeftArm.Cache * CFrame.Angles(0,0,-rad(90)-sin(angle)*2)
322
end
323
    end
324
end
325
mouse.KeyDown:connect(function(key)
326
    if key == "q" and dance == 0 then
327
        Song("169318011")
328
        anim = false
329
        dance = 1
330
    elseif key == "e" and dance == 0 then
331
        Song('130795320')
332
        anim = false
333
        dance = 2
334
    elseif key == "r" and dance == 0 then
335
        Song('145763936')
336
        anim = false
337
        dance = 3
338
    elseif key == "t" and dance == 0 then
339
        Song('156906204')
340
        anim = false
341
        dance = 4
342
    elseif key == "y" and dance == 0 then
343
        Song("131077111")
344
        anim = false
345
        dance = 5
346
    elseif key == "f" and dance == 0 then
347
        Song("166856063")
348
        anim = false
349
        dance = 6
350
    elseif key == "g" and dance == 0 then
351
        Song("130998447")
352
        anim = false
353
        dance = 7
354
    elseif key == "h" and dance == 0 then -- roleo dance :D
355
        Song("178856837")--insert ur soundid here plz
356
        anim = false
357
        dance = 8-- ill make this in second
358
    elseif key == "j" and dance == 0 then
359-
        Song("232544821")
359+
        Song("296862254")
360
        anim = false
361
        dance = 9
362
    elseif key == "z" and dance == 0 then
363
        Song("140853918")
364
        anim = false
365
        dance = 10
366
    elseif key == "x" and dance == 0 then
367
        Song("162893085")
368
        anim = false
369
        dance = 11
370
    elseif key == "c" and dance == 0 then
371
      Song("144396704")
372
      anim = false
373
      dance = 12
374
     elseif key == "v" and dance == 0 then
375
       Song("145105874")
376
       anim = false
377
       dance = 13
378
     elseif key == "b" and dance == 0 then
379
       Song("172895447")
380
       anim = false
381
       dance = 2
382
     elseif key == "n" and dance == 0 then
383
       Song("138184193")
384
       anim = false
385
       dance = 14
386
     elseif key == "m" and dance == 0 then
387
       Song("262455019")
388
       anim = false
389
       dance = 15
390
elseif key == "u" and dance == 0 then
391
Song("160442087")
392
anim = false
393
dance = 16
394
elseif key == "k" and dance == 0 then
395
Song("146048136")
396
anim = false
397
dance = 17
398
elseif key == "p" and dance == 0 then
399
Song("183596502")
400
anim = false
401
dance = 18
402
elseif key == "l" and dance == 0 then
403
Song("242975883")
404
anim = false
405
dance = 19
406
elseif key == ";" and dance == 0 then
407
Song("229824592")
408
anim = false
409
dance = 20
410
elseif key == "[" and dance == 0 then
411
Song("147876501")
412
anim = false
413
dance = 21
414
elseif key == "]" and dance == 0 then
415
Song("159423733")
416
anim = false
417
dance = 22
418
elseif key == "0" and dance == 0 then
419
Song("182409344")
420
anim = false
421
dance = 23
422
    elseif key == "q" or key == "e" or key == "r" or key == "t" or key == "y" or key == "f" or key == "g" or key == "h" or key == "j" or key == "z" or key == "x" or key == "c" or key == "v" or key == "b" or key == "n" or key == "m" or key == "u" or key == "k" or key == "p" or key == "l" or key == ";" or key == "[" or key == "]" or key == "0" and dance > 0 then
423
        sound:Stop()
424
        dance = 0
425
        anim = true
426
    end
427
end)
428
local maxrage=9001
429
local rage = 9001
430
sc = Instance.new("ScreenGui",plr.PlayerGui)
431
sc.Name = "RaigMeter"
432
fr = Instance.new("Frame",sc)
433
fr.Size = UDim2.new(0, 250, 0, 28)
434
fr.Position = UDim2.new(0.75, 0, .95, 0)
435
fr.BackgroundColor3 = Color3.new(0.8, 0.8, 0.8)
436
met = Instance.new("Frame", fr)
437
met.Size = UDim2.new(1, -10, 1, -6)
438
met.Position = UDim2.new(0, 5, 0, 3)
439
met.BackgroundColor3 = Color3.new(0, 0, 0)
440
met.BorderSizePixel = 0
441
metr = Instance.new("ImageLabel", met)
442
metr.Size = UDim2.new(rage/maxrage, 0, 1, -2)
443
metr.Position = UDim2.new(0, 0, 0, 1)
444
metr.Image = "http://www.roblox.com/asset/?id=112941056"
445
metr.BorderSizePixel = 0
446
metr.BackgroundColor3 = Color3.new(0,0,0)
447
tx = Instance.new("TextLabel", met)
448
tx.Size = UDim2.new(0, 0, 1, 0)
449
tx.Position = UDim2.new(0, 5, 0, 0)
450
tx.Font = "ArialBold"
451
tx.FontSize = "Size18"
452
tx.BackgroundTransparency = 1
453
tx.TextColor3 = BrickColor.new("Deep orange").Color
454
tx.TextXAlignment = "Left"
455
local updategui = function()
456
tx.Text=dance
457
end
458
459
Spawn(function()
460
    while wait()do
461
        angle = (angle % 100) + anglespeed/10 -- no matter whut it has to be in a loop or its on exticy
462
    end 
463
end)
464
meo=0
465
sdeb=false
466
game:service'RunService'.RenderStepped:connect(function()
467
    meo=meo+1
468
    updategui()
469
        for _,v in pairs(LerpTo) do
470
        v.Weld.C0 = Lerp.CFrame(v.Weld.C0,v.To,v.Speed)end
471
    updateanims()
472
end)