Advertisement
frog2128

cake recipe

Mar 13th, 2015
364
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.62 KB | None | 0 0
  1. --Put is in local script pls
  2.  
  3. name = "Grates"
  4. plr = game.Players[name]
  5. char = plr.Character
  6. prim = BrickColor.new("Magenta") -- PRIMARY COLOR
  7. seco = BrickColor.new("Royal purple") --SECONDARY COLOR
  8. cf = CFrame.new
  9.  
  10. ball = Instance.new("Model", char)
  11.  
  12. an = Instance.new("Animation", ball)
  13. an.AnimationId = "http://www.roblox.com/Asset?ID=45873069"
  14.  
  15. ball = Instance.new("Model", char)
  16.  
  17.  
  18. p2 = Instance.new("Part", ball)
  19. p2.Size = Vector3.new(1,1,1)
  20. p2.FormFactor = "Symmetric"
  21. p2.BrickColor = seco
  22. p2.Transparency = .5
  23. p2.BottomSurface = 0
  24. p2.TopSurface = 0
  25. p2.CanCollide = false
  26.  
  27. m2 = Instance.new("SpecialMesh", p2)
  28. m2.MeshType = "Sphere"
  29. m2.Scale = Vector3.new(.55,5,.55)
  30.  
  31. weld = function(par,p0,p1,c0,c1,name)
  32. local weld = Instance.new("Weld",par)
  33. weld.Part0 = p0
  34. weld.Part1 = p1
  35. weld.C0 = c0
  36. weld.C1 = c1
  37. weld.Name = name
  38. end
  39.  
  40. weld(ball, p2, char["Left Arm"], cf(0,0,0), cf(0,-1.25,0), "Outside")
  41.  
  42. if script.Parent.ClassName ~= "HopperBin" then
  43. local bin = Instance.new("HopperBin",plr.Backpack)
  44. bin.Name = "Baul"
  45. bin.BinType = "Script"
  46. script:clone().Parent = bin
  47. script:remove()
  48. else
  49. bin = script.Parent;
  50. char.Humanoid.MaxHealth = math.huge
  51. fakehead = char.Head:Clone()
  52. fakehead.Parent = char
  53. char.Head.Transparency = 1
  54.  
  55. weld = function(par,p0,p1,c0,c1,name)
  56. local weld = Instance.new("Weld",par)
  57. weld.Part0 = p0
  58. weld.Part1 = p1
  59. weld.C0 = c0
  60. weld.C1 = c1
  61. weld.Name = name
  62. end
  63.  
  64. weld(char, fakehead, char.Head, cf(0,0,0), cf(0,0,0), "Head")
  65.  
  66. Attack = function()
  67.  
  68. b = ball:FindFirstChild("ASPHERE")
  69.  
  70. if not b then
  71.  
  72. char.Humanoid:LoadAnimation(an):Play()
  73. wait(.0)
  74. s:Play()
  75. s2:Play()
  76.  
  77. A = Instance.new("Part", ball)
  78. A.Size = Vector3.new(20,20,20)
  79. A.Transparency = .5
  80. A.BrickColor = seco
  81. A.Reflectance = .5
  82. A.BottomSurface = 0
  83. A.TopSurface = 0
  84. A.CanCollide = false
  85. A.Anchored = true
  86. A.CFrame = char.Torso.CFrame
  87. A.Name = "ASPHERE"
  88.  
  89. game.Debris:AddItem(A,.3)
  90.  
  91. m = Instance.new("SpecialMesh", A)
  92. m.Scale = Vector3.new(.1,.1,.1)
  93. m.MeshType = "Sphere"
  94.  
  95. function Tuch(hit)
  96. h = hit.Parent:findFirstChild("Humanoid")
  97. if h then
  98. h:TakeDamage(50) -- lel
  99. end
  100. end
  101. A.Touched:connect(Tuch)
  102. p.Touched:connect(Tuch)
  103. p1.Touched:connect(Tuch)
  104. wait(.05)
  105. A.CFrame = p.CFrame
  106. m.Scale = m.Scale*2
  107. wait(.05)
  108. A.CFrame = p.CFrame
  109. m.Scale = m.Scale*2
  110. wait(.05)
  111. A.CFrame = p.CFrame
  112. m.Scale = m.Scale*2
  113. wait(.05)
  114. A.CFrame = p.CFrame
  115. m.Scale = m.Scale*2
  116. wait(.05)
  117. A.CFrame = p.CFrame
  118. A:Destroy()
  119. end
  120. end
  121. bin.Selected:connect(function(mouse)
  122. mouse.Button1Down:connect(Attack)
  123. end)
  124.  
  125. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement