Advertisement
zza

fixed dancer

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