Use Code Banana For A Free Banana Drop Out Roblox

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Mar 27th, 2016
Never
Not a member of Pastebin yet?Sign Up, it unlocks many cool features!
Drop

Use Code Banana For A Free Banana Drop Out Roblox Id

  1. Surfaces = {'FrontSurface', 'BackSurface', 'TopSurface', 'BottomSurface', 'LeftSurface', 'RightSurface'}
  2. necko = CFrame.new(0, 1, 0, -1, -0, -0, 0, 0, 1, 0, 1, 0)
  3. selected = false
  4. Able = true
  5. Prop = {Damage = 30}
  6. ToolIcon = '
  7. MouseIc = '
  8. MouseDo = '
  9. function Notime(func, tim)
  10. coroutine.resume(coroutine.create(function()
  11. if tim then
  12. wait(tim)
  13. end
  14. func()
  15. end))
  16. end
  17. Add = {
  18. Sphere = function(P)
  19. local m = Instance.new('SpecialMesh',P)
  20. m.MeshType = 'Sphere'
  21. return m
  22. end,
  23. BF = function(P)
  24. local bf = Instance.new('BodyForce',P)
  25. bf.force = Vector3.new(0, P:GetMass()*187, 0)
  26. return bf
  27. end,
  28. BP = function(P)
  29. local bp = Instance.new('BodyPosition',P)
  30. bp.maxForce = Vector3.new(math.huge, 0, math.huge)
  31. bp.P = 14000
  32. return bp
  33. end,
  34. BG = function(P)
  35. local bg = Instance.new('BodyGyro',P)
  36. bg.maxTorque = Vector3.new(math.huge, math.huge, math.huge)
  37. bg.P = 14000
  38. return bg
  39. end,
  40. Mesh = function(P, ID, x, y, z)
  41. local m = Instance.new('SpecialMesh')
  42. m.MeshId = ID
  43. m.Scale = Vector3.new(x, y, z)
  44. m.Parent = P
  45. return m
  46. end,
  47. Sound = function(P, ID, vol, pitch)
  48. local s = Instance.new('Sound')
  49. s.SoundId = ID
  50. s.Volume = vol
  51. s.Pitch = pitch
  52. s.Parent = P
  53. return s
  54. end
  55. }
  56. function find(tab, arg)
  57. local ah = nil
  58. for i,v in pairs(tab) do
  59. if v arg then
  60. ah = v
  61. end
  62. end
  63. return ah
  64. end
  65. function getAllParts(from)
  66. local t = {}
  67. function getParts(where)
  68. for i, v in pairs(where:children()) do
  69. if v:IsA('BasePart') then
  70. if v.Parent ~= char and v.Parent.Parent ~= char then
  71. table.insert(t, v)
  72. end
  73. end
  74. getParts(v)
  75. end
  76. end
  77. getParts(workspace)
  78. return t
  79. end
  80. function RayCast(pos1, pos2, maxDist, forward)
  81. local list = getAllParts(workspace)
  82. local pos0 = pos1
  83. for dist = 1, maxDist, forward do
  84. pos0 = (CFrame.new(pos1, pos2) * CFrame.new(0, 0, -dist)).p
  85. for _, v in pairs(list) do
  86. local pos3 = v.CFrame:pointToObjectSpace(pos0)
  87. local s = v.Size
  88. if pos3.x > -(s.x/2) and pos3.x < (s.x/2) and pos3.y > -(s.y/2) and pos3.y < (s.y/2) and pos3.z > -(s.z/2) and pos3.x < (s.z/2) and v.CanCollide true then
  89. return pos0, v
  90. end
  91. end
  92. end
  93. return pos0, nil
  94. end
  95. function Part(Parent, Anchor, Collide, Tran, Ref, Color, X, Y, Z, Break)
  96. local p = Instance.new('Part')
  97. p.formFactor = 'Custom'
  98. p.Anchored = Anchor
  99. p.CanCollide = Collide
  100. p.Transparency = Tran
  101. p.Reflectance = Ref
  102. p.BrickColor = BrickColor.new(Color)
  103. for _, Surf in pairs(Surfaces) do
  104. p[Surf] = 'Smooth'
  105. end
  106. p.Size = Vector3.new(X, Y, Z)
  107. if Break then
  108. p:BreakJoints()
  109. else p:MakeJoints() end
  110. p.Parent = Parent
  111. return p
  112. end
  113. function Weld(p0, p1, x, y, z, a, b, c)
  114. local w = Instance.new('Weld')
  115. w.Parent = p0
  116. w.Part0 = p0
  117. w.Part1 = p1
  118. w.C1 = CFrame.new(x,y,z) * CFrame.Angles(a,b,c)
  119. return w
  120. end
  121. function ComputePos(pos1, pos2)
  122. local pos3 = Vector3.new(pos2.x, pos1.y, pos2.z)
  123. return CFrame.new(pos1, pos3)
  124. end
  125. function getHumanoid(c)
  126. local h = nil
  127. for i,v in pairs(c:children()) do
  128. if v:IsA('Humanoid') then
  129. if v.Health > 0 then
  130. h = v
  131. end
  132. end
  133. end
  134. return h
  135. end
  136. for i,v in pairs(char:children()) do
  137. if v.Name Modelname then
  138. v:remove()
  139. end
  140. end
  141. torso = char.Torso
  142. neck = torso.Neck
  143. hum = char.Humanoid
  144. Rarm = char['Right Arm']
  145. Larm = char['Left Arm']
  146. Rleg = char['Right Leg']
  147. Lleg = char['Left Leg']
  148. hc = Instance.new('Humanoid')
  149. hc.Health = 0
  150. hc.MaxHealth = 0
  151. slash = Add.Sound(nil, 'rbxasset://sounds//swordslash.wav', 0.9, 0.8)
  152. hitsound = Add.Sound(nil, 'http://www.roblox.com/asset/?id=2801263', 0.7, 0.6)
  153. charge = Add.Sound(nil, 'http://www.roblox.com/asset/?id=2101137', 0.8, 0.65)
  154. boom = Add.Sound(nil, 'http://www.roblox.com/asset/?id=2691586', 0.8, 0.3)
  155. smashsound = Add.Sound(nil, 'http://www.roblox.com/asset/?id=2692806', 0.8, 0.35)
  156. boomboom = Add.Sound(nil, 'http://www.roblox.com/asset/?id=2760979', 1, 0.18)
  157. function PlaySound(sound, pitch, vol)
  158. local s = sound:clone()
  159. if pitch ~= nil then
  160. if tonumber(pitch) then
  161. s.Pitch = tonumber(pitch)
  162. end
  163. end
  164. if vol ~= nil then
  165. if tonumber(vol) then
  166. s.Volume = tonumber(vol)
  167. end
  168. end
  169. s.Parent = torso
  170. s.PlayOnRemove = true
  171. coroutine.resume(coroutine.create(function()
  172. wait()
  173. s:remove()
  174. end))
  175. end
  176. Mo = Instance.new('Model')
  177. Mo.Name = Modelname
  178. RABrick = Part(Mo, false, false, 1, 0, 'White', 0.1, 0.1, 0.1, true)
  179. LABrick = Part(Mo, false, false, 1, 0, 'White', 0.1, 0.1, 0.1, true)
  180. RLBrick = Part(Mo, false, false, 1, 0, 'White', 0.1, 0.1, 0.1, true)
  181. LLBrick = Part(Mo, false, false, 1, 0, 'White', 0.1, 0.1, 0.1, true)
  182. RABW = Weld(torso, RABrick, -1.5, -0.5, 0, 0, 0, 0)
  183. LABW = Weld(torso, LABrick, 1.5, -0.5, 0, 0, 0, 0)
  184. RLBW = Weld(torso, RLBrick, -0.5, 1.2, 0, 0, 0, 0)
  185. LLBW = Weld(torso, LLBrick, 0.5, 1.2, 0, 0, 0, 0)
  186. RAW = Weld(RABrick, nil, 0, 0.5, 0, 0, 0, 0)
  187. LAW = Weld(LABrick, nil, 0, 0.5, 0, 0, 0, 0)
  188. RLW = Weld(RLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  189. LLW = Weld(LLBrick, nil, 0, 0.8, 0, 0, 0, 0)
  190. HB = Part(Mo, false, false, 1, 0, 'White', 0.1, 0.1, 0.1, true)
  191. HBW = Weld(Rarm, HB, 0, 1, 0, 0, 0, 0)
  192. HW = Weld(HB, nil, 0, 0.3, 0, math.pi/2, math.pi, 0)
  193. Mo.Parent = char
  194. function MakeBanana()
  195. local Banana = Part(workspace, false, true, 0, 0, 'Bright yellow', 0.9, 0.95, 0.9, true)
  196. Banana.Friction = 0.8
  197. Banana.Elasticity = 0
  198. local mes = Add.Mesh(Banana, 'http://www.roblox.com/asset/?id=28937301', 1.3, 0.8, 1.3)
  199. mes.TextureId = 'http://www.roblox.com/asset/?id=28937670'
  200. HW.Part1 = Banana
  201. return Banana
  202. end
  203. if script.Parent.className ~= 'HopperBin' then
  204. h = Instance.new('HopperBin',me.Backpack)
  205. h.Name = Toolname
  206. h.TextureId = ToolIcon
  207. script.Parent = h
  208. end
  209. bin = script.Parent
  210. function detach(bool)
  211. LLW.C0 = CFrame.new(0, 0, 0)
  212. RLW.C0 = CFrame.new(0, 0, 0)
  213. LAW.C0 = CFrame.new(0,0,0)
  214. RAW.C0 = CFrame.new(0, 0, 0)
  215. if bool then
  216. LLW.Part1 = nil
  217. RLW.Part1 = nil
  218. RAW.Part1 = nil
  219. LAW.Part1 = nil
  220. end
  221. end
  222. function attach()
  223. RAW.Part1 = Rarm
  224. LAW.Part1 = Larm
  225. RLW.Part1 = Rleg
  226. LLW.Part1 = Lleg
  227. end
  228. function normal()
  229. neck.C0 = NeckStand
  230. RAW.C0 = RAWStand
  231. LAW.C0 = LAWStand
  232. RLW.C0 = RLWStand
  233. LLW.C0 = LLWStand
  234. RAW.C1 = CFrame.new(0, 0.5, 0)
  235. LAW.C1 = CFrame.new(0, 0.5, 0)
  236. RLW.C1 = CFrame.new(0, 0.8, 0)
  237. LLW.C1 = CFrame.new(0, 0.8, 0)
  238. HW.C0 = HWStand
  239. end
  240. function throw(mousepos)
  241. RAW.Part1 = Rarm
  242. for i = 0, 1, 0.2 do
  243. RAW.C0 = CFrame.Angles(math.rad(-5*i), 0, math.rad(-15*i)) * CFrame.new(0, -0.2*i, -0.5*i)
  244. wait()
  245. end
  246. local banana = MakeBanana()
  247. for i = 0, 1, 0.14 do
  248. RAW.C0 = CFrame.Angles(math.rad(-5+185*i), 0, math.rad(-15+35*i)) * CFrame.new(0, -0.2+0.1*i, -0.5+0.8*i)
  249. wait()
  250. end
  251. for i = 0, 1, 0.25 do
  252. RAW.C0 = CFrame.Angles(math.rad(-5+185-90*i), 0, math.rad(-15+35-45*i)) * CFrame.new(0, -0.2+0.1-0.4*i, -0.5+0.8-0.3*i)
  253. wait()
  254. end
  255. local pos = CFrame.new(banana.Position, mousepos) * CFrame.Angles(math.rad(25),0,0)
  256. local mag = (torso.Position - mousepos).magnitude
  257. mag = mag - (mag/5)
  258. if mag > 25 then mag = 25 end
  259. local kert = (40+(mag*2))
  260. Notime(function()
  261. HW.Part1 = nil
  262. wait()
  263. banana.Velocity = pos.lookVector * kert
  264. local bg = Add.BG(banana)
  265. bg.P = 4500
  266. bg.maxTorque = Vector3.new(math.huge, 0, math.huge)
  267. wait(0.5)
  268. repeat wait() until banana.Velocity.magnitude < 13
  269. local ablez = true
  270. local con = banana.Touched:connect(function(hit)
  271. local hu = getHumanoid(hit.Parent)
  272. if hu then
  273. local to = hu.Parent:findFirstChild('Torso')
  274. if to and ablez then
  275. ablez = false
  276. local bg = Add.BG(to)
  277. hu.PlatformStand = true
  278. local cf1 = to.CFrame
  279. local cf2 = CFrame.new(cf1.p, (cf1 * CFrame.new(0, 0, -2).p))
  280. to.Velocity = to.Velocity + (cf1.lookVector * -15) + Vector3.new(0, 35, 0)
  281. local ah = math.random(260,280)
  282. local mm = math.random(5,8)/100
  283. Notime(function()
  284. wait(0.25)
  285. ablez = true
  286. end)
  287. banana.Velocity = cf1.lookVector * 35
  288. for i = 0, 1, mm do
  289. bg.cframe = cf2 * CFrame.Angles(math.rad(ah*i), 0, 0)
  290. wait()
  291. end
  292. wait()
  293. bg:remove()
  294. wait(0.4)
  295. hu.PlatformStand = false
  296. end
  297. end
  298. end)
  299. wait(math.random(18,22))
  300. con:disconnect()
  301. for i = 0, 1, 0.033 do
  302. banana.Transparency = i
  303. wait()
  304. end
  305. banana:remove()
  306. end)
  307. for i = 0, 1, 0.16 do
  308. RAW.C0 = CFrame.Angles(math.rad(-5+185-90-90*i), 0, math.rad(-15+35-45+25*i)) * CFrame.new(0, -0.2+0.1-0.4+0.5*i, 0)
  309. wait()
  310. end
  311. detach(true)
  312. end
  313. function select(mouse)
  314. selected = true
  315. mouse.Button1Down:connect(function()
  316. if Able then
  317. Able = false
  318. throw(mouse.Hit.p)
  319. wait(0.5)
  320. Able = true
  321. end
  322. end)
  323. end
  324. function deselect(mouse)
  325. selected = false
  326. end
  327. bin.Selected:connect(select)
  328. bin.Deselected:connect(deselect)
Use Code Banana For A Free Banana Drop Out RobloxBanana

Use Code Banana For A Free Banana Drop Out Roblox 2020

Comments are closed.