Advertisement
Descaii

Doge magik

Jul 25th, 2014
382
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 4.54 KB | None | 0 0
  1. local M = Instance.new("Hint",Workspace)
  2. for i = 30,1,-1 do
  3.     M.Text = "Time until doge: " ..i
  4.     wait(1)
  5. end
  6. M:Destroy()
  7. function GetRecursiveChildren(Place)
  8.     local Stuff = {}
  9.     function GRC(P)
  10.         for i,v in pairs(P:GetChildren()) do
  11.             ypcall(function()
  12.                 GRC(v)
  13.                 table.insert(Stuff,v)
  14.             end)
  15.         end
  16.     end
  17.     GRC(Place)
  18.     GRC = nil
  19.     return Stuff
  20. end
  21. function Doge(CF)
  22.     local Workspace = Instance.new("Model",Workspace)
  23.     local Head = Instance.new("Part",Workspace)
  24.     Head.Size = Vector3.new(10,10,10)
  25.     Head:breakJoints()
  26.     Head.Anchored = true
  27.     HeadM = Instance.new("SpecialMesh",Head)
  28.     HeadM.MeshId = "http://www.roblox.com/asset/?id=151778863"
  29.     HeadM.TextureId = "http://www.roblox.com/asset/?id=151778895"
  30.     HeadM.Scale = Vector3.new(10,10,10)
  31.     local Torso = Instance.new("Part",Workspace)
  32.     Torso.Size = Vector3.new(10,20,20)
  33.     Torso:breakJoints()
  34.     Torso.Anchored = true
  35.     local LA = Instance.new("Part",Workspace)
  36.     LA.Size = Vector3.new(10,20,10)
  37.     LA:breakJoints()
  38.     LA.Anchored = true
  39.     local RA = Instance.new("Part",Workspace)
  40.     RA.Size = Vector3.new(10,20,10)
  41.     RA:breakJoints()
  42.     RA.Anchored = true
  43.     local LL = Instance.new("Part",Workspace)
  44.     LL.Size = Vector3.new(10,20,10)
  45.     LL:breakJoints()
  46.     LL.Anchored = true
  47.     local RL = Instance.new("Part",Workspace)
  48.     RL.Size = Vector3.new(10,20,10)
  49.     RL:breakJoints()
  50.     RL.Anchored = true
  51.     local C = BrickColor.new("Nougat")
  52.     LA.BrickColor,Torso.BrickColor,RA.BrickColor,LL.BrickColor,RL.BrickColor = C,C,C,C,C
  53.     local Rot = 0
  54.     for i,v in pairs(GetRecursiveChildren(game.Workspace)) do
  55.         ypcall(function()
  56.             if not v:IsDescendantOf(Workspace) then
  57.                 v.BrickColor = BrickColor.new("Olive")
  58.                 v.Reflectance = 0.5
  59.             end
  60.         end)
  61.     end
  62.     local C = 0
  63.     while wait() do
  64.         Rot = math.sin(C)*100
  65.         C = C +0.05
  66.         Torso.CFrame = CFrame.new(CF.p+(Vector3.new(0,30,Rot)))*CFrame.Angles(math.rad(Rot*2),0,0)
  67.         Head.CFrame = Torso.CFrame*CFrame.new(0,15,0)*CFrame.Angles(0,math.rad(90),0)
  68.         LA.CFrame = Torso.CFrame*CFrame.new(0,10,15)*CFrame.Angles(-math.rad(170),0,0)*CFrame.new(0,-10,0)
  69.         RA.CFrame = Torso.CFrame*CFrame.new(0,10,-15)*CFrame.Angles(math.rad(170),0,0)*CFrame.new(0,-10,0)
  70.         LL.CFrame = Torso.CFrame*CFrame.new(0,-10,5)*CFrame.Angles(-math.rad(30),0,0)*CFrame.new(0,-10,0)
  71.         RL.CFrame = Torso.CFrame*CFrame.new(0,-10,-5)*CFrame.Angles(math.rad(30),0,0)*CFrame.new(0,-10,0)
  72.        
  73.  
  74.  
  75.  
  76.         for i,v in pairs(game.Players:GetPlayers()) do
  77.             ypcall(function()
  78.                 local N = v.Character
  79.                 if not N:findFirstChild("doged") then
  80.                     local Root2 = N.HumanoidRootPart.RootJoint
  81.                     local LA2 = N.Torso["Left Shoulder"]
  82.                     local RA2 = N.Torso["Right Shoulder"]
  83.                     local LL2 = N.Torso["Left Hip"]
  84.                     local RL2 = N.Torso["Right Hip"]
  85.                     local NK2 = N.Torso["Neck"]
  86.                     Root2.C0 = Root2.C0*CFrame.Angles(math.rad(90),0,0)
  87.                     Root2.C0 = Root2.C0 +Vector3.new(0,0.5,0)
  88.                     LL2.C0 = LL2.C0 *CFrame.Angles(0,0,-math.rad(90))
  89.                     RL2.C0 = RL2.C0 *CFrame.Angles(0,0,math.rad(90))
  90.                     LA2.C0 = LA2.C0 *CFrame.Angles(0,0,-math.rad(90))
  91.                     RA2.C0 = RA2.C0 *CFrame.Angles(0,0,math.rad(90))
  92.                     NK2.C0 = NK2.C0 *CFrame.Angles(-math.rad(90),0,0)
  93.                     local HM = Instance.new("SpecialMesh",N.Head)
  94.                     HM.MeshId = "http://www.roblox.com/asset/?id=151778863"
  95.                     HM.TextureId = "http://www.roblox.com/asset/?id=151778895"
  96.                     local a = Instance.new("StringValue",N)
  97.                     a.Name = "doged"
  98.                 end
  99.                 for i,v in pairs(N:GetChildren()) do
  100.                     if v:IsA("Hat") then
  101.                         v:Destroy()
  102.                     end
  103.                     if v.Name == "Head" then
  104.                         if v.face then
  105.                             v.face:Destroy()
  106.                         end
  107.                     end
  108.                 end
  109.             end)
  110.         end
  111.     end
  112. end
  113.  
  114.  
  115.  
  116.  
  117. local P = Instance.new("Part",Workspace)
  118. P.FormFactor = "Custom"
  119. P.Size = Vector3.new(20,20,20)
  120. P:breakJoints()
  121. P.CFrame = CFrame.new(0,100,0)
  122. P.Touched:connect(function()
  123.     local C,S = P.CFrame,P.Size
  124.     P:Destroy()
  125.     local N = {}
  126.     for i = 1,10 do
  127.         local R = Instance.new("Part",Workspace)
  128.         R.Anchored = true
  129.         R.Size = S/3
  130.         R:breakJoints()
  131.         R.CFrame = C+(Vector3.new(math.random(-P.Size.X/2,P.Size.X/2),math.random(-P.Size.Y/2,P.Size.Y/2),math.random(-P.Size.Z/2,P.Size.Z/2)))
  132.         table.insert(N,R)
  133.     end
  134.     table.foreach(N,function(n,b) b.Anchored = false end)N=nil
  135.     local Egg = Instance.new("Part",Workspace)
  136.     Egg.Size = Vector3.new(5,5,5)
  137.     Egg:breakJoints()
  138.     Egg.CFrame = C
  139.     EggM = Instance.new("SpecialMesh",Egg)
  140.     EggM.Scale = Vector3.new(5,5,5)
  141.     EggM.MeshId = "http://www.roblox.com/asset/?id=1527559"
  142.     EggM.TextureId = "http://www.roblox.com/asset/?id=1527556"
  143.     wait(5)
  144.     EggM.MeshId = "http://www.roblox.com/asset/?id=1529081"
  145.     Doge(Egg.CFrame)
  146. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement