Advertisement
Guest User

Untitled

a guest
Apr 26th, 2017
828
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.31 KB | None | 0 0
  1. --[[
  2. Simple Gui Script by Dat Boi for TC3, pretty easy to make so wont hide the code.
  3. Gui to script by darkelementallord was used, hence the messy code.
  4. I've added notes to anything I've personally added, feel free to check them out.
  5. --]]
  6.  
  7. -- Start of Gui to Script Creation by darkelementallord
  8. local NewGuiPart1 = Instance.new("ScreenGui",game.Players.LocalPlayer.PlayerGui)
  9. NewGuiPart1.Name = "UI Workspace"
  10. -------
  11. local NewGuiPart2 = Instance.new("Frame")
  12. NewGuiPart2.Active = true
  13. NewGuiPart2.BackgroundColor3 = Color3.new(0.796079, 0.796079, 0.796079)
  14. NewGuiPart2.Position = UDim2.new(0, 610, 0, 410)
  15. NewGuiPart2.Size = UDim2.new(0, 450, 0, 110)
  16. NewGuiPart2.Draggable = true
  17. NewGuiPart2.Parent = NewGuiPart1
  18. -------
  19. local NewGuiPart3 = Instance.new("TextLabel")
  20. NewGuiPart3.Active = true
  21. NewGuiPart3.BackgroundColor3 = Color3.new(0.639216, 0.635294, 0.647059)
  22. NewGuiPart3.Size = UDim2.new(0, 90, 0, 20)
  23. NewGuiPart3.Font = Enum.Font.Legacy
  24. NewGuiPart3.FontSize = Enum.FontSize.Size8
  25. NewGuiPart3.Text = "Values"
  26. NewGuiPart3.Parent = NewGuiPart2
  27. -------
  28. local NewGuiPart4 = Instance.new("TextLabel")
  29. NewGuiPart4.Active = true
  30. NewGuiPart4.BackgroundColor3 = Color3.new(0.647059, 0.443137, 0.443137)
  31. NewGuiPart4.Position = UDim2.new(0, 90, 0, 0)
  32. NewGuiPart4.Size = UDim2.new(0, 60, 0, 20)
  33. NewGuiPart4.Font = Enum.Font.Legacy
  34. NewGuiPart4.FontSize = Enum.FontSize.Size8
  35. NewGuiPart4.Text = "Red"
  36. NewGuiPart4.Parent = NewGuiPart2
  37. -------
  38. local redcash = Instance.new("TextLabel")
  39. redcash.Active = true
  40. redcash.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  41. redcash.Position = UDim2.new(0, 100, 0, 30)
  42. redcash.Size = UDim2.new(0, 40, 0, 20)
  43. redcash.Font = Enum.Font.Legacy
  44. redcash.FontSize = Enum.FontSize.Size8
  45. redcash.Text = "redcash"
  46. redcash.Parent = NewGuiPart2
  47. -------
  48. local NewGuiPart6 = Instance.new("TextLabel")
  49. NewGuiPart6.Active = true
  50. NewGuiPart6.BackgroundColor3 = Color3.new(0.313726, 0.313726, 0.313726)
  51. NewGuiPart6.Position = UDim2.new(0, 330, 0, 0)
  52. NewGuiPart6.Size = UDim2.new(0, 60, 0, 20)
  53. NewGuiPart6.Font = Enum.Font.Legacy
  54. NewGuiPart6.FontSize = Enum.FontSize.Size8
  55. NewGuiPart6.Text = "Black"
  56. NewGuiPart6.Parent = NewGuiPart2
  57. -------
  58. local NewGuiPart7 = Instance.new("TextLabel")
  59. NewGuiPart7.Active = true
  60. NewGuiPart7.BackgroundColor3 = Color3.new(0.639216, 0.647059, 0.47451)
  61. NewGuiPart7.Position = UDim2.new(0, 270, 0, 0)
  62. NewGuiPart7.Size = UDim2.new(0, 60, 0, 20)
  63. NewGuiPart7.Font = Enum.Font.Legacy
  64. NewGuiPart7.FontSize = Enum.FontSize.Size8
  65. NewGuiPart7.Text = "Yellow"
  66. NewGuiPart7.Parent = NewGuiPart2
  67. -------
  68. local NewGuiPart8 = Instance.new("TextLabel")
  69. NewGuiPart8.Active = true
  70. NewGuiPart8.BackgroundColor3 = Color3.new(0.443137, 0.647059, 0.462745)
  71. NewGuiPart8.Position = UDim2.new(0, 150, 0, 0)
  72. NewGuiPart8.Size = UDim2.new(0, 60, 0, 20)
  73. NewGuiPart8.Font = Enum.Font.Legacy
  74. NewGuiPart8.FontSize = Enum.FontSize.Size8
  75. NewGuiPart8.Text = "Green"
  76. NewGuiPart8.Parent = NewGuiPart2
  77. -------
  78. local NewGuiPart9 = Instance.new("TextLabel")
  79. NewGuiPart9.Active = true
  80. NewGuiPart9.BackgroundColor3 = Color3.new(0.647059, 0.458824, 0.639216)
  81. NewGuiPart9.Position = UDim2.new(0, 390, 0, 0)
  82. NewGuiPart9.Size = UDim2.new(0, 60, 0, 20)
  83. NewGuiPart9.Font = Enum.Font.Legacy
  84. NewGuiPart9.FontSize = Enum.FontSize.Size8
  85. NewGuiPart9.Text = "Purple"
  86. NewGuiPart9.Parent = NewGuiPart2
  87. -------
  88. local NewGuiPart10 = Instance.new("TextLabel")
  89. NewGuiPart10.Active = true
  90. NewGuiPart10.BackgroundColor3 = Color3.new(0.713726, 0.713726, 0.713726)
  91. NewGuiPart10.Position = UDim2.new(0, 0, 0, 70)
  92. NewGuiPart10.Size = UDim2.new(0, 90, 0, 20)
  93. NewGuiPart10.Font = Enum.Font.Legacy
  94. NewGuiPart10.FontSize = Enum.FontSize.Size8
  95. NewGuiPart10.Text = "Cash Per Min"
  96. NewGuiPart10.Parent = NewGuiPart2
  97. -------
  98. local yellowmin = Instance.new("TextLabel")
  99. yellowmin.Active = true
  100. yellowmin.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  101. yellowmin.Position = UDim2.new(0, 280, 0, 70)
  102. yellowmin.Size = UDim2.new(0, 40, 0, 20)
  103. yellowmin.Font = Enum.Font.Legacy
  104. yellowmin.FontSize = Enum.FontSize.Size8
  105. yellowmin.Text = "yellowmin"
  106. yellowmin.Parent = NewGuiPart2
  107. -------
  108. local redmin = Instance.new("TextLabel")
  109. redmin.Active = true
  110. redmin.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  111. redmin.Position = UDim2.new(0, 100, 0, 70)
  112. redmin.Size = UDim2.new(0, 40, 0, 20)
  113. redmin.Font = Enum.Font.Legacy
  114. redmin.FontSize = Enum.FontSize.Size8
  115. redmin.Text = "redmin"
  116. redmin.Parent = NewGuiPart2
  117. -------
  118. local puplemin = Instance.new("TextLabel")
  119. puplemin.Active = true
  120. puplemin.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  121. puplemin.Position = UDim2.new(0, 400, 0, 70)
  122. puplemin.Size = UDim2.new(0, 40, 0, 20)
  123. puplemin.Font = Enum.Font.Legacy
  124. puplemin.FontSize = Enum.FontSize.Size8
  125. puplemin.Text = "purplemin"
  126. puplemin.Parent = NewGuiPart2
  127. -------
  128. local yellowcash = Instance.new("TextLabel")
  129. yellowcash.Active = true
  130. yellowcash.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  131. yellowcash.Position = UDim2.new(0, 280, 0, 30)
  132. yellowcash.Size = UDim2.new(0, 40, 0, 20)
  133. yellowcash.Font = Enum.Font.Legacy
  134. yellowcash.FontSize = Enum.FontSize.Size8
  135. yellowcash.Text = "yellowcash"
  136. yellowcash.Parent = NewGuiPart2
  137. -------
  138. local bluecash = Instance.new("TextLabel")
  139. bluecash.Active = true
  140. bluecash.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  141. bluecash.Position = UDim2.new(0, 220, 0, 30)
  142. bluecash.Size = UDim2.new(0, 40, 0, 20)
  143. bluecash.Font = Enum.Font.Legacy
  144. bluecash.FontSize = Enum.FontSize.Size8
  145. bluecash.Text = "bluecash"
  146. bluecash.Parent = NewGuiPart2
  147. -------
  148. local blackmin = Instance.new("TextLabel")
  149. blackmin.Active = true
  150. blackmin.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  151. blackmin.Position = UDim2.new(0, 340, 0, 70)
  152. blackmin.Size = UDim2.new(0, 40, 0, 20)
  153. blackmin.Font = Enum.Font.Legacy
  154. blackmin.FontSize = Enum.FontSize.Size8
  155. blackmin.Text = "blackmin"
  156. blackmin.Parent = NewGuiPart2
  157. -------
  158. local NewGuiPart17 = Instance.new("TextLabel")
  159. NewGuiPart17.Active = true
  160. NewGuiPart17.BackgroundColor3 = Color3.new(0.705882, 0.701961, 0.713726)
  161. NewGuiPart17.Position = UDim2.new(0, 0, 0, 30)
  162. NewGuiPart17.Size = UDim2.new(0, 90, 0, 20)
  163. NewGuiPart17.Font = Enum.Font.Legacy
  164. NewGuiPart17.FontSize = Enum.FontSize.Size8
  165. NewGuiPart17.Text = "Cash"
  166. NewGuiPart17.Parent = NewGuiPart2
  167. -------
  168. local blackcash = Instance.new("TextLabel")
  169. blackcash.Active = true
  170. blackcash.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  171. blackcash.Position = UDim2.new(0, 340, 0, 30)
  172. blackcash.Size = UDim2.new(0, 40, 0, 20)
  173. blackcash.Font = Enum.Font.Legacy
  174. blackcash.FontSize = Enum.FontSize.Size8
  175. blackcash.Text = "blackcash"
  176. blackcash.Parent = NewGuiPart2
  177. -------
  178. local purplecash = Instance.new("TextLabel")
  179. purplecash.Active = true
  180. purplecash.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  181. purplecash.Position = UDim2.new(0, 400, 0, 30)
  182. purplecash.Size = UDim2.new(0, 40, 0, 20)
  183. purplecash.Font = Enum.Font.Legacy
  184. purplecash.FontSize = Enum.FontSize.Size8
  185. purplecash.Text = "purplecash"
  186. purplecash.Parent = NewGuiPart2
  187. -------
  188. local bluemin = Instance.new("TextLabel")
  189. bluemin.Active = true
  190. bluemin.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  191. bluemin.Position = UDim2.new(0, 220, 0, 70)
  192. bluemin.Size = UDim2.new(0, 40, 0, 20)
  193. bluemin.Font = Enum.Font.Legacy
  194. bluemin.FontSize = Enum.FontSize.Size8
  195. bluemin.Text = "bluemin"
  196. bluemin.Parent = NewGuiPart2
  197. -------
  198. local greenmin = Instance.new("TextLabel")
  199. greenmin.Active = true
  200. greenmin.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  201. greenmin.Position = UDim2.new(0, 160, 0, 70)
  202. greenmin.Size = UDim2.new(0, 40, 0, 20)
  203. greenmin.Font = Enum.Font.Legacy
  204. greenmin.FontSize = Enum.FontSize.Size8
  205. greenmin.Text = "greenmin"
  206. greenmin.Parent = NewGuiPart2
  207. -------
  208. local greencash = Instance.new("TextLabel")
  209. greencash.Active = true
  210. greencash.BackgroundColor3 = Color3.new(0.478431, 0.647059, 0.45098)
  211. greencash.Position = UDim2.new(0, 160, 0, 30)
  212. greencash.Size = UDim2.new(0, 40, 0, 20)
  213. greencash.Font = Enum.Font.Legacy
  214. greencash.FontSize = Enum.FontSize.Size8
  215. greencash.Text = "greencash"
  216. greencash.Parent = NewGuiPart2
  217. -------
  218. local NewGuiPart23 = Instance.new("TextLabel")
  219. NewGuiPart23.Active = true
  220. NewGuiPart23.BackgroundColor3 = Color3.new(0.443137, 0.470588, 0.647059)
  221. NewGuiPart23.Position = UDim2.new(0, 210, 0, 0)
  222. NewGuiPart23.Size = UDim2.new(0, 60, 0, 20)
  223. NewGuiPart23.Font = Enum.Font.Legacy
  224. NewGuiPart23.FontSize = Enum.FontSize.Size8
  225. NewGuiPart23.Text = "Blue"
  226. NewGuiPart23.Parent = NewGuiPart2
  227. -------
  228. local NewGuiPart24 = Instance.new("TextLabel")
  229. NewGuiPart24.Active = true
  230. NewGuiPart24.BackgroundColor3 = Color3.new(0.647059, 0.647059, 0.647059)
  231. NewGuiPart24.Position = UDim2.new(0, 390, 0, 100)
  232. NewGuiPart24.Size = UDim2.new(0, 70, 0, 20)
  233. NewGuiPart24.Font = Enum.Font.Legacy
  234. NewGuiPart24.FontSize = Enum.FontSize.Size8
  235. NewGuiPart24.Text = "By Dat Boi"
  236. NewGuiPart24.Parent = NewGuiPart2
  237. -- End of Gui to Script Creation by darkelementallord
  238.  
  239. -- This part is to make my life easier, I'm giving each path (the right part) a variable (the left part).
  240. red = game.Workspace.TeamSettings["Bright red"]
  241. green = game.Workspace.TeamSettings["Bright green"]
  242. blue = game.Workspace.TeamSettings["Bright blue"]
  243. yellow = game.Workspace.TeamSettings["Bright yellow"]
  244. purple = game.Workspace.TeamSettings["Bright violet"]
  245. black = game.Workspace.TeamSettings.Black
  246.  
  247. while true do wait(0.1) -- This tells it to do everything between this and "end" every 0.1 seconds.
  248.  
  249. -- The reason I'm doing this is to make my life even easier, this isn't required but I'm gonna do it anyway.
  250. blackvar = black.Cash.Value
  251. redvar = red.Cash.Value
  252. yellowvar = yellow.Cash.Value
  253. greenvar = green.Cash.Value
  254. purplevar = purple.Cash.Value
  255. bluevar = blue.Cash.Value
  256.  
  257. -- Setting up the values to the GUI using .sub to avoid .349293 stuff
  258. greencash.Text = math.floor(greenvar)
  259. yellowcash.Text = math.floor(yellowvar)
  260. redcash.Text = math.floor(redvar)
  261. purplecash.Text = math.floor(purplevar)
  262. bluecash.Text = math.floor(bluevar)
  263. blackcash.Text = math.floor(bluevar)
  264.  
  265. -- This shouldn't need sub you don't get to many .'s if any
  266. greenmin.Text = green.CashPerMinute.Value
  267. redmin.Text = red.CashPerMinute.Value
  268. blackmin.Text = black.CashPerMinute.Value
  269. bluemin.Text = blue.CashPerMinute.Value
  270. yellowmin.Text = yellow.CashPerMinute.Value
  271. puplemin.Text = purple.CashPerMinute.Value
  272. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement