Advertisement
Abejaron23

Untitled

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