josh97060

Untitled

Mar 8th, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.00 KB | None | 0 0
  1. local me = game.Players.iiUndesiredDeath
  2. local bp = me.Backpack
  3. local pg = me.PlayerGui
  4. local char = me.Character
  5. local name = me.Name
  6. local offset = Vector3.new(25, 1, 0)
  7. local money = 100000000
  8. local color = "Mid stone grey"
  9. local income = 1
  10. local brickname = "Droppart"
  11. local shape = "Ball"
  12. local blocksize = Vector3.new(1, 1, 1)
  13. script.Parent = char
  14.  
  15. pcall(function() me.leaderstats:remove() end)
  16.  
  17. local stats = Instance.new("IntValue")
  18. stats.Name = "leaderstats"
  19. stats.Parent = me
  20.  
  21. expinsert = Instance.new("IntValue")
  22. expinsert.Parent = stats
  23. expinsert.Name = "Money"
  24. expinsert.Value = money
  25.  
  26. pcall(function() workspace.Base.MineTycoon:remove() end)
  27. local model = Instance.new("Model", workspace.Base)
  28. model.Name = "MineTycoon"
  29. local model2 = Instance.new("Model", model)
  30. model2.Name = "Money: " ..money.. ""
  31. local hum = Instance.new("Humanoid", model2)
  32. hum.MaxHealth = 0
  33. hum.Health = 0
  34.  
  35. local base = Instance.new("Part", model)
  36. base.Anchored = true
  37. base.BrickColor = BrickColor.new("Mid stone grey")
  38. base.Size = Vector3.new(25, 1, 35)
  39. base.CFrame = CFrame.new(0, 0, 0) * CFrame.Angles(0, 0, 0) + offset
  40. local basem = Instance.new("BlockMesh", base)
  41. local base2 = Instance.new("Part", model)
  42. base2.Anchored = true
  43. base2.BrickColor = BrickColor.new("White")
  44. base2.Size = Vector3.new(4, 4, 10)
  45. base2.CFrame = CFrame.new(0, 2, 0) * CFrame.Angles(0, 0, 0) + offset
  46. local base2m = Instance.new("BlockMesh", base2)
  47. local base2w = Instance.new("Part", model)
  48. base2w.Anchored = true
  49. base2w.BrickColor = BrickColor.new("White")
  50. base2w.Size = Vector3.new(1, 6, 10)
  51. base2w.CFrame = CFrame.new(2, 2, -4) * CFrame.Angles(0, 0, 0) + offset
  52. local base2wm = Instance.new("BlockMesh", base2w)
  53. local base3 = Instance.new("Part", model)
  54. base3.Anchored = true
  55. base3.formFactor = "Custom"
  56. base3.BrickColor = BrickColor.new("Really black")
  57. base3.Size = Vector3.new(4, 0.5, 10)
  58. base3.CFrame = CFrame.new(0, 4, 0) * CFrame.Angles(0, 0, 0) + offset
  59. base3.Velocity = base3.CFrame.lookVector * 25
  60. local base3m = Instance.new("BlockMesh", base3)
  61. base3m.Bevel = 0.1
  62. local base3w = Instance.new("Part", model)
  63. base3w.Anchored = true
  64. base3w.BrickColor = BrickColor.new("White")
  65. base3w.Size = Vector3.new(1, 6, 9)
  66. base3w.CFrame = CFrame.new(-2, 2, 0.5) * CFrame.Angles(0, 0, 0) + offset
  67. local base3wm = Instance.new("BlockMesh", base3w)
  68. local base4 = Instance.new("Part", model)
  69. base4.Anchored = true
  70. base4.BrickColor = BrickColor.new("White")
  71. base4.Size = Vector3.new(11, 4, 4)
  72. base4.CFrame = CFrame.new(7, 2, 3) * CFrame.Angles(0, 0, 0) + offset
  73. local base4m = Instance.new("BlockMesh", base4)
  74. local base4w = Instance.new("Part", model)
  75. base4w.Anchored = true
  76. base4w.BrickColor = BrickColor.new("White")
  77. base4w.Size = Vector3.new(10, 6, 1)
  78. base4w.CFrame = CFrame.new(7.5, 2, 0.5) * CFrame.Angles(0, 0, 0) + offset
  79. local base4wm = Instance.new("BlockMesh", base4w)
  80. local base5 = Instance.new("Part", model)
  81. base5.Anchored = true
  82. base5.formFactor = "Custom"
  83. base5.BrickColor = BrickColor.new("Really black")
  84. base5.Size = Vector3.new(4, 0.5, 11)
  85. base5.CFrame = CFrame.new(7, 4, 3) * CFrame.Angles(0, 1.575, 0) + offset
  86. base5.Velocity = base5.CFrame.lookVector * 25
  87. local base5m = Instance.new("BlockMesh", base5)
  88. local base5w = Instance.new("Part", model)
  89. base5w.Anchored = true
  90. base5w.BrickColor = BrickColor.new("White")
  91. base5w.Size = Vector3.new(15, 6, 1)
  92. base5w.CFrame = CFrame.new(5, 2, 5.5) * CFrame.Angles(0, 0, 0) + offset
  93. local base5wm = Instance.new("BlockMesh", base5w)
  94. local base6 = Instance.new("Part", model)
  95. base6.Anchored = true
  96. base6.BrickColor = BrickColor.new("White")
  97. base6.Size = Vector3.new(14, 4, 4)
  98. base6.CFrame = CFrame.new(-5, 2, -6) * CFrame.Angles(0, 0, 0) + offset
  99. local base6m = Instance.new("BlockMesh", base6)
  100. local base6w = Instance.new("Part", model)
  101. base6w.Anchored = true
  102. base6w.BrickColor = BrickColor.new("White")
  103. base6w.Size = Vector3.new(14, 6, 1)
  104. base6w.CFrame = CFrame.new(-5, 2, -8.5) * CFrame.Angles(0, 0, 0) + offset
  105. local base6wm = Instance.new("BlockMesh", base6w)
  106. local base7 = Instance.new("Part", model)
  107. base7.Anchored = true
  108. base7.formFactor = "Custom"
  109. base7.BrickColor = BrickColor.new("Really black")
  110. base7.Size = Vector3.new(4, 0.5, 14)
  111. base7.CFrame = CFrame.new(-5, 4, -6) * CFrame.Angles(0, 1.575, 0) + offset
  112. base7.Velocity = base5.CFrame.lookVector * 25
  113. local base7m = Instance.new("BlockMesh", base7)
  114. local base7w = Instance.new("Part", model)
  115. base7w.Anchored = true
  116. base7w.BrickColor = BrickColor.new("White")
  117. base7w.Size = Vector3.new(10, 6, 1)
  118. base7w.CFrame = CFrame.new(-7, 2, -3.5) * CFrame.Angles(0, 0, 0) + offset
  119. local base7wm = Instance.new("BlockMesh", base7w)
  120. local base8 = Instance.new("Part", model)
  121. base8.Anchored = true
  122. base8.formFactor = "Custom"
  123. base8.CanCollide = false
  124. base8.BrickColor = BrickColor.new("Reddish brown")
  125. base8.Size = Vector3.new(4, 4, 4)
  126. base8.CFrame = CFrame.new(-14, 1.5, -6) * CFrame.Angles(0, 0, 0) + offset
  127. local base8m = Instance.new("BlockMesh", base8)
  128. local base9 = Instance.new("Part", model)
  129. base9.Anchored = true
  130. base9.formFactor = "Custom"
  131. base9.CanCollide = false
  132. base9.BrickColor = BrickColor.new("Dark stone grey")
  133. base9.Size = Vector3.new(2, 2, 4)
  134. base9.CFrame = CFrame.new(11, 5, 3) * CFrame.Angles(0, 0, 0) + offset
  135. local base9m = Instance.new("BlockMesh", base9)
  136. local base10 = Instance.new("Part", model2)
  137. base10.Anchored = true
  138. base10.formFactor = "Custom"
  139. base10.CanCollide = false
  140. base10.Name = "Head"
  141. base10.BrickColor = BrickColor.new("Reddish brown")
  142. base10.Size = Vector3.new(4, 1, 4)
  143. base10.CFrame = CFrame.new(-14, 0, -2) * CFrame.Angles(0, 0, 0) + offset
  144. local base10m = Instance.new("BlockMesh", base10)
  145. local base11 = Instance.new("Part", model)
  146. base11.Anchored = true
  147. base11.formFactor = "Custom"
  148. base11.CanCollide = false
  149. base11.BrickColor = BrickColor.new("Really red")
  150. base11.Size = Vector3.new(4, 1, 4)
  151. base11.CFrame = CFrame.new(10, 0.5, -7) * CFrame.Angles(0, 0, 0) + offset
  152. local base11m = Instance.new("CylinderMesh", base11)
  153. local base12 = Instance.new("Part", model)
  154. base12.Anchored = true
  155. base12.formFactor = "Custom"
  156. base12.CanCollide = false
  157. base12.Transparency = 1
  158. base12.BrickColor = BrickColor.new("Really black")
  159. base12.Size = Vector3.new(2, 2, 4)
  160. base12.CFrame = CFrame.new(9, 5, 3) * CFrame.Angles(0, 0, 0) + offset
  161. local base12m = Instance.new("BlockMesh", base12)
  162. local base13 = Instance.new("Part", model)
  163. base13.Anchored = true
  164. base13.formFactor = "Custom"
  165. base13.CanCollide = false
  166. base13.Transparency = 1
  167. base13.BrickColor = BrickColor.new("Reddish brown")
  168. base13.Size = Vector3.new(2, 2, 4)
  169. base13.CFrame = CFrame.new(7, 5, 3) * CFrame.Angles(0, 0, 0) + offset
  170. local base13m = Instance.new("BlockMesh", base13)
  171. local base14 = Instance.new("Part", model)
  172. base14.Anchored = true
  173. base14.formFactor = "Custom"
  174. base14.CanCollide = false
  175. base14.BrickColor = BrickColor.new("Really red")
  176. base14.Size = Vector3.new(4, 1, 4)
  177. base14.CFrame = CFrame.new(6, 0.5, -10) * CFrame.Angles(0, 0, 0) + offset
  178. local base14m = Instance.new("CylinderMesh", base14)
  179. local base15 = Instance.new("Part", model)
  180. base15.Anchored = true
  181. base15.formFactor = "Custom"
  182. base15.CanCollide = false
  183. base15.BrickColor = BrickColor.new("Really red")
  184. base15.Size = Vector3.new(4, 1, 4)
  185. base15.CFrame = CFrame.new(6, 0.5, -15) * CFrame.Angles(0, 0, 0) + offset
  186. local base15m = Instance.new("CylinderMesh", base15)
  187.  
  188. while true do
  189. base8.Touched:connect(function(hit)
  190. if hit.Name == "Droppart" then
  191. hit:remove()
  192. money = money + 1
  193. model2.Name = "Money: " ..money.. ""
  194. end
  195. if hit.Name == "HIDERE" then
  196. money = money + income
  197. hit:remove()
  198. model2.Name = "Money: " ..money.. ""
  199. end
  200. end)
  201. base11.Touched:connect(function(hit)
  202. if hit.Parent.Name == name then
  203. if expinsert.Value >= 500 then
  204. expinsert.Value = expinsert.Value - 500
  205. color = "New Yeller"
  206. income = 5
  207. base12.Transparency = 0
  208. brickname = "HIDERE"
  209. base11:remove()
  210. end
  211. end
  212. end)
  213. base14.Touched:connect(function(hit)
  214. if hit.Parent.Name == name then
  215. if expinsert.Value >= 1000 then
  216. expinsert.Value = expinsert.Value - 1000
  217. income = 10
  218. shape = "Block"
  219. blocksize = Vector3.new(1, 0.2, 1)
  220. base13.Transparency = 0
  221. base14:remove()
  222. end
  223. end
  224. end)
  225. base10.Touched:connect(function(hit)
  226. if hit.Parent.Name == name then
  227. expinsert.Value = expinsert.Value + money
  228. money = 0
  229. model2.Name = "Money: " ..money.. ""
  230. end
  231. end)
  232. coroutine.resume(coroutine.create(function()
  233. wait(2.5)
  234. local droppart = base9:clone()
  235. droppart.Parent = workspace
  236. droppart.Anchored = false
  237. droppart.Shape = shape
  238. droppart.formFactor = "Custom"
  239. droppart.CanCollide = true
  240. droppart.TopSurface = "Smooth"
  241. droppart.BrickColor = BrickColor.new(color)
  242. droppart.BottomSurface = "Smooth"
  243. droppart.Name = brickname
  244. droppart.Size = blocksize
  245. droppart.CFrame = base9.CFrame
  246. for _,v in pairs(droppart:GetChildren()) do
  247. v:remove()
  248. end
  249. end))
  250. wait(2.5)
  251. end
Add Comment
Please, Sign In to add comment