Advertisement
lafur

Untitled

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