Advertisement
AstroScripts

Untitled

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