NovalGamingYT

Script Codes

Dec 31st, 2017
145
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.51 KB | None | 0 0
  1. local code1 = "CHRISTMASTYCOON"
  2. local p = script.Parent.Parent.Parent.Parent.Parent
  3. script.Parent.Parent.GO.MouseButton1Click:connect(function()
  4. if script.Parent.Text:lower() == code1:lower() then
  5. if p:FindFirstChild('Code'..code1) then
  6. script.Parent.Text = "Already Used!"
  7. else
  8. Instance.new('Model', p).Name = ("Code"..code1)
  9. script.Parent.Text = "Redeemed!"
  10. local money = game.ServerStorage:FindFirstChild("MoneyStorage"):FindFirstChild(p.Name)
  11. money.Value = money.Value + 100000
  12. end
  13. end
  14. end)
Advertisement
Add Comment
Please, Sign In to add comment