Advertisement
RBLPlayer

Noob Dance [FE]

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