Advertisement
TooNice

Code

Feb 23rd, 2020
127
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.43 KB | None | 0 0
  1. prefix = "/"
  2. local KeyEnabled = {
  3. ["iDarkLuxx"] = true,
  4. ["Bloo_Jaye"] = true,
  5. ["captainhunter127"] = true,
  6. ["slumpio"] = true
  7.  
  8. }
  9.  
  10.  
  11. game.Players.PlayerAdded:Connect(function(plr)
  12. plr.Chatted:Connect(function(msg)
  13.  
  14. local Textbox = game.Workspace.BlackComputer.Screen.SurfaceGui.TextBox
  15. local Textlabel = game.Workspace.BlackComputer.Screen.SurfaceGui.TextLabel
  16. local Placeholder = Textbox.PlaceholderText
  17. local CanOrder = game.Workspace.BlackComputer.CanOrder
  18. local LoggedIn = game.Workspace.BlackComputer.LoggedIn
  19. local Textlabel2 = game.Workspace.BlackComputer.Screen.SurfaceGui.TextLabel2
  20. local Ruger = game.ServerStorage.MarketItems.MarketPackRuger
  21. local Rossi = game.ServerStorage.MarketItems.MarketPackRossi
  22. local Deagle = game.ServerStorage.MarketItems.MarketPackDeagle
  23.  
  24.  
  25.  
  26. if KeyEnabled[plr.Name] == true then
  27.  
  28. if msg == prefix.."pinlogin01" and plr.Name == "iDarkLuxx" or msg == prefix.."pinlogin02" and plr.Name == "Bloo_Jaye" or msg == prefix.."pinlogin03" and plr.Name == "captainhunter127" or msg == prefix.."pinlogin04" and plr.Name == "slumpio" then
  29.  
  30. Textbox.Text = plr.Name..", login successful."
  31. wait(5)
  32. Textbox.Text = Placeholder
  33. Textbox.Visible = false
  34. Textlabel.Visible = false
  35. Textlabel2.Visible = true
  36. CanOrder.Value = true
  37. LoggedIn.Value = true
  38.  
  39. end
  40.  
  41. if msg == prefix.."purchase RugerLCP GY" and plr.Statss.Wallet.Value >= 1000 and CanOrder.Value == true then
  42.  
  43. plr.Statss.Wallet.Value = plr.Statss.Wallet.Value -1000
  44. wait(10)
  45.  
  46. local clone1 = Ruger:Clone()
  47.  
  48. clone1.Parent = workspace
  49. clone1.Position = Vector3.new(-82.564, 1.5, 311.267)
  50.  
  51.  
  52. end
  53.  
  54. if msg == prefix.."purchase RugerLCP CT" and plr.Statss.Wallet.Value >= 1000 and CanOrder.Value == true then
  55.  
  56. plr.Statss.Wallet.Value = plr.Statss.Wallet.Value -1000
  57. wait(10)
  58.  
  59. local clone1 = Ruger:Clone()
  60.  
  61. clone1.Parent = workspace
  62. clone1.Position = Vector3.new(261.325, 1.5, 292.008)
  63.  
  64.  
  65.  
  66.  
  67.  
  68. end
  69.  
  70. if msg == prefix.."purchase RugerLCP PH" and plr.Statss.Wallet.Value >= 1000 and CanOrder.Value == true then
  71.  
  72. plr.Statss.Wallet.Value = plr.Statss.Wallet.Value -1000
  73. wait(10)
  74.  
  75. local clone1 = Ruger:Clone()
  76.  
  77. clone1.Parent = workspace
  78. clone1.Position = Vector3.new(-393.381, 1.5, 209.112)
  79.  
  80.  
  81. end
  82.  
  83. if msg == prefix.."purchase .48 GY" and plr.Statss.Wallet.Value >= 2800 and CanOrder.Value == true then
  84.  
  85. plr.Statss.Wallet.Value = plr.Statss.Wallet.Value -2800
  86. wait(10)
  87.  
  88. local clone2 = Rossi:Clone()
  89.  
  90. clone2.Parent = workspace
  91. clone2.Position = Vector3.new(-82.564, 1.5, 311.267)
  92.  
  93. end
  94.  
  95. if msg == prefix.."purchase .48 CT" and plr.Statss.Wallet.Value >= 2800 and CanOrder.Value == true then
  96.  
  97. plr.Statss.Wallet.Value = plr.Statss.Wallet.Value -2800
  98. wait(10)
  99.  
  100. local clone2 = Rossi:Clone()
  101.  
  102. clone2.Parent = workspace
  103. clone2.Position = Vector3.new(261.325, 1.5, 292.008)
  104.  
  105. end
  106.  
  107. if msg == prefix.."purchase .48 PH" and plr.Statss.Wallet.Value >= 2800 and CanOrder.Value == true then
  108.  
  109. plr.Statss.Wallet.Value = plr.Statss.Wallet.Value -2800
  110. wait(10)
  111.  
  112. local clone2 = Rossi:Clone()
  113.  
  114. clone2.Parent = workspace
  115. clone2.Position = Vector3.new(-393.381, 1.5, 209.112)
  116.  
  117. end
  118.  
  119. if msg == prefix.."purchase Deagle GY" and plr.Statss.Wallet.Value >= 4600 and CanOrder.Value == true then
  120.  
  121. plr.Statss.Wallet.Value = plr.Statss.Wallet.Value -4600
  122. wait(10)
  123.  
  124. local clone3 = Deagle:Clone()
  125.  
  126. clone3.Parent = workspace
  127. clone3.Position = Vector3.new(-82.564, 1.5, 311.267)
  128.  
  129.  
  130. end
  131.  
  132. if msg == prefix.."purchase Deagle CT" and plr.Statss.Wallet.Value >= 4600 and CanOrder.Value == true then
  133.  
  134. plr.Statss.Wallet.Value = plr.Statss.Wallet.Value -4600
  135. wait(10)
  136.  
  137. local clone3 = Deagle:Clone()
  138.  
  139. clone3:Clone().Parent = workspace
  140. clone3.Position = Vector3.new(261.325, 1.5, 292.008)
  141.  
  142.  
  143. end
  144.  
  145. if msg == prefix.."purchase Deagle PH" and plr.Statss.Wallet.Value >= 4600 and CanOrder.Value == true then
  146.  
  147. plr.Statss.Wallet.Value = plr.Statss.Wallet.Value -4600
  148. wait(10)
  149.  
  150. local clone3 = Deagle:Clone()
  151.  
  152. clone3.Parent = workspace
  153. clone3.Position = Vector3.new(-393.381, 1.5, 209.112)
  154.  
  155.  
  156. end
  157.  
  158. if msg == prefix.."logout" and LoggedIn.Value == true then
  159. LoggedIn.Value = false
  160. CanOrder.Value = false
  161. Textlabel2.Visible = false
  162. Textlabel.Visible = true
  163. Textbox.Visible = true
  164.  
  165. end
  166.  
  167. end
  168.  
  169.  
  170. end)
  171.  
  172. end)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement