Advertisement
DarkScriptZEditors

Noob Dancer FE

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