Advertisement
Guest User

Untitled

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