Advertisement
wamandnj

Untitled

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