local remotes = game.ReplicatedStorage.Remotes local httpService = game:GetService("HttpService") local replicatedStorage = game.ReplicatedStorage local remotes = replicatedStorage:WaitForChild("Remotes") local createTemplate = remotes:WaitForChild("CreateTemplate") local codes = { ["PLAY"] = { function(player) player.leaderstats.Diamond.Value += 100000 end, false, false }, ["PET"] = { function(player) local petName = "18" local id = httpService:GenerateGUID() local pet = Instance.new("StringValue", player, id) pet.Name = petName pet.Value = id createTemplate:FireClient(player, petName, id) end, false, false }, ["TURBO"] = { function(player) player.Character.Humanoid.WalkSpeed = 100 end, false, true }, ["BIGHEAD"] = { function(player) player.Character.Head.Size = Vector3.new(5,5,5) end, false, true }, ["MINI"] = { function(player) player.Character:ScaleTo(0.5) end, false, true }, ["BIG"] = { function(player) player.Character:ScaleTo(10) end, false, true }, ["DAY"] = { function(player) game.Lighting.ClockTime = 11.5 end, false, true }, ["TACOS"] = { function(player) local sound = Instance.new("Sound") sound.SoundId = "rbxassetid://142376088" sound.Parent = player sound:Play() end, false, true } } remotes:WaitForChild("UseCode").OnServerInvoke = function(player, code) if codes[tostring(code)] then if player.Codes then if type(codes) == "table" then if player.Codes:FindFirstChild(tostring(code)) then return "Already" else if codes[tostring(code)[2] == true then return "Expired" else if codes[tostring(code)][3] == false then codes[tostring(code)][1](player) local usedCode = Instance.new("StringValue", player.Codes) usedCode.Name = tostring(code) return "Successfully" else codes[tostring(code)][1](player) return "Successfully" end end end else return "Unknow" end else return "Unknow" end else return "Invalid" end end