idkwhatiam

old me

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