View difference between Paste ID: TJgw9m5c and QbB6j1MG
SHOW: | | - or go back to the newest paste.
1
--void Script bbuilder fe script converter V2
2
3
if game:GetService("RunService"):IsClient() then error("Script must be server-side in order to work; use h/ and not hl/") end
4
local Player,Mouse,mouse,UserInputService,ContextActionService = owner
5
local RealPlayer = Player
6
do print("FE Compatibility code by Mokiros")local a=RealPlayer;script.Parent=a.Character;local b=Instance.new("RemoteEvent")b.Name="UserInput_Event"local function c()local d={_fakeEvent=true,Functions={},Connect=function(self,e)table.insert(self.Functions,e)end}d.connect=d.Connect;return d end;local f={Target=nil,Hit=CFrame.new(),KeyUp=c(),KeyDown=c(),Button1Up=c(),Button1Down=c(),Button2Up=c(),Button2Down=c()}local g={InputBegan=c(),InputEnded=c()}local CAS={Actions={},BindAction=function(self,h,i,j,...)CAS.Actions[h]=i and{Name=h,Function=i,Keys={...}}or nil end}CAS.UnbindAction=CAS.BindAction;local function k(self,l,...)local d=f[l]if d and d._fakeEvent then for m,e in pairs(d.Functions)do e(...)end end end;f.TrigEvent=k;g.TrigEvent=k;b.OnServerEvent:Connect(function(n,o)if n~=a then return end;f.Target=o.Target;f.Hit=o.Hit;if not o.isMouse then local p=o.UserInputState==Enum.UserInputState.Begin;if o.UserInputType==Enum.UserInputType.MouseButton1 then return f:TrigEvent(p and"Button1Down"or"Button1Up")end;if o.UserInputType==Enum.UserInputType.MouseButton2 then return f:TrigEvent(p and"Button2Down"or"Button2Up")end;for m,d in pairs(CAS.Actions)do for m,q in pairs(d.Keys)do if q==o.KeyCode then d.Function(d.Name,o.UserInputState,o)end end end;f:TrigEvent(p and"KeyDown"or"KeyUp",o.KeyCode.Name:lower())g:TrigEvent(p and"InputBegan"or"InputEnded",o,false)end end)b.Parent=NLS([==[local a=game:GetService("Players").LocalPlayer;local b=script:WaitForChild("UserInput_Event")local c=a:GetMouse()local d=game:GetService("UserInputService")local e=function(f,g)if g then return end;b:FireServer({KeyCode=f.KeyCode,UserInputType=f.UserInputType,UserInputState=f.UserInputState,Hit=c.Hit,Target=c.Target})end;d.InputBegan:Connect(e)d.InputEnded:Connect(e)local h,i;while wait(1/30)do if h~=c.Hit or i~=c.Target then h,i=c.Hit,c.Target;b:FireServer({isMouse=true,Target=i,Hit=h})end end]==],Player.Character)local r=game;local s={__index=function(self,q)local t=rawget(self,"_RealService")if t then return typeof(t[q])=="function"and function(m,...)return t[q](t,...)end or t[q]end end,__newindex=function(self,q,u)local t=rawget(self,"_RealService")if t then t[q]=u end end}local function v(d,w)d._RealService=typeof(w)=="string"and r:GetService(w)or w;return setmetatable(d,s)end;local x={GetService=function(self,t)return rawget(self,t)or r:GetService(t)end,Players=v({LocalPlayer=v({GetMouse=function(self)return f end},Player)},"Players"),UserInputService=v(g,"UserInputService"),ContextActionService=v(CAS,"ContextActionService"),RunService=v({_btrs={},RenderStepped=r:GetService("RunService").Heartbeat,BindToRenderStep=function(self,h,m,i)self._btrs[h]=self.Heartbeat:Connect(i)end,UnbindFromRenderStep=function(self,h)self._btrs[h]:Disconnect()end},"RunService")}rawset(x.Players,"localPlayer",x.Players.LocalPlayer)x.service=x.GetService;v(x,game)game,owner=x,x.Players.LocalPlayer end
7
8
wait(0)
9
Player = game.Players.LocalPlayer
10
11
local count = 0
12
local countspeed = 1
13
local sine = 0
14
local sinespeed = 1
15
local angle = nil
16
local global_wait = 0
17
local showtag = false
18
19
20
--dance booleans--
21
local jerk = false
22
local party = false
23
local canttouch = false
24
local happy = false
25
local spin = false
26
local thriller = false
27
local barrel = false
28
local sax = false
29
local spooky = false
30
local stride = false
31
local shuffle = false
32
local rock = false
33
local gagnam = false
34
local snoop = false
35
local darude = false
36
local taco = false
37
------------------
38
--dance accessory--
39
local barrelbrick = nil
40
local saxtool = nil
41
-------------------
42
--custom animate--
43
local walk = false
44
local jump = false
45
local sit = false
46
local run = false
47
------------------
48
--walk keys--
49
local W = false
50
local A = false
51
local S = false
52
local D = false
53
-------------
54
local m = Instance.new("Model",game.Players.LocalPlayer.Character) m.Name = "ModelParts"
55
local miniweld = nil
56
local rootpart = nil
57
58
local Mouse = nil
59
local Animate = nil
60
local Music = nil
61
local Asset = "http://www.roblox.com/asset/?id="
62
local Animating = nil
63
local humanoid = nil
64
local face = nil 
65
66
local head = nil
67
local torso = nil
68
local ra = nil
69
local la = nil
70
local rl = nil
71
local ll = nil
72
local rs = nil
73
local ls = nil
74
local rh = nil
75
local lh = nil
76
local neck = nil
77
local rj = nil
78
79
local char = nil
80
local Hat1 = nil
81
local Hat2 = nil
82
local a,b = nil
83
84
----------musics-----------------
85
local M1,M2,M3,M4,M5,M6,M7,M8,M9,M10,M11,M12,M13,M14,M15,M16 = nil
86
---------------------------------
87
88
local mesh,meshids,textureids,w
89
90
function fm(parent,meshid,x,y,z,meshtexture)
91
if meshid == "cylinder" then
92
	mesh = Instance.new("CylinderMesh",parent)
93
	mesh.Scale = Vector3.new(x,y,z)
94
	return mesh
95
else
96
	mesh = Instance.new("SpecialMesh",parent)
97
	if meshid ~= "sphere" then
98
		if type(meshid) == "number" then mesh.MeshId = "rbxassetid://"..meshid else
99
			mesh.MeshId = "rbxassetid://"..meshids[meshid]
100
		end
101
	else mesh.MeshType = 3 end
102
	mesh.Scale = Vector3.new(x,y,z)
103
	if meshtexture ~= nil then
104
		if type(meshtexture) == "number" then 
105
			mesh.TextureId = "rbxassetid://"..meshtexture 
106
		else
107
			mesh.TextureId = "rbxassetid://"..textureids[meshtexture] end
108
		end
109
	return mesh
110
	end
111
end
112
113
function P(x,y,z,color,transparency,cancollide,anchored,parent,typee)
114
if typee ~= nil then
115
	c = Instance.new("WedgePart",m)
116
else
117
	c = Instance.new("Part",m)
118
end
119
c.TopSurface,c.BottomSurface = 0,0
120
c.Locked = true
121
c.formFactor = "Custom"
122
c.Size = Vector3.new(x,y,z)
123
if color ~= "random" then
124
	c.BrickColor = BrickColor.new(color)
125
else 
126
	c.BrickColor = BrickColor:random() 
127
end
128
c.Transparency = transparency
129
c.CanCollide = cancollide
130
if anchored ~= nil then 
131
	c.Anchored = anchored 
132
end
133
if parent ~= nil then 
134
	c.Parent = parent 
135
end
136
return c
137
end
138
139
function We(part0,part1,x,y,z,rx,ry,rz,parent)
140
w = Instance.new("Motor",m)
141
if parent ~= nil then w.Parent = parent end
142
	w.Part0,w.Part1 = part0,part1
143
	w.C1 = CFrame.new(x,y,z) * CFrame.Angles(rx,ry,rz)
144
	return w
145
end
146
147
function SetAnimation(id,humanoid)
148
	if Animating ~= nil then
149
		Animating:Stop()
150
	end
151
	Animate.AnimationId = Asset .. id
152
	Animating = humanoid:LoadAnimation(Animate)
153
	Animating:Play()
154
end
155
156
function AnimationStop()
157
		jerk = false
158
		party = false
159
		canttouch = false
160
		happy = false
161
		spin = false
162
		thriller = false
163
		barrel = false
164
		sax = false
165
		spooky = false
166
		stride = false
167
		shuffle = false
168
		rock = false
169
		gagnam = false
170
		snoop = false
171
		darude = false
172
		taco = false
173
		if barrelbrick ~= nil then
174
			barrelbrick:Remove()
175
			barrelbrick = nil
176
		end
177
		if saxtool ~= nil then
178
			saxtool:Remove()
179
			saxtool = nil
180
		end
181
		if sandstorm ~= nil then
182
			sandstorm:Remove()
183
			sandstorm = nil
184
		end
185
end
186
187
local Musical
188
function SetMusic(id,volume)
189
	Musical = Instance.new("Sound",char.Head)
190
	if volume == nil then
191
		Musical.Volume = 1
192
	else
193
		Musical.Volume = volume
194
	end
195
	Musical.Looped = true
196
	Musical.SoundId = Asset .. id
197
	return Musical
198
end
199
200
function GenerateGui()
201
	a=Instance.new("ScreenGui")
202
	a.Name = "Memer"
203
	b=Instance.new("ImageLabel",a)
204
	b.BackgroundTransparency = 1
205
	b.Size = UDim2.new(0,250,0,100)
206
	b.Position = UDim2.new(0,0,1,0)
207
	b.Image = Asset .. "http://www.roblox.com/asset/?id=534247804"
208
	b.Name = "Logo"
209
	c=Instance.new("Sound",a)
210
	c.Name = "Intro"
211
	c.Volume = 1
212
	c.SoundId = Asset .. "rbxassetid://533871935"
213
	c.Looped = false
214
	return a
215
end
216
217
function Generate(player)
218
char = player.Character
219
Hat1 = P(1,1,1,'Bright violet ',0,false,false)
220
Hat2 = P(1,1,1,'Bright violet ',0,false,false)
221
wait()
222
a=fm(Hat1,0,1,1,1,1577349) a.VertexColor = Vector3.new(1,1,1)
223
b=fm(Hat2,0,1,1,1,18987684) b.VertexColor = Vector3.new(1,1,1)
224
wait()
225
if char:FindFirstChild("Head") then
226
	We(Hat1,char.Head,0,0.25,-0.135,0,0,0)
227
	We(Hat2,char.Head,0,0.8,0,0,0,0)
228
	if char.Head:FindFirstChild("face") ~= nil then
229
		face = char.Head:FindFirstChild("face")
230
		face.Texture = "rbxasset://textures/face.png"
231
	end
232
	c=char.Head:clone()
233
	c.Name = "FalseHead"
234
	c.CanCollide = false
235
	c.Parent = char
236
	We(c,char.Head,0,0,0,0,0,0)
237
	char.Head.Transparency = 1
238
	for i,v in pairs(char:GetChildren()) do
239
		if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
240
			v:Remove()
241
		end
242
		if v.ClassName == "BodyColors" then
243
			v.HeadColor = BrickColor.new("Bright yellow")
244
			v.LeftArmColor = BrickColor.new("Bright yellow")
245
			v.LeftLegColor = BrickColor.new("Br. yellowish green")
246
			v.RightArmColor = BrickColor.new("Bright yellow")
247
			v.RightLegColor = BrickColor.new("Br. yellowish green")
248
			v.TorsoColor = BrickColor.new("Bright Blue")
249
		end
250
		if v.ClassName == "Part" then
251
			if v.Name == "Head" or v.Name == "FalseHead" then
252
				v.BrickColor = BrickColor.new("Bright yellow")
253
				else
254
				v.BrickColor = BrickColor.new("Bright yellow")
255
			end
256
		end
257
	end
258
----------musics---------------
259
	M1=SetMusic(142524640)
260
        M1.Volume = 50
261
	M2=SetMusic(663760008)
262
        M2.Volume = 50
263
	M3=SetMusic(148047526)
264
        M3.Volume = 50
265
	M4=SetMusic(518673637)
266
        M4.Volume = 50
267
	M5=SetMusic(194380361)
268
        M5.Volume = 50
269
	M6=SetMusic(540190383)
270
        M6.Volume = 50
271
	M7=SetMusic(253827644)
272
        M7.Volume = 50
273
	M8=SetMusic(534878097)
274
        M8.Volume = 50
275
	M9=SetMusic(178297940)
276
        M9.Volume = 50
277
	M10=SetMusic(241814102)
278
        M10.Volume = 50
279
	M11=SetMusic(533874013)
280
        M11.Volume = 50
281
	M12=SetMusic(316168561)
282
        M12.Volume = 50
283
	M13=SetMusic(142300879)
284
        M13.Volume = 50
285
	M14=SetMusic(684159363)
286
        M14.Volume = 50
287
	M15=SetMusic(787297457)
288
        M15.Volume = 50
289
	M16=SetMusic(597084853)
290
        M16.Volume = 50
291
        boi=SetMusic(597084853)
292
-------------------------------
293
	
294
	if char:FindFirstChild("HumanoidRootPart") ~= nil then
295
		rootpart = char:FindFirstChild("HumanoidRootPart")
296
	end
297
	if showtag == true then
298
		local bbg = Instance.new("BillboardGui",c)
299
		bbg.Adornee = c
300
		bbg.Name = "satuttava"
301
		bbg.Size = UDim2.new(6,0,2,0)
302
		bbg.StudsOffset = Vector3.new(0,2,0)
303
		local box = Instance.new("TextLabel",bbg)
304
		box.Size = UDim2.new(1,0,1,0)
305
		box.BackgroundColor = BrickColor.new("White")
306
		box.TextColor3 = Color3.new(255,0,0)
307
		box.TextStrokeTransparency = 0.5
308
		box.Font = "Arcade"
309
		box.Text = Player.Name
310
		box.BackgroundTransparency = 1
311
		box.Position = UDim2.new(0,0,0,0)
312
		box.TextScaled = true
313
	end
314
	if char:FindFirstChild("Humanoid") ~= nil then
315
		char:FindFirstChild("Humanoid").MaxHealth = (100*100*100*100)*100
316
		wait()
317
		char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").MaxHealth
318
		--char:FindFirstChild("Humanoid").Name = game.Players.LocalPlayer.Name
319
		humanoid = char:FindFirstChild("Humanoid")
320
		if humanoid:FindFirstChild("Animator") ~= nil then
321
			humanoid:FindFirstChild("Animator"):Remove()
322
			--Instance.new("Animator",humanoid)
323
		end
324
		if char:FindFirstChild("Animate") ~= nil then
325
			char:FindFirstChild("Animate"):Remove()
326
		end
327
	end
328
	Mouse = player:GetMouse()
329
	Music = Instance.new("Sound",char.Head)
330
	Music.Volume = 1
331
	Music.Looped = true
332
	Music.SoundId = Asset
333
	Animate = Instance.new("Animation",char.Head)
334
	Animate.AnimationId = Asset
335
	
336
	
337
	
338
	head = char:FindFirstChild("Head")
339
	torso = char:FindFirstChild("Torso")
340
	ra = char:findFirstChild("Right Arm")
341
	la = char:findFirstChild("Left Arm")
342
	rl = char:findFirstChild("Right Leg")
343
	ll = char:findFirstChild("Left Leg")
344
	rs = torso:findFirstChild("Right Shoulder")
345
	ls = torso:findFirstChild("Left Shoulder")
346
	rh = torso:findFirstChild("Right Hip")
347
	lh = torso:findFirstChild("Left Hip")
348
	neck = torso:findFirstChild("Neck")
349
	rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
350
	
351
	state = humanoid:GetState()
352
	local ca = nil
353
	ca=GenerateGui()
354
	ca.Parent = player.PlayerGui
355
	if ca:FindFirstChild("Logo") ~= nil then
356
		ca:FindFirstChild("Logo"):TweenPosition(UDim2.new(0, 0, 1, -100), "Out", "Quad", 3, true)
357
		if ca:FindFirstChild("Intro") ~= nil then
358
			ca:FindFirstChild("Intro"):Play()
359
			coroutine.resume(coroutine.create(function() 
360
				for i=0,30 do
361
					ca:FindFirstChild("Intro").Volume = 1/(i/2)
362
					wait(0.5)
363
					if i >= 30 then
364
						break
365
					end
366
				end
367
			end))
368
		end
369
	end
370
371
	if humanoid ~= nil then
372
		humanoid.Changed:connect(function(pro)
373
			if pro == "MoveDirection" or pro == "Jump" then
374
				if Music.IsPlaying == true then
375
					AnimationStop()
376
				end
377
			end
378
		end)
379
		humanoid.Died:connect(function()
380
			AnimationStop()
381
		end)
382
		
383
	Mouse.KeyUp:connect(function(key) 
384
		if key == "w" then
385
			W = false
386
		end
387
		if key == "a" then
388
			A = false
389
		end
390
		if key == "s" then
391
			S = false
392
		end
393
		if key == "d" then
394
			D = false
395
		end
396
		if string.byte(key) == 48 then
397
			run = false
398
		end
399
	end)
400
		
401
	Mouse.KeyDown:connect(function(key) 
402
		if key == "w" then
403
			W = true
404
			AnimationStop()
405
		end
406
		if key == "a" then
407
			A = true
408
			AnimationStop()
409
		end
410
		if key == "s" then
411
			S = true
412
			AnimationStop()
413
		end
414
		if key == "d" then
415
			D = true
416
			AnimationStop()
417
		end
418
	end)
419
	
420
	
421
	
422
	Mouse.KeyDown:connect(function(key) 
423
		KeyUsed(key)
424
	end)
425
end
426
end
427
print'fuck you!'
428
end
429
430
function KeyUsed(key)
431
		if humanoid ~= nil then
432
			if humanoid.Health > 0 then
433
				if string.byte(key) == 32 then
434
					jump = true
435
					AnimationStop()
436
					--sit = false
437
				end
438
				if string.byte(key) == 50 then
439
					AnimationStop()
440
					if sit == true then
441
						sit = false
442
					else
443
						sit = true
444
					end
445
				end
446
				if string.byte(key) == 48 then
447
					run = true
448
				end
449
				if W == false and A == false and S == false and D == false and jump == false and sit == false then
450
					if key == "Q" or key == "q" then
451
						AnimationStop()
452
						canttouch = true
453
						M1:Play()
454
					end
455
					if key == "E" or key == "e" then
456
						AnimationStop()
457
						party = true
458
						M2:Play()
459
					end
460
					if key == "R" or key == "r" then
461
						AnimationStop()
462
						jerk = true
463
						M3:Play()
464
					end
465
					if key == "T" or key == "t" then
466
						AnimationStop()
467
						happy = true
468
						M4:Play()
469
					end
470
					if key == "Y" or key == "y" then
471
						AnimationStop()
472
						spin = true
473
						M5:Play()
474
					end
475
					if key == "U" or key == "u" then
476
						AnimationStop()
477
						thriller = true
478
						M6:Play()
479
					end
480
					if key == "F" or key == "f" then
481
						AnimationStop()
482
						barrel = true
483
						M7:Play()
484
						if barrelbrick == nil and barrel == true then
485
							barrelbrick = P(2,2,1,'Black',0,false,false)
486
							a=fm(barrelbrick,29873142,1.1,0.8,1.1,31082268) a.VertexColor = Vector3.new(1,1,1)
487
							We(barrelbrick,char.Torso,0,-0.2,0,0,0,0)
488
						end
489
					end
490
					if key == "P" or key == "p" then
491
						AnimationStop()
492
						sax = true
493
						M8:Play()
494
						if saxtool == nil and sax == true then
495
							saxtool = P(1,2,2,'Black',0,false,false)
496
							a=fm(saxtool,44410178,1.5,1.5,1.5,44410320) a.VertexColor = Vector3.new(1,1,1)
497
							b=We(saxtool,char:FindFirstChild("Left Arm"),0,-1,0,0,0,0)
498
							b.C1 = CFrame.new(0.5, -0.9, -0.3) * CFrame.Angles(math.pi/1.5, -math.pi/2, -math.pi/8)
499
						end
500
					end
501
					if key == "G" or key == "g" then
502
						AnimationStop()
503
						spooky = true
504
						M9:Play()
505
					end
506
					if key == "H" or key == "h" then
507
						AnimationStop()
508
						stride = true
509
						M10:Play()
510
					end
511
					if key == "J" or key == "j" then
512
						AnimationStop()
513
						shuffle = true
514
						M11:Play()
515
					end
516
					if key == "K" or key == "k" then
517
						AnimationStop()
518
						rock = true
519
						M12:Play()
520
					end
521
					if key == "L" or key == "l" then
522
						AnimationStop()
523
						gagnam = true
524
						M13:Play()
525
					end
526
					if key == "Z" or key == "z" then
527
						AnimationStop()
528
						snoop = true
529
						M14:Play()
530
					end
531
					if key == "X" or key == "x" then
532
						AnimationStop()
533
						darude = true
534
						M15:Play()
535
						if sandstorm == nil and darude == true then
536
							sandstorm = P(1,1,1,'Black',0,false,false)
537
							sandstorm.Transparency = 1
538
							a=Instance.new("Smoke",sandstorm)
539
							a.Color = Color3.new(255/255,255/255,175/255)
540
							a.Size = 0.4
541
							a.RiseVelocity = 3
542
							a.Opacity = 0.75
543
							b=We(sandstorm,char:FindFirstChild("Torso"),0,0,0,0,0,0)
544
							b.C1 = CFrame.new(0, -2, 0)
545
						end
546
					end
547
					if key == "C" or key == "c" then
548
						AnimationStop()
549
						taco = true
550
						M16:Play()
551
		                                boi:Stop()
552
					end
553
				end
554
			end
555
		end
556
end
557
558
Generate(Player)
559
560
game:service'RunService'.Stepped:connect(function()
561
	count = (count % 100) + countspeed
562
	angle = math.pi * math.sin(math.pi*2/100*count)
563
	countspeed = 1
564
	
565
	state = humanoid:GetState()
566
	if state ~= Enum.HumanoidStateType.Freefall then
567
		jump = false
568
	else
569
		jump = true
570
		sit = false
571
		AnimationStop()
572
	end
573
	
574
	local mesh1anan = Instance.new("SpecialMesh")
575
	mesh1anan.MeshType = Enum.MeshType.FileMesh
576
	mesh1anan.Scale = Vector3.new(0.3,0.3,0.3)
577
	mesh1anan.MeshId = "http://www.roblox.com/asset/?id=430210147"
578
	mesh1anan.TextureId = "http://www.roblox.com/asset/?id=430210159"
579
	mesh1anan.Scale = Vector3.new(0.1,0.1,0.1)
580
581
	if taco == true then
582
		if char ~= nil then
583
	        local locationanan = char:GetModelCFrame()
584
	        local tacoa = Instance.new("Part")
585
	        tacoa.CanCollide = false
586
	        tacoa.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
587
	        local meshanananan = mesh1anan:clone()
588
	        meshanananan.Parent = tacoa
589
	        tacoa.CFrame = locationanan * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250)
590
	        tacoa.Parent = workspace
591
	        game:GetService("Debris"):AddItem(tacoa,4)
592
		end
593
	end
594
	
595
	
596
	
597
	
598
	if canttouch == false then	
599
		M1:Stop()
600
	end
601
	if party == false then	
602
		M2:Stop()
603
	end
604
	if jerk == false then	
605
		M3:Stop()
606
	end
607
	if happy == false then	
608
		M4:Stop()
609
	end
610
	if spin == false then	
611
		M5:Stop()
612
	end
613
	if thriller == false then	
614
		M6:Stop()
615
	end
616
	if barrel == false then	
617
		M7:Stop()
618
	end
619
	if sax == false then	
620
		M8:Stop()
621
	end
622
	if spooky == false then	
623
		M9:Stop()
624
	end
625
	if stride == false then	
626
		M10:Stop()
627
	end
628
	if shuffle == false then	
629
		M11:Stop()
630
	end
631
	if rock == false then
632
		M12:Stop()
633
	end
634
	if gagnam == false then
635
		M13:Stop()
636
	end
637
	if snoop == false then
638
		M14:Stop()	
639
	end
640
	if darude == false then
641
		M15:Stop()
642
	end
643
	if taco == false then
644
		M16:Stop()
645
		boi:Stop()
646
	end
647
	
648
	if run == true and sit == false then
649
		humanoid.WalkSpeed = 25
650
	elseif sit == true then
651
		humanoid.WalkSpeed = 0
652
	else
653
		humanoid.WalkSpeed = 16
654
	end
655
	
656
	if global_wait == 380 then global_wait = 0 end
657
	
658
	if (W == false or A == false or S == false or D == false) and jump == false and sit == false then
659
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
660
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
661
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
662
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
663
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/75, math.pi, 0)
664
			rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
665
	end
666
	
667
	
668
	if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
669
		local ray = Ray.new(torso.Position, Vector3.new(0, -3, 0))
670
		local hitz,enz = workspace:FindPartOnRay(ray, char)
671
		if hitz then
672
			if rootpart:FindFirstChild("Weld") == nil then
673
				miniweld = Instance.new("Weld", rootpart)
674
				miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame)
675
				miniweld.Part0 = hitz
676
				miniweld.Part1 = rootpart
677
				humanoid.PlatformStand = true
678
			end
679
		end
680
	else
681
		if rootpart:FindFirstChild("Weld") ~= nil then
682
			rootpart:FindFirstChild("Weld"):Destroy()
683
			humanoid.PlatformStand = false
684
		end
685
	end
686
	
687
	if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
688
		ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - math.pi/15)
689
		rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + math.pi/15)
690
		lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, math.pi/2 - math.pi/15)
691
		rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, -math.pi/2 + math.pi/15)
692
		neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
693
		rj.C0 = CFrame.new(0, -2, 0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
694
	end
695
	
696
	if jump == true and sit == false then
697
		countspeed = 2
698
		ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
699
		rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
700
		lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
701
		rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
702
		neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
703
		rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
704
	end
705
	
706
	if (W == true or A == true or S == true or D == true) and jump == false and sit == false then
707
		if run == true then
708
			countspeed = 4
709
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
710
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
711
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
712
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
713
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
714
			rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/40, math.pi, 0)
715
		else
716
			countspeed = 2
717
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
718
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
719
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
720
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
721
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
722
			rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
723
		end
724
	end
725
726
	if W == false and A == false and S == false and D == false and jump == false and sit == false then
727
		if jerk == true and jump == false and sit == false then
728
			countspeed = 2
729
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, angle/4)
730
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, -angle/4)
731
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/10, 0, angle/5)-- * CFrame.Angles(angle*0.5, 0, -math.abs(angle*0.15))
732
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/10, 0, angle/5)-- * CFrame.Angles(-angle*0.5, 0, math.abs(angle*0.15))
733
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
734
			rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
735
		elseif party == true and jump == false and sit == false then
736
			countspeed = 4
737
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15)
738
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/15)
739
			ls.C1 = CFrame.new(0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi  + angle/10, 0, 0 + angle/10)
740
			rs.C1 = CFrame.new(-0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi  + angle/10, 0, 0  + angle/10)
741
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/10, math.pi, 0)
742
			rj.C0 = CFrame.new(0, 0.5 + angle/5, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
743
		elseif canttouch == true and jump == false and sit == false then
744
			countspeed = 2
745
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, math.pi/12 + angle/12)
746
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, -math.pi/12 - angle/12)
747
			lh.C1 = CFrame.new(0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, -math.pi/8)
748
			rh.C1 = CFrame.new(-0.35,0.7,0.5) * CFrame.Angles(0 + angle/10, 0, math.pi/8)
749
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
750
			rj.C0 = CFrame.new(angle/4, -0.3 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
751
		elseif happy == true and jump == false and sit == false then
752
			countspeed = 4
753
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, math.pi/8 + angle/8, math.pi/4 + angle/8)
754
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, -math.pi/8 + angle/8, -math.pi/4 + angle/8)
755
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0  + angle/10)
756
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0  + angle/10)
757
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/15, 0 + angle/15)
758
			rj.C0 = CFrame.new(0, 0 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
759
		elseif spin == true and jump == false and sit == false then
760
			global_wait = (global_wait % 360) + 4
761
			countspeed = 4
762
			ls.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 + angle/10, 0 + angle/10)
763
			rs.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 - angle/10, 0 + angle/10)
764
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0  + angle/10)
765
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0  + angle/10)
766
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
767
			rj.C0 = CFrame.new(0 + angle/25, 0, 0 - angle/25) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
768
		elseif thriller == true and jump == false and sit == false then
769
			countspeed = 2
770
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 + angle/15)
771
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/15)
772
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 - angle/45, 0, 0 + angle/15)
773
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 + angle/45, 0, 0 + angle/15)
774
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/10, 0)
775
			rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/50 , math.pi + angle/50, 0 + angle/50)
776
		elseif barrel == true and jump == false and sit == false then
777
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
778
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
779
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
780
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
781
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
782
			rj.C0 = CFrame.new(0 + angle, -1.8, 0) * CFrame.Angles(0, math.pi, 0 + angle)
783
		elseif sax == true and jump == false and sit == false then
784
			countspeed = 2
785
			ls.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, math.pi/2 - math.abs(angle/30))
786
			rs.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, -math.pi/2 + math.abs(angle/30))
787
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - math.abs(angle/30))
788
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + math.abs(angle/30))
789
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
790
			rj.C0 = CFrame.new(0, -math.abs(angle*0.05), math.abs(angle*0.025)) * CFrame.Angles(math.pi/2 + math.abs(angle/20), math.pi, 0)
791
		elseif spooky == true and jump == false and sit == false then
792
			countspeed = 3
793
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 - angle/1.5)
794
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/1.5)
795
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/16)
796
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/16)
797
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2  + angle/12, math.pi, 0)
798
			rj.C0 = CFrame.new(0, 0 + angle / 35, 0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
799
		elseif stride == true and jump == false and sit == false then
800
			countspeed = 2.5
801
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, angle/16,math.pi/3.5 + angle/8)
802
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, -angle/16,-math.pi/1.5 + -angle/8)
803
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
804
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
805
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
806
			rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-angle/16, math.pi, 0)
807
		elseif shuffle == true and jump == false and sit == false then
808
			countspeed = 2
809
			ls.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, math.pi/2 + angle/3.5)
810
			rs.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, -math.pi/2 + angle/3.5)
811
			lh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
812
			rh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
813
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
814
			rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - angle/35, math.pi - angle/35, 0)
815
		elseif rock == true and jump == false and sit == false then
816
			countspeed = 4
817
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2+angle/2)
818
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2+angle/2)
819
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0+angle/32)
820
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0-angle/32)
821
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
822
			rj.C0 = CFrame.new(0, 0 - angle/50, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
823
		elseif gagnam == true and jump == false and sit == false then
824
			countspeed = 5
825
			ls.C1 = CFrame.new(-0.15,0.75,0) * CFrame.Angles(-math.pi/4, 0, (math.pi/2 + angle/14) - math.pi/20)
826
			rs.C1 = CFrame.new(-0.15,0.75,0) * CFrame.Angles(-math.pi/4, 0, (-math.pi/2 - angle/14) + math.pi/20)
827
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
828
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
829
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
830
			rj.C0 = CFrame.new(0, 0 + angle/40, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
831
		elseif snoop == true and jump == false and sit == false then
832
			countspeed = 2
833
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, math.pi/4 + angle/4)
834
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, -math.pi/4 + angle/4)
835
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
836
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
837
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - angle/8, math.pi, 0)
838
			rj.C0 = CFrame.new(0, 0 + angle/48, 0) * CFrame.Angles(math.pi/2 + angle/24, math.pi, 0)
839
		elseif darude == true and jump == false and sit == false then
840
			countspeed = 3
841
			ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/1.5)
842
			rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/3)
843
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/3)
844
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/1.5)
845
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
846
			rj.C0 = CFrame.new(0, 0+ angle/45, 0) * CFrame.Angles(math.pi/2 - angle/6, math.pi, 0)
847
		elseif taco == true and jump == false and sit == false then
848
			countspeed = 20
849
			global_wait = (global_wait % 360) + 4
850
			ls.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
851
			rs.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
852
			lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
853
			rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
854
			neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - math.pi/8 + angle/16, math.pi, 0)
855
			rj.C0 = CFrame.new(0, 0.25 + angle/12, 0) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
856
		end
857
	end
858
end)