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