Advertisement
drakon-firestone

Untitled

Jan 5th, 2024
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. local httpService = game:GetService("HttpService")
  2. local replicatedStorage = game.ReplicatedStorage
  3. local remotes = replicatedStorage:WaitForChild("Remotes")
  4. local createTemplate = remotes:WaitForChild("CreateTemplate")
  5.  
  6.  
  7. local codes = {
  8.  
  9. ["PLAY"] = {
  10. function(player)
  11. player.leaderstats.Diamonds.Value += 100000
  12. end,
  13. false,
  14. false
  15. },
  16.  
  17. ["PET"] = {
  18. function(player)
  19. local petName = "18"
  20. local id = httpService:GenerateGUID()
  21. local pet = Instance.new("StringValue", player.Pets)
  22. pet.Name = petName
  23. pet.Value = id
  24. createTemplate:FireClient(player, petName, id)
  25. end,
  26. false,
  27. false
  28. },
  29.  
  30. ["NIGHT"] = {
  31. function(player)
  32. game.Lighting.ClockTime = 0
  33. end,
  34. false,
  35. true
  36. },
  37.  
  38. ["DAY"] = {
  39. function(player)
  40. game.Lighting.ClockTime = 11.5
  41. end,
  42. false,
  43. true
  44. },
  45.  
  46. ["MINI"] = {
  47. function(player)
  48. player.Character:ScaleTo(0.5)
  49. end,
  50. false,
  51. true
  52. },
  53.  
  54. ["BIG"] = {
  55. function(player)
  56. player.Character:ScaleTo(10)
  57. end,
  58. false,
  59. true
  60. },
  61.  
  62. ["BIGHEAD"] = {
  63. function(player)
  64. player.Character.Head.Size = Vector3.new(5,5,5)
  65. end,
  66. false,
  67. false
  68. },
  69.  
  70. ["TURBO"] = {
  71. function(player)
  72. player.Character.Humanoid.WalkSpeed = 100
  73. end,
  74. false,
  75. false
  76. },
  77.  
  78. ["TACOS"] = {
  79. function(player)
  80. local sound = Instance.new("Sound")
  81. sound.SoundId = "rbxassetid://142376088"
  82. sound.Parent = player
  83. sound:Play()
  84. end,
  85. false,
  86. true
  87. }
  88. }
  89.  
  90.  
  91. remotes:WaitForChild("UseCode").OnServerInvoke = function(player,code)
  92. if codes[tostring(code)] then
  93. if player.Codes then
  94. if type(codes) == "table" then
  95. if player.Codes:FindFirstChild(tostring(code)) then
  96. return "Already"
  97. else
  98. if codes[tostring(code)][2] == true then
  99. return "Expired"
  100. else
  101. codes[tostring(code)][1](player)
  102. if codes[tostring(code)][3] == false then
  103. local usedCode = Instance.new("StringValue", player.Codes)
  104. usedCode.Name = tostring(code)
  105. end
  106. return "Successfully"
  107. end
  108. end
  109. else
  110. return "Unknown"
  111. end
  112. else
  113. return "Unknown"
  114. end
  115. else
  116. return "Invalid"
  117. end
  118. end
  119.  
  120.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement