Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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.Diamonds.Value += 100000
- end,
- false,
- false
- },
- ["PET"] = {
- function(player)
- local petName = "18"
- local id = httpService:GenerateGUID()
- local pet = Instance.new("StringValue", player.Pets)
- pet.Name = petName
- pet.Value = id
- createTemplate:FireClient(player, petName, id)
- end,
- false,
- false
- },
- ["NIGHT"] = {
- function(player)
- game.Lighting.ClockTime = 0
- end,
- false,
- true
- },
- ["DAY"] = {
- function(player)
- game.Lighting.ClockTime = 11.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
- },
- ["BIGHEAD"] = {
- function(player)
- player.Character.Head.Size = Vector3.new(5,5,5)
- end,
- false,
- false
- },
- ["TURBO"] = {
- function(player)
- player.Character.Humanoid.WalkSpeed = 100
- end,
- false,
- false
- },
- ["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
- codes[tostring(code)][1](player)
- if codes[tostring(code)][3] == false then
- local usedCode = Instance.new("StringValue", player.Codes)
- usedCode.Name = tostring(code)
- end
- return "Successfully"
- end
- end
- else
- return "Unknown"
- end
- else
- return "Unknown"
- end
- else
- return "Invalid"
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement