Advertisement
Void_scripter0

Dance noob

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