Advertisement
idkwhatiam

classic dance v1

May 31st, 2019
304
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 34.18 KB | None | 0 0
  1. if game:GetService("RunService"):IsClient()then error("Please run as a server script. Use h/ instead of hl/.")end;print("FE Compatibility: by WaverlyCole");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("Complete! Running...")
  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.ImageTransparency = 0.5
  340.     b.Size = UDim2.new(0,250,0,100)
  341.     b.Position = UDim2.new(0,0,1,0)
  342.     b.Image = Asset .. "90234603"
  343.     b.Name = "Logo"
  344.     c=Instance.new("Sound",a)
  345.     c.Name = "Intro"
  346.     c.Volume = 1
  347.     c.SoundId = Asset .. "236146895"
  348.     c.Looped = false
  349.     return a
  350. end
  351.  
  352. function Generate(player)
  353. char = player.Character
  354. Hat1 = P(1,1,1,'Black',0,false,false)
  355. Hat2 = P(1,1,1,'Black',0,false,false)
  356. wait()
  357. a=fm(Hat1,1577360,1,1,1,1577349) a.VertexColor = Vector3.new(1,1,1)
  358. b=fm(Hat2,13640868,1,1,1,18987684) b.VertexColor = Vector3.new(1,1,1)
  359. wait()
  360. if char:FindFirstChild("Head") then
  361.     if char.Head:FindFirstChild("face") ~= nil then
  362.         face = char.Head:FindFirstChild("face")
  363.         face.Texture = "rbxasset://textures/face.png"
  364.     end
  365.     c=char.Head:clone()
  366.     c.Name = "FalseHead"
  367.     c.CanCollide = false
  368.     c.Parent = char
  369.     We(c,char.Head,0,0,0,0,0,0)
  370.     char.Head.Transparency = 0
  371.     for i,v in pairs(char:GetChildren()) do
  372.         if v.ClassName == "Shirt" or v.ClassName == "Pants" or v.ClassName == "Hat" or v.ClassName == "CharacterMesh" or v.ClassName == "Shirt Graphic" then
  373.             v:Remove()
  374.         end
  375.         if v.ClassName == "BodyColors" then
  376.             v.HeadColor = BrickColor.new("Bright yellow")
  377.             v.LeftArmColor = BrickColor.new("Bright yellow")
  378.             v.LeftLegColor = BrickColor.new("Br. yellowish green")
  379.             v.RightArmColor = BrickColor.new("Bright yellow")
  380.             v.RightLegColor = BrickColor.new("Br. yellowish green")
  381.             v.TorsoColor = BrickColor.new("Bright blue")
  382.         end
  383.         if v.ClassName == "Part" then
  384.             if v.Name == "Head" or v.Name == "FalseHead" then
  385.                 v.BrickColor = BrickColor.new("Bright yellow")
  386.                 else
  387.                 v.BrickColor = BrickColor.new("Bright yellow")
  388.             end
  389.         end
  390.     end
  391. ----------musics---------------
  392.     M1=SetMusic(2586219879)
  393.     M2=SetMusic(1386299751)
  394.     M3=SetMusic(518673637)
  395.     M4=SetMusic(237407487)
  396.     M5=SetMusic(390951120)
  397.     M6=SetMusic(572900285)
  398.     M7=SetMusic(572900285)
  399.     M8=SetMusic(663760008)
  400.         M9=SetMusic(150569688)
  401.     M10=SetMusic(360013221)
  402.     M11=SetMusic(138811227)
  403.     M12=SetMusic(339517970)
  404.     M13=SetMusic(292433768)
  405.     M14=SetMusic(659079181)
  406.     M15=SetMusic(475712439)
  407.     M16=SetMusic(771740748)
  408. -------------------------------
  409.    
  410.     if char:FindFirstChild("HumanoidRootPart") ~= nil then
  411.         rootpart = char:FindFirstChild("HumanoidRootPart")
  412.     end
  413.     if showtag == true then
  414.         local bbg = Instance.new("BillboardGui",c)
  415.         bbg.Adornee = c
  416.         bbg.Name = "satuttava"
  417.         bbg.Size = UDim2.new(6,0,2,0)
  418.         bbg.StudsOffset = Vector3.new(0,2,0)
  419.         local box = Instance.new("TextLabel",bbg)
  420.         box.Size = UDim2.new(1,0,1,0)
  421.         box.BackgroundColor = BrickColor.new("White")
  422.         box.TextColor3 = Color3.new(255,0,0)
  423.         box.TextStrokeTransparency = 0.5
  424.         box.Font = 3
  425.         box.Text = Player.Name
  426.         box.BackgroundTransparency = 1
  427.         box.Position = UDim2.new(0,0,0,0)
  428.         box.TextScaled = true
  429.     end
  430.     if char:FindFirstChild("Humanoid") ~= nil then
  431.         char:FindFirstChild("Humanoid").MaxHealth = (100*100*100*100)*100
  432.         wait()
  433.         char:FindFirstChild("Humanoid").Health = char:FindFirstChild("Humanoid").MaxHealth
  434.         --char:FindFirstChild("Humanoid").Name = game.Players.LocalPlayer.Name
  435.         humanoid = char:FindFirstChild("Humanoid")
  436.         if humanoid:FindFirstChild("Animator") ~= nil then
  437.             humanoid:FindFirstChild("Animator"):Remove()
  438.             --Instance.new("Animator",humanoid)
  439.         end
  440.         if char:FindFirstChild("Animate") ~= nil then
  441.             char:FindFirstChild("Animate"):Remove()
  442.         end
  443.     end
  444.     Mouse = player:GetMouse()
  445.     Music = Instance.new("Sound",char.Head)
  446.     Music.Volume = 1
  447.     Music.Looped = true
  448.     Music.SoundId = Asset
  449.     Animate = Instance.new("Animation",char.Head)
  450.     Animate.AnimationId = Asset
  451.    
  452.    
  453.    
  454.     Head = char:FindFirstChild("Head")
  455.     torso = char:FindFirstChild("Torso")
  456.     ra = char:findFirstChild("Right Arm")
  457.     la = char:findFirstChild("Left Arm")
  458.     rl = char:findFirstChild("Right Leg")
  459.     ll = char:findFirstChild("Left Leg")
  460.     rs = torso:findFirstChild("Right Shoulder")
  461.     ls = torso:findFirstChild("Left Shoulder")
  462.     rh = torso:findFirstChild("Right Hip")
  463.     lh = torso:findFirstChild("Left Hip")
  464.     neck = torso:findFirstChild("Neck")
  465.     rj = char:findFirstChild("HumanoidRootPart"):findFirstChild("RootJoint")
  466.    
  467.     state = humanoid:GetState()
  468.     local ca = nil
  469.     ca=GenerateGui()
  470.     ca.Parent = player.PlayerGui
  471.     if ca:FindFirstChild("Logo") ~= nil then
  472.         ca:FindFirstChild("Logo"):TweenPosition(UDim2.new(0, 0, 1, -100), "Out", "Quad", 3, true)
  473.         if ca:FindFirstChild("Intro") ~= nil then
  474.             ca:FindFirstChild("Intro"):Play()
  475.             coroutine.resume(coroutine.create(function()
  476.                 for i=0,30 do
  477.                     ca:FindFirstChild("Intro").Volume = 1/(i/2)
  478.                     wait(0.5)
  479.                     if i >= 30 then
  480.                         break
  481.                     end
  482.                 end
  483.             end))
  484.         end
  485.     end
  486.  
  487.     if humanoid ~= nil then
  488.         humanoid.Changed:connect(function(pro)
  489.             if pro == "MoveDirection" or pro == "Jump" then
  490.                 if Music.IsPlaying == true then
  491.                     AnimationStop()
  492.                 end
  493.             end
  494.         end)
  495.         humanoid.Died:connect(function()
  496.             AnimationStop()
  497.         end)
  498.        
  499.     Mouse.KeyUp:connect(function(key)
  500.         if key == "w" then
  501.             W = false
  502.         end
  503.         if key == "a" then
  504.             A = false
  505.         end
  506.         if key == "s" then
  507.             S = false
  508.         end
  509.         if key == "d" then
  510.             D = false
  511.         end
  512.         if string.byte(key) == 48 then
  513.             run = false
  514.         end
  515.     end)
  516.        
  517.     Mouse.KeyDown:connect(function(key)
  518.         if key == "w" then
  519.             W = true
  520.             AnimationStop()
  521.         end
  522.         if key == "a" then
  523.             A = true
  524.             AnimationStop()
  525.         end
  526.         if key == "s" then
  527.             S = true
  528.             AnimationStop()
  529.         end
  530.         if key == "d" then
  531.             D = true
  532.             AnimationStop()
  533.         end
  534.     end)
  535.    
  536.    
  537.    
  538.     Mouse.KeyDown:connect(function(key)
  539.         KeyUsed(key)
  540.     end)
  541. end
  542. end
  543. print'KrystalDance By: KrystalTeam as fully Loaded!'
  544. end
  545.  
  546. function KeyUsed(key)
  547.         if humanoid ~= nil then
  548.             if humanoid.Health > 0 then
  549.                 if string.byte(key) == 32 then
  550.                     jump = true
  551.                     AnimationStop()
  552.                     --sit = false
  553.                 end
  554.                 if string.byte(key) == 50 then
  555.                     AnimationStop()
  556.                     if sit == true then
  557.                         sit = false
  558.                     else
  559.                         sit = true
  560.                     end
  561.                 end
  562.                 if string.byte(key) == 48 then
  563.                     run = true
  564.                 end
  565.                 if W == false and A == false and S == false and D == false and jump == false and sit == false then
  566.                     if key == "Q" or key == "q" then
  567.                         AnimationStop()
  568.                         canttouch = true
  569.                         M1:Play()
  570.                     end
  571.                     if key == "E" or key == "e" then
  572.                         AnimationStop()
  573.                         party = true
  574.                         M2:Play()
  575.                     end
  576.                     if key == "R" or key == "r" then
  577.                         AnimationStop()
  578.                         jerk = true
  579.                         M3:Play()
  580.                     end
  581.                     if key == "T" or key == "t" then
  582.                         AnimationStop()
  583.                         happy = true
  584.                         M4:Play()
  585.                     end
  586.                     if key == "Y" or key == "y" then
  587.                         AnimationStop()
  588.                         spin = true
  589.                         M5:Play()
  590.                     end
  591.                     if key == "U" or key == "u" then
  592.                         AnimationStop()
  593.                         thriller = true
  594.                         M6:Play()
  595.                     end
  596.                     if key == "F" or key == "f" then
  597.                         AnimationStop()
  598.                         barrel = true
  599.                         M7:Play()
  600.                         if barrelbrick == nil and barrel == true then
  601.                             barrelbrick = P(2,2,1,'Black',0,false,false)
  602.                             a=fm(barrelbrick,29873142,1.1,0.8,1.1,31082268) a.VertexColor = Vector3.new(1,1,1)
  603.                             We(barrelbrick,char.Torso,0,-0.2,0,0,0,0)
  604.                         end
  605.                     end
  606.                     if key == "P" or key == "p" then
  607.                         AnimationStop()
  608.                         sax = true
  609.                         M8:Play()
  610.                         if saxtool == nil and sax == true then
  611.                             saxtool = P(1,2,2,'Black',0,false,false)
  612.                             a=fm(saxtool,44410178,1.5,1.5,1.5,44410320) a.VertexColor = Vector3.new(1,1,1)
  613.                             b=We(saxtool,char:FindFirstChild("Left Arm"),0,-1,0,0,0,0)
  614.                             b.C1 = CFrame.new(0.5, -0.9, -0.3) * CFrame.Angles(math.pi/1.5, -math.pi/2, -math.pi/8)
  615.                         end
  616.                     end
  617.                     if key == "G" or key == "g" then
  618.                         AnimationStop()
  619.                         spooky = true
  620.                         M9:Play()
  621.                     end
  622.                     if key == "H" or key == "h" then
  623.                         AnimationStop()
  624.                         stride = true
  625.                         M10:Play()
  626.                     end
  627.                     if key == "J" or key == "j" then
  628.                         AnimationStop()
  629.                         shuffle = true
  630.                         M11:Play()
  631.                     end
  632.                     if key == "K" or key == "k" then
  633.                         AnimationStop()
  634.                         rock = true
  635.                         M12:Play()
  636.                     end
  637.                     if key == "L" or key == "l" then
  638.                         AnimationStop()
  639.                         gagnam = true
  640.                         M13:Play()
  641.                     end
  642.                     if key == "Z" or key == "z" then
  643.                         AnimationStop()
  644.                         snoop = true
  645.                         M14:Play()
  646.                     end
  647.                     if key == "X" or key == "x" then
  648.                         AnimationStop()
  649.                         darude = true
  650.                         M15:Play()
  651.                         if sandstorm == nil and darude == true then
  652.                             sandstorm = P(1,1,1,'Black',0,false,false)
  653.                             sandstorm.Transparency = 1
  654.                             a=Instance.new("Smoke",sandstorm)
  655.                             a.Color = Color3.new(255/255,255/255,175/255)
  656.                             a.Size = 0.4
  657.                             a.RiseVelocity = 3
  658.                             a.Opacity = 0.75
  659.                             b=We(sandstorm,char:FindFirstChild("Torso"),0,0,0,0,0,0)
  660.                             b.C1 = CFrame.new(0, -2, 0)
  661.                         end
  662.                     end
  663.                     if key == "C" or key == "c" then
  664.                         AnimationStop()
  665.                         taco = true
  666.                         M16:Play()
  667.                     end
  668.                 end
  669.             end
  670.         end
  671. end
  672.  
  673. Generate(Player)
  674.  
  675. game:service'RunService'.Stepped:connect(function()
  676.     count = (count % 100) + countspeed
  677.     angle = math.pi * math.sin(math.pi*2/100*count)
  678.     countspeed = 1
  679.    
  680.     state = humanoid:GetState()
  681.     if state ~= Enum.HumanoidStateType.Freefall then
  682.         jump = false
  683.     else
  684.         jump = true
  685.         sit = false
  686.         AnimationStop()
  687.     end
  688.    
  689.     local mesh1anan = Instance.new("SpecialMesh")
  690.     mesh1anan.MeshType = Enum.MeshType.FileMesh
  691.     mesh1anan.Scale = Vector3.new(3,3,3)
  692.     mesh1anan.MeshId = "http://www.roblox.com/asset/?id=151778863"
  693.     mesh1anan.TextureId = "http://www.roblox.com/asset/?id=151778895"
  694.     if taco == true then
  695.         if char ~= nil then
  696.             local locationanan = char:GetModelCFrame()
  697.             local tacoa = Instance.new("Part")
  698.             tacoa.CanCollide = false
  699.             tacoa.RotVelocity = Vector3.new(math.random()*math.pi,math.random()*math.pi,math.random()*math.pi)
  700.             local meshanananan = mesh1anan:clone()
  701.             meshanananan.Parent = tacoa
  702.             meshanananan.Scale = Vector3.new(math.random()*20,math.random()*20,math.random()*20)
  703.             tacoa.CFrame = locationanan * CFrame.new(math.random()*500 - 250,math.random(100,200),math.random()*500 - 250)
  704.             tacoa.Parent = workspace
  705.             game:GetService("Debris"):AddItem(tacoa,4)
  706.         end
  707.     end
  708.    
  709.    
  710.    
  711.    
  712.     if canttouch == false then 
  713.         M1:Stop()
  714.     end
  715.     if party == false then 
  716.         M2:Stop()
  717.     end
  718.     if jerk == false then  
  719.         M3:Stop()
  720.     end
  721.     if happy == false then 
  722.         M4:Stop()
  723.     end
  724.     if spin == false then  
  725.         M5:Stop()
  726.     end
  727.     if thriller == false then  
  728.         M6:Stop()
  729.     end
  730.     if barrel == false then
  731.         M7:Stop()
  732.     end
  733.     if sax == false then   
  734.         M8:Stop()
  735.     end
  736.     if spooky == false then
  737.         M9:Stop()
  738.     end
  739.     if stride == false then
  740.         M10:Stop()
  741.     end
  742.     if shuffle == false then   
  743.         M11:Stop()
  744.     end
  745.     if rock == false then
  746.         M12:Stop()
  747.     end
  748.     if gagnam == false then
  749.         M13:Stop()
  750.     end
  751.     if snoop == false then
  752.         M14:Stop() 
  753.     end
  754.     if darude == false then
  755.         M15:Stop()
  756.     end
  757.     if taco == false then
  758.         M16:Stop()
  759.     end
  760.    
  761.     if run == true and sit == false then
  762.         humanoid.WalkSpeed = 25
  763.     elseif sit == true then
  764.         humanoid.WalkSpeed = 0
  765.     else
  766.         humanoid.WalkSpeed = 16
  767.     end
  768.    
  769.     if global_wait == 380 then global_wait = 0 end
  770.    
  771.     if (W == false or A == false or S == false or D == false) and jump == false and sit == false then
  772.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
  773.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/75)
  774.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
  775.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/75)
  776.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/75, math.pi, 0)
  777.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  778.     end
  779.    
  780.    
  781.     if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
  782.         local ray = Ray.new(torso.Position, Vector3.new(0, -3, 0))
  783.         local hitz,enz = workspace:FindPartOnRay(ray, char)
  784.         if hitz then
  785.             if rootpart:FindFirstChild("Weld") == nil then
  786.                 miniweld = Instance.new("Weld", rootpart)
  787.                 miniweld.C0 = hitz.CFrame:toObjectSpace(rootpart.CFrame)
  788.                 miniweld.Part0 = hitz
  789.                 miniweld.Part1 = rootpart
  790.                 humanoid.PlatformStand = true
  791.             end
  792.         end
  793.     else
  794.         if rootpart:FindFirstChild("Weld") ~= nil then
  795.             rootpart:FindFirstChild("Weld"):Destroy()
  796.             humanoid.PlatformStand = false
  797.         end
  798.     end
  799.    
  800.     if (W == false or A == false or S == false or D == false) and jump == false and sit == true then
  801.         ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - math.pi/15)
  802.         rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + math.pi/15)
  803.         lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, math.pi/2 - math.pi/15)
  804.         rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + math.pi/8, 0, -math.pi/2 + math.pi/15)
  805.         neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
  806.         rj.C0 = CFrame.new(0, -2, 0) * CFrame.Angles(math.pi/2 + math.pi/15, math.pi, 0)
  807.     end
  808.    
  809.     if jump == true and sit == false then
  810.         countspeed = 2
  811.         ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
  812.         rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi + angle/12)
  813.         lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
  814.         rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/12)
  815.         neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  816.         rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
  817.     end
  818.    
  819.     if (W == true or A == true or S == true or D == true) and jump == false and sit == false then
  820.         if run == true then
  821.             countspeed = 4
  822.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  823.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  824.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
  825.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/5)
  826.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
  827.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/40, math.pi, 0)
  828.         else
  829.             countspeed = 2
  830.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
  831.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 - angle/4)
  832.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
  833.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/6)
  834.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  835.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2+ angle/50, math.pi, 0)
  836.         end
  837.     end
  838.  
  839.     if W == false and A == false and S == false and D == false and jump == false and sit == false then
  840.         if jerk == true and jump == false and sit == false then
  841.             countspeed = 2
  842.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, angle/4)
  843.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/5, 0, -angle/4)
  844.             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))
  845.             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))
  846.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
  847.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/5, math.pi, 0)
  848.         elseif party == true and jump == false and sit == false then
  849.             countspeed = 4
  850.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/0.1)
  851.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(angle/15, 0, angle/0.1)
  852.             ls.C1 = CFrame.new(0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi  + angle/35, 0, 0 + angle/500)
  853.             rs.C1 = CFrame.new(-0.25,0.5 + 1 * angle/10,0.5) * CFrame.Angles(math.pi  + angle/35, 0, 0  + angle/500)
  854.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/10, math.pi, 0)
  855.             rj.C0 = CFrame.new(0, 0.5 + angle/5, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  856.         elseif canttouch == true and jump == false and sit == false then
  857.             countspeed = 2
  858.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, math.pi/12 + angle/1)
  859.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0 + angle/8, 0, -math.pi/12 - angle/1)
  860.             lh.C1 = CFrame.new(0.35,-0.75,0.5) * CFrame.Angles(0 + angle/10, 0, -math.pi/1)
  861.             rh.C1 = CFrame.new(-0.35,-0.75,0.5) * CFrame.Angles(0 + angle/10, 0, math.pi/1)
  862.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
  863.             rj.C0 = CFrame.new(angle/4, -0.323 + angle/531, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  864.         elseif happy == true and jump == false and sit == false then
  865.             countspeed = 4
  866.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, math.pi/8 + angle/8, math.pi/4 + angle/8)
  867.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/4, -math.pi/8 + angle/8, -math.pi/4 + angle/8)
  868.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0  + angle/10)
  869.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0, 0  + angle/10)
  870.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/15, 0 + angle/15)
  871.             rj.C0 = CFrame.new(0, 0 + angle/20, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  872.         elseif spin == true and jump == false and sit == false then
  873.             global_wait = (global_wait % 360) + 4
  874.             countspeed = 4
  875.             ls.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 + angle/10, 0 + angle/10)
  876.             rs.C1 = CFrame.new(0,1,0) * CFrame.Angles(math.pi/2, 0 - angle/10, 0 + angle/10)
  877.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0  + angle/10)
  878.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/10, 0 + angle/10, 0  + angle/10)
  879.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  880.             rj.C0 = CFrame.new(0 + angle/25, 0, 0 - angle/25) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
  881.         elseif thriller == true and jump == false and sit == false then
  882.             countspeed = 2
  883.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 + angle/15)
  884.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/15)
  885.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 - angle/45, 0, 0 + angle/15)
  886.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/60 + angle/45, 0, 0 + angle/15)
  887.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi + angle/10, 0)
  888.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 + angle/50 , math.pi + angle/50, 0 + angle/50)
  889.         elseif barrel == true and jump == false and sit == false then
  890.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
  891.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi)
  892.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
  893.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0)
  894.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  895.             rj.C0 = CFrame.new(0 + angle, -1.8, 0) * CFrame.Angles(0, math.pi, 0 + angle)
  896.         elseif sax == true and jump == false and sit == false then
  897.             countspeed = 2
  898.             ls.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, math.pi/2 - math.abs(angle/30))
  899.             rs.C1 = CFrame.new(0,0.75,-0.25) * CFrame.Angles(-math.pi/5, 0, -math.pi/2 + math.abs(angle/30))
  900.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - math.abs(angle/30))
  901.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + math.abs(angle/30))
  902.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  903.             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)
  904.         elseif spooky == true and jump == false and sit == false then
  905.             countspeed = 3
  906.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2 - angle/1.5)
  907.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2 + angle/1.5)
  908.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/16)
  909.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 + angle/16)
  910.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2  + angle/12, math.pi, 0)
  911.             rj.C0 = CFrame.new(0, 0 + angle / 35, 0) * CFrame.Angles(math.pi/2 + angle/25, math.pi, 0)
  912.         elseif stride == true and jump == false and sit == false then
  913.             countspeed = 2.5
  914.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, angle/16,math.pi/3.5 + angle/8)
  915.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(angle/16, -angle/16,-math.pi/1.5 + -angle/8)
  916.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
  917.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, angle/16, angle/16)
  918.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  919.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2-angle/16, math.pi, 0)
  920.         elseif shuffle == true and jump == false and sit == false then
  921.             countspeed = 2
  922.             ls.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, math.pi/2 + angle/3.5)
  923.             rs.C1 = CFrame.new(0,0.75,-0.35) * CFrame.Angles(math.pi/8, 0, -math.pi/2 + angle/3.5)
  924.             lh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
  925.             rh.C1 = CFrame.new(0 + angle/50,1,0.5) * CFrame.Angles(0, 0 + angle/35, 0 + angle/15)
  926.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/15, math.pi, 0)
  927.             rj.C0 = CFrame.new(0, 0, 0) * CFrame.Angles(math.pi/2 - angle/35, math.pi - angle/35, 0)
  928.         elseif rock == true and jump == false and sit == false then
  929.             countspeed = 4
  930.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, math.pi/2+angle/2)
  931.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, -math.pi/2+angle/2)
  932.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0+angle/32)
  933.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0+angle/32, 0, 0-angle/32)
  934.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  935.             rj.C0 = CFrame.new(0, 0 - angle/50, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  936.         elseif gagnam == true and jump == false and sit == false then
  937.             countspeed = 4
  938.             ls.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (math.pi/2 + angle/14) - math.pi/20)
  939.             rs.C1 = CFrame.new(0,0.75,-0.15) * CFrame.Angles(-math.pi/4, 0, (-math.pi/2 - angle/14) + math.pi/20)
  940.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
  941.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0 + angle/16, 0, 0)
  942.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 + angle/20, math.pi, 0)
  943.             rj.C0 = CFrame.new(0, 0 + angle/40, 0) * CFrame.Angles(math.pi/2, math.pi, 0)
  944.         elseif snoop == true and jump == false and sit == false then
  945.             countspeed = 2
  946.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, math.pi/4 + angle/4)
  947.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(math.pi/12, 0, -math.pi/4 + angle/4)
  948.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
  949.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(math.pi/24, 0, 0 + angle/4)
  950.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - angle/8, math.pi, 0)
  951.             rj.C0 = CFrame.new(0, 0 + angle/48, 0) * CFrame.Angles(math.pi/2 + angle/24, math.pi, 0)
  952.         elseif darude == true and jump == false and sit == false then
  953.             countspeed = 3
  954.             ls.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/1.5)
  955.             rs.C1 = CFrame.new(0,0.5,-0.5) * CFrame.Angles(0, 0, 0 + angle/3)
  956.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/3)
  957.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, 0 - angle/1.5)
  958.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2, math.pi, 0)
  959.             rj.C0 = CFrame.new(0, 0+ angle/45, 0) * CFrame.Angles(math.pi/2 - angle/6, math.pi, 0)
  960.         elseif taco == true and jump == false and sit == false then
  961.             countspeed = 4
  962.             global_wait = (global_wait % 360) + 4
  963.             ls.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
  964.             rs.C1 = CFrame.new(0,1,-0.25) * CFrame.Angles(math.pi/6 + angle/12, 0, math.pi)
  965.             lh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
  966.             rh.C1 = CFrame.new(0,1,0.5) * CFrame.Angles(0, 0, math.pi/8 + angle/16)
  967.             neck.C1 = CFrame.new(0,-0.5,0) * CFrame.Angles(math.pi/2 - math.pi/8 + angle/16, math.pi, 0)
  968.             rj.C0 = CFrame.new(0, 0.25 + angle/12, 0) * CFrame.Angles(math.pi/2, math.pi, math.rad(global_wait*4))
  969.         end
  970.     end
  971. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement