Advertisement
firebudgy

Untitled

Apr 29th, 2018
475
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 152.38 KB | None | 0 0
  1.  
  2. --Converted with ttyyuu12345's model to script plugin v4
  3. function sandbox(var,func)
  4. local env = getfenv(func)
  5. local newenv = setmetatable({},{
  6. __index = function(self,k)
  7. if k=="script" then
  8. return var
  9. else
  10. return env[k]
  11. end
  12. end,
  13. })
  14. setfenv(func,newenv)
  15. return func
  16. end
  17. cors = {}
  18. mas = Instance.new("Model",game:GetService("Lighting"))
  19. Model0 = Instance.new("Model")
  20. Model1 = Instance.new("Model")
  21. Part2 = Instance.new("Part")
  22. Part3 = Instance.new("Part")
  23. Part4 = Instance.new("Part")
  24. Part5 = Instance.new("Part")
  25. Part6 = Instance.new("Part")
  26. Part7 = Instance.new("Part")
  27. Part8 = Instance.new("Part")
  28. Part9 = Instance.new("Part")
  29. Part10 = Instance.new("Part")
  30. Part11 = Instance.new("Part")
  31. Model12 = Instance.new("Model")
  32. Part13 = Instance.new("Part")
  33. Part14 = Instance.new("Part")
  34. Part15 = Instance.new("Part")
  35. Part16 = Instance.new("Part")
  36. Part17 = Instance.new("Part")
  37. Script18 = Instance.new("Script")
  38. Script19 = Instance.new("Script")
  39. Model20 = Instance.new("Model")
  40. Part21 = Instance.new("Part")
  41. Part22 = Instance.new("Part")
  42. Part23 = Instance.new("Part")
  43. Part24 = Instance.new("Part")
  44. Part25 = Instance.new("Part")
  45. Part26 = Instance.new("Part")
  46. Part27 = Instance.new("Part")
  47. Part28 = Instance.new("Part")
  48. Part29 = Instance.new("Part")
  49. Part30 = Instance.new("Part")
  50. Model31 = Instance.new("Model")
  51. Part32 = Instance.new("Part")
  52. Part33 = Instance.new("Part")
  53. Part34 = Instance.new("Part")
  54. Part35 = Instance.new("Part")
  55. Part36 = Instance.new("Part")
  56. Script37 = Instance.new("Script")
  57. Script38 = Instance.new("Script")
  58. Model39 = Instance.new("Model")
  59. Part40 = Instance.new("Part")
  60. Part41 = Instance.new("Part")
  61. Part42 = Instance.new("Part")
  62. Part43 = Instance.new("Part")
  63. Part44 = Instance.new("Part")
  64. Part45 = Instance.new("Part")
  65. Part46 = Instance.new("Part")
  66. Part47 = Instance.new("Part")
  67. Part48 = Instance.new("Part")
  68. Part49 = Instance.new("Part")
  69. Model50 = Instance.new("Model")
  70. Part51 = Instance.new("Part")
  71. Part52 = Instance.new("Part")
  72. Part53 = Instance.new("Part")
  73. Part54 = Instance.new("Part")
  74. Part55 = Instance.new("Part")
  75. Script56 = Instance.new("Script")
  76. Script57 = Instance.new("Script")
  77. Model58 = Instance.new("Model")
  78. Part59 = Instance.new("Part")
  79. Part60 = Instance.new("Part")
  80. Part61 = Instance.new("Part")
  81. Part62 = Instance.new("Part")
  82. Part63 = Instance.new("Part")
  83. Part64 = Instance.new("Part")
  84. Part65 = Instance.new("Part")
  85. Part66 = Instance.new("Part")
  86. Part67 = Instance.new("Part")
  87. Part68 = Instance.new("Part")
  88. Model69 = Instance.new("Model")
  89. Part70 = Instance.new("Part")
  90. Part71 = Instance.new("Part")
  91. Part72 = Instance.new("Part")
  92. Part73 = Instance.new("Part")
  93. Part74 = Instance.new("Part")
  94. Script75 = Instance.new("Script")
  95. Script76 = Instance.new("Script")
  96. Model77 = Instance.new("Model")
  97. Part78 = Instance.new("Part")
  98. Part79 = Instance.new("Part")
  99. Part80 = Instance.new("Part")
  100. Part81 = Instance.new("Part")
  101. Part82 = Instance.new("Part")
  102. Part83 = Instance.new("Part")
  103. Part84 = Instance.new("Part")
  104. Part85 = Instance.new("Part")
  105. Part86 = Instance.new("Part")
  106. Part87 = Instance.new("Part")
  107. Model88 = Instance.new("Model")
  108. Part89 = Instance.new("Part")
  109. Part90 = Instance.new("Part")
  110. Part91 = Instance.new("Part")
  111. Part92 = Instance.new("Part")
  112. Part93 = Instance.new("Part")
  113. Script94 = Instance.new("Script")
  114. Script95 = Instance.new("Script")
  115. Part96 = Instance.new("Part")
  116. Part97 = Instance.new("Part")
  117. Model98 = Instance.new("Model")
  118. Part99 = Instance.new("Part")
  119. Part100 = Instance.new("Part")
  120. Part101 = Instance.new("Part")
  121. Part102 = Instance.new("Part")
  122. Part103 = Instance.new("Part")
  123. Part104 = Instance.new("Part")
  124. Part105 = Instance.new("Part")
  125. Part106 = Instance.new("Part")
  126. Part107 = Instance.new("Part")
  127. Part108 = Instance.new("Part")
  128. Model109 = Instance.new("Model")
  129. Part110 = Instance.new("Part")
  130. Part111 = Instance.new("Part")
  131. Part112 = Instance.new("Part")
  132. Part113 = Instance.new("Part")
  133. Part114 = Instance.new("Part")
  134. Script115 = Instance.new("Script")
  135. Script116 = Instance.new("Script")
  136. Model117 = Instance.new("Model")
  137. Part118 = Instance.new("Part")
  138. Part119 = Instance.new("Part")
  139. Part120 = Instance.new("Part")
  140. Part121 = Instance.new("Part")
  141. Part122 = Instance.new("Part")
  142. Part123 = Instance.new("Part")
  143. Part124 = Instance.new("Part")
  144. Part125 = Instance.new("Part")
  145. Part126 = Instance.new("Part")
  146. Part127 = Instance.new("Part")
  147. Model128 = Instance.new("Model")
  148. Part129 = Instance.new("Part")
  149. Part130 = Instance.new("Part")
  150. Part131 = Instance.new("Part")
  151. Part132 = Instance.new("Part")
  152. Part133 = Instance.new("Part")
  153. Script134 = Instance.new("Script")
  154. Script135 = Instance.new("Script")
  155. Model136 = Instance.new("Model")
  156. Part137 = Instance.new("Part")
  157. Part138 = Instance.new("Part")
  158. Part139 = Instance.new("Part")
  159. Part140 = Instance.new("Part")
  160. Part141 = Instance.new("Part")
  161. Part142 = Instance.new("Part")
  162. Part143 = Instance.new("Part")
  163. Part144 = Instance.new("Part")
  164. Part145 = Instance.new("Part")
  165. Part146 = Instance.new("Part")
  166. Model147 = Instance.new("Model")
  167. Part148 = Instance.new("Part")
  168. Part149 = Instance.new("Part")
  169. Part150 = Instance.new("Part")
  170. Part151 = Instance.new("Part")
  171. Part152 = Instance.new("Part")
  172. Script153 = Instance.new("Script")
  173. Script154 = Instance.new("Script")
  174. Model155 = Instance.new("Model")
  175. Part156 = Instance.new("Part")
  176. Part157 = Instance.new("Part")
  177. Part158 = Instance.new("Part")
  178. Part159 = Instance.new("Part")
  179. Part160 = Instance.new("Part")
  180. Part161 = Instance.new("Part")
  181. Part162 = Instance.new("Part")
  182. Part163 = Instance.new("Part")
  183. Part164 = Instance.new("Part")
  184. Part165 = Instance.new("Part")
  185. Model166 = Instance.new("Model")
  186. Part167 = Instance.new("Part")
  187. Part168 = Instance.new("Part")
  188. Part169 = Instance.new("Part")
  189. Part170 = Instance.new("Part")
  190. Part171 = Instance.new("Part")
  191. Script172 = Instance.new("Script")
  192. Script173 = Instance.new("Script")
  193. Model174 = Instance.new("Model")
  194. Part175 = Instance.new("Part")
  195. Part176 = Instance.new("Part")
  196. Part177 = Instance.new("Part")
  197. Part178 = Instance.new("Part")
  198. Part179 = Instance.new("Part")
  199. Part180 = Instance.new("Part")
  200. Part181 = Instance.new("Part")
  201. Part182 = Instance.new("Part")
  202. Part183 = Instance.new("Part")
  203. Part184 = Instance.new("Part")
  204. Model185 = Instance.new("Model")
  205. Part186 = Instance.new("Part")
  206. Part187 = Instance.new("Part")
  207. Part188 = Instance.new("Part")
  208. Part189 = Instance.new("Part")
  209. Part190 = Instance.new("Part")
  210. Script191 = Instance.new("Script")
  211. Script192 = Instance.new("Script")
  212. Model0.Parent = mas
  213. Model0.PrimaryPart = Part97
  214. Model1.Parent = Model0
  215. Model1.PrimaryPart = Part3
  216. Part2.Parent = Model1
  217. Part2.BrickColor = BrickColor.new("Dark stone grey")
  218. Part2.Rotation = Vector3.new(0, -90, 0)
  219. Part2.Anchored = true
  220. Part2.FormFactor = Enum.FormFactor.Plate
  221. Part2.Size = Vector3.new(1, 3.20000005, 1)
  222. Part2.CFrame = CFrame.new(8, 4.80049658, -79, 1.81077655e-06, 1.02733902e-05, -1, -1.80407587e-05, 1, 8.12763392e-06, 1, 1.23187074e-05, 9.61584192e-07)
  223. Part2.BackSurface = Enum.SurfaceType.Weld
  224. Part2.FrontSurface = Enum.SurfaceType.Weld
  225. Part2.LeftSurface = Enum.SurfaceType.Weld
  226. Part2.TopSurface = Enum.SurfaceType.Smooth
  227. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  228. Part2.Position = Vector3.new(8, 4.80049658, -79)
  229. Part2.Orientation = Vector3.new(0, -90, 0)
  230. Part2.Color = Color3.new(0.388235, 0.372549, 0.384314)
  231. Part3.Parent = Model1
  232. Part3.BrickColor = BrickColor.new("Dark stone grey")
  233. Part3.Rotation = Vector3.new(0, -90, 0)
  234. Part3.Anchored = true
  235. Part3.FormFactor = Enum.FormFactor.Plate
  236. Part3.Size = Vector3.new(4, 3.20000005, 5)
  237. Part3.CFrame = CFrame.new(5.99993896, 1.60046911, -77.5, 1.81077655e-06, 1.02733902e-05, -1, -1.80407587e-05, 1, 8.12763392e-06, 1, 1.23187074e-05, 9.61584192e-07)
  238. Part3.BackSurface = Enum.SurfaceType.Weld
  239. Part3.FrontSurface = Enum.SurfaceType.Weld
  240. Part3.LeftSurface = Enum.SurfaceType.Weld
  241. Part3.RightSurface = Enum.SurfaceType.Weld
  242. Part3.TopSurface = Enum.SurfaceType.Weld
  243. Part3.Color = Color3.new(0.388235, 0.372549, 0.384314)
  244. Part3.Position = Vector3.new(5.99993896, 1.60046911, -77.5)
  245. Part3.Orientation = Vector3.new(0, -90, 0)
  246. Part3.Color = Color3.new(0.388235, 0.372549, 0.384314)
  247. Part4.Parent = Model1
  248. Part4.BrickColor = BrickColor.new("Dark stone grey")
  249. Part4.Rotation = Vector3.new(0, -90, 0)
  250. Part4.Anchored = true
  251. Part4.FormFactor = Enum.FormFactor.Plate
  252. Part4.Size = Vector3.new(3, 3.20000005, 5)
  253. Part4.CFrame = CFrame.new(6, 4.80046797, -77, 1.81077655e-06, 1.02733902e-05, -1, -1.80407587e-05, 1, 8.12763392e-06, 1, 1.23187074e-05, 9.61584192e-07)
  254. Part4.BackSurface = Enum.SurfaceType.Weld
  255. Part4.FrontSurface = Enum.SurfaceType.Weld
  256. Part4.LeftSurface = Enum.SurfaceType.Weld
  257. Part4.RightSurface = Enum.SurfaceType.Weld
  258. Part4.TopSurface = Enum.SurfaceType.Smooth
  259. Part4.Color = Color3.new(0.388235, 0.372549, 0.384314)
  260. Part4.Position = Vector3.new(6, 4.80046797, -77)
  261. Part4.Orientation = Vector3.new(0, -90, 0)
  262. Part4.Color = Color3.new(0.388235, 0.372549, 0.384314)
  263. Part5.Parent = Model1
  264. Part5.BrickColor = BrickColor.new("Dark stone grey")
  265. Part5.Rotation = Vector3.new(0, -90, 0)
  266. Part5.Anchored = true
  267. Part5.FormFactor = Enum.FormFactor.Plate
  268. Part5.Size = Vector3.new(1, 3.20000005, 1)
  269. Part5.CFrame = CFrame.new(4, 4.80040216, -79, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  270. Part5.BackSurface = Enum.SurfaceType.Weld
  271. Part5.FrontSurface = Enum.SurfaceType.Weld
  272. Part5.LeftSurface = Enum.SurfaceType.Weld
  273. Part5.TopSurface = Enum.SurfaceType.Smooth
  274. Part5.Color = Color3.new(0.388235, 0.372549, 0.384314)
  275. Part5.Position = Vector3.new(4, 4.80040216, -79)
  276. Part5.Orientation = Vector3.new(0, -90, 0)
  277. Part5.Color = Color3.new(0.388235, 0.372549, 0.384314)
  278. Part6.Parent = Model1
  279. Part6.BrickColor = BrickColor.new("Dark stone grey")
  280. Part6.Rotation = Vector3.new(0, -90, 0)
  281. Part6.Anchored = true
  282. Part6.FormFactor = Enum.FormFactor.Plate
  283. Part6.Size = Vector3.new(4, 0.400000006, 5)
  284. Part6.CFrame = CFrame.new(6, 6.60039473, -77.5, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  285. Part6.BackSurface = Enum.SurfaceType.Weld
  286. Part6.BottomSurface = Enum.SurfaceType.Weld
  287. Part6.FrontSurface = Enum.SurfaceType.Weld
  288. Part6.LeftSurface = Enum.SurfaceType.Weld
  289. Part6.RightSurface = Enum.SurfaceType.Weld
  290. Part6.TopSurface = Enum.SurfaceType.Weld
  291. Part6.Color = Color3.new(0.388235, 0.372549, 0.384314)
  292. Part6.Position = Vector3.new(6, 6.60039473, -77.5)
  293. Part6.Orientation = Vector3.new(0, -90, 0)
  294. Part6.Color = Color3.new(0.388235, 0.372549, 0.384314)
  295. Part7.Parent = Model1
  296. Part7.Rotation = Vector3.new(0, 0, 90)
  297. Part7.Anchored = true
  298. Part7.FormFactor = Enum.FormFactor.Symmetric
  299. Part7.Shape = Enum.PartType.Ball
  300. Part7.Size = Vector3.new(1, 1, 1)
  301. Part7.CFrame = CFrame.new(3.00003052, 6.50049257, -78, 1.0273372e-05, -1, -7.22158859e-07, 1, 8.12765211e-06, -7.56428744e-06, 1.84225667e-06, -1.57145882e-06, 1)
  302. Part7.BottomSurface = Enum.SurfaceType.Smooth
  303. Part7.TopSurface = Enum.SurfaceType.Smooth
  304. Part7.Position = Vector3.new(3.00003052, 6.50049257, -78)
  305. Part7.Orientation = Vector3.new(0, 0, 90)
  306. Part8.Parent = Model1
  307. Part8.Rotation = Vector3.new(-180, 0, -180)
  308. Part8.Anchored = true
  309. Part8.FormFactor = Enum.FormFactor.Symmetric
  310. Part8.Shape = Enum.PartType.Cylinder
  311. Part8.Size = Vector3.new(1, 1, 1)
  312. Part8.CFrame = CFrame.new(3, 3.50040197, -78, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  313. Part8.BottomSurface = Enum.SurfaceType.Smooth
  314. Part8.TopSurface = Enum.SurfaceType.Smooth
  315. Part8.Position = Vector3.new(3, 3.50040197, -78)
  316. Part8.Orientation = Vector3.new(0, 180, 0)
  317. Part9.Parent = Model1
  318. Part9.Rotation = Vector3.new(0, 0, 90)
  319. Part9.Anchored = true
  320. Part9.FormFactor = Enum.FormFactor.Symmetric
  321. Part9.Shape = Enum.PartType.Cylinder
  322. Part9.Size = Vector3.new(1, 1, 1)
  323. Part9.CFrame = CFrame.new(3, 4.50049257, -78, 1.0273372e-05, -1, -7.22158859e-07, 1, 8.12765211e-06, -7.56428744e-06, 1.84225667e-06, -1.57145882e-06, 1)
  324. Part9.BottomSurface = Enum.SurfaceType.Smooth
  325. Part9.TopSurface = Enum.SurfaceType.Smooth
  326. Part9.Position = Vector3.new(3, 4.50049257, -78)
  327. Part9.Orientation = Vector3.new(0, 0, 90)
  328. Part10.Parent = Model1
  329. Part10.Rotation = Vector3.new(0, 0, 90)
  330. Part10.Anchored = true
  331. Part10.FormFactor = Enum.FormFactor.Symmetric
  332. Part10.Shape = Enum.PartType.Cylinder
  333. Part10.Size = Vector3.new(1, 1, 1)
  334. Part10.CFrame = CFrame.new(3, 5.50047827, -78, 1.0273372e-05, -1, -7.22158859e-07, 1, 8.12765211e-06, -7.56428744e-06, 1.84225667e-06, -1.57145882e-06, 1)
  335. Part10.BottomSurface = Enum.SurfaceType.Smooth
  336. Part10.TopSurface = Enum.SurfaceType.Smooth
  337. Part10.Position = Vector3.new(3, 5.50047827, -78)
  338. Part10.Orientation = Vector3.new(0, 0, 90)
  339. Part11.Parent = Model1
  340. Part11.Rotation = Vector3.new(0, -90, 0)
  341. Part11.Anchored = true
  342. Part11.FormFactor = Enum.FormFactor.Plate
  343. Part11.Size = Vector3.new(1, 0.400000006, 3)
  344. Part11.CFrame = CFrame.new(6.00003052, 7.00044966, -77, 1.81077655e-06, 1.02733902e-05, -1, -1.80407587e-05, 1, 8.12763392e-06, 1, 1.23187074e-05, 9.61584192e-07)
  345. Part11.BottomSurface = Enum.SurfaceType.Smooth
  346. Part11.TopSurface = Enum.SurfaceType.Smooth
  347. Part11.Position = Vector3.new(6.00003052, 7.00044966, -77)
  348. Part11.Orientation = Vector3.new(0, -90, 0)
  349. Model12.Name = "Slots"
  350. Model12.Parent = Model1
  351. Model12.PrimaryPart = Part14
  352. Part13.Name = "Digit3"
  353. Part13.Parent = Model12
  354. Part13.BrickColor = BrickColor.new("White")
  355. Part13.Rotation = Vector3.new(-90, -90, 0)
  356. Part13.Anchored = true
  357. Part13.FormFactor = Enum.FormFactor.Plate
  358. Part13.Size = Vector3.new(3, 0.400000006, 1)
  359. Part13.CFrame = CFrame.new(5, 4.70039988, -78.6999817, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  360. Part13.Color = Color3.new(0.94902, 0.952941, 0.952941)
  361. Part13.Position = Vector3.new(5, 4.70039988, -78.6999817)
  362. Part13.Orientation = Vector3.new(0, -90, 90)
  363. Part13.Color = Color3.new(0.94902, 0.952941, 0.952941)
  364. Part14.Name = "Light"
  365. Part14.Parent = Model12
  366. Part14.BrickColor = BrickColor.new("Bright red")
  367. Part14.Transparency = 0.5
  368. Part14.Rotation = Vector3.new(90, 90, 0)
  369. Part14.Anchored = true
  370. Part14.FormFactor = Enum.FormFactor.Symmetric
  371. Part14.Shape = Enum.PartType.Cylinder
  372. Part14.Size = Vector3.new(1, 1, 1)
  373. Part14.CFrame = CFrame.new(6, 7.70043135, -76.9999695, 1.0273372e-05, 1.8108841e-06, 1, 1, -7.56430791e-06, -8.12763392e-06, 1.84225667e-06, 1, -9.61584192e-07)
  374. Part14.BottomSurface = Enum.SurfaceType.Smooth
  375. Part14.RightSurface = Enum.SurfaceType.Weld
  376. Part14.TopSurface = Enum.SurfaceType.Smooth
  377. Part14.Color = Color3.new(0.768628, 0.156863, 0.109804)
  378. Part14.Position = Vector3.new(6, 7.70043135, -76.9999695)
  379. Part14.Orientation = Vector3.new(0, 90, 90)
  380. Part14.Color = Color3.new(0.768628, 0.156863, 0.109804)
  381. Part15.Name = "Digit1"
  382. Part15.Parent = Model12
  383. Part15.BrickColor = BrickColor.new("White")
  384. Part15.Rotation = Vector3.new(-90, -90, 0)
  385. Part15.Anchored = true
  386. Part15.FormFactor = Enum.FormFactor.Plate
  387. Part15.Size = Vector3.new(3, 0.400000006, 1)
  388. Part15.CFrame = CFrame.new(7, 4.70049238, -78.7000122, 1.0273372e-05, -1.8108841e-06, -1, 1, 7.56430791e-06, 8.12763392e-06, 1.84225667e-06, -1, 9.61584192e-07)
  389. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  390. Part15.Position = Vector3.new(7, 4.70049238, -78.7000122)
  391. Part15.Orientation = Vector3.new(0, -90, 90)
  392. Part15.Color = Color3.new(0.94902, 0.952941, 0.952941)
  393. Part16.Name = "Digit2"
  394. Part16.Parent = Model12
  395. Part16.BrickColor = BrickColor.new("White")
  396. Part16.Rotation = Vector3.new(-90, 90, 0)
  397. Part16.Anchored = true
  398. Part16.FormFactor = Enum.FormFactor.Plate
  399. Part16.Size = Vector3.new(3, 0.400000006, 1)
  400. Part16.CFrame = CFrame.new(6, 4.70039988, -78.6999817, 0, 0, 1, -1, 0, 0, 0, -1, 0)
  401. Part16.Color = Color3.new(0.94902, 0.952941, 0.952941)
  402. Part16.Position = Vector3.new(6, 4.70039988, -78.6999817)
  403. Part16.Orientation = Vector3.new(0, 90, -90)
  404. Part16.Color = Color3.new(0.94902, 0.952941, 0.952941)
  405. Part17.Name = "Button"
  406. Part17.Parent = Model12
  407. Part17.BrickColor = BrickColor.new("Dark green")
  408. Part17.Rotation = Vector3.new(-90, -90, 0)
  409. Part17.Anchored = true
  410. Part17.FormFactor = Enum.FormFactor.Plate
  411. Part17.Size = Vector3.new(1, 0.400000006, 1)
  412. Part17.CFrame = CFrame.new(6, 1.50040197, -79.6999817, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  413. Part17.TopSurface = Enum.SurfaceType.Smooth
  414. Part17.Color = Color3.new(0.156863, 0.498039, 0.278431)
  415. Part17.Position = Vector3.new(6, 1.50040197, -79.6999817)
  416. Part17.Orientation = Vector3.new(0, -90, 90)
  417. Part17.Color = Color3.new(0.156863, 0.498039, 0.278431)
  418. Script18.Parent = Part17
  419. table.insert(cors,sandbox(Script18,function()
  420. print("Hello world!")
  421.  
  422. end))
  423. Script19.Name = "SlotGame"
  424. Script19.Parent = Model12
  425. table.insert(cors,sandbox(Script19,function()
  426. amnt = 5 --COST TO PLAY
  427. hold = false
  428. bin = script.Parent
  429.  
  430. light = bin.Light
  431. button = bin.Button
  432. dig1 = bin.Digit1
  433. dig2 = bin.Digit2
  434. dig3 = bin.Digit3
  435.  
  436. color1 = 0
  437. color2 = 0
  438. color3 = 0
  439. function Roll(cash)
  440. for i=1, 10 do
  441. --ROLL FIRST
  442. color1 = math.random(0,10)
  443. dig1.Color = GetColor(color1)
  444. --ROLLSECOND
  445. color2 = math.random(0,10)
  446. dig2.Color = GetColor(color2)
  447. --ROLL THIRD
  448. color3 = math.random(0,10)
  449. dig3.Color = GetColor(color3)
  450. wait(0.1)
  451. end
  452. for i=1, 10 do
  453. --ROLLSECOND
  454. color2 = math.random(0,10)
  455. dig2.Color = GetColor(color2)
  456. --ROLL THIRD
  457. color3 = math.random(0,10)
  458. dig3.Color = GetColor(color3)
  459. wait(0.1)
  460. end
  461. for i=1, 10 do
  462. --ROLL THIRD
  463. color3 = math.random(0,10)
  464. dig3.Color = GetColor(color3)
  465. wait(0.1)
  466. end
  467.  
  468. if (color1==3 and color2==2 and color3==5) then
  469. cash.Value=cash.Value+500
  470. msg=Instance.new("Message")
  471. msg.Parent= game.Workspace
  472. msg.Text= "WINNER 500 CASH!!!"
  473. light.Transparency= 0
  474. wait(.5)
  475. light.Transparency= .5
  476. wait(.5)
  477. light.Transparency= 0
  478. wait(.5)
  479. light.Transparency= .5
  480. wait(.5)
  481. light.Transparency= 0
  482. wait(.5)
  483. light.Transparency= .5
  484. wait(.5)
  485. light.Transparency= 0
  486. wait(.5)
  487. light.Transparency= .5
  488. wait(.5)
  489. light.Transparency= 0
  490. wait(.5)
  491. light.Transparency= .5
  492. wait(.5)
  493. msg:remove()
  494. end
  495. if (color1==color2 and color2==color3) then
  496. cash.Value=cash.Value+1000
  497. msg=Instance.new("Message")
  498. msg.Parent= game.Workspace
  499. msg.Text= "WINNER 1000 CASH!!!"
  500. light.Transparency= 0
  501. wait(.5)
  502. light.Transparency= .5
  503. wait(.5)
  504. light.Transparency= 0
  505. wait(.5)
  506. light.Transparency= .5
  507. wait(.5)
  508. light.Transparency= 0
  509. wait(.5)
  510. light.Transparency= .5
  511. wait(.5)
  512. light.Transparency= 0
  513. wait(.5)
  514. light.Transparency= .5
  515. wait(.5)
  516. light.Transparency= 0
  517. wait(.5)
  518. light.Transparency= .5
  519. wait(.5)
  520. msg:remove()
  521. end
  522. if (color1==1 and color2==2 and color3==3) then
  523. cash.Value=cash.Value+100
  524. msg=Instance.new("Message")
  525. msg.Parent= game.Workspace
  526. msg.Text= "WINNER 100 CASH!!!"
  527. light.Transparency= 0
  528. wait(.5)
  529. light.Transparency= .5
  530. wait(.5)
  531. light.Transparency= 0
  532. wait(.5)
  533. light.Transparency= .5
  534. wait(.5)
  535. light.Transparency= 0
  536. wait(.5)
  537. light.Transparency= .5
  538. wait(.5)
  539. light.Transparency= 0
  540. wait(.5)
  541. light.Transparency= .5
  542. wait(.5)
  543. light.Transparency= 0
  544. wait(.5)
  545. light.Transparency= .5
  546. wait(.5)
  547. msg:remove()
  548. end
  549. if (color1==0 and color2==10 and color3==5) then
  550. cash.Value=cash.Value+50
  551. msg=Instance.new("Message")
  552. msg.Parent= game.Workspace
  553. msg.Text= "WINNER 50 CASH!!!"
  554. light.Transparency= 0
  555. wait(.5)
  556. light.Transparency= .5
  557. wait(.5)
  558. light.Transparency= 0
  559. wait(.5)
  560. light.Transparency= .5
  561. wait(.5)
  562. light.Transparency= 0
  563. wait(.5)
  564. light.Transparency= .5
  565. wait(.5)
  566. light.Transparency= 0
  567. wait(.5)
  568. light.Transparency= .5
  569. wait(.5)
  570. light.Transparency= 0
  571. wait(.5)
  572. light.Transparency= .5
  573. wait(.5)
  574. msg:remove()
  575. end
  576. if (color1==0 and color2==0 and color3==0) then
  577. cash.Value=cash.Value+250
  578. msg=Instance.new("Message")
  579. msg.Parent= game.Workspace
  580. msg.Text= "WINNER 250 CASH!!!"
  581. light.Transparency= 0
  582. wait(.5)
  583. light.Transparency= .5
  584. wait(.5)
  585. light.Transparency= 0
  586. wait(.5)
  587. light.Transparency= .5
  588. wait(.5)
  589. light.Transparency= 0
  590. wait(.5)
  591. light.Transparency= .5
  592. wait(.5)
  593. light.Transparency= 0
  594. wait(.5)
  595. light.Transparency= .5
  596. wait(.5)
  597. light.Transparency= 0
  598. wait(.5)
  599. light.Transparency= .5
  600. wait(.5)
  601. msg:remove()
  602. end
  603. end
  604.  
  605. function GetColor(num)
  606. if (num==0) then --Black
  607. return Color3.new(0,0,0)
  608. end
  609. if (num==1) then --Grey
  610. return Color3.new(.5,.5,.5)
  611. end
  612. if (num==2) then --White
  613. return Color3.new(1,1,1)
  614. end
  615. if (num==3) then --Red
  616. return Color3.new(1,0,0)
  617. end
  618. if (num==4) then --Green
  619. return Color3.new(0,1,0)
  620. end
  621. if (num==5) then --Blue
  622. return Color3.new(0,0,1)
  623. end
  624. return Color3.new(GetRand(),GetRand(),GetRand())
  625. end
  626.  
  627. function GetRand()
  628. return (math.random(1,10)/10)
  629. end
  630.  
  631. function onTouched(part)
  632. local h = part.Parent:findFirstChild("Humanoid")
  633. if (h~=nil and hold==false) then
  634. hold=true
  635. button.Color = Color3.new(0,0,0)
  636. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  637. if (thisplr~=nil) then
  638. local stats = thisplr:findFirstChild("leaderstats")
  639. if (stats~=nil) then
  640. local score = stats:findFirstChild("Cash")
  641. if (score~=nil) then
  642. if (score.Value >=amnt) then
  643. score.Value = score.Value - amnt
  644. Roll(score)
  645. end
  646. end
  647. end
  648. end
  649. button.Color = Color3.new(0,1,0)
  650. hold=false
  651. end
  652. end
  653.  
  654. button.Touched:connect(onTouched)
  655. end))
  656. Model20.Parent = Model0
  657. Model20.PrimaryPart = Part22
  658. Part21.Parent = Model20
  659. Part21.BrickColor = BrickColor.new("Dark stone grey")
  660. Part21.Anchored = true
  661. Part21.FormFactor = Enum.FormFactor.Plate
  662. Part21.Size = Vector3.new(1, 3.20000005, 1)
  663. Part21.CFrame = CFrame.new(0, 4.80040216, -75, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  664. Part21.BackSurface = Enum.SurfaceType.Weld
  665. Part21.FrontSurface = Enum.SurfaceType.Weld
  666. Part21.LeftSurface = Enum.SurfaceType.Weld
  667. Part21.TopSurface = Enum.SurfaceType.Smooth
  668. Part21.Color = Color3.new(0.388235, 0.372549, 0.384314)
  669. Part21.Position = Vector3.new(0, 4.80040216, -75)
  670. Part21.Color = Color3.new(0.388235, 0.372549, 0.384314)
  671. Part22.Parent = Model20
  672. Part22.BrickColor = BrickColor.new("Dark stone grey")
  673. Part22.Anchored = true
  674. Part22.FormFactor = Enum.FormFactor.Plate
  675. Part22.Size = Vector3.new(4, 3.20000005, 5)
  676. Part22.CFrame = CFrame.new(1.5, 1.60039473, -73, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  677. Part22.BackSurface = Enum.SurfaceType.Weld
  678. Part22.FrontSurface = Enum.SurfaceType.Weld
  679. Part22.LeftSurface = Enum.SurfaceType.Weld
  680. Part22.RightSurface = Enum.SurfaceType.Weld
  681. Part22.TopSurface = Enum.SurfaceType.Weld
  682. Part22.Color = Color3.new(0.388235, 0.372549, 0.384314)
  683. Part22.Position = Vector3.new(1.5, 1.60039473, -73)
  684. Part22.Color = Color3.new(0.388235, 0.372549, 0.384314)
  685. Part23.Parent = Model20
  686. Part23.BrickColor = BrickColor.new("Dark stone grey")
  687. Part23.Anchored = true
  688. Part23.FormFactor = Enum.FormFactor.Plate
  689. Part23.Size = Vector3.new(3, 3.20000005, 5)
  690. Part23.CFrame = CFrame.new(2, 4.80040216, -73, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  691. Part23.BackSurface = Enum.SurfaceType.Weld
  692. Part23.FrontSurface = Enum.SurfaceType.Weld
  693. Part23.LeftSurface = Enum.SurfaceType.Weld
  694. Part23.RightSurface = Enum.SurfaceType.Weld
  695. Part23.TopSurface = Enum.SurfaceType.Smooth
  696. Part23.Color = Color3.new(0.388235, 0.372549, 0.384314)
  697. Part23.Position = Vector3.new(2, 4.80040216, -73)
  698. Part23.Color = Color3.new(0.388235, 0.372549, 0.384314)
  699. Part24.Parent = Model20
  700. Part24.BrickColor = BrickColor.new("Dark stone grey")
  701. Part24.Anchored = true
  702. Part24.FormFactor = Enum.FormFactor.Plate
  703. Part24.Size = Vector3.new(1, 3.20000005, 1)
  704. Part24.CFrame = CFrame.new(-6.10351563e-05, 4.80025434, -71, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  705. Part24.BackSurface = Enum.SurfaceType.Weld
  706. Part24.FrontSurface = Enum.SurfaceType.Weld
  707. Part24.LeftSurface = Enum.SurfaceType.Weld
  708. Part24.TopSurface = Enum.SurfaceType.Smooth
  709. Part24.Color = Color3.new(0.388235, 0.372549, 0.384314)
  710. Part24.Position = Vector3.new(-6.10351563e-05, 4.80025434, -71)
  711. Part24.Color = Color3.new(0.388235, 0.372549, 0.384314)
  712. Part25.Parent = Model20
  713. Part25.BrickColor = BrickColor.new("Dark stone grey")
  714. Part25.Anchored = true
  715. Part25.FormFactor = Enum.FormFactor.Plate
  716. Part25.Size = Vector3.new(4, 0.400000006, 5)
  717. Part25.CFrame = CFrame.new(1.49993896, 6.60028601, -73, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  718. Part25.BackSurface = Enum.SurfaceType.Weld
  719. Part25.BottomSurface = Enum.SurfaceType.Weld
  720. Part25.FrontSurface = Enum.SurfaceType.Weld
  721. Part25.LeftSurface = Enum.SurfaceType.Weld
  722. Part25.RightSurface = Enum.SurfaceType.Weld
  723. Part25.TopSurface = Enum.SurfaceType.Weld
  724. Part25.Color = Color3.new(0.388235, 0.372549, 0.384314)
  725. Part25.Position = Vector3.new(1.49993896, 6.60028601, -73)
  726. Part25.Color = Color3.new(0.388235, 0.372549, 0.384314)
  727. Part26.Parent = Model20
  728. Part26.Rotation = Vector3.new(90, 90, 0)
  729. Part26.Anchored = true
  730. Part26.FormFactor = Enum.FormFactor.Symmetric
  731. Part26.Shape = Enum.PartType.Ball
  732. Part26.Size = Vector3.new(1, 1, 1)
  733. Part26.CFrame = CFrame.new(1, 6.50040197, -70, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  734. Part26.BottomSurface = Enum.SurfaceType.Smooth
  735. Part26.TopSurface = Enum.SurfaceType.Smooth
  736. Part26.Position = Vector3.new(1, 6.50040197, -70)
  737. Part26.Orientation = Vector3.new(0, 90, 90)
  738. Part27.Parent = Model20
  739. Part27.Rotation = Vector3.new(0, -90, 0)
  740. Part27.Anchored = true
  741. Part27.FormFactor = Enum.FormFactor.Symmetric
  742. Part27.Shape = Enum.PartType.Cylinder
  743. Part27.Size = Vector3.new(1, 1, 1)
  744. Part27.CFrame = CFrame.new(1, 3.50040197, -70, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  745. Part27.BottomSurface = Enum.SurfaceType.Smooth
  746. Part27.TopSurface = Enum.SurfaceType.Smooth
  747. Part27.Position = Vector3.new(1, 3.50040197, -70)
  748. Part27.Orientation = Vector3.new(0, -90, 0)
  749. Part28.Parent = Model20
  750. Part28.Rotation = Vector3.new(90, 90, 0)
  751. Part28.Anchored = true
  752. Part28.FormFactor = Enum.FormFactor.Symmetric
  753. Part28.Shape = Enum.PartType.Cylinder
  754. Part28.Size = Vector3.new(1, 1, 1)
  755. Part28.CFrame = CFrame.new(1, 4.50040197, -70, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  756. Part28.BottomSurface = Enum.SurfaceType.Smooth
  757. Part28.TopSurface = Enum.SurfaceType.Smooth
  758. Part28.Position = Vector3.new(1, 4.50040197, -70)
  759. Part28.Orientation = Vector3.new(0, 90, 90)
  760. Part29.Parent = Model20
  761. Part29.Rotation = Vector3.new(90, 90, 0)
  762. Part29.Anchored = true
  763. Part29.FormFactor = Enum.FormFactor.Symmetric
  764. Part29.Shape = Enum.PartType.Cylinder
  765. Part29.Size = Vector3.new(1, 1, 1)
  766. Part29.CFrame = CFrame.new(1, 5.50040197, -70, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  767. Part29.BottomSurface = Enum.SurfaceType.Smooth
  768. Part29.TopSurface = Enum.SurfaceType.Smooth
  769. Part29.Position = Vector3.new(1, 5.50040197, -70)
  770. Part29.Orientation = Vector3.new(0, 90, 90)
  771. Part30.Parent = Model20
  772. Part30.Anchored = true
  773. Part30.FormFactor = Enum.FormFactor.Plate
  774. Part30.Size = Vector3.new(1, 0.400000006, 3)
  775. Part30.CFrame = CFrame.new(2, 7.00040197, -73, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  776. Part30.BottomSurface = Enum.SurfaceType.Smooth
  777. Part30.TopSurface = Enum.SurfaceType.Smooth
  778. Part30.Position = Vector3.new(2, 7.00040197, -73)
  779. Model31.Name = "Slots"
  780. Model31.Parent = Model20
  781. Model31.PrimaryPart = Part33
  782. Part32.Name = "Digit3"
  783. Part32.Parent = Model31
  784. Part32.BrickColor = BrickColor.new("White")
  785. Part32.Rotation = Vector3.new(0, 0, 90)
  786. Part32.Anchored = true
  787. Part32.FormFactor = Enum.FormFactor.Plate
  788. Part32.Size = Vector3.new(3, 0.400000006, 1)
  789. Part32.CFrame = CFrame.new(0.299957275, 4.70026255, -72, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  790. Part32.Color = Color3.new(0.94902, 0.952941, 0.952941)
  791. Part32.Position = Vector3.new(0.299957275, 4.70026255, -72)
  792. Part32.Orientation = Vector3.new(0, 0, 90)
  793. Part32.Color = Color3.new(0.94902, 0.952941, 0.952941)
  794. Part33.Name = "Light"
  795. Part33.Parent = Model31
  796. Part33.BrickColor = BrickColor.new("Bright red")
  797. Part33.Transparency = 0.5
  798. Part33.Rotation = Vector3.new(-180, 0, -90)
  799. Part33.Anchored = true
  800. Part33.FormFactor = Enum.FormFactor.Symmetric
  801. Part33.Shape = Enum.PartType.Cylinder
  802. Part33.Size = Vector3.new(1, 1, 1)
  803. Part33.CFrame = CFrame.new(2, 7.70040083, -73, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  804. Part33.BottomSurface = Enum.SurfaceType.Smooth
  805. Part33.RightSurface = Enum.SurfaceType.Weld
  806. Part33.TopSurface = Enum.SurfaceType.Smooth
  807. Part33.Color = Color3.new(0.768628, 0.156863, 0.109804)
  808. Part33.Position = Vector3.new(2, 7.70040083, -73)
  809. Part33.Orientation = Vector3.new(0, 180, 90)
  810. Part33.Color = Color3.new(0.768628, 0.156863, 0.109804)
  811. Part34.Name = "Digit1"
  812. Part34.Parent = Model31
  813. Part34.BrickColor = BrickColor.new("White")
  814. Part34.Rotation = Vector3.new(0, 0, 90)
  815. Part34.Anchored = true
  816. Part34.FormFactor = Enum.FormFactor.Plate
  817. Part34.Size = Vector3.new(3, 0.400000006, 1)
  818. Part34.CFrame = CFrame.new(0.300003052, 4.70039988, -74, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  819. Part34.Color = Color3.new(0.94902, 0.952941, 0.952941)
  820. Part34.Position = Vector3.new(0.300003052, 4.70039988, -74)
  821. Part34.Orientation = Vector3.new(0, 0, 90)
  822. Part34.Color = Color3.new(0.94902, 0.952941, 0.952941)
  823. Part35.Name = "Digit2"
  824. Part35.Parent = Model31
  825. Part35.BrickColor = BrickColor.new("White")
  826. Part35.Rotation = Vector3.new(-180, 0, 90)
  827. Part35.Anchored = true
  828. Part35.FormFactor = Enum.FormFactor.Plate
  829. Part35.Size = Vector3.new(3, 0.400000006, 1)
  830. Part35.CFrame = CFrame.new(0.299957275, 4.70026255, -73, 8.86863836e-06, -1, -5.44383852e-07, -1, -1.10143674e-05, 9.55792802e-06, -3.83588122e-06, -3.04969149e-07, -1)
  831. Part35.Color = Color3.new(0.94902, 0.952941, 0.952941)
  832. Part35.Position = Vector3.new(0.299957275, 4.70026255, -73)
  833. Part35.Orientation = Vector3.new(0, -180, -90)
  834. Part35.Color = Color3.new(0.94902, 0.952941, 0.952941)
  835. Part36.Name = "Button"
  836. Part36.Parent = Model31
  837. Part36.BrickColor = BrickColor.new("Dark green")
  838. Part36.Rotation = Vector3.new(0, 0, 90)
  839. Part36.Anchored = true
  840. Part36.FormFactor = Enum.FormFactor.Plate
  841. Part36.Size = Vector3.new(1, 0.400000006, 1)
  842. Part36.CFrame = CFrame.new(-0.700012207, 1.50023603, -73, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  843. Part36.TopSurface = Enum.SurfaceType.Smooth
  844. Part36.Color = Color3.new(0.156863, 0.498039, 0.278431)
  845. Part36.Position = Vector3.new(-0.700012207, 1.50023603, -73)
  846. Part36.Orientation = Vector3.new(0, 0, 90)
  847. Part36.Color = Color3.new(0.156863, 0.498039, 0.278431)
  848. Script37.Parent = Part36
  849. table.insert(cors,sandbox(Script37,function()
  850. print("Hello world!")
  851.  
  852. end))
  853. Script38.Name = "SlotGame"
  854. Script38.Parent = Model31
  855. table.insert(cors,sandbox(Script38,function()
  856. amnt = 5 --COST TO PLAY
  857. hold = false
  858. bin = script.Parent
  859.  
  860. light = bin.Light
  861. button = bin.Button
  862. dig1 = bin.Digit1
  863. dig2 = bin.Digit2
  864. dig3 = bin.Digit3
  865.  
  866. color1 = 0
  867. color2 = 0
  868. color3 = 0
  869. function Roll(cash)
  870. for i=1, 10 do
  871. --ROLL FIRST
  872. color1 = math.random(0,10)
  873. dig1.Color = GetColor(color1)
  874. --ROLLSECOND
  875. color2 = math.random(0,10)
  876. dig2.Color = GetColor(color2)
  877. --ROLL THIRD
  878. color3 = math.random(0,10)
  879. dig3.Color = GetColor(color3)
  880. wait(0.1)
  881. end
  882. for i=1, 10 do
  883. --ROLLSECOND
  884. color2 = math.random(0,10)
  885. dig2.Color = GetColor(color2)
  886. --ROLL THIRD
  887. color3 = math.random(0,10)
  888. dig3.Color = GetColor(color3)
  889. wait(0.1)
  890. end
  891. for i=1, 10 do
  892. --ROLL THIRD
  893. color3 = math.random(0,10)
  894. dig3.Color = GetColor(color3)
  895. wait(0.1)
  896. end
  897.  
  898. if (color1==3 and color2==2 and color3==5) then
  899. cash.Value=cash.Value+500
  900. msg=Instance.new("Message")
  901. msg.Parent= game.Workspace
  902. msg.Text= "WINNER 500 CASH!!!"
  903. light.Transparency= 0
  904. wait(.5)
  905. light.Transparency= .5
  906. wait(.5)
  907. light.Transparency= 0
  908. wait(.5)
  909. light.Transparency= .5
  910. wait(.5)
  911. light.Transparency= 0
  912. wait(.5)
  913. light.Transparency= .5
  914. wait(.5)
  915. light.Transparency= 0
  916. wait(.5)
  917. light.Transparency= .5
  918. wait(.5)
  919. light.Transparency= 0
  920. wait(.5)
  921. light.Transparency= .5
  922. wait(.5)
  923. msg:remove()
  924. end
  925. if (color1==color2 and color2==color3) then
  926. cash.Value=cash.Value+1000
  927. msg=Instance.new("Message")
  928. msg.Parent= game.Workspace
  929. msg.Text= "WINNER 1000 CASH!!!"
  930. light.Transparency= 0
  931. wait(.5)
  932. light.Transparency= .5
  933. wait(.5)
  934. light.Transparency= 0
  935. wait(.5)
  936. light.Transparency= .5
  937. wait(.5)
  938. light.Transparency= 0
  939. wait(.5)
  940. light.Transparency= .5
  941. wait(.5)
  942. light.Transparency= 0
  943. wait(.5)
  944. light.Transparency= .5
  945. wait(.5)
  946. light.Transparency= 0
  947. wait(.5)
  948. light.Transparency= .5
  949. wait(.5)
  950. msg:remove()
  951. end
  952. if (color1==1 and color2==2 and color3==3) then
  953. cash.Value=cash.Value+100
  954. msg=Instance.new("Message")
  955. msg.Parent= game.Workspace
  956. msg.Text= "WINNER 100 CASH!!!"
  957. light.Transparency= 0
  958. wait(.5)
  959. light.Transparency= .5
  960. wait(.5)
  961. light.Transparency= 0
  962. wait(.5)
  963. light.Transparency= .5
  964. wait(.5)
  965. light.Transparency= 0
  966. wait(.5)
  967. light.Transparency= .5
  968. wait(.5)
  969. light.Transparency= 0
  970. wait(.5)
  971. light.Transparency= .5
  972. wait(.5)
  973. light.Transparency= 0
  974. wait(.5)
  975. light.Transparency= .5
  976. wait(.5)
  977. msg:remove()
  978. end
  979. if (color1==0 and color2==10 and color3==5) then
  980. cash.Value=cash.Value+50
  981. msg=Instance.new("Message")
  982. msg.Parent= game.Workspace
  983. msg.Text= "WINNER 50 CASH!!!"
  984. light.Transparency= 0
  985. wait(.5)
  986. light.Transparency= .5
  987. wait(.5)
  988. light.Transparency= 0
  989. wait(.5)
  990. light.Transparency= .5
  991. wait(.5)
  992. light.Transparency= 0
  993. wait(.5)
  994. light.Transparency= .5
  995. wait(.5)
  996. light.Transparency= 0
  997. wait(.5)
  998. light.Transparency= .5
  999. wait(.5)
  1000. light.Transparency= 0
  1001. wait(.5)
  1002. light.Transparency= .5
  1003. wait(.5)
  1004. msg:remove()
  1005. end
  1006. if (color1==0 and color2==0 and color3==0) then
  1007. cash.Value=cash.Value+250
  1008. msg=Instance.new("Message")
  1009. msg.Parent= game.Workspace
  1010. msg.Text= "WINNER 250 CASH!!!"
  1011. light.Transparency= 0
  1012. wait(.5)
  1013. light.Transparency= .5
  1014. wait(.5)
  1015. light.Transparency= 0
  1016. wait(.5)
  1017. light.Transparency= .5
  1018. wait(.5)
  1019. light.Transparency= 0
  1020. wait(.5)
  1021. light.Transparency= .5
  1022. wait(.5)
  1023. light.Transparency= 0
  1024. wait(.5)
  1025. light.Transparency= .5
  1026. wait(.5)
  1027. light.Transparency= 0
  1028. wait(.5)
  1029. light.Transparency= .5
  1030. wait(.5)
  1031. msg:remove()
  1032. end
  1033. end
  1034.  
  1035. function GetColor(num)
  1036. if (num==0) then --Black
  1037. return Color3.new(0,0,0)
  1038. end
  1039. if (num==1) then --Grey
  1040. return Color3.new(.5,.5,.5)
  1041. end
  1042. if (num==2) then --White
  1043. return Color3.new(1,1,1)
  1044. end
  1045. if (num==3) then --Red
  1046. return Color3.new(1,0,0)
  1047. end
  1048. if (num==4) then --Green
  1049. return Color3.new(0,1,0)
  1050. end
  1051. if (num==5) then --Blue
  1052. return Color3.new(0,0,1)
  1053. end
  1054. return Color3.new(GetRand(),GetRand(),GetRand())
  1055. end
  1056.  
  1057. function GetRand()
  1058. return (math.random(1,10)/10)
  1059. end
  1060.  
  1061. function onTouched(part)
  1062. local h = part.Parent:findFirstChild("Humanoid")
  1063. if (h~=nil and hold==false) then
  1064. hold=true
  1065. button.Color = Color3.new(0,0,0)
  1066. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  1067. if (thisplr~=nil) then
  1068. local stats = thisplr:findFirstChild("leaderstats")
  1069. if (stats~=nil) then
  1070. local score = stats:findFirstChild("Cash")
  1071. if (score~=nil) then
  1072. if (score.Value >=amnt) then
  1073. score.Value = score.Value - amnt
  1074. Roll(score)
  1075. end
  1076. end
  1077. end
  1078. end
  1079. button.Color = Color3.new(0,1,0)
  1080. hold=false
  1081. end
  1082. end
  1083.  
  1084. button.Touched:connect(onTouched)
  1085. end))
  1086. Model39.Parent = Model0
  1087. Model39.PrimaryPart = Part44
  1088. Part40.Parent = Model39
  1089. Part40.BrickColor = BrickColor.new("Dark stone grey")
  1090. Part40.Rotation = Vector3.new(-180, 0, -180)
  1091. Part40.Anchored = true
  1092. Part40.FormFactor = Enum.FormFactor.Plate
  1093. Part40.Size = Vector3.new(1, 3.20000005, 1)
  1094. Part40.CFrame = CFrame.new(12, 4.80040216, -71, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1095. Part40.BackSurface = Enum.SurfaceType.Weld
  1096. Part40.FrontSurface = Enum.SurfaceType.Weld
  1097. Part40.LeftSurface = Enum.SurfaceType.Weld
  1098. Part40.TopSurface = Enum.SurfaceType.Smooth
  1099. Part40.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1100. Part40.Position = Vector3.new(12, 4.80040216, -71)
  1101. Part40.Orientation = Vector3.new(0, 180, 0)
  1102. Part40.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1103. Part41.Parent = Model39
  1104. Part41.BrickColor = BrickColor.new("Dark stone grey")
  1105. Part41.Rotation = Vector3.new(-180, 0, -180)
  1106. Part41.Anchored = true
  1107. Part41.FormFactor = Enum.FormFactor.Plate
  1108. Part41.Size = Vector3.new(4, 3.20000005, 5)
  1109. Part41.CFrame = CFrame.new(10.5, 1.60039473, -73, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1110. Part41.BackSurface = Enum.SurfaceType.Weld
  1111. Part41.FrontSurface = Enum.SurfaceType.Weld
  1112. Part41.LeftSurface = Enum.SurfaceType.Weld
  1113. Part41.RightSurface = Enum.SurfaceType.Weld
  1114. Part41.TopSurface = Enum.SurfaceType.Weld
  1115. Part41.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1116. Part41.Position = Vector3.new(10.5, 1.60039473, -73)
  1117. Part41.Orientation = Vector3.new(0, 180, 0)
  1118. Part41.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1119. Part42.Parent = Model39
  1120. Part42.BrickColor = BrickColor.new("Dark stone grey")
  1121. Part42.Rotation = Vector3.new(-180, 0, -180)
  1122. Part42.Anchored = true
  1123. Part42.FormFactor = Enum.FormFactor.Plate
  1124. Part42.Size = Vector3.new(3, 3.20000005, 5)
  1125. Part42.CFrame = CFrame.new(10, 4.80040216, -73, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1126. Part42.BackSurface = Enum.SurfaceType.Weld
  1127. Part42.FrontSurface = Enum.SurfaceType.Weld
  1128. Part42.LeftSurface = Enum.SurfaceType.Weld
  1129. Part42.RightSurface = Enum.SurfaceType.Weld
  1130. Part42.TopSurface = Enum.SurfaceType.Smooth
  1131. Part42.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1132. Part42.Position = Vector3.new(10, 4.80040216, -73)
  1133. Part42.Orientation = Vector3.new(0, 180, 0)
  1134. Part42.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1135. Part43.Parent = Model39
  1136. Part43.BrickColor = BrickColor.new("Dark stone grey")
  1137. Part43.Rotation = Vector3.new(180, 0, -180)
  1138. Part43.Anchored = true
  1139. Part43.FormFactor = Enum.FormFactor.Plate
  1140. Part43.Size = Vector3.new(1, 3.20000005, 1)
  1141. Part43.CFrame = CFrame.new(12, 4.80043459, -75, -1, 1.56635924e-05, 3.09238453e-06, 1.35178389e-05, 1, -9.55787891e-06, -3.94194285e-06, -1.52798693e-05, -1)
  1142. Part43.BackSurface = Enum.SurfaceType.Weld
  1143. Part43.FrontSurface = Enum.SurfaceType.Weld
  1144. Part43.LeftSurface = Enum.SurfaceType.Weld
  1145. Part43.TopSurface = Enum.SurfaceType.Smooth
  1146. Part43.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1147. Part43.Position = Vector3.new(12, 4.80043459, -75)
  1148. Part43.Orientation = Vector3.new(0, 180, 0)
  1149. Part43.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1150. Part44.Parent = Model39
  1151. Part44.BrickColor = BrickColor.new("Dark stone grey")
  1152. Part44.Rotation = Vector3.new(180, 0, -180)
  1153. Part44.Anchored = true
  1154. Part44.FormFactor = Enum.FormFactor.Plate
  1155. Part44.Size = Vector3.new(4, 0.400000006, 5)
  1156. Part44.CFrame = CFrame.new(10.500061, 6.60046816, -73.000061, -1, 1.56039914e-05, 3.09238135e-06, 1.34582378e-05, 1, -9.55787891e-06, -3.94193876e-06, -1.52798693e-05, -1)
  1157. Part44.BackSurface = Enum.SurfaceType.Weld
  1158. Part44.BottomSurface = Enum.SurfaceType.Weld
  1159. Part44.FrontSurface = Enum.SurfaceType.Weld
  1160. Part44.LeftSurface = Enum.SurfaceType.Weld
  1161. Part44.RightSurface = Enum.SurfaceType.Weld
  1162. Part44.TopSurface = Enum.SurfaceType.Weld
  1163. Part44.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1164. Part44.Position = Vector3.new(10.500061, 6.60046816, -73.000061)
  1165. Part44.Orientation = Vector3.new(0, 180, 0)
  1166. Part44.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1167. Part45.Parent = Model39
  1168. Part45.Rotation = Vector3.new(-90, -90, 0)
  1169. Part45.Anchored = true
  1170. Part45.FormFactor = Enum.FormFactor.Symmetric
  1171. Part45.Shape = Enum.PartType.Ball
  1172. Part45.Size = Vector3.new(1, 1, 1)
  1173. Part45.CFrame = CFrame.new(11, 6.50040197, -76, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  1174. Part45.BottomSurface = Enum.SurfaceType.Smooth
  1175. Part45.TopSurface = Enum.SurfaceType.Smooth
  1176. Part45.Position = Vector3.new(11, 6.50040197, -76)
  1177. Part45.Orientation = Vector3.new(0, -90, 90)
  1178. Part46.Parent = Model39
  1179. Part46.Rotation = Vector3.new(0, 90, 0)
  1180. Part46.Anchored = true
  1181. Part46.FormFactor = Enum.FormFactor.Symmetric
  1182. Part46.Shape = Enum.PartType.Cylinder
  1183. Part46.Size = Vector3.new(1, 1, 1)
  1184. Part46.CFrame = CFrame.new(11, 3.50040197, -76, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  1185. Part46.BottomSurface = Enum.SurfaceType.Smooth
  1186. Part46.TopSurface = Enum.SurfaceType.Smooth
  1187. Part46.Position = Vector3.new(11, 3.50040197, -76)
  1188. Part46.Orientation = Vector3.new(0, 90, 0)
  1189. Part47.Parent = Model39
  1190. Part47.Rotation = Vector3.new(-90, -90, 0)
  1191. Part47.Anchored = true
  1192. Part47.FormFactor = Enum.FormFactor.Symmetric
  1193. Part47.Shape = Enum.PartType.Cylinder
  1194. Part47.Size = Vector3.new(1, 1, 1)
  1195. Part47.CFrame = CFrame.new(11, 4.50040197, -76, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  1196. Part47.BottomSurface = Enum.SurfaceType.Smooth
  1197. Part47.TopSurface = Enum.SurfaceType.Smooth
  1198. Part47.Position = Vector3.new(11, 4.50040197, -76)
  1199. Part47.Orientation = Vector3.new(0, -90, 90)
  1200. Part48.Parent = Model39
  1201. Part48.Rotation = Vector3.new(-90, -90, 0)
  1202. Part48.Anchored = true
  1203. Part48.FormFactor = Enum.FormFactor.Symmetric
  1204. Part48.Shape = Enum.PartType.Cylinder
  1205. Part48.Size = Vector3.new(1, 1, 1)
  1206. Part48.CFrame = CFrame.new(11, 5.50040197, -76, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  1207. Part48.BottomSurface = Enum.SurfaceType.Smooth
  1208. Part48.TopSurface = Enum.SurfaceType.Smooth
  1209. Part48.Position = Vector3.new(11, 5.50040197, -76)
  1210. Part48.Orientation = Vector3.new(0, -90, 90)
  1211. Part49.Parent = Model39
  1212. Part49.Rotation = Vector3.new(-180, 0, -180)
  1213. Part49.Anchored = true
  1214. Part49.FormFactor = Enum.FormFactor.Plate
  1215. Part49.Size = Vector3.new(1, 0.400000006, 3)
  1216. Part49.CFrame = CFrame.new(10, 7.00040197, -73, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  1217. Part49.BottomSurface = Enum.SurfaceType.Smooth
  1218. Part49.TopSurface = Enum.SurfaceType.Smooth
  1219. Part49.Position = Vector3.new(10, 7.00040197, -73)
  1220. Part49.Orientation = Vector3.new(0, 180, 0)
  1221. Model50.Name = "Slots"
  1222. Model50.Parent = Model39
  1223. Model50.PrimaryPart = Part52
  1224. Part51.Name = "Digit3"
  1225. Part51.Parent = Model50
  1226. Part51.BrickColor = BrickColor.new("White")
  1227. Part51.Rotation = Vector3.new(180, 0, -90)
  1228. Part51.Anchored = true
  1229. Part51.FormFactor = Enum.FormFactor.Plate
  1230. Part51.Size = Vector3.new(3, 0.400000006, 1)
  1231. Part51.CFrame = CFrame.new(11.7000122, 4.70044661, -74, 1.30408662e-05, 1, 1.1105692e-06, 1, -1.08951317e-05, -9.55792802e-06, -1.52799494e-05, 1.9600875e-06, -1)
  1232. Part51.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1233. Part51.Position = Vector3.new(11.7000122, 4.70044661, -74)
  1234. Part51.Orientation = Vector3.new(0, 180, 90)
  1235. Part51.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1236. Part52.Name = "Light"
  1237. Part52.Parent = Model50
  1238. Part52.BrickColor = BrickColor.new("Bright red")
  1239. Part52.Transparency = 0.5
  1240. Part52.Rotation = Vector3.new(0, 0, 90)
  1241. Part52.Anchored = true
  1242. Part52.FormFactor = Enum.FormFactor.Symmetric
  1243. Part52.Shape = Enum.PartType.Cylinder
  1244. Part52.Size = Vector3.new(1, 1, 1)
  1245. Part52.CFrame = CFrame.new(10, 7.70040083, -73, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  1246. Part52.BottomSurface = Enum.SurfaceType.Smooth
  1247. Part52.RightSurface = Enum.SurfaceType.Weld
  1248. Part52.TopSurface = Enum.SurfaceType.Smooth
  1249. Part52.Color = Color3.new(0.768628, 0.156863, 0.109804)
  1250. Part52.Position = Vector3.new(10, 7.70040083, -73)
  1251. Part52.Orientation = Vector3.new(0, 0, 90)
  1252. Part52.Color = Color3.new(0.768628, 0.156863, 0.109804)
  1253. Part53.Name = "Digit1"
  1254. Part53.Parent = Model50
  1255. Part53.BrickColor = BrickColor.new("White")
  1256. Part53.Rotation = Vector3.new(-180, 0, -90)
  1257. Part53.Anchored = true
  1258. Part53.FormFactor = Enum.FormFactor.Plate
  1259. Part53.Size = Vector3.new(3, 0.400000006, 1)
  1260. Part53.CFrame = CFrame.new(11.6999969, 4.70039988, -72, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  1261. Part53.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1262. Part53.Position = Vector3.new(11.6999969, 4.70039988, -72)
  1263. Part53.Orientation = Vector3.new(0, 180, 90)
  1264. Part53.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1265. Part54.Name = "Digit2"
  1266. Part54.Parent = Model50
  1267. Part54.BrickColor = BrickColor.new("White")
  1268. Part54.Rotation = Vector3.new(0, 0, -90)
  1269. Part54.Anchored = true
  1270. Part54.FormFactor = Enum.FormFactor.Plate
  1271. Part54.Size = Vector3.new(3, 0.400000006, 1)
  1272. Part54.CFrame = CFrame.new(11.7000122, 4.70044661, -73, -1.30338958e-05, 1, -9.76510591e-07, -1, -1.08881623e-05, 9.55769883e-06, 1.5279722e-05, 1.82602889e-06, 1)
  1273. Part54.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1274. Part54.Position = Vector3.new(11.7000122, 4.70044661, -73)
  1275. Part54.Orientation = Vector3.new(0, 0, -90)
  1276. Part54.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1277. Part55.Name = "Button"
  1278. Part55.Parent = Model50
  1279. Part55.BrickColor = BrickColor.new("Dark green")
  1280. Part55.Rotation = Vector3.new(180, 0, -90)
  1281. Part55.Anchored = true
  1282. Part55.FormFactor = Enum.FormFactor.Plate
  1283. Part55.Size = Vector3.new(1, 0.400000006, 1)
  1284. Part55.CFrame = CFrame.new(12.7000122, 1.5004344, -73, 1.30408662e-05, 1, 1.1105692e-06, 1, -1.08951317e-05, -9.55792802e-06, -1.52799494e-05, 1.9600875e-06, -1)
  1285. Part55.TopSurface = Enum.SurfaceType.Smooth
  1286. Part55.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1287. Part55.Position = Vector3.new(12.7000122, 1.5004344, -73)
  1288. Part55.Orientation = Vector3.new(0, 180, 90)
  1289. Part55.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1290. Script56.Parent = Part55
  1291. table.insert(cors,sandbox(Script56,function()
  1292. print("Hello world!")
  1293.  
  1294. end))
  1295. Script57.Name = "SlotGame"
  1296. Script57.Parent = Model50
  1297. table.insert(cors,sandbox(Script57,function()
  1298. amnt = 5 --COST TO PLAY
  1299. hold = false
  1300. bin = script.Parent
  1301.  
  1302. light = bin.Light
  1303. button = bin.Button
  1304. dig1 = bin.Digit1
  1305. dig2 = bin.Digit2
  1306. dig3 = bin.Digit3
  1307.  
  1308. color1 = 0
  1309. color2 = 0
  1310. color3 = 0
  1311. function Roll(cash)
  1312. for i=1, 10 do
  1313. --ROLL FIRST
  1314. color1 = math.random(0,10)
  1315. dig1.Color = GetColor(color1)
  1316. --ROLLSECOND
  1317. color2 = math.random(0,10)
  1318. dig2.Color = GetColor(color2)
  1319. --ROLL THIRD
  1320. color3 = math.random(0,10)
  1321. dig3.Color = GetColor(color3)
  1322. wait(0.1)
  1323. end
  1324. for i=1, 10 do
  1325. --ROLLSECOND
  1326. color2 = math.random(0,10)
  1327. dig2.Color = GetColor(color2)
  1328. --ROLL THIRD
  1329. color3 = math.random(0,10)
  1330. dig3.Color = GetColor(color3)
  1331. wait(0.1)
  1332. end
  1333. for i=1, 10 do
  1334. --ROLL THIRD
  1335. color3 = math.random(0,10)
  1336. dig3.Color = GetColor(color3)
  1337. wait(0.1)
  1338. end
  1339.  
  1340. if (color1==3 and color2==2 and color3==5) then
  1341. cash.Value=cash.Value+500
  1342. msg=Instance.new("Message")
  1343. msg.Parent= game.Workspace
  1344. msg.Text= "WINNER 500 CASH!!!"
  1345. light.Transparency= 0
  1346. wait(.5)
  1347. light.Transparency= .5
  1348. wait(.5)
  1349. light.Transparency= 0
  1350. wait(.5)
  1351. light.Transparency= .5
  1352. wait(.5)
  1353. light.Transparency= 0
  1354. wait(.5)
  1355. light.Transparency= .5
  1356. wait(.5)
  1357. light.Transparency= 0
  1358. wait(.5)
  1359. light.Transparency= .5
  1360. wait(.5)
  1361. light.Transparency= 0
  1362. wait(.5)
  1363. light.Transparency= .5
  1364. wait(.5)
  1365. msg:remove()
  1366. end
  1367. if (color1==color2 and color2==color3) then
  1368. cash.Value=cash.Value+1000
  1369. msg=Instance.new("Message")
  1370. msg.Parent= game.Workspace
  1371. msg.Text= "WINNER 1000 CASH!!!"
  1372. light.Transparency= 0
  1373. wait(.5)
  1374. light.Transparency= .5
  1375. wait(.5)
  1376. light.Transparency= 0
  1377. wait(.5)
  1378. light.Transparency= .5
  1379. wait(.5)
  1380. light.Transparency= 0
  1381. wait(.5)
  1382. light.Transparency= .5
  1383. wait(.5)
  1384. light.Transparency= 0
  1385. wait(.5)
  1386. light.Transparency= .5
  1387. wait(.5)
  1388. light.Transparency= 0
  1389. wait(.5)
  1390. light.Transparency= .5
  1391. wait(.5)
  1392. msg:remove()
  1393. end
  1394. if (color1==1 and color2==2 and color3==3) then
  1395. cash.Value=cash.Value+100
  1396. msg=Instance.new("Message")
  1397. msg.Parent= game.Workspace
  1398. msg.Text= "WINNER 100 CASH!!!"
  1399. light.Transparency= 0
  1400. wait(.5)
  1401. light.Transparency= .5
  1402. wait(.5)
  1403. light.Transparency= 0
  1404. wait(.5)
  1405. light.Transparency= .5
  1406. wait(.5)
  1407. light.Transparency= 0
  1408. wait(.5)
  1409. light.Transparency= .5
  1410. wait(.5)
  1411. light.Transparency= 0
  1412. wait(.5)
  1413. light.Transparency= .5
  1414. wait(.5)
  1415. light.Transparency= 0
  1416. wait(.5)
  1417. light.Transparency= .5
  1418. wait(.5)
  1419. msg:remove()
  1420. end
  1421. if (color1==0 and color2==10 and color3==5) then
  1422. cash.Value=cash.Value+50
  1423. msg=Instance.new("Message")
  1424. msg.Parent= game.Workspace
  1425. msg.Text= "WINNER 50 CASH!!!"
  1426. light.Transparency= 0
  1427. wait(.5)
  1428. light.Transparency= .5
  1429. wait(.5)
  1430. light.Transparency= 0
  1431. wait(.5)
  1432. light.Transparency= .5
  1433. wait(.5)
  1434. light.Transparency= 0
  1435. wait(.5)
  1436. light.Transparency= .5
  1437. wait(.5)
  1438. light.Transparency= 0
  1439. wait(.5)
  1440. light.Transparency= .5
  1441. wait(.5)
  1442. light.Transparency= 0
  1443. wait(.5)
  1444. light.Transparency= .5
  1445. wait(.5)
  1446. msg:remove()
  1447. end
  1448. if (color1==0 and color2==0 and color3==0) then
  1449. cash.Value=cash.Value+250
  1450. msg=Instance.new("Message")
  1451. msg.Parent= game.Workspace
  1452. msg.Text= "WINNER 250 CASH!!!"
  1453. light.Transparency= 0
  1454. wait(.5)
  1455. light.Transparency= .5
  1456. wait(.5)
  1457. light.Transparency= 0
  1458. wait(.5)
  1459. light.Transparency= .5
  1460. wait(.5)
  1461. light.Transparency= 0
  1462. wait(.5)
  1463. light.Transparency= .5
  1464. wait(.5)
  1465. light.Transparency= 0
  1466. wait(.5)
  1467. light.Transparency= .5
  1468. wait(.5)
  1469. light.Transparency= 0
  1470. wait(.5)
  1471. light.Transparency= .5
  1472. wait(.5)
  1473. msg:remove()
  1474. end
  1475. end
  1476.  
  1477. function GetColor(num)
  1478. if (num==0) then --Black
  1479. return Color3.new(0,0,0)
  1480. end
  1481. if (num==1) then --Grey
  1482. return Color3.new(.5,.5,.5)
  1483. end
  1484. if (num==2) then --White
  1485. return Color3.new(1,1,1)
  1486. end
  1487. if (num==3) then --Red
  1488. return Color3.new(1,0,0)
  1489. end
  1490. if (num==4) then --Green
  1491. return Color3.new(0,1,0)
  1492. end
  1493. if (num==5) then --Blue
  1494. return Color3.new(0,0,1)
  1495. end
  1496. return Color3.new(GetRand(),GetRand(),GetRand())
  1497. end
  1498.  
  1499. function GetRand()
  1500. return (math.random(1,10)/10)
  1501. end
  1502.  
  1503. function onTouched(part)
  1504. local h = part.Parent:findFirstChild("Humanoid")
  1505. if (h~=nil and hold==false) then
  1506. hold=true
  1507. button.Color = Color3.new(0,0,0)
  1508. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  1509. if (thisplr~=nil) then
  1510. local stats = thisplr:findFirstChild("leaderstats")
  1511. if (stats~=nil) then
  1512. local score = stats:findFirstChild("Cash")
  1513. if (score~=nil) then
  1514. if (score.Value >=amnt) then
  1515. score.Value = score.Value - amnt
  1516. Roll(score)
  1517. end
  1518. end
  1519. end
  1520. end
  1521. button.Color = Color3.new(0,1,0)
  1522. hold=false
  1523. end
  1524. end
  1525.  
  1526. button.Touched:connect(onTouched)
  1527. end))
  1528. Model58.Parent = Model0
  1529. Model58.PrimaryPart = Part60
  1530. Part59.Parent = Model58
  1531. Part59.BrickColor = BrickColor.new("Dark stone grey")
  1532. Part59.Anchored = true
  1533. Part59.FormFactor = Enum.FormFactor.Plate
  1534. Part59.Size = Vector3.new(1, 3.20000005, 1)
  1535. Part59.CFrame = CFrame.new(-6.10351563e-05, 4.80022192, -68, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  1536. Part59.BackSurface = Enum.SurfaceType.Weld
  1537. Part59.FrontSurface = Enum.SurfaceType.Weld
  1538. Part59.LeftSurface = Enum.SurfaceType.Weld
  1539. Part59.TopSurface = Enum.SurfaceType.Smooth
  1540. Part59.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1541. Part59.Position = Vector3.new(-6.10351563e-05, 4.80022192, -68)
  1542. Part59.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1543. Part60.Parent = Model58
  1544. Part60.BrickColor = BrickColor.new("Dark stone grey")
  1545. Part60.Anchored = true
  1546. Part60.FormFactor = Enum.FormFactor.Plate
  1547. Part60.Size = Vector3.new(4, 3.20000005, 5)
  1548. Part60.CFrame = CFrame.new(1.5, 1.60019636, -66, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  1549. Part60.BackSurface = Enum.SurfaceType.Weld
  1550. Part60.FrontSurface = Enum.SurfaceType.Weld
  1551. Part60.LeftSurface = Enum.SurfaceType.Weld
  1552. Part60.RightSurface = Enum.SurfaceType.Weld
  1553. Part60.TopSurface = Enum.SurfaceType.Weld
  1554. Part60.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1555. Part60.Position = Vector3.new(1.5, 1.60019636, -66)
  1556. Part60.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1557. Part61.Parent = Model58
  1558. Part61.BrickColor = BrickColor.new("Dark stone grey")
  1559. Part61.Anchored = true
  1560. Part61.FormFactor = Enum.FormFactor.Plate
  1561. Part61.Size = Vector3.new(3, 3.20000005, 5)
  1562. Part61.CFrame = CFrame.new(1.99993896, 4.80022192, -66, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  1563. Part61.BackSurface = Enum.SurfaceType.Weld
  1564. Part61.FrontSurface = Enum.SurfaceType.Weld
  1565. Part61.LeftSurface = Enum.SurfaceType.Weld
  1566. Part61.RightSurface = Enum.SurfaceType.Weld
  1567. Part61.TopSurface = Enum.SurfaceType.Smooth
  1568. Part61.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1569. Part61.Position = Vector3.new(1.99993896, 4.80022192, -66)
  1570. Part61.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1571. Part62.Parent = Model58
  1572. Part62.BrickColor = BrickColor.new("Dark stone grey")
  1573. Part62.Anchored = true
  1574. Part62.FormFactor = Enum.FormFactor.Plate
  1575. Part62.Size = Vector3.new(1, 3.20000005, 1)
  1576. Part62.CFrame = CFrame.new(-6.10351563e-05, 4.80024004, -63.999939, 1, -2.22671715e-05, -1.37169297e-06, 2.44128805e-05, 1, -1.05327845e-05, 2.22111908e-06, 4.81068719e-06, 1)
  1577. Part62.BackSurface = Enum.SurfaceType.Weld
  1578. Part62.FrontSurface = Enum.SurfaceType.Weld
  1579. Part62.LeftSurface = Enum.SurfaceType.Weld
  1580. Part62.TopSurface = Enum.SurfaceType.Smooth
  1581. Part62.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1582. Part62.Position = Vector3.new(-6.10351563e-05, 4.80024004, -63.999939)
  1583. Part62.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1584. Part63.Parent = Model58
  1585. Part63.BrickColor = BrickColor.new("Dark stone grey")
  1586. Part63.Anchored = true
  1587. Part63.FormFactor = Enum.FormFactor.Plate
  1588. Part63.Size = Vector3.new(4, 0.400000006, 5)
  1589. Part63.CFrame = CFrame.new(1.49987793, 6.60030222, -65.999939, 1, -2.22671715e-05, -1.37169297e-06, 2.44128805e-05, 1, -1.05327845e-05, 2.22111908e-06, 4.81068719e-06, 1)
  1590. Part63.BackSurface = Enum.SurfaceType.Weld
  1591. Part63.BottomSurface = Enum.SurfaceType.Weld
  1592. Part63.FrontSurface = Enum.SurfaceType.Weld
  1593. Part63.LeftSurface = Enum.SurfaceType.Weld
  1594. Part63.RightSurface = Enum.SurfaceType.Weld
  1595. Part63.TopSurface = Enum.SurfaceType.Weld
  1596. Part63.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1597. Part63.Position = Vector3.new(1.49987793, 6.60030222, -65.999939)
  1598. Part63.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1599. Part64.Parent = Model58
  1600. Part64.Rotation = Vector3.new(90, 90, 0)
  1601. Part64.Anchored = true
  1602. Part64.FormFactor = Enum.FormFactor.Symmetric
  1603. Part64.Shape = Enum.PartType.Ball
  1604. Part64.Size = Vector3.new(1, 1, 1)
  1605. Part64.CFrame = CFrame.new(0.999938965, 6.50017881, -63, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
  1606. Part64.BottomSurface = Enum.SurfaceType.Smooth
  1607. Part64.TopSurface = Enum.SurfaceType.Smooth
  1608. Part64.Position = Vector3.new(0.999938965, 6.50017881, -63)
  1609. Part64.Orientation = Vector3.new(0, 90, 90)
  1610. Part65.Parent = Model58
  1611. Part65.Rotation = Vector3.new(0, -90, 0)
  1612. Part65.Anchored = true
  1613. Part65.FormFactor = Enum.FormFactor.Symmetric
  1614. Part65.Shape = Enum.PartType.Cylinder
  1615. Part65.Size = Vector3.new(1, 1, 1)
  1616. Part65.CFrame = CFrame.new(0.999969482, 3.50017881, -63, 5.44383852e-07, -8.86863836e-06, -1, -9.55792802e-06, 1, -1.10143674e-05, 1, 3.83588122e-06, -3.04969149e-07)
  1617. Part65.BottomSurface = Enum.SurfaceType.Smooth
  1618. Part65.TopSurface = Enum.SurfaceType.Smooth
  1619. Part65.Position = Vector3.new(0.999969482, 3.50017881, -63)
  1620. Part65.Orientation = Vector3.new(0, -90, 0)
  1621. Part66.Parent = Model58
  1622. Part66.Rotation = Vector3.new(90, 90, 0)
  1623. Part66.Anchored = true
  1624. Part66.FormFactor = Enum.FormFactor.Symmetric
  1625. Part66.Shape = Enum.PartType.Cylinder
  1626. Part66.Size = Vector3.new(1, 1, 1)
  1627. Part66.CFrame = CFrame.new(0.999938965, 4.50017881, -63, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
  1628. Part66.BottomSurface = Enum.SurfaceType.Smooth
  1629. Part66.TopSurface = Enum.SurfaceType.Smooth
  1630. Part66.Position = Vector3.new(0.999938965, 4.50017881, -63)
  1631. Part66.Orientation = Vector3.new(0, 90, 90)
  1632. Part67.Parent = Model58
  1633. Part67.Rotation = Vector3.new(90, 90, 0)
  1634. Part67.Anchored = true
  1635. Part67.FormFactor = Enum.FormFactor.Symmetric
  1636. Part67.Shape = Enum.PartType.Cylinder
  1637. Part67.Size = Vector3.new(1, 1, 1)
  1638. Part67.CFrame = CFrame.new(0.999938965, 5.50017881, -63, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
  1639. Part67.BottomSurface = Enum.SurfaceType.Smooth
  1640. Part67.TopSurface = Enum.SurfaceType.Smooth
  1641. Part67.Position = Vector3.new(0.999938965, 5.50017881, -63)
  1642. Part67.Orientation = Vector3.new(0, 90, 90)
  1643. Part68.Parent = Model58
  1644. Part68.Anchored = true
  1645. Part68.FormFactor = Enum.FormFactor.Plate
  1646. Part68.Size = Vector3.new(1, 0.400000006, 3)
  1647. Part68.CFrame = CFrame.new(1.99993896, 7.00021791, -66, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  1648. Part68.BottomSurface = Enum.SurfaceType.Smooth
  1649. Part68.TopSurface = Enum.SurfaceType.Smooth
  1650. Part68.Position = Vector3.new(1.99993896, 7.00021791, -66)
  1651. Model69.Name = "Slots"
  1652. Model69.Parent = Model58
  1653. Model69.PrimaryPart = Part71
  1654. Part70.Name = "Digit3"
  1655. Part70.Parent = Model69
  1656. Part70.BrickColor = BrickColor.new("White")
  1657. Part70.Rotation = Vector3.new(0, 0, 90)
  1658. Part70.Anchored = true
  1659. Part70.FormFactor = Enum.FormFactor.Plate
  1660. Part70.Size = Vector3.new(3, 0.400000006, 1)
  1661. Part70.CFrame = CFrame.new(0.299957275, 4.70018625, -65, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  1662. Part70.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1663. Part70.Position = Vector3.new(0.299957275, 4.70018625, -65)
  1664. Part70.Orientation = Vector3.new(0, 0, 90)
  1665. Part70.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1666. Part71.Name = "Light"
  1667. Part71.Parent = Model69
  1668. Part71.BrickColor = BrickColor.new("Bright red")
  1669. Part71.Transparency = 0.5
  1670. Part71.Rotation = Vector3.new(-180, 0, -90)
  1671. Part71.Anchored = true
  1672. Part71.FormFactor = Enum.FormFactor.Symmetric
  1673. Part71.Shape = Enum.PartType.Cylinder
  1674. Part71.Size = Vector3.new(1, 1, 1)
  1675. Part71.CFrame = CFrame.new(1.99993896, 7.70021772, -66, -8.86863836e-06, 1, -5.44383852e-07, 1, 1.10143674e-05, 9.55792802e-06, 3.83588122e-06, 3.04969149e-07, -1)
  1676. Part71.BottomSurface = Enum.SurfaceType.Smooth
  1677. Part71.RightSurface = Enum.SurfaceType.Weld
  1678. Part71.TopSurface = Enum.SurfaceType.Smooth
  1679. Part71.Color = Color3.new(0.768628, 0.156863, 0.109804)
  1680. Part71.Position = Vector3.new(1.99993896, 7.70021772, -66)
  1681. Part71.Orientation = Vector3.new(0, -180, 90)
  1682. Part71.Color = Color3.new(0.768628, 0.156863, 0.109804)
  1683. Part72.Name = "Digit1"
  1684. Part72.Parent = Model69
  1685. Part72.BrickColor = BrickColor.new("White")
  1686. Part72.Rotation = Vector3.new(0, 0, 90)
  1687. Part72.Anchored = true
  1688. Part72.FormFactor = Enum.FormFactor.Plate
  1689. Part72.Size = Vector3.new(3, 0.400000006, 1)
  1690. Part72.CFrame = CFrame.new(0.299957275, 4.70021677, -67, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  1691. Part72.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1692. Part72.Position = Vector3.new(0.299957275, 4.70021677, -67)
  1693. Part72.Orientation = Vector3.new(0, 0, 90)
  1694. Part72.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1695. Part73.Name = "Digit2"
  1696. Part73.Parent = Model69
  1697. Part73.BrickColor = BrickColor.new("White")
  1698. Part73.Rotation = Vector3.new(-180, 0, 90)
  1699. Part73.Anchored = true
  1700. Part73.FormFactor = Enum.FormFactor.Plate
  1701. Part73.Size = Vector3.new(3, 0.400000006, 1)
  1702. Part73.CFrame = CFrame.new(0.299957275, 4.70020056, -66, 8.86863836e-06, -1, -5.44383852e-07, -1, -1.10143674e-05, 9.55792802e-06, -3.83588122e-06, -3.04969149e-07, -1)
  1703. Part73.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1704. Part73.Position = Vector3.new(0.299957275, 4.70020056, -66)
  1705. Part73.Orientation = Vector3.new(0, -180, -90)
  1706. Part73.Color = Color3.new(0.94902, 0.952941, 0.952941)
  1707. Part74.Name = "Button"
  1708. Part74.Parent = Model69
  1709. Part74.BrickColor = BrickColor.new("Dark green")
  1710. Part74.Rotation = Vector3.new(0, 0, 90)
  1711. Part74.Anchored = true
  1712. Part74.FormFactor = Enum.FormFactor.Plate
  1713. Part74.Size = Vector3.new(1, 0.400000006, 1)
  1714. Part74.CFrame = CFrame.new(-0.700012207, 1.50017881, -66, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  1715. Part74.TopSurface = Enum.SurfaceType.Smooth
  1716. Part74.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1717. Part74.Position = Vector3.new(-0.700012207, 1.50017881, -66)
  1718. Part74.Orientation = Vector3.new(0, 0, 90)
  1719. Part74.Color = Color3.new(0.156863, 0.498039, 0.278431)
  1720. Script75.Parent = Part74
  1721. table.insert(cors,sandbox(Script75,function()
  1722. print("Hello world!")
  1723.  
  1724. end))
  1725. Script76.Name = "SlotGame"
  1726. Script76.Parent = Model69
  1727. table.insert(cors,sandbox(Script76,function()
  1728. amnt = 5 --COST TO PLAY
  1729. hold = false
  1730. bin = script.Parent
  1731.  
  1732. light = bin.Light
  1733. button = bin.Button
  1734. dig1 = bin.Digit1
  1735. dig2 = bin.Digit2
  1736. dig3 = bin.Digit3
  1737.  
  1738. color1 = 0
  1739. color2 = 0
  1740. color3 = 0
  1741. function Roll(cash)
  1742. for i=1, 10 do
  1743. --ROLL FIRST
  1744. color1 = math.random(0,10)
  1745. dig1.Color = GetColor(color1)
  1746. --ROLLSECOND
  1747. color2 = math.random(0,10)
  1748. dig2.Color = GetColor(color2)
  1749. --ROLL THIRD
  1750. color3 = math.random(0,10)
  1751. dig3.Color = GetColor(color3)
  1752. wait(0.1)
  1753. end
  1754. for i=1, 10 do
  1755. --ROLLSECOND
  1756. color2 = math.random(0,10)
  1757. dig2.Color = GetColor(color2)
  1758. --ROLL THIRD
  1759. color3 = math.random(0,10)
  1760. dig3.Color = GetColor(color3)
  1761. wait(0.1)
  1762. end
  1763. for i=1, 10 do
  1764. --ROLL THIRD
  1765. color3 = math.random(0,10)
  1766. dig3.Color = GetColor(color3)
  1767. wait(0.1)
  1768. end
  1769.  
  1770. if (color1==3 and color2==2 and color3==5) then
  1771. cash.Value=cash.Value+500
  1772. msg=Instance.new("Message")
  1773. msg.Parent= game.Workspace
  1774. msg.Text= "WINNER 500 CASH!!!"
  1775. light.Transparency= 0
  1776. wait(.5)
  1777. light.Transparency= .5
  1778. wait(.5)
  1779. light.Transparency= 0
  1780. wait(.5)
  1781. light.Transparency= .5
  1782. wait(.5)
  1783. light.Transparency= 0
  1784. wait(.5)
  1785. light.Transparency= .5
  1786. wait(.5)
  1787. light.Transparency= 0
  1788. wait(.5)
  1789. light.Transparency= .5
  1790. wait(.5)
  1791. light.Transparency= 0
  1792. wait(.5)
  1793. light.Transparency= .5
  1794. wait(.5)
  1795. msg:remove()
  1796. end
  1797. if (color1==color2 and color2==color3) then
  1798. cash.Value=cash.Value+1000
  1799. msg=Instance.new("Message")
  1800. msg.Parent= game.Workspace
  1801. msg.Text= "WINNER 1000 CASH!!!"
  1802. light.Transparency= 0
  1803. wait(.5)
  1804. light.Transparency= .5
  1805. wait(.5)
  1806. light.Transparency= 0
  1807. wait(.5)
  1808. light.Transparency= .5
  1809. wait(.5)
  1810. light.Transparency= 0
  1811. wait(.5)
  1812. light.Transparency= .5
  1813. wait(.5)
  1814. light.Transparency= 0
  1815. wait(.5)
  1816. light.Transparency= .5
  1817. wait(.5)
  1818. light.Transparency= 0
  1819. wait(.5)
  1820. light.Transparency= .5
  1821. wait(.5)
  1822. msg:remove()
  1823. end
  1824. if (color1==1 and color2==2 and color3==3) then
  1825. cash.Value=cash.Value+100
  1826. msg=Instance.new("Message")
  1827. msg.Parent= game.Workspace
  1828. msg.Text= "WINNER 100 CASH!!!"
  1829. light.Transparency= 0
  1830. wait(.5)
  1831. light.Transparency= .5
  1832. wait(.5)
  1833. light.Transparency= 0
  1834. wait(.5)
  1835. light.Transparency= .5
  1836. wait(.5)
  1837. light.Transparency= 0
  1838. wait(.5)
  1839. light.Transparency= .5
  1840. wait(.5)
  1841. light.Transparency= 0
  1842. wait(.5)
  1843. light.Transparency= .5
  1844. wait(.5)
  1845. light.Transparency= 0
  1846. wait(.5)
  1847. light.Transparency= .5
  1848. wait(.5)
  1849. msg:remove()
  1850. end
  1851. if (color1==0 and color2==10 and color3==5) then
  1852. cash.Value=cash.Value+50
  1853. msg=Instance.new("Message")
  1854. msg.Parent= game.Workspace
  1855. msg.Text= "WINNER 50 CASH!!!"
  1856. light.Transparency= 0
  1857. wait(.5)
  1858. light.Transparency= .5
  1859. wait(.5)
  1860. light.Transparency= 0
  1861. wait(.5)
  1862. light.Transparency= .5
  1863. wait(.5)
  1864. light.Transparency= 0
  1865. wait(.5)
  1866. light.Transparency= .5
  1867. wait(.5)
  1868. light.Transparency= 0
  1869. wait(.5)
  1870. light.Transparency= .5
  1871. wait(.5)
  1872. light.Transparency= 0
  1873. wait(.5)
  1874. light.Transparency= .5
  1875. wait(.5)
  1876. msg:remove()
  1877. end
  1878. if (color1==0 and color2==0 and color3==0) then
  1879. cash.Value=cash.Value+250
  1880. msg=Instance.new("Message")
  1881. msg.Parent= game.Workspace
  1882. msg.Text= "WINNER 250 CASH!!!"
  1883. light.Transparency= 0
  1884. wait(.5)
  1885. light.Transparency= .5
  1886. wait(.5)
  1887. light.Transparency= 0
  1888. wait(.5)
  1889. light.Transparency= .5
  1890. wait(.5)
  1891. light.Transparency= 0
  1892. wait(.5)
  1893. light.Transparency= .5
  1894. wait(.5)
  1895. light.Transparency= 0
  1896. wait(.5)
  1897. light.Transparency= .5
  1898. wait(.5)
  1899. light.Transparency= 0
  1900. wait(.5)
  1901. light.Transparency= .5
  1902. wait(.5)
  1903. msg:remove()
  1904. end
  1905. end
  1906.  
  1907. function GetColor(num)
  1908. if (num==0) then --Black
  1909. return Color3.new(0,0,0)
  1910. end
  1911. if (num==1) then --Grey
  1912. return Color3.new(.5,.5,.5)
  1913. end
  1914. if (num==2) then --White
  1915. return Color3.new(1,1,1)
  1916. end
  1917. if (num==3) then --Red
  1918. return Color3.new(1,0,0)
  1919. end
  1920. if (num==4) then --Green
  1921. return Color3.new(0,1,0)
  1922. end
  1923. if (num==5) then --Blue
  1924. return Color3.new(0,0,1)
  1925. end
  1926. return Color3.new(GetRand(),GetRand(),GetRand())
  1927. end
  1928.  
  1929. function GetRand()
  1930. return (math.random(1,10)/10)
  1931. end
  1932.  
  1933. function onTouched(part)
  1934. local h = part.Parent:findFirstChild("Humanoid")
  1935. if (h~=nil and hold==false) then
  1936. hold=true
  1937. button.Color = Color3.new(0,0,0)
  1938. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  1939. if (thisplr~=nil) then
  1940. local stats = thisplr:findFirstChild("leaderstats")
  1941. if (stats~=nil) then
  1942. local score = stats:findFirstChild("Cash")
  1943. if (score~=nil) then
  1944. if (score.Value >=amnt) then
  1945. score.Value = score.Value - amnt
  1946. Roll(score)
  1947. end
  1948. end
  1949. end
  1950. end
  1951. button.Color = Color3.new(0,1,0)
  1952. hold=false
  1953. end
  1954. end
  1955.  
  1956. button.Touched:connect(onTouched)
  1957. end))
  1958. Model77.Parent = Model0
  1959. Model77.PrimaryPart = Part79
  1960. Part78.Parent = Model77
  1961. Part78.BrickColor = BrickColor.new("Dark stone grey")
  1962. Part78.Rotation = Vector3.new(-180, 0, 180)
  1963. Part78.Anchored = true
  1964. Part78.FormFactor = Enum.FormFactor.Plate
  1965. Part78.Size = Vector3.new(1, 3.20000005, 1)
  1966. Part78.CFrame = CFrame.new(11.9999695, 4.80031443, -64, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
  1967. Part78.BackSurface = Enum.SurfaceType.Weld
  1968. Part78.FrontSurface = Enum.SurfaceType.Weld
  1969. Part78.LeftSurface = Enum.SurfaceType.Weld
  1970. Part78.TopSurface = Enum.SurfaceType.Smooth
  1971. Part78.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1972. Part78.Position = Vector3.new(11.9999695, 4.80031443, -64)
  1973. Part78.Orientation = Vector3.new(0, -180, 0)
  1974. Part78.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1975. Part79.Parent = Model77
  1976. Part79.BrickColor = BrickColor.new("Dark stone grey")
  1977. Part79.Rotation = Vector3.new(-180, 0, 180)
  1978. Part79.Anchored = true
  1979. Part79.FormFactor = Enum.FormFactor.Plate
  1980. Part79.Size = Vector3.new(4, 3.20000005, 5)
  1981. Part79.CFrame = CFrame.new(10.5, 1.60028601, -66, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
  1982. Part79.BackSurface = Enum.SurfaceType.Weld
  1983. Part79.FrontSurface = Enum.SurfaceType.Weld
  1984. Part79.LeftSurface = Enum.SurfaceType.Weld
  1985. Part79.RightSurface = Enum.SurfaceType.Weld
  1986. Part79.TopSurface = Enum.SurfaceType.Weld
  1987. Part79.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1988. Part79.Position = Vector3.new(10.5, 1.60028601, -66)
  1989. Part79.Orientation = Vector3.new(0, -180, 0)
  1990. Part79.Color = Color3.new(0.388235, 0.372549, 0.384314)
  1991. Part80.Parent = Model77
  1992. Part80.BrickColor = BrickColor.new("Dark stone grey")
  1993. Part80.Rotation = Vector3.new(-180, 0, 180)
  1994. Part80.Anchored = true
  1995. Part80.FormFactor = Enum.FormFactor.Plate
  1996. Part80.Size = Vector3.new(3, 3.20000005, 5)
  1997. Part80.CFrame = CFrame.new(9.99993896, 4.80031443, -66, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
  1998. Part80.BackSurface = Enum.SurfaceType.Weld
  1999. Part80.FrontSurface = Enum.SurfaceType.Weld
  2000. Part80.LeftSurface = Enum.SurfaceType.Weld
  2001. Part80.RightSurface = Enum.SurfaceType.Weld
  2002. Part80.TopSurface = Enum.SurfaceType.Smooth
  2003. Part80.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2004. Part80.Position = Vector3.new(9.99993896, 4.80031443, -66)
  2005. Part80.Orientation = Vector3.new(0, -180, 0)
  2006. Part80.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2007. Part81.Parent = Model77
  2008. Part81.BrickColor = BrickColor.new("Dark stone grey")
  2009. Part81.Rotation = Vector3.new(-180, 0, -180)
  2010. Part81.Anchored = true
  2011. Part81.FormFactor = Enum.FormFactor.Plate
  2012. Part81.Size = Vector3.new(1, 3.20000005, 1)
  2013. Part81.CFrame = CFrame.new(12, 4.80040216, -68, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2014. Part81.BackSurface = Enum.SurfaceType.Weld
  2015. Part81.FrontSurface = Enum.SurfaceType.Weld
  2016. Part81.LeftSurface = Enum.SurfaceType.Weld
  2017. Part81.TopSurface = Enum.SurfaceType.Smooth
  2018. Part81.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2019. Part81.Position = Vector3.new(12, 4.80040216, -68)
  2020. Part81.Orientation = Vector3.new(0, 180, 0)
  2021. Part81.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2022. Part82.Parent = Model77
  2023. Part82.BrickColor = BrickColor.new("Dark stone grey")
  2024. Part82.Rotation = Vector3.new(-180, 0, -180)
  2025. Part82.Anchored = true
  2026. Part82.FormFactor = Enum.FormFactor.Plate
  2027. Part82.Size = Vector3.new(4, 0.400000006, 5)
  2028. Part82.CFrame = CFrame.new(10.5, 6.60039473, -66, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2029. Part82.BackSurface = Enum.SurfaceType.Weld
  2030. Part82.BottomSurface = Enum.SurfaceType.Weld
  2031. Part82.FrontSurface = Enum.SurfaceType.Weld
  2032. Part82.LeftSurface = Enum.SurfaceType.Weld
  2033. Part82.RightSurface = Enum.SurfaceType.Weld
  2034. Part82.TopSurface = Enum.SurfaceType.Weld
  2035. Part82.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2036. Part82.Position = Vector3.new(10.5, 6.60039473, -66)
  2037. Part82.Orientation = Vector3.new(0, 180, 0)
  2038. Part82.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2039. Part83.Parent = Model77
  2040. Part83.Rotation = Vector3.new(-90, -90, 0)
  2041. Part83.Anchored = true
  2042. Part83.FormFactor = Enum.FormFactor.Symmetric
  2043. Part83.Shape = Enum.PartType.Ball
  2044. Part83.Size = Vector3.new(1, 1, 1)
  2045. Part83.CFrame = CFrame.new(10.999939, 6.50034189, -69, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
  2046. Part83.BottomSurface = Enum.SurfaceType.Smooth
  2047. Part83.TopSurface = Enum.SurfaceType.Smooth
  2048. Part83.Position = Vector3.new(10.999939, 6.50034189, -69)
  2049. Part83.Orientation = Vector3.new(0, -90, 90)
  2050. Part84.Parent = Model77
  2051. Part84.Rotation = Vector3.new(0, 90, 0)
  2052. Part84.Anchored = true
  2053. Part84.FormFactor = Enum.FormFactor.Symmetric
  2054. Part84.Shape = Enum.PartType.Cylinder
  2055. Part84.Size = Vector3.new(1, 1, 1)
  2056. Part84.CFrame = CFrame.new(10.9999695, 3.50034094, -69, -5.44383852e-07, -8.86863836e-06, 1, 9.55792802e-06, 1, 1.10143674e-05, -1, 3.83588122e-06, 3.04969149e-07)
  2057. Part84.BottomSurface = Enum.SurfaceType.Smooth
  2058. Part84.TopSurface = Enum.SurfaceType.Smooth
  2059. Part84.Position = Vector3.new(10.9999695, 3.50034094, -69)
  2060. Part84.Orientation = Vector3.new(0, 90, 0)
  2061. Part85.Parent = Model77
  2062. Part85.Rotation = Vector3.new(-90, -90, 0)
  2063. Part85.Anchored = true
  2064. Part85.FormFactor = Enum.FormFactor.Symmetric
  2065. Part85.Shape = Enum.PartType.Cylinder
  2066. Part85.Size = Vector3.new(1, 1, 1)
  2067. Part85.CFrame = CFrame.new(10.9999695, 4.50034189, -69, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
  2068. Part85.BottomSurface = Enum.SurfaceType.Smooth
  2069. Part85.TopSurface = Enum.SurfaceType.Smooth
  2070. Part85.Position = Vector3.new(10.9999695, 4.50034189, -69)
  2071. Part85.Orientation = Vector3.new(0, -90, 90)
  2072. Part86.Parent = Model77
  2073. Part86.Rotation = Vector3.new(-90, -90, 0)
  2074. Part86.Anchored = true
  2075. Part86.FormFactor = Enum.FormFactor.Symmetric
  2076. Part86.Shape = Enum.PartType.Cylinder
  2077. Part86.Size = Vector3.new(1, 1, 1)
  2078. Part86.CFrame = CFrame.new(10.999939, 5.50034189, -69, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
  2079. Part86.BottomSurface = Enum.SurfaceType.Smooth
  2080. Part86.TopSurface = Enum.SurfaceType.Smooth
  2081. Part86.Position = Vector3.new(10.999939, 5.50034189, -69)
  2082. Part86.Orientation = Vector3.new(0, -90, 90)
  2083. Part87.Parent = Model77
  2084. Part87.Rotation = Vector3.new(-180, 0, 180)
  2085. Part87.Anchored = true
  2086. Part87.FormFactor = Enum.FormFactor.Plate
  2087. Part87.Size = Vector3.new(1, 0.400000006, 3)
  2088. Part87.CFrame = CFrame.new(9.99993896, 7.00031233, -66, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
  2089. Part87.BottomSurface = Enum.SurfaceType.Smooth
  2090. Part87.TopSurface = Enum.SurfaceType.Smooth
  2091. Part87.Position = Vector3.new(9.99993896, 7.00031233, -66)
  2092. Part87.Orientation = Vector3.new(0, -180, 0)
  2093. Model88.Name = "Slots"
  2094. Model88.Parent = Model77
  2095. Model88.PrimaryPart = Part90
  2096. Part89.Name = "Digit3"
  2097. Part89.Parent = Model88
  2098. Part89.BrickColor = BrickColor.new("White")
  2099. Part89.Rotation = Vector3.new(-180, 0, -90)
  2100. Part89.Anchored = true
  2101. Part89.FormFactor = Enum.FormFactor.Plate
  2102. Part89.Size = Vector3.new(3, 0.400000006, 1)
  2103. Part89.CFrame = CFrame.new(11.6999969, 4.70039988, -67, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  2104. Part89.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2105. Part89.Position = Vector3.new(11.6999969, 4.70039988, -67)
  2106. Part89.Orientation = Vector3.new(0, 180, 90)
  2107. Part89.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2108. Part90.Name = "Light"
  2109. Part90.Parent = Model88
  2110. Part90.BrickColor = BrickColor.new("Bright red")
  2111. Part90.Transparency = 0.5
  2112. Part90.Rotation = Vector3.new(0, 0, 90)
  2113. Part90.Anchored = true
  2114. Part90.FormFactor = Enum.FormFactor.Symmetric
  2115. Part90.Shape = Enum.PartType.Cylinder
  2116. Part90.Size = Vector3.new(1, 1, 1)
  2117. Part90.CFrame = CFrame.new(9.99993896, 7.70030928, -66, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  2118. Part90.BottomSurface = Enum.SurfaceType.Smooth
  2119. Part90.RightSurface = Enum.SurfaceType.Weld
  2120. Part90.TopSurface = Enum.SurfaceType.Smooth
  2121. Part90.Color = Color3.new(0.768628, 0.156863, 0.109804)
  2122. Part90.Position = Vector3.new(9.99993896, 7.70030928, -66)
  2123. Part90.Orientation = Vector3.new(0, 0, 90)
  2124. Part90.Color = Color3.new(0.768628, 0.156863, 0.109804)
  2125. Part91.Name = "Digit1"
  2126. Part91.Parent = Model88
  2127. Part91.BrickColor = BrickColor.new("White")
  2128. Part91.Rotation = Vector3.new(-180, 0, -90)
  2129. Part91.Anchored = true
  2130. Part91.FormFactor = Enum.FormFactor.Plate
  2131. Part91.Size = Vector3.new(3, 0.400000006, 1)
  2132. Part91.CFrame = CFrame.new(11.6999512, 4.70032454, -65, -8.86863836e-06, 1, -5.44383852e-07, 1, 1.10143674e-05, 9.55792802e-06, 3.83588122e-06, 3.04969149e-07, -1)
  2133. Part91.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2134. Part91.Position = Vector3.new(11.6999512, 4.70032454, -65)
  2135. Part91.Orientation = Vector3.new(0, -180, 90)
  2136. Part91.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2137. Part92.Name = "Digit2"
  2138. Part92.Parent = Model88
  2139. Part92.BrickColor = BrickColor.new("White")
  2140. Part92.Rotation = Vector3.new(0, 0, -90)
  2141. Part92.Anchored = true
  2142. Part92.FormFactor = Enum.FormFactor.Plate
  2143. Part92.Size = Vector3.new(3, 0.400000006, 1)
  2144. Part92.CFrame = CFrame.new(11.6999969, 4.70039988, -66, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  2145. Part92.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2146. Part92.Position = Vector3.new(11.6999969, 4.70039988, -66)
  2147. Part92.Orientation = Vector3.new(0, 0, -90)
  2148. Part92.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2149. Part93.Name = "Button"
  2150. Part93.Parent = Model88
  2151. Part93.BrickColor = BrickColor.new("Dark green")
  2152. Part93.Rotation = Vector3.new(-180, 0, -90)
  2153. Part93.Anchored = true
  2154. Part93.FormFactor = Enum.FormFactor.Plate
  2155. Part93.Size = Vector3.new(1, 0.400000006, 1)
  2156. Part93.CFrame = CFrame.new(12.6999969, 1.50040197, -66, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  2157. Part93.TopSurface = Enum.SurfaceType.Smooth
  2158. Part93.Color = Color3.new(0.156863, 0.498039, 0.278431)
  2159. Part93.Position = Vector3.new(12.6999969, 1.50040197, -66)
  2160. Part93.Orientation = Vector3.new(0, 180, 90)
  2161. Part93.Color = Color3.new(0.156863, 0.498039, 0.278431)
  2162. Script94.Parent = Part93
  2163. table.insert(cors,sandbox(Script94,function()
  2164. print("Hello world!")
  2165.  
  2166. end))
  2167. Script95.Name = "SlotGame"
  2168. Script95.Parent = Model88
  2169. table.insert(cors,sandbox(Script95,function()
  2170. amnt = 5 --COST TO PLAY
  2171. hold = false
  2172. bin = script.Parent
  2173.  
  2174. light = bin.Light
  2175. button = bin.Button
  2176. dig1 = bin.Digit1
  2177. dig2 = bin.Digit2
  2178. dig3 = bin.Digit3
  2179.  
  2180. color1 = 0
  2181. color2 = 0
  2182. color3 = 0
  2183. function Roll(cash)
  2184. for i=1, 10 do
  2185. --ROLL FIRST
  2186. color1 = math.random(0,10)
  2187. dig1.Color = GetColor(color1)
  2188. --ROLLSECOND
  2189. color2 = math.random(0,10)
  2190. dig2.Color = GetColor(color2)
  2191. --ROLL THIRD
  2192. color3 = math.random(0,10)
  2193. dig3.Color = GetColor(color3)
  2194. wait(0.1)
  2195. end
  2196. for i=1, 10 do
  2197. --ROLLSECOND
  2198. color2 = math.random(0,10)
  2199. dig2.Color = GetColor(color2)
  2200. --ROLL THIRD
  2201. color3 = math.random(0,10)
  2202. dig3.Color = GetColor(color3)
  2203. wait(0.1)
  2204. end
  2205. for i=1, 10 do
  2206. --ROLL THIRD
  2207. color3 = math.random(0,10)
  2208. dig3.Color = GetColor(color3)
  2209. wait(0.1)
  2210. end
  2211.  
  2212. if (color1==3 and color2==2 and color3==5) then
  2213. cash.Value=cash.Value+500
  2214. msg=Instance.new("Message")
  2215. msg.Parent= game.Workspace
  2216. msg.Text= "WINNER 500 CASH!!!"
  2217. light.Transparency= 0
  2218. wait(.5)
  2219. light.Transparency= .5
  2220. wait(.5)
  2221. light.Transparency= 0
  2222. wait(.5)
  2223. light.Transparency= .5
  2224. wait(.5)
  2225. light.Transparency= 0
  2226. wait(.5)
  2227. light.Transparency= .5
  2228. wait(.5)
  2229. light.Transparency= 0
  2230. wait(.5)
  2231. light.Transparency= .5
  2232. wait(.5)
  2233. light.Transparency= 0
  2234. wait(.5)
  2235. light.Transparency= .5
  2236. wait(.5)
  2237. msg:remove()
  2238. end
  2239. if (color1==color2 and color2==color3) then
  2240. cash.Value=cash.Value+1000
  2241. msg=Instance.new("Message")
  2242. msg.Parent= game.Workspace
  2243. msg.Text= "WINNER 1000 CASH!!!"
  2244. light.Transparency= 0
  2245. wait(.5)
  2246. light.Transparency= .5
  2247. wait(.5)
  2248. light.Transparency= 0
  2249. wait(.5)
  2250. light.Transparency= .5
  2251. wait(.5)
  2252. light.Transparency= 0
  2253. wait(.5)
  2254. light.Transparency= .5
  2255. wait(.5)
  2256. light.Transparency= 0
  2257. wait(.5)
  2258. light.Transparency= .5
  2259. wait(.5)
  2260. light.Transparency= 0
  2261. wait(.5)
  2262. light.Transparency= .5
  2263. wait(.5)
  2264. msg:remove()
  2265. end
  2266. if (color1==1 and color2==2 and color3==3) then
  2267. cash.Value=cash.Value+100
  2268. msg=Instance.new("Message")
  2269. msg.Parent= game.Workspace
  2270. msg.Text= "WINNER 100 CASH!!!"
  2271. light.Transparency= 0
  2272. wait(.5)
  2273. light.Transparency= .5
  2274. wait(.5)
  2275. light.Transparency= 0
  2276. wait(.5)
  2277. light.Transparency= .5
  2278. wait(.5)
  2279. light.Transparency= 0
  2280. wait(.5)
  2281. light.Transparency= .5
  2282. wait(.5)
  2283. light.Transparency= 0
  2284. wait(.5)
  2285. light.Transparency= .5
  2286. wait(.5)
  2287. light.Transparency= 0
  2288. wait(.5)
  2289. light.Transparency= .5
  2290. wait(.5)
  2291. msg:remove()
  2292. end
  2293. if (color1==0 and color2==10 and color3==5) then
  2294. cash.Value=cash.Value+50
  2295. msg=Instance.new("Message")
  2296. msg.Parent= game.Workspace
  2297. msg.Text= "WINNER 50 CASH!!!"
  2298. light.Transparency= 0
  2299. wait(.5)
  2300. light.Transparency= .5
  2301. wait(.5)
  2302. light.Transparency= 0
  2303. wait(.5)
  2304. light.Transparency= .5
  2305. wait(.5)
  2306. light.Transparency= 0
  2307. wait(.5)
  2308. light.Transparency= .5
  2309. wait(.5)
  2310. light.Transparency= 0
  2311. wait(.5)
  2312. light.Transparency= .5
  2313. wait(.5)
  2314. light.Transparency= 0
  2315. wait(.5)
  2316. light.Transparency= .5
  2317. wait(.5)
  2318. msg:remove()
  2319. end
  2320. if (color1==0 and color2==0 and color3==0) then
  2321. cash.Value=cash.Value+250
  2322. msg=Instance.new("Message")
  2323. msg.Parent= game.Workspace
  2324. msg.Text= "WINNER 250 CASH!!!"
  2325. light.Transparency= 0
  2326. wait(.5)
  2327. light.Transparency= .5
  2328. wait(.5)
  2329. light.Transparency= 0
  2330. wait(.5)
  2331. light.Transparency= .5
  2332. wait(.5)
  2333. light.Transparency= 0
  2334. wait(.5)
  2335. light.Transparency= .5
  2336. wait(.5)
  2337. light.Transparency= 0
  2338. wait(.5)
  2339. light.Transparency= .5
  2340. wait(.5)
  2341. light.Transparency= 0
  2342. wait(.5)
  2343. light.Transparency= .5
  2344. wait(.5)
  2345. msg:remove()
  2346. end
  2347. end
  2348.  
  2349. function GetColor(num)
  2350. if (num==0) then --Black
  2351. return Color3.new(0,0,0)
  2352. end
  2353. if (num==1) then --Grey
  2354. return Color3.new(.5,.5,.5)
  2355. end
  2356. if (num==2) then --White
  2357. return Color3.new(1,1,1)
  2358. end
  2359. if (num==3) then --Red
  2360. return Color3.new(1,0,0)
  2361. end
  2362. if (num==4) then --Green
  2363. return Color3.new(0,1,0)
  2364. end
  2365. if (num==5) then --Blue
  2366. return Color3.new(0,0,1)
  2367. end
  2368. return Color3.new(GetRand(),GetRand(),GetRand())
  2369. end
  2370.  
  2371. function GetRand()
  2372. return (math.random(1,10)/10)
  2373. end
  2374.  
  2375. function onTouched(part)
  2376. local h = part.Parent:findFirstChild("Humanoid")
  2377. if (h~=nil and hold==false) then
  2378. hold=true
  2379. button.Color = Color3.new(0,0,0)
  2380. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  2381. if (thisplr~=nil) then
  2382. local stats = thisplr:findFirstChild("leaderstats")
  2383. if (stats~=nil) then
  2384. local score = stats:findFirstChild("Cash")
  2385. if (score~=nil) then
  2386. if (score.Value >=amnt) then
  2387. score.Value = score.Value - amnt
  2388. Roll(score)
  2389. end
  2390. end
  2391. end
  2392. end
  2393. button.Color = Color3.new(0,1,0)
  2394. hold=false
  2395. end
  2396. end
  2397.  
  2398. button.Touched:connect(onTouched)
  2399. end))
  2400. Part96.Name = "YellowTeamDoor"
  2401. Part96.Parent = Model0
  2402. Part96.BrickColor = BrickColor.new("White")
  2403. Part96.Anchored = true
  2404. Part96.Size = Vector3.new(1, 4.80000019, 26)
  2405. Part96.CFrame = CFrame.new(6, 13.2004023, -62.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2406. Part96.TopSurface = Enum.SurfaceType.Smooth
  2407. Part96.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2408. Part96.Position = Vector3.new(6, 13.2004023, -62.5)
  2409. Part96.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2410. Part97.Name = "YellowTeamDoor"
  2411. Part97.Parent = Model0
  2412. Part97.BrickColor = BrickColor.new("Black")
  2413. Part97.Anchored = true
  2414. Part97.Size = Vector3.new(5, 10.8000002, 26)
  2415. Part97.CFrame = CFrame.new(6, 5.40039587, -62.5, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  2416. Part97.TopSurface = Enum.SurfaceType.Smooth
  2417. Part97.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2418. Part97.Position = Vector3.new(6, 5.40039587, -62.5)
  2419. Part97.Color = Color3.new(0.105882, 0.164706, 0.207843)
  2420. Model98.Parent = Model0
  2421. Model98.PrimaryPart = Part103
  2422. Part99.Parent = Model98
  2423. Part99.BrickColor = BrickColor.new("Dark stone grey")
  2424. Part99.Rotation = Vector3.new(-180, 0, -180)
  2425. Part99.Anchored = true
  2426. Part99.FormFactor = Enum.FormFactor.Plate
  2427. Part99.Size = Vector3.new(1, 3.20000005, 1)
  2428. Part99.CFrame = CFrame.new(12, 4.80040216, -57, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2429. Part99.BackSurface = Enum.SurfaceType.Weld
  2430. Part99.FrontSurface = Enum.SurfaceType.Weld
  2431. Part99.LeftSurface = Enum.SurfaceType.Weld
  2432. Part99.TopSurface = Enum.SurfaceType.Smooth
  2433. Part99.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2434. Part99.Position = Vector3.new(12, 4.80040216, -57)
  2435. Part99.Orientation = Vector3.new(0, 180, 0)
  2436. Part99.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2437. Part100.Parent = Model98
  2438. Part100.BrickColor = BrickColor.new("Dark stone grey")
  2439. Part100.Rotation = Vector3.new(-180, 0, -180)
  2440. Part100.Anchored = true
  2441. Part100.FormFactor = Enum.FormFactor.Plate
  2442. Part100.Size = Vector3.new(4, 3.20000005, 5)
  2443. Part100.CFrame = CFrame.new(10.5, 1.60039473, -59, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2444. Part100.BackSurface = Enum.SurfaceType.Weld
  2445. Part100.FrontSurface = Enum.SurfaceType.Weld
  2446. Part100.LeftSurface = Enum.SurfaceType.Weld
  2447. Part100.RightSurface = Enum.SurfaceType.Weld
  2448. Part100.TopSurface = Enum.SurfaceType.Weld
  2449. Part100.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2450. Part100.Position = Vector3.new(10.5, 1.60039473, -59)
  2451. Part100.Orientation = Vector3.new(0, 180, 0)
  2452. Part100.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2453. Part101.Parent = Model98
  2454. Part101.BrickColor = BrickColor.new("Dark stone grey")
  2455. Part101.Rotation = Vector3.new(-180, 0, -180)
  2456. Part101.Anchored = true
  2457. Part101.FormFactor = Enum.FormFactor.Plate
  2458. Part101.Size = Vector3.new(3, 3.20000005, 5)
  2459. Part101.CFrame = CFrame.new(10, 4.80040216, -59, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2460. Part101.BackSurface = Enum.SurfaceType.Weld
  2461. Part101.FrontSurface = Enum.SurfaceType.Weld
  2462. Part101.LeftSurface = Enum.SurfaceType.Weld
  2463. Part101.RightSurface = Enum.SurfaceType.Weld
  2464. Part101.TopSurface = Enum.SurfaceType.Smooth
  2465. Part101.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2466. Part101.Position = Vector3.new(10, 4.80040216, -59)
  2467. Part101.Orientation = Vector3.new(0, 180, 0)
  2468. Part101.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2469. Part102.Parent = Model98
  2470. Part102.BrickColor = BrickColor.new("Dark stone grey")
  2471. Part102.Rotation = Vector3.new(180, 0, -180)
  2472. Part102.Anchored = true
  2473. Part102.FormFactor = Enum.FormFactor.Plate
  2474. Part102.Size = Vector3.new(1, 3.20000005, 1)
  2475. Part102.CFrame = CFrame.new(12.0000687, 4.80033064, -61.000061, -1, 8.98786493e-06, 1.11056943e-06, 6.84213092e-06, 1, -9.55792802e-06, -1.96002566e-06, -1.52799585e-05, -1)
  2476. Part102.BackSurface = Enum.SurfaceType.Weld
  2477. Part102.FrontSurface = Enum.SurfaceType.Weld
  2478. Part102.LeftSurface = Enum.SurfaceType.Weld
  2479. Part102.TopSurface = Enum.SurfaceType.Smooth
  2480. Part102.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2481. Part102.Position = Vector3.new(12.0000687, 4.80033064, -61.000061)
  2482. Part102.Orientation = Vector3.new(0, 180, 0)
  2483. Part102.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2484. Part103.Parent = Model98
  2485. Part103.BrickColor = BrickColor.new("Dark stone grey")
  2486. Part103.Rotation = Vector3.new(180, 0, -180)
  2487. Part103.Anchored = true
  2488. Part103.FormFactor = Enum.FormFactor.Plate
  2489. Part103.Size = Vector3.new(4, 0.400000006, 5)
  2490. Part103.CFrame = CFrame.new(10.500061, 6.60033274, -59.000061, -1, 8.98786493e-06, 1.11056943e-06, 6.84213092e-06, 1, -9.55792802e-06, -1.96002566e-06, -1.52799585e-05, -1)
  2491. Part103.BackSurface = Enum.SurfaceType.Weld
  2492. Part103.BottomSurface = Enum.SurfaceType.Weld
  2493. Part103.FrontSurface = Enum.SurfaceType.Weld
  2494. Part103.LeftSurface = Enum.SurfaceType.Weld
  2495. Part103.RightSurface = Enum.SurfaceType.Weld
  2496. Part103.TopSurface = Enum.SurfaceType.Weld
  2497. Part103.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2498. Part103.Position = Vector3.new(10.500061, 6.60033274, -59.000061)
  2499. Part103.Orientation = Vector3.new(0, 180, 0)
  2500. Part103.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2501. Part104.Parent = Model98
  2502. Part104.Rotation = Vector3.new(-90, -90, 0)
  2503. Part104.Anchored = true
  2504. Part104.FormFactor = Enum.FormFactor.Symmetric
  2505. Part104.Shape = Enum.PartType.Ball
  2506. Part104.Size = Vector3.new(1, 1, 1)
  2507. Part104.CFrame = CFrame.new(11, 6.50040197, -62, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  2508. Part104.BottomSurface = Enum.SurfaceType.Smooth
  2509. Part104.TopSurface = Enum.SurfaceType.Smooth
  2510. Part104.Position = Vector3.new(11, 6.50040197, -62)
  2511. Part104.Orientation = Vector3.new(0, -90, 90)
  2512. Part105.Parent = Model98
  2513. Part105.Rotation = Vector3.new(0, 90, 0)
  2514. Part105.Anchored = true
  2515. Part105.FormFactor = Enum.FormFactor.Symmetric
  2516. Part105.Shape = Enum.PartType.Cylinder
  2517. Part105.Size = Vector3.new(1, 1, 1)
  2518. Part105.CFrame = CFrame.new(11, 3.50040197, -62, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  2519. Part105.BottomSurface = Enum.SurfaceType.Smooth
  2520. Part105.TopSurface = Enum.SurfaceType.Smooth
  2521. Part105.Position = Vector3.new(11, 3.50040197, -62)
  2522. Part105.Orientation = Vector3.new(0, 90, 0)
  2523. Part106.Parent = Model98
  2524. Part106.Rotation = Vector3.new(-90, -90, 0)
  2525. Part106.Anchored = true
  2526. Part106.FormFactor = Enum.FormFactor.Symmetric
  2527. Part106.Shape = Enum.PartType.Cylinder
  2528. Part106.Size = Vector3.new(1, 1, 1)
  2529. Part106.CFrame = CFrame.new(11, 4.50040197, -62, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  2530. Part106.BottomSurface = Enum.SurfaceType.Smooth
  2531. Part106.TopSurface = Enum.SurfaceType.Smooth
  2532. Part106.Position = Vector3.new(11, 4.50040197, -62)
  2533. Part106.Orientation = Vector3.new(0, -90, 90)
  2534. Part107.Parent = Model98
  2535. Part107.Rotation = Vector3.new(-90, -90, 0)
  2536. Part107.Anchored = true
  2537. Part107.FormFactor = Enum.FormFactor.Symmetric
  2538. Part107.Shape = Enum.PartType.Cylinder
  2539. Part107.Size = Vector3.new(1, 1, 1)
  2540. Part107.CFrame = CFrame.new(11, 5.50040197, -62, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  2541. Part107.BottomSurface = Enum.SurfaceType.Smooth
  2542. Part107.TopSurface = Enum.SurfaceType.Smooth
  2543. Part107.Position = Vector3.new(11, 5.50040197, -62)
  2544. Part107.Orientation = Vector3.new(0, -90, 90)
  2545. Part108.Parent = Model98
  2546. Part108.Rotation = Vector3.new(-180, 0, -180)
  2547. Part108.Anchored = true
  2548. Part108.FormFactor = Enum.FormFactor.Plate
  2549. Part108.Size = Vector3.new(1, 0.400000006, 3)
  2550. Part108.CFrame = CFrame.new(10, 7.00040197, -59, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2551. Part108.BottomSurface = Enum.SurfaceType.Smooth
  2552. Part108.TopSurface = Enum.SurfaceType.Smooth
  2553. Part108.Position = Vector3.new(10, 7.00040197, -59)
  2554. Part108.Orientation = Vector3.new(0, 180, 0)
  2555. Model109.Name = "Slots"
  2556. Model109.Parent = Model98
  2557. Model109.PrimaryPart = Part111
  2558. Part110.Name = "Digit3"
  2559. Part110.Parent = Model109
  2560. Part110.BrickColor = BrickColor.new("White")
  2561. Part110.Rotation = Vector3.new(180, 0, -90)
  2562. Part110.Anchored = true
  2563. Part110.FormFactor = Enum.FormFactor.Plate
  2564. Part110.Size = Vector3.new(3, 0.400000006, 1)
  2565. Part110.CFrame = CFrame.new(11.7000732, 4.70032454, -60, 1.30408662e-05, 1, 1.1105692e-06, 1, -1.08951317e-05, -9.55792802e-06, -1.52799494e-05, 1.9600875e-06, -1)
  2566. Part110.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2567. Part110.Position = Vector3.new(11.7000732, 4.70032454, -60)
  2568. Part110.Orientation = Vector3.new(0, 180, 90)
  2569. Part110.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2570. Part111.Name = "Light"
  2571. Part111.Parent = Model109
  2572. Part111.BrickColor = BrickColor.new("Bright red")
  2573. Part111.Transparency = 0.5
  2574. Part111.Rotation = Vector3.new(0, 0, 90)
  2575. Part111.Anchored = true
  2576. Part111.FormFactor = Enum.FormFactor.Symmetric
  2577. Part111.Shape = Enum.PartType.Cylinder
  2578. Part111.Size = Vector3.new(1, 1, 1)
  2579. Part111.CFrame = CFrame.new(10, 7.70040083, -59, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  2580. Part111.BottomSurface = Enum.SurfaceType.Smooth
  2581. Part111.RightSurface = Enum.SurfaceType.Weld
  2582. Part111.TopSurface = Enum.SurfaceType.Smooth
  2583. Part111.Color = Color3.new(0.768628, 0.156863, 0.109804)
  2584. Part111.Position = Vector3.new(10, 7.70040083, -59)
  2585. Part111.Orientation = Vector3.new(0, 0, 90)
  2586. Part111.Color = Color3.new(0.768628, 0.156863, 0.109804)
  2587. Part112.Name = "Digit1"
  2588. Part112.Parent = Model109
  2589. Part112.BrickColor = BrickColor.new("White")
  2590. Part112.Rotation = Vector3.new(-180, 0, -90)
  2591. Part112.Anchored = true
  2592. Part112.FormFactor = Enum.FormFactor.Plate
  2593. Part112.Size = Vector3.new(3, 0.400000006, 1)
  2594. Part112.CFrame = CFrame.new(11.6999969, 4.70039988, -58, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  2595. Part112.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2596. Part112.Position = Vector3.new(11.6999969, 4.70039988, -58)
  2597. Part112.Orientation = Vector3.new(0, 180, 90)
  2598. Part112.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2599. Part113.Name = "Digit2"
  2600. Part113.Parent = Model109
  2601. Part113.BrickColor = BrickColor.new("White")
  2602. Part113.Rotation = Vector3.new(0, 0, -90)
  2603. Part113.Anchored = true
  2604. Part113.FormFactor = Enum.FormFactor.Plate
  2605. Part113.Size = Vector3.new(3, 0.400000006, 1)
  2606. Part113.CFrame = CFrame.new(11.7000732, 4.70032454, -59, -1.30408662e-05, 1, -1.1105692e-06, -1, -1.08951317e-05, 9.55792802e-06, 1.52799494e-05, 1.9600875e-06, 1)
  2607. Part113.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2608. Part113.Position = Vector3.new(11.7000732, 4.70032454, -59)
  2609. Part113.Orientation = Vector3.new(0, 0, -90)
  2610. Part113.Color = Color3.new(0.94902, 0.952941, 0.952941)
  2611. Part114.Name = "Button"
  2612. Part114.Parent = Model109
  2613. Part114.BrickColor = BrickColor.new("Dark green")
  2614. Part114.Rotation = Vector3.new(180, 0, -90)
  2615. Part114.Anchored = true
  2616. Part114.FormFactor = Enum.FormFactor.Plate
  2617. Part114.Size = Vector3.new(1, 0.400000006, 1)
  2618. Part114.CFrame = CFrame.new(12.7000122, 1.50031233, -59, 1.30408662e-05, 1, 1.1105692e-06, 1, -1.08951317e-05, -9.55792802e-06, -1.52799494e-05, 1.9600875e-06, -1)
  2619. Part114.TopSurface = Enum.SurfaceType.Smooth
  2620. Part114.Color = Color3.new(0.156863, 0.498039, 0.278431)
  2621. Part114.Position = Vector3.new(12.7000122, 1.50031233, -59)
  2622. Part114.Orientation = Vector3.new(0, 180, 90)
  2623. Part114.Color = Color3.new(0.156863, 0.498039, 0.278431)
  2624. Script115.Parent = Part114
  2625. table.insert(cors,sandbox(Script115,function()
  2626. print("Hello world!")
  2627.  
  2628. end))
  2629. Script116.Name = "SlotGame"
  2630. Script116.Parent = Model109
  2631. table.insert(cors,sandbox(Script116,function()
  2632. amnt = 5 --COST TO PLAY
  2633. hold = false
  2634. bin = script.Parent
  2635.  
  2636. light = bin.Light
  2637. button = bin.Button
  2638. dig1 = bin.Digit1
  2639. dig2 = bin.Digit2
  2640. dig3 = bin.Digit3
  2641.  
  2642. color1 = 0
  2643. color2 = 0
  2644. color3 = 0
  2645. function Roll(cash)
  2646. for i=1, 10 do
  2647. --ROLL FIRST
  2648. color1 = math.random(0,10)
  2649. dig1.Color = GetColor(color1)
  2650. --ROLLSECOND
  2651. color2 = math.random(0,10)
  2652. dig2.Color = GetColor(color2)
  2653. --ROLL THIRD
  2654. color3 = math.random(0,10)
  2655. dig3.Color = GetColor(color3)
  2656. wait(0.1)
  2657. end
  2658. for i=1, 10 do
  2659. --ROLLSECOND
  2660. color2 = math.random(0,10)
  2661. dig2.Color = GetColor(color2)
  2662. --ROLL THIRD
  2663. color3 = math.random(0,10)
  2664. dig3.Color = GetColor(color3)
  2665. wait(0.1)
  2666. end
  2667. for i=1, 10 do
  2668. --ROLL THIRD
  2669. color3 = math.random(0,10)
  2670. dig3.Color = GetColor(color3)
  2671. wait(0.1)
  2672. end
  2673.  
  2674. if (color1==3 and color2==2 and color3==5) then
  2675. cash.Value=cash.Value+500
  2676. msg=Instance.new("Message")
  2677. msg.Parent= game.Workspace
  2678. msg.Text= "WINNER 500 CASH!!!"
  2679. light.Transparency= 0
  2680. wait(.5)
  2681. light.Transparency= .5
  2682. wait(.5)
  2683. light.Transparency= 0
  2684. wait(.5)
  2685. light.Transparency= .5
  2686. wait(.5)
  2687. light.Transparency= 0
  2688. wait(.5)
  2689. light.Transparency= .5
  2690. wait(.5)
  2691. light.Transparency= 0
  2692. wait(.5)
  2693. light.Transparency= .5
  2694. wait(.5)
  2695. light.Transparency= 0
  2696. wait(.5)
  2697. light.Transparency= .5
  2698. wait(.5)
  2699. msg:remove()
  2700. end
  2701. if (color1==color2 and color2==color3) then
  2702. cash.Value=cash.Value+1000
  2703. msg=Instance.new("Message")
  2704. msg.Parent= game.Workspace
  2705. msg.Text= "WINNER 1000 CASH!!!"
  2706. light.Transparency= 0
  2707. wait(.5)
  2708. light.Transparency= .5
  2709. wait(.5)
  2710. light.Transparency= 0
  2711. wait(.5)
  2712. light.Transparency= .5
  2713. wait(.5)
  2714. light.Transparency= 0
  2715. wait(.5)
  2716. light.Transparency= .5
  2717. wait(.5)
  2718. light.Transparency= 0
  2719. wait(.5)
  2720. light.Transparency= .5
  2721. wait(.5)
  2722. light.Transparency= 0
  2723. wait(.5)
  2724. light.Transparency= .5
  2725. wait(.5)
  2726. msg:remove()
  2727. end
  2728. if (color1==1 and color2==2 and color3==3) then
  2729. cash.Value=cash.Value+100
  2730. msg=Instance.new("Message")
  2731. msg.Parent= game.Workspace
  2732. msg.Text= "WINNER 100 CASH!!!"
  2733. light.Transparency= 0
  2734. wait(.5)
  2735. light.Transparency= .5
  2736. wait(.5)
  2737. light.Transparency= 0
  2738. wait(.5)
  2739. light.Transparency= .5
  2740. wait(.5)
  2741. light.Transparency= 0
  2742. wait(.5)
  2743. light.Transparency= .5
  2744. wait(.5)
  2745. light.Transparency= 0
  2746. wait(.5)
  2747. light.Transparency= .5
  2748. wait(.5)
  2749. light.Transparency= 0
  2750. wait(.5)
  2751. light.Transparency= .5
  2752. wait(.5)
  2753. msg:remove()
  2754. end
  2755. if (color1==0 and color2==10 and color3==5) then
  2756. cash.Value=cash.Value+50
  2757. msg=Instance.new("Message")
  2758. msg.Parent= game.Workspace
  2759. msg.Text= "WINNER 50 CASH!!!"
  2760. light.Transparency= 0
  2761. wait(.5)
  2762. light.Transparency= .5
  2763. wait(.5)
  2764. light.Transparency= 0
  2765. wait(.5)
  2766. light.Transparency= .5
  2767. wait(.5)
  2768. light.Transparency= 0
  2769. wait(.5)
  2770. light.Transparency= .5
  2771. wait(.5)
  2772. light.Transparency= 0
  2773. wait(.5)
  2774. light.Transparency= .5
  2775. wait(.5)
  2776. light.Transparency= 0
  2777. wait(.5)
  2778. light.Transparency= .5
  2779. wait(.5)
  2780. msg:remove()
  2781. end
  2782. if (color1==0 and color2==0 and color3==0) then
  2783. cash.Value=cash.Value+250
  2784. msg=Instance.new("Message")
  2785. msg.Parent= game.Workspace
  2786. msg.Text= "WINNER 250 CASH!!!"
  2787. light.Transparency= 0
  2788. wait(.5)
  2789. light.Transparency= .5
  2790. wait(.5)
  2791. light.Transparency= 0
  2792. wait(.5)
  2793. light.Transparency= .5
  2794. wait(.5)
  2795. light.Transparency= 0
  2796. wait(.5)
  2797. light.Transparency= .5
  2798. wait(.5)
  2799. light.Transparency= 0
  2800. wait(.5)
  2801. light.Transparency= .5
  2802. wait(.5)
  2803. light.Transparency= 0
  2804. wait(.5)
  2805. light.Transparency= .5
  2806. wait(.5)
  2807. msg:remove()
  2808. end
  2809. end
  2810.  
  2811. function GetColor(num)
  2812. if (num==0) then --Black
  2813. return Color3.new(0,0,0)
  2814. end
  2815. if (num==1) then --Grey
  2816. return Color3.new(.5,.5,.5)
  2817. end
  2818. if (num==2) then --White
  2819. return Color3.new(1,1,1)
  2820. end
  2821. if (num==3) then --Red
  2822. return Color3.new(1,0,0)
  2823. end
  2824. if (num==4) then --Green
  2825. return Color3.new(0,1,0)
  2826. end
  2827. if (num==5) then --Blue
  2828. return Color3.new(0,0,1)
  2829. end
  2830. return Color3.new(GetRand(),GetRand(),GetRand())
  2831. end
  2832.  
  2833. function GetRand()
  2834. return (math.random(1,10)/10)
  2835. end
  2836.  
  2837. function onTouched(part)
  2838. local h = part.Parent:findFirstChild("Humanoid")
  2839. if (h~=nil and hold==false) then
  2840. hold=true
  2841. button.Color = Color3.new(0,0,0)
  2842. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  2843. if (thisplr~=nil) then
  2844. local stats = thisplr:findFirstChild("leaderstats")
  2845. if (stats~=nil) then
  2846. local score = stats:findFirstChild("Cash")
  2847. if (score~=nil) then
  2848. if (score.Value >=amnt) then
  2849. score.Value = score.Value - amnt
  2850. Roll(score)
  2851. end
  2852. end
  2853. end
  2854. end
  2855. button.Color = Color3.new(0,1,0)
  2856. hold=false
  2857. end
  2858. end
  2859.  
  2860. button.Touched:connect(onTouched)
  2861. end))
  2862. Model117.Parent = Model0
  2863. Model117.PrimaryPart = Part119
  2864. Part118.Parent = Model117
  2865. Part118.BrickColor = BrickColor.new("Dark stone grey")
  2866. Part118.Rotation = Vector3.new(-180, 0, 180)
  2867. Part118.Anchored = true
  2868. Part118.FormFactor = Enum.FormFactor.Plate
  2869. Part118.Size = Vector3.new(1, 3.20000005, 1)
  2870. Part118.CFrame = CFrame.new(11.9999695, 4.80017805, -50, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
  2871. Part118.BackSurface = Enum.SurfaceType.Weld
  2872. Part118.FrontSurface = Enum.SurfaceType.Weld
  2873. Part118.LeftSurface = Enum.SurfaceType.Weld
  2874. Part118.TopSurface = Enum.SurfaceType.Smooth
  2875. Part118.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2876. Part118.Position = Vector3.new(11.9999695, 4.80017805, -50)
  2877. Part118.Orientation = Vector3.new(0, -180, 0)
  2878. Part118.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2879. Part119.Parent = Model117
  2880. Part119.BrickColor = BrickColor.new("Dark stone grey")
  2881. Part119.Rotation = Vector3.new(-180, 0, 180)
  2882. Part119.Anchored = true
  2883. Part119.FormFactor = Enum.FormFactor.Plate
  2884. Part119.Size = Vector3.new(4, 3.20000005, 5)
  2885. Part119.CFrame = CFrame.new(10.5, 1.60016394, -52, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
  2886. Part119.BackSurface = Enum.SurfaceType.Weld
  2887. Part119.FrontSurface = Enum.SurfaceType.Weld
  2888. Part119.LeftSurface = Enum.SurfaceType.Weld
  2889. Part119.RightSurface = Enum.SurfaceType.Weld
  2890. Part119.TopSurface = Enum.SurfaceType.Weld
  2891. Part119.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2892. Part119.Position = Vector3.new(10.5, 1.60016394, -52)
  2893. Part119.Orientation = Vector3.new(0, -180, 0)
  2894. Part119.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2895. Part120.Parent = Model117
  2896. Part120.BrickColor = BrickColor.new("Dark stone grey")
  2897. Part120.Rotation = Vector3.new(-180, 0, 180)
  2898. Part120.Anchored = true
  2899. Part120.FormFactor = Enum.FormFactor.Plate
  2900. Part120.Size = Vector3.new(3, 3.20000005, 5)
  2901. Part120.CFrame = CFrame.new(9.99996948, 4.80017805, -52, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
  2902. Part120.BackSurface = Enum.SurfaceType.Weld
  2903. Part120.FrontSurface = Enum.SurfaceType.Weld
  2904. Part120.LeftSurface = Enum.SurfaceType.Weld
  2905. Part120.RightSurface = Enum.SurfaceType.Weld
  2906. Part120.TopSurface = Enum.SurfaceType.Smooth
  2907. Part120.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2908. Part120.Position = Vector3.new(9.99996948, 4.80017805, -52)
  2909. Part120.Orientation = Vector3.new(0, -180, 0)
  2910. Part120.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2911. Part121.Parent = Model117
  2912. Part121.BrickColor = BrickColor.new("Dark stone grey")
  2913. Part121.Rotation = Vector3.new(-180, 0, -180)
  2914. Part121.Anchored = true
  2915. Part121.FormFactor = Enum.FormFactor.Plate
  2916. Part121.Size = Vector3.new(1, 3.20000005, 1)
  2917. Part121.CFrame = CFrame.new(12, 4.80040216, -54, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2918. Part121.BackSurface = Enum.SurfaceType.Weld
  2919. Part121.FrontSurface = Enum.SurfaceType.Weld
  2920. Part121.LeftSurface = Enum.SurfaceType.Weld
  2921. Part121.TopSurface = Enum.SurfaceType.Smooth
  2922. Part121.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2923. Part121.Position = Vector3.new(12, 4.80040216, -54)
  2924. Part121.Orientation = Vector3.new(0, 180, 0)
  2925. Part121.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2926. Part122.Parent = Model117
  2927. Part122.BrickColor = BrickColor.new("Dark stone grey")
  2928. Part122.Rotation = Vector3.new(-180, 0, -180)
  2929. Part122.Anchored = true
  2930. Part122.FormFactor = Enum.FormFactor.Plate
  2931. Part122.Size = Vector3.new(4, 0.400000006, 5)
  2932. Part122.CFrame = CFrame.new(10.5, 6.60039473, -52, -1, 0, 0, 0, 1, 0, 0, 0, -1)
  2933. Part122.BackSurface = Enum.SurfaceType.Weld
  2934. Part122.BottomSurface = Enum.SurfaceType.Weld
  2935. Part122.FrontSurface = Enum.SurfaceType.Weld
  2936. Part122.LeftSurface = Enum.SurfaceType.Weld
  2937. Part122.RightSurface = Enum.SurfaceType.Weld
  2938. Part122.TopSurface = Enum.SurfaceType.Weld
  2939. Part122.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2940. Part122.Position = Vector3.new(10.5, 6.60039473, -52)
  2941. Part122.Orientation = Vector3.new(0, 180, 0)
  2942. Part122.Color = Color3.new(0.388235, 0.372549, 0.384314)
  2943. Part123.Parent = Model117
  2944. Part123.Rotation = Vector3.new(-90, -90, 0)
  2945. Part123.Anchored = true
  2946. Part123.FormFactor = Enum.FormFactor.Symmetric
  2947. Part123.Shape = Enum.PartType.Ball
  2948. Part123.Size = Vector3.new(1, 1, 1)
  2949. Part123.CFrame = CFrame.new(10.999939, 6.50021791, -55, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
  2950. Part123.BottomSurface = Enum.SurfaceType.Smooth
  2951. Part123.TopSurface = Enum.SurfaceType.Smooth
  2952. Part123.Position = Vector3.new(10.999939, 6.50021791, -55)
  2953. Part123.Orientation = Vector3.new(0, -90, 90)
  2954. Part124.Parent = Model117
  2955. Part124.Rotation = Vector3.new(0, 90, 0)
  2956. Part124.Anchored = true
  2957. Part124.FormFactor = Enum.FormFactor.Symmetric
  2958. Part124.Shape = Enum.PartType.Cylinder
  2959. Part124.Size = Vector3.new(1, 1, 1)
  2960. Part124.CFrame = CFrame.new(10.9999695, 3.50020361, -55, -5.44383852e-07, -8.86863836e-06, 1, 9.55792802e-06, 1, 1.10143674e-05, -1, 3.83588122e-06, 3.04969149e-07)
  2961. Part124.BottomSurface = Enum.SurfaceType.Smooth
  2962. Part124.TopSurface = Enum.SurfaceType.Smooth
  2963. Part124.Position = Vector3.new(10.9999695, 3.50020361, -55)
  2964. Part124.Orientation = Vector3.new(0, 90, 0)
  2965. Part125.Parent = Model117
  2966. Part125.Rotation = Vector3.new(-90, -90, 0)
  2967. Part125.Anchored = true
  2968. Part125.FormFactor = Enum.FormFactor.Symmetric
  2969. Part125.Shape = Enum.PartType.Cylinder
  2970. Part125.Size = Vector3.new(1, 1, 1)
  2971. Part125.CFrame = CFrame.new(10.9999695, 4.50021791, -55, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
  2972. Part125.BottomSurface = Enum.SurfaceType.Smooth
  2973. Part125.TopSurface = Enum.SurfaceType.Smooth
  2974. Part125.Position = Vector3.new(10.9999695, 4.50021791, -55)
  2975. Part125.Orientation = Vector3.new(0, -90, 90)
  2976. Part126.Parent = Model117
  2977. Part126.Rotation = Vector3.new(-90, -90, 0)
  2978. Part126.Anchored = true
  2979. Part126.FormFactor = Enum.FormFactor.Symmetric
  2980. Part126.Shape = Enum.PartType.Cylinder
  2981. Part126.Size = Vector3.new(1, 1, 1)
  2982. Part126.CFrame = CFrame.new(10.999939, 5.50020456, -55, -8.86863836e-06, -5.44383852e-07, -1, 1, 9.55792802e-06, -1.10143674e-05, 3.83588122e-06, -1, -3.04969149e-07)
  2983. Part126.BottomSurface = Enum.SurfaceType.Smooth
  2984. Part126.TopSurface = Enum.SurfaceType.Smooth
  2985. Part126.Position = Vector3.new(10.999939, 5.50020456, -55)
  2986. Part126.Orientation = Vector3.new(0, -90, 90)
  2987. Part127.Parent = Model117
  2988. Part127.Rotation = Vector3.new(-180, 0, 180)
  2989. Part127.Anchored = true
  2990. Part127.FormFactor = Enum.FormFactor.Plate
  2991. Part127.Size = Vector3.new(1, 0.400000006, 3)
  2992. Part127.CFrame = CFrame.new(9.99993896, 7.00017881, -52, -1, -8.86863836e-06, -5.44383852e-07, -1.10143674e-05, 1, 9.55792802e-06, -3.04969149e-07, 3.83588122e-06, -1)
  2993. Part127.BottomSurface = Enum.SurfaceType.Smooth
  2994. Part127.TopSurface = Enum.SurfaceType.Smooth
  2995. Part127.Position = Vector3.new(9.99993896, 7.00017881, -52)
  2996. Part127.Orientation = Vector3.new(0, -180, 0)
  2997. Model128.Name = "Slots"
  2998. Model128.Parent = Model117
  2999. Model128.PrimaryPart = Part130
  3000. Part129.Name = "Digit3"
  3001. Part129.Parent = Model128
  3002. Part129.BrickColor = BrickColor.new("White")
  3003. Part129.Rotation = Vector3.new(-180, 0, -90)
  3004. Part129.Anchored = true
  3005. Part129.FormFactor = Enum.FormFactor.Plate
  3006. Part129.Size = Vector3.new(3, 0.400000006, 1)
  3007. Part129.CFrame = CFrame.new(11.6999969, 4.70039988, -53, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  3008. Part129.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3009. Part129.Position = Vector3.new(11.6999969, 4.70039988, -53)
  3010. Part129.Orientation = Vector3.new(0, 180, 90)
  3011. Part129.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3012. Part130.Name = "Light"
  3013. Part130.Parent = Model128
  3014. Part130.BrickColor = BrickColor.new("Bright red")
  3015. Part130.Transparency = 0.5
  3016. Part130.Rotation = Vector3.new(0, 0, 90)
  3017. Part130.Anchored = true
  3018. Part130.FormFactor = Enum.FormFactor.Symmetric
  3019. Part130.Shape = Enum.PartType.Cylinder
  3020. Part130.Size = Vector3.new(1, 1, 1)
  3021. Part130.CFrame = CFrame.new(9.99993896, 7.70017576, -52, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  3022. Part130.BottomSurface = Enum.SurfaceType.Smooth
  3023. Part130.RightSurface = Enum.SurfaceType.Weld
  3024. Part130.TopSurface = Enum.SurfaceType.Smooth
  3025. Part130.Color = Color3.new(0.768628, 0.156863, 0.109804)
  3026. Part130.Position = Vector3.new(9.99993896, 7.70017576, -52)
  3027. Part130.Orientation = Vector3.new(0, 0, 90)
  3028. Part130.Color = Color3.new(0.768628, 0.156863, 0.109804)
  3029. Part131.Name = "Digit1"
  3030. Part131.Parent = Model128
  3031. Part131.BrickColor = BrickColor.new("White")
  3032. Part131.Rotation = Vector3.new(-180, 0, -90)
  3033. Part131.Anchored = true
  3034. Part131.FormFactor = Enum.FormFactor.Plate
  3035. Part131.Size = Vector3.new(3, 0.400000006, 1)
  3036. Part131.CFrame = CFrame.new(11.6999512, 4.70018625, -51, -8.86863836e-06, 1, -5.44383852e-07, 1, 1.10143674e-05, 9.55792802e-06, 3.83588122e-06, 3.04969149e-07, -1)
  3037. Part131.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3038. Part131.Position = Vector3.new(11.6999512, 4.70018625, -51)
  3039. Part131.Orientation = Vector3.new(0, -180, 90)
  3040. Part131.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3041. Part132.Name = "Digit2"
  3042. Part132.Parent = Model128
  3043. Part132.BrickColor = BrickColor.new("White")
  3044. Part132.Rotation = Vector3.new(0, 0, -90)
  3045. Part132.Anchored = true
  3046. Part132.FormFactor = Enum.FormFactor.Plate
  3047. Part132.Size = Vector3.new(3, 0.400000006, 1)
  3048. Part132.CFrame = CFrame.new(11.6999969, 4.70039988, -52, 0, 1, 0, -1, 0, 0, 0, 0, 1)
  3049. Part132.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3050. Part132.Position = Vector3.new(11.6999969, 4.70039988, -52)
  3051. Part132.Orientation = Vector3.new(0, 0, -90)
  3052. Part132.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3053. Part133.Name = "Button"
  3054. Part133.Parent = Model128
  3055. Part133.BrickColor = BrickColor.new("Dark green")
  3056. Part133.Rotation = Vector3.new(-180, 0, -90)
  3057. Part133.Anchored = true
  3058. Part133.FormFactor = Enum.FormFactor.Plate
  3059. Part133.Size = Vector3.new(1, 0.400000006, 1)
  3060. Part133.CFrame = CFrame.new(12.6999969, 1.50040197, -52, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  3061. Part133.TopSurface = Enum.SurfaceType.Smooth
  3062. Part133.Color = Color3.new(0.156863, 0.498039, 0.278431)
  3063. Part133.Position = Vector3.new(12.6999969, 1.50040197, -52)
  3064. Part133.Orientation = Vector3.new(0, 180, 90)
  3065. Part133.Color = Color3.new(0.156863, 0.498039, 0.278431)
  3066. Script134.Parent = Part133
  3067. table.insert(cors,sandbox(Script134,function()
  3068. print("Hello world!")
  3069.  
  3070. end))
  3071. Script135.Name = "SlotGame"
  3072. Script135.Parent = Model128
  3073. table.insert(cors,sandbox(Script135,function()
  3074. amnt = 5 --COST TO PLAY
  3075. hold = false
  3076. bin = script.Parent
  3077.  
  3078. light = bin.Light
  3079. button = bin.Button
  3080. dig1 = bin.Digit1
  3081. dig2 = bin.Digit2
  3082. dig3 = bin.Digit3
  3083.  
  3084. color1 = 0
  3085. color2 = 0
  3086. color3 = 0
  3087. function Roll(cash)
  3088. for i=1, 10 do
  3089. --ROLL FIRST
  3090. color1 = math.random(0,10)
  3091. dig1.Color = GetColor(color1)
  3092. --ROLLSECOND
  3093. color2 = math.random(0,10)
  3094. dig2.Color = GetColor(color2)
  3095. --ROLL THIRD
  3096. color3 = math.random(0,10)
  3097. dig3.Color = GetColor(color3)
  3098. wait(0.1)
  3099. end
  3100. for i=1, 10 do
  3101. --ROLLSECOND
  3102. color2 = math.random(0,10)
  3103. dig2.Color = GetColor(color2)
  3104. --ROLL THIRD
  3105. color3 = math.random(0,10)
  3106. dig3.Color = GetColor(color3)
  3107. wait(0.1)
  3108. end
  3109. for i=1, 10 do
  3110. --ROLL THIRD
  3111. color3 = math.random(0,10)
  3112. dig3.Color = GetColor(color3)
  3113. wait(0.1)
  3114. end
  3115.  
  3116. if (color1==3 and color2==2 and color3==5) then
  3117. cash.Value=cash.Value+500
  3118. msg=Instance.new("Message")
  3119. msg.Parent= game.Workspace
  3120. msg.Text= "WINNER 500 CASH!!!"
  3121. light.Transparency= 0
  3122. wait(.5)
  3123. light.Transparency= .5
  3124. wait(.5)
  3125. light.Transparency= 0
  3126. wait(.5)
  3127. light.Transparency= .5
  3128. wait(.5)
  3129. light.Transparency= 0
  3130. wait(.5)
  3131. light.Transparency= .5
  3132. wait(.5)
  3133. light.Transparency= 0
  3134. wait(.5)
  3135. light.Transparency= .5
  3136. wait(.5)
  3137. light.Transparency= 0
  3138. wait(.5)
  3139. light.Transparency= .5
  3140. wait(.5)
  3141. msg:remove()
  3142. end
  3143. if (color1==color2 and color2==color3) then
  3144. cash.Value=cash.Value+1000
  3145. msg=Instance.new("Message")
  3146. msg.Parent= game.Workspace
  3147. msg.Text= "WINNER 1000 CASH!!!"
  3148. light.Transparency= 0
  3149. wait(.5)
  3150. light.Transparency= .5
  3151. wait(.5)
  3152. light.Transparency= 0
  3153. wait(.5)
  3154. light.Transparency= .5
  3155. wait(.5)
  3156. light.Transparency= 0
  3157. wait(.5)
  3158. light.Transparency= .5
  3159. wait(.5)
  3160. light.Transparency= 0
  3161. wait(.5)
  3162. light.Transparency= .5
  3163. wait(.5)
  3164. light.Transparency= 0
  3165. wait(.5)
  3166. light.Transparency= .5
  3167. wait(.5)
  3168. msg:remove()
  3169. end
  3170. if (color1==1 and color2==2 and color3==3) then
  3171. cash.Value=cash.Value+100
  3172. msg=Instance.new("Message")
  3173. msg.Parent= game.Workspace
  3174. msg.Text= "WINNER 100 CASH!!!"
  3175. light.Transparency= 0
  3176. wait(.5)
  3177. light.Transparency= .5
  3178. wait(.5)
  3179. light.Transparency= 0
  3180. wait(.5)
  3181. light.Transparency= .5
  3182. wait(.5)
  3183. light.Transparency= 0
  3184. wait(.5)
  3185. light.Transparency= .5
  3186. wait(.5)
  3187. light.Transparency= 0
  3188. wait(.5)
  3189. light.Transparency= .5
  3190. wait(.5)
  3191. light.Transparency= 0
  3192. wait(.5)
  3193. light.Transparency= .5
  3194. wait(.5)
  3195. msg:remove()
  3196. end
  3197. if (color1==0 and color2==10 and color3==5) then
  3198. cash.Value=cash.Value+50
  3199. msg=Instance.new("Message")
  3200. msg.Parent= game.Workspace
  3201. msg.Text= "WINNER 50 CASH!!!"
  3202. light.Transparency= 0
  3203. wait(.5)
  3204. light.Transparency= .5
  3205. wait(.5)
  3206. light.Transparency= 0
  3207. wait(.5)
  3208. light.Transparency= .5
  3209. wait(.5)
  3210. light.Transparency= 0
  3211. wait(.5)
  3212. light.Transparency= .5
  3213. wait(.5)
  3214. light.Transparency= 0
  3215. wait(.5)
  3216. light.Transparency= .5
  3217. wait(.5)
  3218. light.Transparency= 0
  3219. wait(.5)
  3220. light.Transparency= .5
  3221. wait(.5)
  3222. msg:remove()
  3223. end
  3224. if (color1==0 and color2==0 and color3==0) then
  3225. cash.Value=cash.Value+250
  3226. msg=Instance.new("Message")
  3227. msg.Parent= game.Workspace
  3228. msg.Text= "WINNER 250 CASH!!!"
  3229. light.Transparency= 0
  3230. wait(.5)
  3231. light.Transparency= .5
  3232. wait(.5)
  3233. light.Transparency= 0
  3234. wait(.5)
  3235. light.Transparency= .5
  3236. wait(.5)
  3237. light.Transparency= 0
  3238. wait(.5)
  3239. light.Transparency= .5
  3240. wait(.5)
  3241. light.Transparency= 0
  3242. wait(.5)
  3243. light.Transparency= .5
  3244. wait(.5)
  3245. light.Transparency= 0
  3246. wait(.5)
  3247. light.Transparency= .5
  3248. wait(.5)
  3249. msg:remove()
  3250. end
  3251. end
  3252.  
  3253. function GetColor(num)
  3254. if (num==0) then --Black
  3255. return Color3.new(0,0,0)
  3256. end
  3257. if (num==1) then --Grey
  3258. return Color3.new(.5,.5,.5)
  3259. end
  3260. if (num==2) then --White
  3261. return Color3.new(1,1,1)
  3262. end
  3263. if (num==3) then --Red
  3264. return Color3.new(1,0,0)
  3265. end
  3266. if (num==4) then --Green
  3267. return Color3.new(0,1,0)
  3268. end
  3269. if (num==5) then --Blue
  3270. return Color3.new(0,0,1)
  3271. end
  3272. return Color3.new(GetRand(),GetRand(),GetRand())
  3273. end
  3274.  
  3275. function GetRand()
  3276. return (math.random(1,10)/10)
  3277. end
  3278.  
  3279. function onTouched(part)
  3280. local h = part.Parent:findFirstChild("Humanoid")
  3281. if (h~=nil and hold==false) then
  3282. hold=true
  3283. button.Color = Color3.new(0,0,0)
  3284. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  3285. if (thisplr~=nil) then
  3286. local stats = thisplr:findFirstChild("leaderstats")
  3287. if (stats~=nil) then
  3288. local score = stats:findFirstChild("Cash")
  3289. if (score~=nil) then
  3290. if (score.Value >=amnt) then
  3291. score.Value = score.Value - amnt
  3292. Roll(score)
  3293. end
  3294. end
  3295. end
  3296. end
  3297. button.Color = Color3.new(0,1,0)
  3298. hold=false
  3299. end
  3300. end
  3301.  
  3302. button.Touched:connect(onTouched)
  3303. end))
  3304. Model136.Parent = Model0
  3305. Model136.PrimaryPart = Part138
  3306. Part137.Parent = Model136
  3307. Part137.BrickColor = BrickColor.new("Dark stone grey")
  3308. Part137.Anchored = true
  3309. Part137.FormFactor = Enum.FormFactor.Plate
  3310. Part137.Size = Vector3.new(1, 3.20000005, 1)
  3311. Part137.CFrame = CFrame.new(0, 4.80040216, -61, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3312. Part137.BackSurface = Enum.SurfaceType.Weld
  3313. Part137.FrontSurface = Enum.SurfaceType.Weld
  3314. Part137.LeftSurface = Enum.SurfaceType.Weld
  3315. Part137.TopSurface = Enum.SurfaceType.Smooth
  3316. Part137.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3317. Part137.Position = Vector3.new(0, 4.80040216, -61)
  3318. Part137.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3319. Part138.Parent = Model136
  3320. Part138.BrickColor = BrickColor.new("Dark stone grey")
  3321. Part138.Anchored = true
  3322. Part138.FormFactor = Enum.FormFactor.Plate
  3323. Part138.Size = Vector3.new(4, 3.20000005, 5)
  3324. Part138.CFrame = CFrame.new(1.5, 1.60039473, -59, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3325. Part138.BackSurface = Enum.SurfaceType.Weld
  3326. Part138.FrontSurface = Enum.SurfaceType.Weld
  3327. Part138.LeftSurface = Enum.SurfaceType.Weld
  3328. Part138.RightSurface = Enum.SurfaceType.Weld
  3329. Part138.TopSurface = Enum.SurfaceType.Weld
  3330. Part138.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3331. Part138.Position = Vector3.new(1.5, 1.60039473, -59)
  3332. Part138.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3333. Part139.Parent = Model136
  3334. Part139.BrickColor = BrickColor.new("Dark stone grey")
  3335. Part139.Anchored = true
  3336. Part139.FormFactor = Enum.FormFactor.Plate
  3337. Part139.Size = Vector3.new(3, 3.20000005, 5)
  3338. Part139.CFrame = CFrame.new(2, 4.80040216, -59, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3339. Part139.BackSurface = Enum.SurfaceType.Weld
  3340. Part139.FrontSurface = Enum.SurfaceType.Weld
  3341. Part139.LeftSurface = Enum.SurfaceType.Weld
  3342. Part139.RightSurface = Enum.SurfaceType.Weld
  3343. Part139.TopSurface = Enum.SurfaceType.Smooth
  3344. Part139.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3345. Part139.Position = Vector3.new(2, 4.80040216, -59)
  3346. Part139.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3347. Part140.Parent = Model136
  3348. Part140.BrickColor = BrickColor.new("Dark stone grey")
  3349. Part140.Anchored = true
  3350. Part140.FormFactor = Enum.FormFactor.Plate
  3351. Part140.Size = Vector3.new(1, 3.20000005, 1)
  3352. Part140.CFrame = CFrame.new(-3.05175781e-05, 4.80011415, -57, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  3353. Part140.BackSurface = Enum.SurfaceType.Weld
  3354. Part140.FrontSurface = Enum.SurfaceType.Weld
  3355. Part140.LeftSurface = Enum.SurfaceType.Weld
  3356. Part140.TopSurface = Enum.SurfaceType.Smooth
  3357. Part140.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3358. Part140.Position = Vector3.new(-3.05175781e-05, 4.80011415, -57)
  3359. Part140.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3360. Part141.Parent = Model136
  3361. Part141.BrickColor = BrickColor.new("Dark stone grey")
  3362. Part141.Anchored = true
  3363. Part141.FormFactor = Enum.FormFactor.Plate
  3364. Part141.Size = Vector3.new(4, 0.400000006, 5)
  3365. Part141.CFrame = CFrame.new(1.49993896, 6.60015059, -59, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  3366. Part141.BackSurface = Enum.SurfaceType.Weld
  3367. Part141.BottomSurface = Enum.SurfaceType.Weld
  3368. Part141.FrontSurface = Enum.SurfaceType.Weld
  3369. Part141.LeftSurface = Enum.SurfaceType.Weld
  3370. Part141.RightSurface = Enum.SurfaceType.Weld
  3371. Part141.TopSurface = Enum.SurfaceType.Weld
  3372. Part141.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3373. Part141.Position = Vector3.new(1.49993896, 6.60015059, -59)
  3374. Part141.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3375. Part142.Parent = Model136
  3376. Part142.Rotation = Vector3.new(90, 90, 0)
  3377. Part142.Anchored = true
  3378. Part142.FormFactor = Enum.FormFactor.Symmetric
  3379. Part142.Shape = Enum.PartType.Ball
  3380. Part142.Size = Vector3.new(1, 1, 1)
  3381. Part142.CFrame = CFrame.new(1, 6.50040197, -56, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  3382. Part142.BottomSurface = Enum.SurfaceType.Smooth
  3383. Part142.TopSurface = Enum.SurfaceType.Smooth
  3384. Part142.Position = Vector3.new(1, 6.50040197, -56)
  3385. Part142.Orientation = Vector3.new(0, 90, 90)
  3386. Part143.Parent = Model136
  3387. Part143.Rotation = Vector3.new(0, -90, 0)
  3388. Part143.Anchored = true
  3389. Part143.FormFactor = Enum.FormFactor.Symmetric
  3390. Part143.Shape = Enum.PartType.Cylinder
  3391. Part143.Size = Vector3.new(1, 1, 1)
  3392. Part143.CFrame = CFrame.new(1, 3.50040197, -56, 0, 0, -1, 0, 1, 0, 1, 0, 0)
  3393. Part143.BottomSurface = Enum.SurfaceType.Smooth
  3394. Part143.TopSurface = Enum.SurfaceType.Smooth
  3395. Part143.Position = Vector3.new(1, 3.50040197, -56)
  3396. Part143.Orientation = Vector3.new(0, -90, 0)
  3397. Part144.Parent = Model136
  3398. Part144.Rotation = Vector3.new(90, 90, 0)
  3399. Part144.Anchored = true
  3400. Part144.FormFactor = Enum.FormFactor.Symmetric
  3401. Part144.Shape = Enum.PartType.Cylinder
  3402. Part144.Size = Vector3.new(1, 1, 1)
  3403. Part144.CFrame = CFrame.new(1, 4.50040197, -56, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  3404. Part144.BottomSurface = Enum.SurfaceType.Smooth
  3405. Part144.TopSurface = Enum.SurfaceType.Smooth
  3406. Part144.Position = Vector3.new(1, 4.50040197, -56)
  3407. Part144.Orientation = Vector3.new(0, 90, 90)
  3408. Part145.Parent = Model136
  3409. Part145.Rotation = Vector3.new(90, 90, 0)
  3410. Part145.Anchored = true
  3411. Part145.FormFactor = Enum.FormFactor.Symmetric
  3412. Part145.Shape = Enum.PartType.Cylinder
  3413. Part145.Size = Vector3.new(1, 1, 1)
  3414. Part145.CFrame = CFrame.new(1, 5.50040197, -56, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  3415. Part145.BottomSurface = Enum.SurfaceType.Smooth
  3416. Part145.TopSurface = Enum.SurfaceType.Smooth
  3417. Part145.Position = Vector3.new(1, 5.50040197, -56)
  3418. Part145.Orientation = Vector3.new(0, 90, 90)
  3419. Part146.Parent = Model136
  3420. Part146.Anchored = true
  3421. Part146.FormFactor = Enum.FormFactor.Plate
  3422. Part146.Size = Vector3.new(1, 0.400000006, 3)
  3423. Part146.CFrame = CFrame.new(2, 7.00040197, -59, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  3424. Part146.BottomSurface = Enum.SurfaceType.Smooth
  3425. Part146.TopSurface = Enum.SurfaceType.Smooth
  3426. Part146.Position = Vector3.new(2, 7.00040197, -59)
  3427. Model147.Name = "Slots"
  3428. Model147.Parent = Model136
  3429. Model147.PrimaryPart = Part149
  3430. Part148.Name = "Digit3"
  3431. Part148.Parent = Model147
  3432. Part148.BrickColor = BrickColor.new("White")
  3433. Part148.Rotation = Vector3.new(0, 0, 90)
  3434. Part148.Anchored = true
  3435. Part148.FormFactor = Enum.FormFactor.Plate
  3436. Part148.Size = Vector3.new(3, 0.400000006, 1)
  3437. Part148.CFrame = CFrame.new(0.299987793, 4.70012426, -58, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  3438. Part148.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3439. Part148.Position = Vector3.new(0.299987793, 4.70012426, -58)
  3440. Part148.Orientation = Vector3.new(0, 0, 90)
  3441. Part148.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3442. Part149.Name = "Light"
  3443. Part149.Parent = Model147
  3444. Part149.BrickColor = BrickColor.new("Bright red")
  3445. Part149.Transparency = 0.5
  3446. Part149.Rotation = Vector3.new(-180, 0, -90)
  3447. Part149.Anchored = true
  3448. Part149.FormFactor = Enum.FormFactor.Symmetric
  3449. Part149.Shape = Enum.PartType.Cylinder
  3450. Part149.Size = Vector3.new(1, 1, 1)
  3451. Part149.CFrame = CFrame.new(2, 7.70040083, -59, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  3452. Part149.BottomSurface = Enum.SurfaceType.Smooth
  3453. Part149.RightSurface = Enum.SurfaceType.Weld
  3454. Part149.TopSurface = Enum.SurfaceType.Smooth
  3455. Part149.Color = Color3.new(0.768628, 0.156863, 0.109804)
  3456. Part149.Position = Vector3.new(2, 7.70040083, -59)
  3457. Part149.Orientation = Vector3.new(0, 180, 90)
  3458. Part149.Color = Color3.new(0.768628, 0.156863, 0.109804)
  3459. Part150.Name = "Digit1"
  3460. Part150.Parent = Model147
  3461. Part150.BrickColor = BrickColor.new("White")
  3462. Part150.Rotation = Vector3.new(0, 0, 90)
  3463. Part150.Anchored = true
  3464. Part150.FormFactor = Enum.FormFactor.Plate
  3465. Part150.Size = Vector3.new(3, 0.400000006, 1)
  3466. Part150.CFrame = CFrame.new(0.300003052, 4.70039988, -60, 0, -1, 0, 1, 0, 0, 0, 0, 1)
  3467. Part150.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3468. Part150.Position = Vector3.new(0.300003052, 4.70039988, -60)
  3469. Part150.Orientation = Vector3.new(0, 0, 90)
  3470. Part150.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3471. Part151.Name = "Digit2"
  3472. Part151.Parent = Model147
  3473. Part151.BrickColor = BrickColor.new("White")
  3474. Part151.Rotation = Vector3.new(-180, 0, 90)
  3475. Part151.Anchored = true
  3476. Part151.FormFactor = Enum.FormFactor.Plate
  3477. Part151.Size = Vector3.new(3, 0.400000006, 1)
  3478. Part151.CFrame = CFrame.new(0.299957275, 4.70013857, -59, 8.86863836e-06, -1, -5.44383852e-07, -1, -1.10143674e-05, 9.55792802e-06, -3.83588122e-06, -3.04969149e-07, -1)
  3479. Part151.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3480. Part151.Position = Vector3.new(0.299957275, 4.70013857, -59)
  3481. Part151.Orientation = Vector3.new(0, -180, -90)
  3482. Part151.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3483. Part152.Name = "Button"
  3484. Part152.Parent = Model147
  3485. Part152.BrickColor = BrickColor.new("Dark green")
  3486. Part152.Rotation = Vector3.new(0, 0, 90)
  3487. Part152.Anchored = true
  3488. Part152.FormFactor = Enum.FormFactor.Plate
  3489. Part152.Size = Vector3.new(1, 0.400000006, 1)
  3490. Part152.CFrame = CFrame.new(-0.700012207, 1.50009871, -59, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  3491. Part152.TopSurface = Enum.SurfaceType.Smooth
  3492. Part152.Color = Color3.new(0.156863, 0.498039, 0.278431)
  3493. Part152.Position = Vector3.new(-0.700012207, 1.50009871, -59)
  3494. Part152.Orientation = Vector3.new(0, 0, 90)
  3495. Part152.Color = Color3.new(0.156863, 0.498039, 0.278431)
  3496. Script153.Parent = Part152
  3497. table.insert(cors,sandbox(Script153,function()
  3498. print("Hello world!")
  3499.  
  3500. end))
  3501. Script154.Name = "SlotGame"
  3502. Script154.Parent = Model147
  3503. table.insert(cors,sandbox(Script154,function()
  3504. amnt = 5 --COST TO PLAY
  3505. hold = false
  3506. bin = script.Parent
  3507.  
  3508. light = bin.Light
  3509. button = bin.Button
  3510. dig1 = bin.Digit1
  3511. dig2 = bin.Digit2
  3512. dig3 = bin.Digit3
  3513.  
  3514. color1 = 0
  3515. color2 = 0
  3516. color3 = 0
  3517. function Roll(cash)
  3518. for i=1, 10 do
  3519. --ROLL FIRST
  3520. color1 = math.random(0,10)
  3521. dig1.Color = GetColor(color1)
  3522. --ROLLSECOND
  3523. color2 = math.random(0,10)
  3524. dig2.Color = GetColor(color2)
  3525. --ROLL THIRD
  3526. color3 = math.random(0,10)
  3527. dig3.Color = GetColor(color3)
  3528. wait(0.1)
  3529. end
  3530. for i=1, 10 do
  3531. --ROLLSECOND
  3532. color2 = math.random(0,10)
  3533. dig2.Color = GetColor(color2)
  3534. --ROLL THIRD
  3535. color3 = math.random(0,10)
  3536. dig3.Color = GetColor(color3)
  3537. wait(0.1)
  3538. end
  3539. for i=1, 10 do
  3540. --ROLL THIRD
  3541. color3 = math.random(0,10)
  3542. dig3.Color = GetColor(color3)
  3543. wait(0.1)
  3544. end
  3545.  
  3546. if (color1==3 and color2==2 and color3==5) then
  3547. cash.Value=cash.Value+500
  3548. msg=Instance.new("Message")
  3549. msg.Parent= game.Workspace
  3550. msg.Text= "WINNER 500 CASH!!!"
  3551. light.Transparency= 0
  3552. wait(.5)
  3553. light.Transparency= .5
  3554. wait(.5)
  3555. light.Transparency= 0
  3556. wait(.5)
  3557. light.Transparency= .5
  3558. wait(.5)
  3559. light.Transparency= 0
  3560. wait(.5)
  3561. light.Transparency= .5
  3562. wait(.5)
  3563. light.Transparency= 0
  3564. wait(.5)
  3565. light.Transparency= .5
  3566. wait(.5)
  3567. light.Transparency= 0
  3568. wait(.5)
  3569. light.Transparency= .5
  3570. wait(.5)
  3571. msg:remove()
  3572. end
  3573. if (color1==color2 and color2==color3) then
  3574. cash.Value=cash.Value+1000
  3575. msg=Instance.new("Message")
  3576. msg.Parent= game.Workspace
  3577. msg.Text= "WINNER 1000 CASH!!!"
  3578. light.Transparency= 0
  3579. wait(.5)
  3580. light.Transparency= .5
  3581. wait(.5)
  3582. light.Transparency= 0
  3583. wait(.5)
  3584. light.Transparency= .5
  3585. wait(.5)
  3586. light.Transparency= 0
  3587. wait(.5)
  3588. light.Transparency= .5
  3589. wait(.5)
  3590. light.Transparency= 0
  3591. wait(.5)
  3592. light.Transparency= .5
  3593. wait(.5)
  3594. light.Transparency= 0
  3595. wait(.5)
  3596. light.Transparency= .5
  3597. wait(.5)
  3598. msg:remove()
  3599. end
  3600. if (color1==1 and color2==2 and color3==3) then
  3601. cash.Value=cash.Value+100
  3602. msg=Instance.new("Message")
  3603. msg.Parent= game.Workspace
  3604. msg.Text= "WINNER 100 CASH!!!"
  3605. light.Transparency= 0
  3606. wait(.5)
  3607. light.Transparency= .5
  3608. wait(.5)
  3609. light.Transparency= 0
  3610. wait(.5)
  3611. light.Transparency= .5
  3612. wait(.5)
  3613. light.Transparency= 0
  3614. wait(.5)
  3615. light.Transparency= .5
  3616. wait(.5)
  3617. light.Transparency= 0
  3618. wait(.5)
  3619. light.Transparency= .5
  3620. wait(.5)
  3621. light.Transparency= 0
  3622. wait(.5)
  3623. light.Transparency= .5
  3624. wait(.5)
  3625. msg:remove()
  3626. end
  3627. if (color1==0 and color2==10 and color3==5) then
  3628. cash.Value=cash.Value+50
  3629. msg=Instance.new("Message")
  3630. msg.Parent= game.Workspace
  3631. msg.Text= "WINNER 50 CASH!!!"
  3632. light.Transparency= 0
  3633. wait(.5)
  3634. light.Transparency= .5
  3635. wait(.5)
  3636. light.Transparency= 0
  3637. wait(.5)
  3638. light.Transparency= .5
  3639. wait(.5)
  3640. light.Transparency= 0
  3641. wait(.5)
  3642. light.Transparency= .5
  3643. wait(.5)
  3644. light.Transparency= 0
  3645. wait(.5)
  3646. light.Transparency= .5
  3647. wait(.5)
  3648. light.Transparency= 0
  3649. wait(.5)
  3650. light.Transparency= .5
  3651. wait(.5)
  3652. msg:remove()
  3653. end
  3654. if (color1==0 and color2==0 and color3==0) then
  3655. cash.Value=cash.Value+250
  3656. msg=Instance.new("Message")
  3657. msg.Parent= game.Workspace
  3658. msg.Text= "WINNER 250 CASH!!!"
  3659. light.Transparency= 0
  3660. wait(.5)
  3661. light.Transparency= .5
  3662. wait(.5)
  3663. light.Transparency= 0
  3664. wait(.5)
  3665. light.Transparency= .5
  3666. wait(.5)
  3667. light.Transparency= 0
  3668. wait(.5)
  3669. light.Transparency= .5
  3670. wait(.5)
  3671. light.Transparency= 0
  3672. wait(.5)
  3673. light.Transparency= .5
  3674. wait(.5)
  3675. light.Transparency= 0
  3676. wait(.5)
  3677. light.Transparency= .5
  3678. wait(.5)
  3679. msg:remove()
  3680. end
  3681. end
  3682.  
  3683. function GetColor(num)
  3684. if (num==0) then --Black
  3685. return Color3.new(0,0,0)
  3686. end
  3687. if (num==1) then --Grey
  3688. return Color3.new(.5,.5,.5)
  3689. end
  3690. if (num==2) then --White
  3691. return Color3.new(1,1,1)
  3692. end
  3693. if (num==3) then --Red
  3694. return Color3.new(1,0,0)
  3695. end
  3696. if (num==4) then --Green
  3697. return Color3.new(0,1,0)
  3698. end
  3699. if (num==5) then --Blue
  3700. return Color3.new(0,0,1)
  3701. end
  3702. return Color3.new(GetRand(),GetRand(),GetRand())
  3703. end
  3704.  
  3705. function GetRand()
  3706. return (math.random(1,10)/10)
  3707. end
  3708.  
  3709. function onTouched(part)
  3710. local h = part.Parent:findFirstChild("Humanoid")
  3711. if (h~=nil and hold==false) then
  3712. hold=true
  3713. button.Color = Color3.new(0,0,0)
  3714. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  3715. if (thisplr~=nil) then
  3716. local stats = thisplr:findFirstChild("leaderstats")
  3717. if (stats~=nil) then
  3718. local score = stats:findFirstChild("Cash")
  3719. if (score~=nil) then
  3720. if (score.Value >=amnt) then
  3721. score.Value = score.Value - amnt
  3722. Roll(score)
  3723. end
  3724. end
  3725. end
  3726. end
  3727. button.Color = Color3.new(0,1,0)
  3728. hold=false
  3729. end
  3730. end
  3731.  
  3732. button.Touched:connect(onTouched)
  3733. end))
  3734. Model155.Parent = Model0
  3735. Model155.PrimaryPart = Part157
  3736. Part156.Parent = Model155
  3737. Part156.BrickColor = BrickColor.new("Dark stone grey")
  3738. Part156.Anchored = true
  3739. Part156.FormFactor = Enum.FormFactor.Plate
  3740. Part156.Size = Vector3.new(1, 3.20000005, 1)
  3741. Part156.CFrame = CFrame.new(-3.05175781e-05, 4.80008459, -54, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  3742. Part156.BackSurface = Enum.SurfaceType.Weld
  3743. Part156.FrontSurface = Enum.SurfaceType.Weld
  3744. Part156.LeftSurface = Enum.SurfaceType.Weld
  3745. Part156.TopSurface = Enum.SurfaceType.Smooth
  3746. Part156.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3747. Part156.Position = Vector3.new(-3.05175781e-05, 4.80008459, -54)
  3748. Part156.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3749. Part157.Parent = Model155
  3750. Part157.BrickColor = BrickColor.new("Dark stone grey")
  3751. Part157.Anchored = true
  3752. Part157.FormFactor = Enum.FormFactor.Plate
  3753. Part157.Size = Vector3.new(4, 3.20000005, 5)
  3754. Part157.CFrame = CFrame.new(1.5, 1.60005713, -52, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  3755. Part157.BackSurface = Enum.SurfaceType.Weld
  3756. Part157.FrontSurface = Enum.SurfaceType.Weld
  3757. Part157.LeftSurface = Enum.SurfaceType.Weld
  3758. Part157.RightSurface = Enum.SurfaceType.Weld
  3759. Part157.TopSurface = Enum.SurfaceType.Weld
  3760. Part157.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3761. Part157.Position = Vector3.new(1.5, 1.60005713, -52)
  3762. Part157.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3763. Part158.Parent = Model155
  3764. Part158.BrickColor = BrickColor.new("Dark stone grey")
  3765. Part158.Anchored = true
  3766. Part158.FormFactor = Enum.FormFactor.Plate
  3767. Part158.Size = Vector3.new(3, 3.20000005, 5)
  3768. Part158.CFrame = CFrame.new(1.99996948, 4.80008459, -52, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  3769. Part158.BackSurface = Enum.SurfaceType.Weld
  3770. Part158.FrontSurface = Enum.SurfaceType.Weld
  3771. Part158.LeftSurface = Enum.SurfaceType.Weld
  3772. Part158.RightSurface = Enum.SurfaceType.Weld
  3773. Part158.TopSurface = Enum.SurfaceType.Smooth
  3774. Part158.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3775. Part158.Position = Vector3.new(1.99996948, 4.80008459, -52)
  3776. Part158.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3777. Part159.Parent = Model155
  3778. Part159.BrickColor = BrickColor.new("Dark stone grey")
  3779. Part159.Anchored = true
  3780. Part159.FormFactor = Enum.FormFactor.Plate
  3781. Part159.Size = Vector3.new(1, 3.20000005, 1)
  3782. Part159.CFrame = CFrame.new(-3.05175781e-05, 4.80002642, -50, 1, -2.80487857e-05, -3.07040136e-06, 3.01944783e-05, 1, -1.0532759e-05, 3.91985532e-06, 4.81059715e-06, 1)
  3783. Part159.BackSurface = Enum.SurfaceType.Weld
  3784. Part159.FrontSurface = Enum.SurfaceType.Weld
  3785. Part159.LeftSurface = Enum.SurfaceType.Weld
  3786. Part159.TopSurface = Enum.SurfaceType.Smooth
  3787. Part159.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3788. Part159.Position = Vector3.new(-3.05175781e-05, 4.80002642, -50)
  3789. Part159.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3790. Part160.Parent = Model155
  3791. Part160.BrickColor = BrickColor.new("Dark stone grey")
  3792. Part160.Anchored = true
  3793. Part160.FormFactor = Enum.FormFactor.Plate
  3794. Part160.Size = Vector3.new(4, 0.400000006, 5)
  3795. Part160.CFrame = CFrame.new(1.49993896, 6.60010672, -51.999939, 1, -2.80487857e-05, -3.07040136e-06, 3.01944783e-05, 1, -1.0532759e-05, 3.91985532e-06, 4.81059715e-06, 1)
  3796. Part160.BackSurface = Enum.SurfaceType.Weld
  3797. Part160.BottomSurface = Enum.SurfaceType.Weld
  3798. Part160.FrontSurface = Enum.SurfaceType.Weld
  3799. Part160.LeftSurface = Enum.SurfaceType.Weld
  3800. Part160.RightSurface = Enum.SurfaceType.Weld
  3801. Part160.TopSurface = Enum.SurfaceType.Weld
  3802. Part160.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3803. Part160.Position = Vector3.new(1.49993896, 6.60010672, -51.999939)
  3804. Part160.Color = Color3.new(0.388235, 0.372549, 0.384314)
  3805. Part161.Parent = Model155
  3806. Part161.Rotation = Vector3.new(90, 90, 0)
  3807. Part161.Anchored = true
  3808. Part161.FormFactor = Enum.FormFactor.Symmetric
  3809. Part161.Shape = Enum.PartType.Ball
  3810. Part161.Size = Vector3.new(1, 1, 1)
  3811. Part161.CFrame = CFrame.new(0.999938965, 6.50004816, -49, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
  3812. Part161.BottomSurface = Enum.SurfaceType.Smooth
  3813. Part161.TopSurface = Enum.SurfaceType.Smooth
  3814. Part161.Position = Vector3.new(0.999938965, 6.50004816, -49)
  3815. Part161.Orientation = Vector3.new(0, 90, 90)
  3816. Part162.Parent = Model155
  3817. Part162.Rotation = Vector3.new(0, -90, 0)
  3818. Part162.Anchored = true
  3819. Part162.FormFactor = Enum.FormFactor.Symmetric
  3820. Part162.Shape = Enum.PartType.Cylinder
  3821. Part162.Size = Vector3.new(1, 1, 1)
  3822. Part162.CFrame = CFrame.new(1, 3.50003576, -49, 5.44383852e-07, -8.86863836e-06, -1, -9.55792802e-06, 1, -1.10143674e-05, 1, 3.83588122e-06, -3.04969149e-07)
  3823. Part162.BottomSurface = Enum.SurfaceType.Smooth
  3824. Part162.TopSurface = Enum.SurfaceType.Smooth
  3825. Part162.Position = Vector3.new(1, 3.50003576, -49)
  3826. Part162.Orientation = Vector3.new(0, -90, 0)
  3827. Part163.Parent = Model155
  3828. Part163.Rotation = Vector3.new(90, 90, 0)
  3829. Part163.Anchored = true
  3830. Part163.FormFactor = Enum.FormFactor.Symmetric
  3831. Part163.Shape = Enum.PartType.Cylinder
  3832. Part163.Size = Vector3.new(1, 1, 1)
  3833. Part163.CFrame = CFrame.new(0.999969482, 4.50004816, -49, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
  3834. Part163.BottomSurface = Enum.SurfaceType.Smooth
  3835. Part163.TopSurface = Enum.SurfaceType.Smooth
  3836. Part163.Position = Vector3.new(0.999969482, 4.50004816, -49)
  3837. Part163.Orientation = Vector3.new(0, 90, 90)
  3838. Part164.Parent = Model155
  3839. Part164.Rotation = Vector3.new(90, 90, 0)
  3840. Part164.Anchored = true
  3841. Part164.FormFactor = Enum.FormFactor.Symmetric
  3842. Part164.Shape = Enum.PartType.Cylinder
  3843. Part164.Size = Vector3.new(1, 1, 1)
  3844. Part164.CFrame = CFrame.new(0.999938965, 5.50004816, -49, -8.86863836e-06, 5.44383852e-07, 1, 1, -9.55792802e-06, 1.10143674e-05, 3.83588122e-06, 1, 3.04969149e-07)
  3845. Part164.BottomSurface = Enum.SurfaceType.Smooth
  3846. Part164.TopSurface = Enum.SurfaceType.Smooth
  3847. Part164.Position = Vector3.new(0.999938965, 5.50004816, -49)
  3848. Part164.Orientation = Vector3.new(0, 90, 90)
  3849. Part165.Parent = Model155
  3850. Part165.Anchored = true
  3851. Part165.FormFactor = Enum.FormFactor.Plate
  3852. Part165.Size = Vector3.new(1, 0.400000006, 3)
  3853. Part165.CFrame = CFrame.new(1.99993896, 7.00008059, -52, 1, -8.86863836e-06, 5.44383852e-07, 1.10143674e-05, 1, -9.55792802e-06, 3.04969149e-07, 3.83588122e-06, 1)
  3854. Part165.BottomSurface = Enum.SurfaceType.Smooth
  3855. Part165.TopSurface = Enum.SurfaceType.Smooth
  3856. Part165.Position = Vector3.new(1.99993896, 7.00008059, -52)
  3857. Model166.Name = "Slots"
  3858. Model166.Parent = Model155
  3859. Model166.PrimaryPart = Part168
  3860. Part167.Name = "Digit3"
  3861. Part167.Parent = Model166
  3862. Part167.BrickColor = BrickColor.new("White")
  3863. Part167.Rotation = Vector3.new(0, 0, 90)
  3864. Part167.Anchored = true
  3865. Part167.FormFactor = Enum.FormFactor.Plate
  3866. Part167.Size = Vector3.new(3, 0.400000006, 1)
  3867. Part167.CFrame = CFrame.new(0.299957275, 4.70004797, -51, -2.38765515e-05, -1, -3.07040136e-06, 1, -2.60222423e-05, -1.0532759e-05, 4.81061352e-06, -3.91983531e-06, 1)
  3868. Part167.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3869. Part167.Position = Vector3.new(0.299957275, 4.70004797, -51)
  3870. Part167.Orientation = Vector3.new(0, 0, 90)
  3871. Part167.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3872. Part168.Name = "Light"
  3873. Part168.Parent = Model166
  3874. Part168.BrickColor = BrickColor.new("Bright red")
  3875. Part168.Transparency = 0.5
  3876. Part168.Rotation = Vector3.new(-180, 0, -90)
  3877. Part168.Anchored = true
  3878. Part168.FormFactor = Enum.FormFactor.Symmetric
  3879. Part168.Shape = Enum.PartType.Cylinder
  3880. Part168.Size = Vector3.new(1, 1, 1)
  3881. Part168.CFrame = CFrame.new(1.99993896, 7.70009565, -52, -8.86863836e-06, 1, -5.44383852e-07, 1, 1.10143674e-05, 9.55792802e-06, 3.83588122e-06, 3.04969149e-07, -1)
  3882. Part168.BottomSurface = Enum.SurfaceType.Smooth
  3883. Part168.RightSurface = Enum.SurfaceType.Weld
  3884. Part168.TopSurface = Enum.SurfaceType.Smooth
  3885. Part168.Color = Color3.new(0.768628, 0.156863, 0.109804)
  3886. Part168.Position = Vector3.new(1.99993896, 7.70009565, -52)
  3887. Part168.Orientation = Vector3.new(0, -180, 90)
  3888. Part168.Color = Color3.new(0.768628, 0.156863, 0.109804)
  3889. Part169.Name = "Digit1"
  3890. Part169.Parent = Model166
  3891. Part169.BrickColor = BrickColor.new("White")
  3892. Part169.Rotation = Vector3.new(0, 0, 90)
  3893. Part169.Anchored = true
  3894. Part169.FormFactor = Enum.FormFactor.Plate
  3895. Part169.Size = Vector3.new(3, 0.400000006, 1)
  3896. Part169.CFrame = CFrame.new(0.299987793, 4.70008039, -53, -8.86863836e-06, -1, 5.44383852e-07, 1, -1.10143674e-05, -9.55792802e-06, 3.83588122e-06, -3.04969149e-07, 1)
  3897. Part169.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3898. Part169.Position = Vector3.new(0.299987793, 4.70008039, -53)
  3899. Part169.Orientation = Vector3.new(0, 0, 90)
  3900. Part169.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3901. Part170.Name = "Digit2"
  3902. Part170.Parent = Model166
  3903. Part170.BrickColor = BrickColor.new("White")
  3904. Part170.Rotation = Vector3.new(-180, 0, 90)
  3905. Part170.Anchored = true
  3906. Part170.FormFactor = Enum.FormFactor.Plate
  3907. Part170.Size = Vector3.new(3, 0.400000006, 1)
  3908. Part170.CFrame = CFrame.new(0.299957275, 4.70008039, -52, 2.38765515e-05, -1, 3.07040136e-06, -1, -2.60222423e-05, 1.0532759e-05, -4.81061352e-06, -3.91983531e-06, -1)
  3909. Part170.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3910. Part170.Position = Vector3.new(0.299957275, 4.70008039, -52)
  3911. Part170.Orientation = Vector3.new(0, 180, -90)
  3912. Part170.Color = Color3.new(0.94902, 0.952941, 0.952941)
  3913. Part171.Name = "Button"
  3914. Part171.Parent = Model166
  3915. Part171.BrickColor = BrickColor.new("Dark green")
  3916. Part171.Rotation = Vector3.new(0, 0, 90)
  3917. Part171.Anchored = true
  3918. Part171.FormFactor = Enum.FormFactor.Plate
  3919. Part171.Size = Vector3.new(1, 0.400000006, 1)
  3920. Part171.CFrame = CFrame.new(-0.699951172, 1.50003576, -52, -2.38765515e-05, -1, -3.07040136e-06, 1, -2.60222423e-05, -1.0532759e-05, 4.81061352e-06, -3.91983531e-06, 1)
  3921. Part171.TopSurface = Enum.SurfaceType.Smooth
  3922. Part171.Color = Color3.new(0.156863, 0.498039, 0.278431)
  3923. Part171.Position = Vector3.new(-0.699951172, 1.50003576, -52)
  3924. Part171.Orientation = Vector3.new(0, 0, 90)
  3925. Part171.Color = Color3.new(0.156863, 0.498039, 0.278431)
  3926. Script172.Parent = Part171
  3927. table.insert(cors,sandbox(Script172,function()
  3928. print("Hello world!")
  3929.  
  3930. end))
  3931. Script173.Name = "SlotGame"
  3932. Script173.Parent = Model166
  3933. table.insert(cors,sandbox(Script173,function()
  3934. amnt = 5 --COST TO PLAY
  3935. hold = false
  3936. bin = script.Parent
  3937.  
  3938. light = bin.Light
  3939. button = bin.Button
  3940. dig1 = bin.Digit1
  3941. dig2 = bin.Digit2
  3942. dig3 = bin.Digit3
  3943.  
  3944. color1 = 0
  3945. color2 = 0
  3946. color3 = 0
  3947. function Roll(cash)
  3948. for i=1, 10 do
  3949. --ROLL FIRST
  3950. color1 = math.random(0,10)
  3951. dig1.Color = GetColor(color1)
  3952. --ROLLSECOND
  3953. color2 = math.random(0,10)
  3954. dig2.Color = GetColor(color2)
  3955. --ROLL THIRD
  3956. color3 = math.random(0,10)
  3957. dig3.Color = GetColor(color3)
  3958. wait(0.1)
  3959. end
  3960. for i=1, 10 do
  3961. --ROLLSECOND
  3962. color2 = math.random(0,10)
  3963. dig2.Color = GetColor(color2)
  3964. --ROLL THIRD
  3965. color3 = math.random(0,10)
  3966. dig3.Color = GetColor(color3)
  3967. wait(0.1)
  3968. end
  3969. for i=1, 10 do
  3970. --ROLL THIRD
  3971. color3 = math.random(0,10)
  3972. dig3.Color = GetColor(color3)
  3973. wait(0.1)
  3974. end
  3975.  
  3976. if (color1==3 and color2==2 and color3==5) then
  3977. cash.Value=cash.Value+500
  3978. msg=Instance.new("Message")
  3979. msg.Parent= game.Workspace
  3980. msg.Text= "WINNER 500 CASH!!!"
  3981. light.Transparency= 0
  3982. wait(.5)
  3983. light.Transparency= .5
  3984. wait(.5)
  3985. light.Transparency= 0
  3986. wait(.5)
  3987. light.Transparency= .5
  3988. wait(.5)
  3989. light.Transparency= 0
  3990. wait(.5)
  3991. light.Transparency= .5
  3992. wait(.5)
  3993. light.Transparency= 0
  3994. wait(.5)
  3995. light.Transparency= .5
  3996. wait(.5)
  3997. light.Transparency= 0
  3998. wait(.5)
  3999. light.Transparency= .5
  4000. wait(.5)
  4001. msg:remove()
  4002. end
  4003. if (color1==color2 and color2==color3) then
  4004. cash.Value=cash.Value+1000
  4005. msg=Instance.new("Message")
  4006. msg.Parent= game.Workspace
  4007. msg.Text= "WINNER 1000 CASH!!!"
  4008. light.Transparency= 0
  4009. wait(.5)
  4010. light.Transparency= .5
  4011. wait(.5)
  4012. light.Transparency= 0
  4013. wait(.5)
  4014. light.Transparency= .5
  4015. wait(.5)
  4016. light.Transparency= 0
  4017. wait(.5)
  4018. light.Transparency= .5
  4019. wait(.5)
  4020. light.Transparency= 0
  4021. wait(.5)
  4022. light.Transparency= .5
  4023. wait(.5)
  4024. light.Transparency= 0
  4025. wait(.5)
  4026. light.Transparency= .5
  4027. wait(.5)
  4028. msg:remove()
  4029. end
  4030. if (color1==1 and color2==2 and color3==3) then
  4031. cash.Value=cash.Value+100
  4032. msg=Instance.new("Message")
  4033. msg.Parent= game.Workspace
  4034. msg.Text= "WINNER 100 CASH!!!"
  4035. light.Transparency= 0
  4036. wait(.5)
  4037. light.Transparency= .5
  4038. wait(.5)
  4039. light.Transparency= 0
  4040. wait(.5)
  4041. light.Transparency= .5
  4042. wait(.5)
  4043. light.Transparency= 0
  4044. wait(.5)
  4045. light.Transparency= .5
  4046. wait(.5)
  4047. light.Transparency= 0
  4048. wait(.5)
  4049. light.Transparency= .5
  4050. wait(.5)
  4051. light.Transparency= 0
  4052. wait(.5)
  4053. light.Transparency= .5
  4054. wait(.5)
  4055. msg:remove()
  4056. end
  4057. if (color1==0 and color2==10 and color3==5) then
  4058. cash.Value=cash.Value+50
  4059. msg=Instance.new("Message")
  4060. msg.Parent= game.Workspace
  4061. msg.Text= "WINNER 50 CASH!!!"
  4062. light.Transparency= 0
  4063. wait(.5)
  4064. light.Transparency= .5
  4065. wait(.5)
  4066. light.Transparency= 0
  4067. wait(.5)
  4068. light.Transparency= .5
  4069. wait(.5)
  4070. light.Transparency= 0
  4071. wait(.5)
  4072. light.Transparency= .5
  4073. wait(.5)
  4074. light.Transparency= 0
  4075. wait(.5)
  4076. light.Transparency= .5
  4077. wait(.5)
  4078. light.Transparency= 0
  4079. wait(.5)
  4080. light.Transparency= .5
  4081. wait(.5)
  4082. msg:remove()
  4083. end
  4084. if (color1==0 and color2==0 and color3==0) then
  4085. cash.Value=cash.Value+250
  4086. msg=Instance.new("Message")
  4087. msg.Parent= game.Workspace
  4088. msg.Text= "WINNER 250 CASH!!!"
  4089. light.Transparency= 0
  4090. wait(.5)
  4091. light.Transparency= .5
  4092. wait(.5)
  4093. light.Transparency= 0
  4094. wait(.5)
  4095. light.Transparency= .5
  4096. wait(.5)
  4097. light.Transparency= 0
  4098. wait(.5)
  4099. light.Transparency= .5
  4100. wait(.5)
  4101. light.Transparency= 0
  4102. wait(.5)
  4103. light.Transparency= .5
  4104. wait(.5)
  4105. light.Transparency= 0
  4106. wait(.5)
  4107. light.Transparency= .5
  4108. wait(.5)
  4109. msg:remove()
  4110. end
  4111. end
  4112.  
  4113. function GetColor(num)
  4114. if (num==0) then --Black
  4115. return Color3.new(0,0,0)
  4116. end
  4117. if (num==1) then --Grey
  4118. return Color3.new(.5,.5,.5)
  4119. end
  4120. if (num==2) then --White
  4121. return Color3.new(1,1,1)
  4122. end
  4123. if (num==3) then --Red
  4124. return Color3.new(1,0,0)
  4125. end
  4126. if (num==4) then --Green
  4127. return Color3.new(0,1,0)
  4128. end
  4129. if (num==5) then --Blue
  4130. return Color3.new(0,0,1)
  4131. end
  4132. return Color3.new(GetRand(),GetRand(),GetRand())
  4133. end
  4134.  
  4135. function GetRand()
  4136. return (math.random(1,10)/10)
  4137. end
  4138.  
  4139. function onTouched(part)
  4140. local h = part.Parent:findFirstChild("Humanoid")
  4141. if (h~=nil and hold==false) then
  4142. hold=true
  4143. button.Color = Color3.new(0,0,0)
  4144. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  4145. if (thisplr~=nil) then
  4146. local stats = thisplr:findFirstChild("leaderstats")
  4147. if (stats~=nil) then
  4148. local score = stats:findFirstChild("Cash")
  4149. if (score~=nil) then
  4150. if (score.Value >=amnt) then
  4151. score.Value = score.Value - amnt
  4152. Roll(score)
  4153. end
  4154. end
  4155. end
  4156. end
  4157. button.Color = Color3.new(0,1,0)
  4158. hold=false
  4159. end
  4160. end
  4161.  
  4162. button.Touched:connect(onTouched)
  4163. end))
  4164. Model174.Parent = Model0
  4165. Model174.PrimaryPart = Part176
  4166. Part175.Parent = Model174
  4167. Part175.BrickColor = BrickColor.new("Dark stone grey")
  4168. Part175.Rotation = Vector3.new(0, 90, 0)
  4169. Part175.Anchored = true
  4170. Part175.FormFactor = Enum.FormFactor.Plate
  4171. Part175.Size = Vector3.new(1, 3.20000005, 1)
  4172. Part175.CFrame = CFrame.new(4, 4.80040216, -46, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  4173. Part175.BackSurface = Enum.SurfaceType.Weld
  4174. Part175.FrontSurface = Enum.SurfaceType.Weld
  4175. Part175.LeftSurface = Enum.SurfaceType.Weld
  4176. Part175.TopSurface = Enum.SurfaceType.Smooth
  4177. Part175.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4178. Part175.Position = Vector3.new(4, 4.80040216, -46)
  4179. Part175.Orientation = Vector3.new(0, 90, 0)
  4180. Part175.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4181. Part176.Parent = Model174
  4182. Part176.BrickColor = BrickColor.new("Dark stone grey")
  4183. Part176.Rotation = Vector3.new(0, 90, 0)
  4184. Part176.Anchored = true
  4185. Part176.FormFactor = Enum.FormFactor.Plate
  4186. Part176.Size = Vector3.new(4, 3.20000005, 5)
  4187. Part176.CFrame = CFrame.new(6, 1.60039473, -47.5, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  4188. Part176.BackSurface = Enum.SurfaceType.Weld
  4189. Part176.FrontSurface = Enum.SurfaceType.Weld
  4190. Part176.LeftSurface = Enum.SurfaceType.Weld
  4191. Part176.RightSurface = Enum.SurfaceType.Weld
  4192. Part176.TopSurface = Enum.SurfaceType.Weld
  4193. Part176.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4194. Part176.Position = Vector3.new(6, 1.60039473, -47.5)
  4195. Part176.Orientation = Vector3.new(0, 90, 0)
  4196. Part176.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4197. Part177.Parent = Model174
  4198. Part177.BrickColor = BrickColor.new("Dark stone grey")
  4199. Part177.Rotation = Vector3.new(0, 90, 0)
  4200. Part177.Anchored = true
  4201. Part177.FormFactor = Enum.FormFactor.Plate
  4202. Part177.Size = Vector3.new(3, 3.20000005, 5)
  4203. Part177.CFrame = CFrame.new(6, 4.80040216, -48, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  4204. Part177.BackSurface = Enum.SurfaceType.Weld
  4205. Part177.FrontSurface = Enum.SurfaceType.Weld
  4206. Part177.LeftSurface = Enum.SurfaceType.Weld
  4207. Part177.RightSurface = Enum.SurfaceType.Weld
  4208. Part177.TopSurface = Enum.SurfaceType.Smooth
  4209. Part177.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4210. Part177.Position = Vector3.new(6, 4.80040216, -48)
  4211. Part177.Orientation = Vector3.new(0, 90, 0)
  4212. Part177.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4213. Part178.Parent = Model174
  4214. Part178.BrickColor = BrickColor.new("Dark stone grey")
  4215. Part178.Rotation = Vector3.new(0, 90, 0)
  4216. Part178.Anchored = true
  4217. Part178.FormFactor = Enum.FormFactor.Plate
  4218. Part178.Size = Vector3.new(1, 3.20000005, 1)
  4219. Part178.CFrame = CFrame.new(8.00006866, 4.80020857, -45.999939, -1.1542237e-06, 9.55790165e-06, 1, 1.70940566e-05, 1, -9.55788164e-06, -1, 1.70940457e-05, -1.15438695e-06)
  4220. Part178.BackSurface = Enum.SurfaceType.Weld
  4221. Part178.FrontSurface = Enum.SurfaceType.Weld
  4222. Part178.LeftSurface = Enum.SurfaceType.Weld
  4223. Part178.TopSurface = Enum.SurfaceType.Smooth
  4224. Part178.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4225. Part178.Position = Vector3.new(8.00006866, 4.80020857, -45.999939)
  4226. Part178.Orientation = Vector3.new(0, 90, 0)
  4227. Part178.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4228. Part179.Parent = Model174
  4229. Part179.BrickColor = BrickColor.new("Dark stone grey")
  4230. Part179.Rotation = Vector3.new(0, 90, 0)
  4231. Part179.Anchored = true
  4232. Part179.FormFactor = Enum.FormFactor.Plate
  4233. Part179.Size = Vector3.new(4, 0.400000006, 5)
  4234. Part179.CFrame = CFrame.new(6.00006104, 6.60022593, -47.499939, -1.1542237e-06, 9.55790165e-06, 1, 1.70940566e-05, 1, -9.55788164e-06, -1, 1.70940457e-05, -1.15438695e-06)
  4235. Part179.BackSurface = Enum.SurfaceType.Weld
  4236. Part179.BottomSurface = Enum.SurfaceType.Weld
  4237. Part179.FrontSurface = Enum.SurfaceType.Weld
  4238. Part179.LeftSurface = Enum.SurfaceType.Weld
  4239. Part179.RightSurface = Enum.SurfaceType.Weld
  4240. Part179.TopSurface = Enum.SurfaceType.Weld
  4241. Part179.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4242. Part179.Position = Vector3.new(6.00006104, 6.60022593, -47.499939)
  4243. Part179.Orientation = Vector3.new(0, 90, 0)
  4244. Part179.Color = Color3.new(0.388235, 0.372549, 0.384314)
  4245. Part180.Parent = Model174
  4246. Part180.Rotation = Vector3.new(-180, 0, -90)
  4247. Part180.Anchored = true
  4248. Part180.FormFactor = Enum.FormFactor.Symmetric
  4249. Part180.Shape = Enum.PartType.Ball
  4250. Part180.Size = Vector3.new(1, 1, 1)
  4251. Part180.CFrame = CFrame.new(9, 6.50040197, -47, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  4252. Part180.BottomSurface = Enum.SurfaceType.Smooth
  4253. Part180.TopSurface = Enum.SurfaceType.Smooth
  4254. Part180.Position = Vector3.new(9, 6.50040197, -47)
  4255. Part180.Orientation = Vector3.new(0, 180, 90)
  4256. Part181.Parent = Model174
  4257. Part181.Anchored = true
  4258. Part181.FormFactor = Enum.FormFactor.Symmetric
  4259. Part181.Shape = Enum.PartType.Cylinder
  4260. Part181.Size = Vector3.new(1, 1, 1)
  4261. Part181.CFrame = CFrame.new(9, 3.50040197, -47, 1, 0, 0, 0, 1, 0, 0, 0, 1)
  4262. Part181.BottomSurface = Enum.SurfaceType.Smooth
  4263. Part181.TopSurface = Enum.SurfaceType.Smooth
  4264. Part181.Position = Vector3.new(9, 3.50040197, -47)
  4265. Part182.Parent = Model174
  4266. Part182.Rotation = Vector3.new(-180, 0, -90)
  4267. Part182.Anchored = true
  4268. Part182.FormFactor = Enum.FormFactor.Symmetric
  4269. Part182.Shape = Enum.PartType.Cylinder
  4270. Part182.Size = Vector3.new(1, 1, 1)
  4271. Part182.CFrame = CFrame.new(9, 4.50040197, -47, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  4272. Part182.BottomSurface = Enum.SurfaceType.Smooth
  4273. Part182.TopSurface = Enum.SurfaceType.Smooth
  4274. Part182.Position = Vector3.new(9, 4.50040197, -47)
  4275. Part182.Orientation = Vector3.new(0, 180, 90)
  4276. Part183.Parent = Model174
  4277. Part183.Rotation = Vector3.new(-180, 0, -90)
  4278. Part183.Anchored = true
  4279. Part183.FormFactor = Enum.FormFactor.Symmetric
  4280. Part183.Shape = Enum.PartType.Cylinder
  4281. Part183.Size = Vector3.new(1, 1, 1)
  4282. Part183.CFrame = CFrame.new(9, 5.50040197, -47, 0, 1, 0, 1, 0, 0, 0, 0, -1)
  4283. Part183.BottomSurface = Enum.SurfaceType.Smooth
  4284. Part183.TopSurface = Enum.SurfaceType.Smooth
  4285. Part183.Position = Vector3.new(9, 5.50040197, -47)
  4286. Part183.Orientation = Vector3.new(0, 180, 90)
  4287. Part184.Parent = Model174
  4288. Part184.Rotation = Vector3.new(0, 90, 0)
  4289. Part184.Anchored = true
  4290. Part184.FormFactor = Enum.FormFactor.Plate
  4291. Part184.Size = Vector3.new(1, 0.400000006, 3)
  4292. Part184.CFrame = CFrame.new(6, 7.00040197, -48, 0, 0, 1, 0, 1, 0, -1, 0, 0)
  4293. Part184.BottomSurface = Enum.SurfaceType.Smooth
  4294. Part184.TopSurface = Enum.SurfaceType.Smooth
  4295. Part184.Position = Vector3.new(6, 7.00040197, -48)
  4296. Part184.Orientation = Vector3.new(0, 90, 0)
  4297. Model185.Name = "Slots"
  4298. Model185.Parent = Model174
  4299. Model185.PrimaryPart = Part187
  4300. Part186.Name = "Digit3"
  4301. Part186.Parent = Model185
  4302. Part186.BrickColor = BrickColor.new("White")
  4303. Part186.Rotation = Vector3.new(90, 90, 0)
  4304. Part186.Anchored = true
  4305. Part186.FormFactor = Enum.FormFactor.Plate
  4306. Part186.Size = Vector3.new(3, 0.400000006, 1)
  4307. Part186.CFrame = CFrame.new(7, 4.70039988, -46.2999878, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  4308. Part186.Color = Color3.new(0.94902, 0.952941, 0.952941)
  4309. Part186.Position = Vector3.new(7, 4.70039988, -46.2999878)
  4310. Part186.Orientation = Vector3.new(0, 90, 90)
  4311. Part186.Color = Color3.new(0.94902, 0.952941, 0.952941)
  4312. Part187.Name = "Light"
  4313. Part187.Parent = Model185
  4314. Part187.BrickColor = BrickColor.new("Bright red")
  4315. Part187.Transparency = 0.5
  4316. Part187.Rotation = Vector3.new(-90, -90, 0)
  4317. Part187.Anchored = true
  4318. Part187.FormFactor = Enum.FormFactor.Symmetric
  4319. Part187.Shape = Enum.PartType.Cylinder
  4320. Part187.Size = Vector3.new(1, 1, 1)
  4321. Part187.CFrame = CFrame.new(6, 7.70040083, -48, 0, 0, -1, 1, 0, 0, 0, -1, 0)
  4322. Part187.BottomSurface = Enum.SurfaceType.Smooth
  4323. Part187.RightSurface = Enum.SurfaceType.Weld
  4324. Part187.TopSurface = Enum.SurfaceType.Smooth
  4325. Part187.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4326. Part187.Position = Vector3.new(6, 7.70040083, -48)
  4327. Part187.Orientation = Vector3.new(0, -90, 90)
  4328. Part187.Color = Color3.new(0.768628, 0.156863, 0.109804)
  4329. Part188.Name = "Digit1"
  4330. Part188.Parent = Model185
  4331. Part188.BrickColor = BrickColor.new("White")
  4332. Part188.Rotation = Vector3.new(90, 90, 0)
  4333. Part188.Anchored = true
  4334. Part188.FormFactor = Enum.FormFactor.Plate
  4335. Part188.Size = Vector3.new(3, 0.400000006, 1)
  4336. Part188.CFrame = CFrame.new(5, 4.70039988, -46.2999878, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  4337. Part188.Color = Color3.new(0.94902, 0.952941, 0.952941)
  4338. Part188.Position = Vector3.new(5, 4.70039988, -46.2999878)
  4339. Part188.Orientation = Vector3.new(0, 90, 90)
  4340. Part188.Color = Color3.new(0.94902, 0.952941, 0.952941)
  4341. Part189.Name = "Digit2"
  4342. Part189.Parent = Model185
  4343. Part189.BrickColor = BrickColor.new("White")
  4344. Part189.Rotation = Vector3.new(90, -90, 0)
  4345. Part189.Anchored = true
  4346. Part189.FormFactor = Enum.FormFactor.Plate
  4347. Part189.Size = Vector3.new(3, 0.400000006, 1)
  4348. Part189.CFrame = CFrame.new(6, 4.70039988, -46.2999878, 0, 0, -1, -1, 0, 0, 0, 1, 0)
  4349. Part189.Color = Color3.new(0.94902, 0.952941, 0.952941)
  4350. Part189.Position = Vector3.new(6, 4.70039988, -46.2999878)
  4351. Part189.Orientation = Vector3.new(0, -90, -90)
  4352. Part189.Color = Color3.new(0.94902, 0.952941, 0.952941)
  4353. Part190.Name = "Button"
  4354. Part190.Parent = Model185
  4355. Part190.BrickColor = BrickColor.new("Dark green")
  4356. Part190.Rotation = Vector3.new(90, 90, 0)
  4357. Part190.Anchored = true
  4358. Part190.FormFactor = Enum.FormFactor.Plate
  4359. Part190.Size = Vector3.new(1, 0.400000006, 1)
  4360. Part190.CFrame = CFrame.new(6, 1.50040197, -45.2999878, 0, 0, 1, 1, 0, 0, 0, 1, 0)
  4361. Part190.TopSurface = Enum.SurfaceType.Smooth
  4362. Part190.Color = Color3.new(0.156863, 0.498039, 0.278431)
  4363. Part190.Position = Vector3.new(6, 1.50040197, -45.2999878)
  4364. Part190.Orientation = Vector3.new(0, 90, 90)
  4365. Part190.Color = Color3.new(0.156863, 0.498039, 0.278431)
  4366. Script191.Parent = Part190
  4367. table.insert(cors,sandbox(Script191,function()
  4368. print("Hello world!")
  4369.  
  4370. end))
  4371. Script192.Name = "SlotGame"
  4372. Script192.Parent = Model185
  4373. table.insert(cors,sandbox(Script192,function()
  4374. amnt = 5 --COST TO PLAY
  4375. hold = false
  4376. bin = script.Parent
  4377.  
  4378. light = bin.Light
  4379. button = bin.Button
  4380. dig1 = bin.Digit1
  4381. dig2 = bin.Digit2
  4382. dig3 = bin.Digit3
  4383.  
  4384. color1 = 0
  4385. color2 = 0
  4386. color3 = 0
  4387. function Roll(cash)
  4388. for i=1, 10 do
  4389. --ROLL FIRST
  4390. color1 = math.random(0,5)
  4391. dig1.Color = GetColor(color1)
  4392. --ROLLSECOND
  4393. color2 = math.random(0,5)
  4394. dig2.Color = GetColor(color2)
  4395. --ROLL THIRD
  4396. color3 = math.random(0,5)
  4397. dig3.Color = GetColor(color3)
  4398. wait(0.1)
  4399. end
  4400. for i=1, 10 do
  4401. --ROLLSECOND
  4402. color2 = math.random(0,5)
  4403. dig2.Color = GetColor(color2)
  4404. --ROLL THIRD
  4405. color3 = math.random(0,5)
  4406. dig3.Color = GetColor(color3)
  4407. wait(0.1)
  4408. end
  4409. for i=1, 10 do
  4410. --ROLL THIRD
  4411. color3 = math.random(0,5)
  4412. dig3.Color = GetColor(color3)
  4413. wait(0.1)
  4414. end
  4415.  
  4416. if (color1==3 and color2==2 and color3==5) then
  4417. cash.Value=cash.Value+5000
  4418. msg=Instance.new("Message")
  4419. msg.Parent= game.Workspace
  4420. msg.Text= "JACKPOT WINNER 5000 CASH!!!"
  4421. light.Transparency= 0
  4422. wait(.5)
  4423. light.Transparency= .5
  4424. wait(.5)
  4425. light.Transparency= 0
  4426. wait(.5)
  4427. light.Transparency= .5
  4428. wait(.5)
  4429. light.Transparency= 0
  4430. wait(.5)
  4431. light.Transparency= .5
  4432. wait(.5)
  4433. light.Transparency= 0
  4434. wait(.5)
  4435. light.Transparency= .5
  4436. wait(.5)
  4437. light.Transparency= 0
  4438. wait(.5)
  4439. light.Transparency= .5
  4440. wait(.5)
  4441. msg:remove()
  4442. end
  4443. if (color1==color2 and color2==color3) then
  4444. cash.Value=cash.Value+1000
  4445. msg=Instance.new("Message")
  4446. msg.Parent= game.Workspace
  4447. msg.Text= "WINNER 1000 CASH!!!"
  4448. light.Transparency= 0
  4449. wait(.5)
  4450. light.Transparency= .5
  4451. wait(.5)
  4452. light.Transparency= 0
  4453. wait(.5)
  4454. light.Transparency= .5
  4455. wait(.5)
  4456. light.Transparency= 0
  4457. wait(.5)
  4458. light.Transparency= .5
  4459. wait(.5)
  4460. light.Transparency= 0
  4461. wait(.5)
  4462. light.Transparency= .5
  4463. wait(.5)
  4464. light.Transparency= 0
  4465. wait(.5)
  4466. light.Transparency= .5
  4467. wait(.5)
  4468. msg:remove()
  4469. end
  4470. if (color1==1 and color2==2 and color3==3) then
  4471. cash.Value=cash.Value+100
  4472. msg=Instance.new("Message")
  4473. msg.Parent= game.Workspace
  4474. msg.Text= "WINNER 100 CASH!!!"
  4475. light.Transparency= 0
  4476. wait(.5)
  4477. light.Transparency= .5
  4478. wait(.5)
  4479. light.Transparency= 0
  4480. wait(.5)
  4481. light.Transparency= .5
  4482. wait(.5)
  4483. light.Transparency= 0
  4484. wait(.5)
  4485. light.Transparency= .5
  4486. wait(.5)
  4487. light.Transparency= 0
  4488. wait(.5)
  4489. light.Transparency= .5
  4490. wait(.5)
  4491. light.Transparency= 0
  4492. wait(.5)
  4493. light.Transparency= .5
  4494. wait(.5)
  4495. msg:remove()
  4496. end
  4497. if (color1==0 and color2==3 and color3==5) then
  4498. cash.Value=cash.Value+50
  4499. msg=Instance.new("Message")
  4500. msg.Parent= game.Workspace
  4501. msg.Text= "WINNER 50 CASH!!!"
  4502. light.Transparency= 0
  4503. wait(.5)
  4504. light.Transparency= .5
  4505. wait(.5)
  4506. light.Transparency= 0
  4507. wait(.5)
  4508. light.Transparency= .5
  4509. wait(.5)
  4510. light.Transparency= 0
  4511. wait(.5)
  4512. light.Transparency= .5
  4513. wait(.5)
  4514. light.Transparency= 0
  4515. wait(.5)
  4516. light.Transparency= .5
  4517. wait(.5)
  4518. light.Transparency= 0
  4519. wait(.5)
  4520. light.Transparency= .5
  4521. wait(.5)
  4522. msg:remove()
  4523. end
  4524. if (color1==1 and color2==0 and color3==0) then
  4525. cash.Value=cash.Value+250
  4526. msg=Instance.new("Message")
  4527. msg.Parent= game.Workspace
  4528. msg.Text= "WINNER 250 CASH!!!"
  4529. light.Transparency= 0
  4530. wait(.5)
  4531. light.Transparency= .5
  4532. wait(.5)
  4533. light.Transparency= 0
  4534. wait(.5)
  4535. light.Transparency= .5
  4536. wait(.5)
  4537. light.Transparency= 0
  4538. wait(.5)
  4539. light.Transparency= .5
  4540. wait(.5)
  4541. light.Transparency= 0
  4542. wait(.5)
  4543. light.Transparency= .5
  4544. wait(.5)
  4545. light.Transparency= 0
  4546. wait(.5)
  4547. light.Transparency= .5
  4548. wait(.5)
  4549. msg:remove()
  4550. end
  4551. end
  4552.  
  4553. function GetColor(num)
  4554. if (num==0) then --Black
  4555. return Color3.new(0,0,0)
  4556. end
  4557. if (num==1) then --Grey
  4558. return Color3.new(.5,.5,.5)
  4559. end
  4560. if (num==2) then --White
  4561. return Color3.new(1,1,1)
  4562. end
  4563. if (num==3) then --Red
  4564. return Color3.new(1,0,0)
  4565. end
  4566. if (num==4) then --Green
  4567. return Color3.new(0,1,0)
  4568. end
  4569. if (num==5) then --Blue
  4570. return Color3.new(0,0,1)
  4571. end
  4572. return Color3.new(GetRand(),GetRand(),GetRand())
  4573. end
  4574.  
  4575. function GetRand()
  4576. return (math.random(1,10)/10)
  4577. end
  4578.  
  4579. function onTouched(part)
  4580. local h = part.Parent:findFirstChild("Humanoid")
  4581. if (h~=nil and hold==false) then
  4582. hold=true
  4583. button.Color = Color3.new(0,0,0)
  4584. local thisplr = game.Players:findFirstChild(h.Parent.Name)
  4585. if (thisplr~=nil) then
  4586. local stats = thisplr:findFirstChild("leaderstats")
  4587. if (stats~=nil) then
  4588. local score = stats:findFirstChild("Cash")
  4589. if (score~=nil) then
  4590. if (score.Value >=amnt) then
  4591. score.Value = score.Value - amnt
  4592. Roll(score)
  4593. end
  4594. end
  4595. end
  4596. end
  4597. button.Color = Color3.new(0,1,0)
  4598. hold=false
  4599. end
  4600. end
  4601.  
  4602. button.Touched:connect(onTouched)
  4603. end))
  4604. for i,v in pairs(mas:GetChildren()) do
  4605. v.Parent = workspace
  4606. pcall(function() v:MakeJoints() end)
  4607. end
  4608. mas:Destroy()
  4609. for i,v in pairs(cors) do
  4610. spawn(function()
  4611. pcall(v)
  4612. end)
  4613. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement