Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- repeat
- wait()
- until script.Parent:FindFirstChild("GUI") ~= nil
- repeat
- wait()
- until script.Parent.GUI:FindFirstChild("Spectate") ~= nil
- repeat
- wait()
- until script.Parent.GUI:FindFirstChild("ShopGUI") ~= nil
- repeat
- wait()
- until script.Parent.GUI:FindFirstChild("Shop") ~= nil
- local user = game.Players.LocalPlayer
- repeat
- wait()
- until user.Character ~= nil
- repeat
- wait()
- until user:findFirstChild("DATA") ~= nil
- local data = user:findFirstChild("DATA")
- wait(0.5)
- local code = "SN00PDWG"
- local code2 = "2SW4GGY4U"
- local code3 = "TW44T3R"
- local code4 = "T0X1CK1LL3R"
- local code5 = "P1KAP1K4CH00"
- local code6 = "IL0V3G3M5"
- local code7 = "2SPOOKY4ME"
- local code8 = "B4TTY4BANANA5"
- local code9 = "B1RDYBUD"
- local code10 = "THX4TWITCH"
- local code11 = "D3WR1TOS"
- local code12 = "ST4YFRO5TY"
- local code13 = "FROZ3NSOL1D"
- local code14 = "GOTT4GOF4ST"
- local code15 = "SMOK3RYD4Y"
- local code16 = "SK3LL1NGTON5"
- local code17 = "UR25LOW"
- local code18 = "TR1PPYFROGG3R"
- local code19 = "Y4Y2015"
- local code20 = "L3NNY4LYF3"
- local code21 = "P34NUTBUTT4H"
- local code22 = "MLGSW4G"
- local code23 = "BULL3TB1LL"
- local code24 = "LOV3YOU<3"
- local code25 = "LOV3INTH3A1R"
- local code26 = "5PR1NGFL1NG"
- local code27 = "2MUCHDUB"
- local code28 = "MON5T4C4T"
- local code29 = "JUMPYPUFFY"
- local code30 = "STABBYPUFF"
- local code31 = "CR1MW3B"
- local code32 = "H3LLOK1TTY"
- local code33 = "1Y3AR<3"
- local code34 = "5QU1D5"
- local code35 = "Z4MB1EDOG3"
- local code36 = "Y4Y2016"
- local shopGUI = script.Parent.GUI.ShopGUI
- local sounds = script.Parent.Sounds
- local tab1 = shopGUI.TabKnifeSkins
- local tab2 = shopGUI.TabGunSkins
- local tab3 = shopGUI.TabAbilities
- local tab4 = shopGUI.TabPerks
- local tab5 = shopGUI.TabCredits
- local tab6 = shopGUI.TabGear
- local tab7 = shopGUI.TabPets
- local frame1 = shopGUI.KnifeSkins
- local frame2 = shopGUI.GunSkins
- local frame3 = shopGUI.Abilities
- local frame4 = shopGUI.Perks
- local frame5 = shopGUI.Credits
- local frame6 = shopGUI.Gear
- local frame7 = shopGUI.Pets
- local lastFrame = frame1
- local lastTab = tab1
- local lastColor = Color3.new(1, 1, 1)
- local alternateColors = {Color3.new(0.87058823529412, 0.87058823529412, 0.87058823529412), Color3.new(0.81176470588235, 0.81176470588235, 0.81176470588235)}
- local frame = {frame1, frame2, frame3, frame4, frame5, frame6, frame7}
- local tab = {tab1, tab2, tab3, tab4, tab5, tab6, tab7}
- local currentItem = nil
- local currentTab = frame1.Name
- local view3D = nil
- local camera = workspace.CurrentCamera
- local MarketplaceService = Game:GetService("MarketplaceService")
- local user = script.Parent.Parent
- local discount = 0
- simplify = function(num)
- if num then
- local str = tostring(num)
- local len = string.len(str)
- if len <= 3 then
- return str
- else
- if len >= 4 and len <= 5 then
- return string.sub(str, 1, 1) .. "," .. string.sub(str, 2)
- else
- if len == 6 and len == 6 then
- return string.sub(str, 1, 3) .. "," .. string.sub(str, 4)
- else
- if len >= 7 then
- return string.sub(str, 1, len - 6) .. "," .. string.sub(str, len - 5, len - 3) .. "," .. string.sub(str, len - 2)
- end
- end
- end
- end
- end
- end
- updateCredits = function()
- script.Parent.GUI.Shop.Money.Text = "$" .. data.Credits.Value
- end
- updateCredits()
- data.Credits.Changed:connect(updateCredits)
- returnTexture = function(t)
- return "http://www.roblox.com/Thumbs/Asset.ashx?assetId=" .. t .. "&imageFormat=png&width=200&height=200"
- end
- returnCreator = function(t)
- return "http://www.roblox.com/thumbs/avatar.ashx?x=352&y=352&format=png&username=" .. t
- end
- if camera:findFirstChild("3D") ~= nil then
- camera:findFirstChild("3D").Parent = nil
- end
- for i = 1, #tab do
- do
- tab[i].MouseButton1Down:connect(function()
- sounds.UI_Click:Play()
- lastTab.BorderSizePixel = 3
- lastFrame.Visible = false
- lastFrame = frame[i]
- lastTab = tab[i]
- lastColor = tab[i].BackgroundColor3
- frame[i].Visible = true
- currentTab = frame[i].Name
- shopGUI.BackgroundColor3 = tab[i].BackgroundColor3
- script.Parent.GUI.Shop.BackgroundColor3 = tab[i].BackgroundColor3
- tab[i].BorderSizePixel = 0
- shopGUI.SelectedInfo.Visible = false
- if camera:findFirstChild("3D") ~= nil then
- camera:findFirstChild("3D").Parent = nil
- end
- selectedItem = nil
- if tab[i].Name ~= "TabCredits" then
- shopGUI.Label.Visible = true
- d = data:findFirstChild(string.sub(tab[i].Name, 4))
- -- DECOMPILER ERROR at PC95: Unhandled construct in 'MakeBoolean' P1
- if d ~= nil and d.Value ~= nil then
- selectedItem = d.Value
- shopGUI.SelectedInfo.CreatorTexture.Image = returnCreator(d.Value.Creator.Value)
- shopGUI.SelectedInfo.CreatorTexture.ItemName.Text = d.Value.Creator.Value
- shopGUI.SelectedInfo.Price.Text = "$" .. d.Value.Price.Value - d.Value.Price.Value * discount
- shopGUI.SelectedInfo.Price.TextColor3 = Color3.new(1, 1, 0.49803921568627)
- shopGUI.SelectedInfo.ItemName.Text = d.Value.Name
- shopGUI.SelectedInfo.Description.Text = d.Value.Desc.Value
- shopGUI.SelectedInfo.Buy.Visible = true
- shopGUI.SelectedInfo.Visible = true
- shopGUI.SelectedInfo.Owned.Visible = true
- shopGUI.SelectedInfo.Buy.Text = "UN-EQUIP"
- shopGUI.SelectedInfo.Owned.Text = "EQUIPPED"
- shopGUI.Label.Visible = false
- local model = d.Value
- module3D = require(script.Parent.Module3D)
- local frame = shopGUI.View3D
- model3D = module3D:Attach3D(frame, model)
- model3D:SetActive(true)
- game:GetService("RunService").RenderStepped:connect(function()
- local fullRotation = math.pi * 2
- local currentRotation = tick() % fullRotation
- if d.Value ~= nil then
- if d.Value.Parent.Name == "KnifeSkins" then
- model3D:SetCFrame(CFrame.Angles(math.rad(0), currentRotation, math.rad(45)))
- else
- if d.Value.Parent.Name == "GunSkins" then
- model3D:SetCFrame(CFrame.Angles(math.rad(0), currentRotation, math.rad(0)))
- else
- model3D:SetCFrame(CFrame.Angles(math.rad(0), currentRotation, math.rad(45)))
- end
- end
- end
- end
- )
- end
- end
- do
- shopGUI.Label.Visible = false
- end
- end
- )
- end
- end
- local setupShop = {"KnifeSkins", "GunSkins", "Gear", "Perks", "Abilities", "Credits", "Pets"}
- local box = (shopGUI.ItemBox:clone())
- do
- selectedItem = nil
- do
- for x = 1, #setupShop do
- local alt = 1
- local items = game.ReplicatedStorage.Shop[setupShop[x]]:GetChildren()
- do
- for i = 1, #items do
- local newBox = box:clone()
- newBox.Visible = true
- newBox.Parent = shopGUI[setupShop[x]].ScrollingFrame
- newBox.Name = items[i].Name
- newBox.Position = newBox.Position + UDim2.new(0, 0, 0, -25 + 25 * i)
- newBox.Text = items[i].Name
- shopGUI[setupShop[x]].ScrollingFrame.CanvasSize = UDim2.new(0, 0, 0, 25 * i)
- if data.Backpack:findFirstChild(items[i].Name) then
- newBox.Check.Visible = true
- end
- if alt == 1 then
- alt = 2
- newBox.BackgroundColor3 = alternateColors[alt]
- else
- alt = 1
- newBox.BackgroundColor3 = alternateColors[alt]
- end
- newBox.MouseButton1Down:connect(function()
- if currentTab ~= "Credits" then
- shopGUI.SelectedInfo.Price.Text = "$" .. items[i].Price.Value - items[i].Price.Value * discount
- shopGUI.SelectedInfo.Price.TextColor3 = Color3.new(1, 1, 0.49803921568627)
- if items[i].Price.Value == 0 then
- shopGUI.SelectedInfo.Price.Text = "UNLOCKABLE"
- end
- else
- shopGUI.SelectedInfo.Price.Text = items[i].Price.Value .. " ROBUX"
- shopGUI.SelectedInfo.Price.TextColor3 = Color3.new(0.33333333333333, 1, 0.49803921568627)
- end
- shopGUI.SelectedInfo.CreatorTexture.Image = returnCreator(items[i].Creator.Value)
- shopGUI.SelectedInfo.CreatorTexture.ItemName.Text = items[i].Creator.Value
- shopGUI.SelectedInfo.ItemName.Text = items[i].Name
- shopGUI.SelectedInfo.Description.Text = items[i].Desc.Value
- selectedItem = items[i]
- shopGUI.SelectedInfo.Visible = true
- shopGUI.Label.Visible = false
- if data.Backpack:findFirstChild(items[i].Name) then
- shopGUI.SelectedInfo.Owned.Visible = true
- shopGUI.SelectedInfo.Owned.Text = "YOU OWN THIS"
- shopGUI.SelectedInfo.Buy.Text = "EQUIP"
- shopGUI.SelectedInfo.Buy.Visible = true
- else
- if items[i].Price.Value == 0 then
- shopGUI.SelectedInfo.Owned.Visible = true
- shopGUI.SelectedInfo.Price.Text = "UNLOCKABLE"
- shopGUI.SelectedInfo.Owned.Text = "TWITTER: @TAYMASTAR"
- shopGUI.SelectedInfo.Buy.Visible = false
- else
- shopGUI.SelectedInfo.Owned.Visible = false
- shopGUI.SelectedInfo.Owned.Text = "YOU OWN THIS"
- shopGUI.SelectedInfo.Buy.Text = "BUY"
- shopGUI.SelectedInfo.Buy.Visible = true
- end
- end
- if data[setupShop[x]].Value == items[i] then
- shopGUI.SelectedInfo.Owned.Text = "EQUIPPED"
- shopGUI.SelectedInfo.Buy.Text = "UN-EQUIP"
- end
- local model = items[i]
- if camera:findFirstChild("3D") ~= nil then
- camera:findFirstChild("3D").Parent = nil
- end
- module3D = require(script.Parent.Module3D)
- local frame = shopGUI.View3D
- model3D = module3D:Attach3D(frame, model)
- model3D:SetActive(true)
- game:GetService("RunService").RenderStepped:connect(function()
- local fullRotation = math.pi * 2
- local currentRotation = tick() % fullRotation
- if selectedItem ~= nil then
- if items[i].Parent.Name == "KnifeSkins" then
- model3D:SetCFrame(CFrame.Angles(math.rad(0), currentRotation, math.rad(45)))
- else
- if items[i].Parent.Name == "GunSkins" then
- model3D:SetCFrame(CFrame.Angles(math.rad(0), currentRotation, math.rad(0)))
- else
- model3D:SetCFrame(CFrame.Angles(math.rad(0), currentRotation, math.rad(45)))
- end
- end
- end
- end
- )
- end
- )
- end
- end
- end
- end
- buy = function()
- if selectedItem ~= nil then
- if shopGUI.SelectedInfo.Buy.Text == "EQUIP" then
- shopGUI.SelectedInfo.Buy.Text = "UN-EQUIP"
- data[selectedItem.Parent.Name].Value = selectedItem
- shopGUI.SelectedInfo.Owned.Visible = true
- shopGUI.SelectedInfo.Owned.Text = "EQUIPPED"
- else
- if shopGUI.SelectedInfo.Buy.Text == "UN-EQUIP" then
- shopGUI.SelectedInfo.Buy.Text = "EQUIP"
- data[selectedItem.Parent.Name].Value = nil
- shopGUI.SelectedInfo.Owned.Visible = true
- shopGUI.SelectedInfo.Owned.Text = "YOU OWN THIS"
- else
- if currentTab ~= "Credits" then
- if (selectedItem.Price.Value - selectedItem.Price.Value * discount <= data.RealCredits.Value - 950000 and data.RealCredits.Value - data.Credits.Value == 950000 and data.Backpack:findFirstChild(selectedItem.Name) == nil and selectedItem.Price.Value >= 150) or selectedItem:findFirstChild("Code") ~= nil and data.Backpack:findFirstChild(selectedItem.Name) == nil then
- sounds.Money:Play()
- shopGUI[selectedItem.Parent.Name].ScrollingFrame:findFirstChild(selectedItem.Name).Check.Visible = true
- data.V.Value = true
- data.Credits.Value = data.Credits.Value - (selectedItem.Price.Value - selectedItem.Price.Value * discount)
- data.RealCredits.Value = data.RealCredits.Value - (selectedItem.Price.Value - selectedItem.Price.Value * discount)
- local v = Instance.new("ObjectValue")
- v.Value = selectedItem
- v.Name = selectedItem.Name
- v.Parent = data.Backpack
- shopGUI.SelectedInfo.Buy.Text = "UN-EQUIP"
- data[selectedItem.Parent.Name].Value = selectedItem
- shopGUI.SelectedInfo.Owned.Visible = true
- shopGUI.SelectedInfo.Owned.Text = "EQUIPPED"
- else
- do
- sounds.Error:Play()
- if selectedItem ~= nil then
- local val = game.ReplicatedStorage.Shop.Credits:FindFirstChild(selectedItem.Name).DevID.Value
- if game.ReplicatedStorage.Shop.Credits:FindFirstChild(selectedItem.Name):findFirstChild("GP") == nil then
- MarketplaceService:PromptProductPurchase(user, val)
- else
- MarketplaceService:PromptPurchase(user, val)
- end
- end
- end
- end
- end
- end
- end
- end
- end
- shopGUI.SelectedInfo.Buy.MouseButton1Down:connect(buy)
- spectate = function()
- if workspace.GameInProgress.Value == true then
- if script.Parent.GUI.Spectating.Visible == true then
- script.Parent.GUI.Spectating.Visible = false
- sounds.UI_Click:Play()
- game:GetService("StarterGui"):SetCoreGuiEnabled("Health", true)
- else
- script.Parent.GUI.Spectating.Visible = true
- sounds.UI_Click:Play()
- game:GetService("StarterGui"):SetCoreGuiEnabled("Health", false)
- end
- end
- end
- resetColor = function()
- if shopGUI ~= nil and script.Parent.GUI:FindFirstChild("Shop") then
- if shopGUI.Visible == false or script.Parent.GUI.Shop.Visible == false then
- script.Parent.GUI.Shop.BackgroundColor3 = Color3.new(1, 1, 1)
- script.Parent.GUI.ShopGUI.noline.BackgroundColor3 = Color3.new(1, 1, 1)
- if camera:findFirstChild("3D") ~= nil then
- camera:findFirstChild("3D").Parent = nil
- end
- else
- script.Parent.GUI.Shop.BackgroundColor3 = lastColor
- script.Parent.GUI.ShopGUI.noline.BackgroundColor3 = lastColor
- end
- end
- end
- shop = function()
- if shopGUI ~= nil then
- if shopGUI.Visible == true then
- shopGUI.Visible = false
- sounds.UI_Click:Play()
- resetColor()
- else
- sounds.UI_Click:Play()
- shopGUI.Visible = true
- resetColor()
- local find = data:findFirstChild(currentTab)
- if find ~= nil and find.Value ~= nil and currentTab ~= "Credits" then
- selectedItem = find.Value
- shopGUI.SelectedInfo.CreatorTexture.Image = returnCreator(selectedItem.Creator.Value)
- shopGUI.SelectedInfo.CreatorTexture.ItemName.Text = selectedItem.Creator.Value
- shopGUI.SelectedInfo.Price.Text = "$" .. selectedItem.Price.Value - selectedItem.Price.Value * discount
- shopGUI.SelectedInfo.Price.TextColor3 = Color3.new(1, 1, 0.49803921568627)
- if selectedItem.Price.Value == 0 then
- shopGUI.SelectedInfo.Price.Text = "UNLOCKABLE"
- end
- shopGUI.SelectedInfo.ItemName.Text = selectedItem.Name
- shopGUI.SelectedInfo.Description.Text = selectedItem.Desc.Value
- shopGUI.SelectedInfo.Visible = true
- shopGUI.Label.Visible = false
- if data.Backpack:findFirstChild(selectedItem.Name) then
- shopGUI.SelectedInfo.Owned.Visible = true
- shopGUI.SelectedInfo.Owned.Text = "YOU OWN THIS"
- shopGUI.SelectedInfo.Buy.Text = "EQUIP"
- else
- shopGUI.SelectedInfo.Owned.Visible = false
- shopGUI.SelectedInfo.Owned.Text = "YOU OWN THIS"
- shopGUI.SelectedInfo.Buy.Text = "BUY"
- end
- if data[selectedItem.Parent.Name].Value == selectedItem then
- shopGUI.SelectedInfo.Owned.Text = "EQUIPPED"
- shopGUI.SelectedInfo.Buy.Text = "UN-EQUIP"
- end
- end
- if selectedItem ~= nil then
- local model = selectedItem
- module3D = require(script.Parent.Module3D)
- local frame = shopGUI.View3D
- model3D = module3D:Attach3D(frame, model)
- model3D:SetActive(true)
- game:GetService("RunService").RenderStepped:connect(function()
- local fullRotation = math.pi * 2
- local currentRotation = tick() % fullRotation
- if selectedItem ~= nil then
- if selectedItem.Parent.Name == "KnifeSkins" then
- model3D:SetCFrame(CFrame.Angles(math.rad(0), currentRotation, math.rad(45)))
- else
- if selectedItem.Parent.Name == "GunSkins" then
- model3D:SetCFrame(CFrame.Angles(math.rad(0), currentRotation, math.rad(0)))
- else
- model3D:SetCFrame(CFrame.Angles(math.rad(0), currentRotation, math.rad(45)))
- end
- end
- end
- end
- )
- end
- end
- end
- end
- local db1 = false
- local tb = shopGUI.TextBox
- local enter = shopGUI.TextBox.Enter
- enter.MouseButton1Click:connect(function()
- if db1 == false then
- db1 = true
- if tb.Text == code then
- if data.Backpack:findFirstChild("Snoop Dawg") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Snoop Dawg"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code2 then
- if data.Backpack:findFirstChild("Swag Shank") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Swag Shank"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code3 then
- if data.Backpack:findFirstChild("Social Sheriff") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.GunSkins["Social Sheriff"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code4 then
- if data.Backpack:findFirstChild("Radioactive Knife") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Radioactive Knife"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code5 then
- if data.Backpack:findFirstChild("Pika Knife") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Pika Knife"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code6 then
- if data.Backpack:findFirstChild("Geminite Revolver") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.GunSkins["Geminite Revolver"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code7 then
- if data.Backpack:findFirstChild("Cute Pumpkin") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Cute Pumpkin"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code8 then
- if data.Backpack:findFirstChild("Bat Buddy") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets["Bat Buddy"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code9 then
- if data.Backpack:findFirstChild("Snowbird") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.Snowbird
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code10 then
- if data.Backpack:findFirstChild("Black Fire") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Gear["Black Fire"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code11 then
- if data.Backpack:findFirstChild("Doritos") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.Doritos
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code12 then
- if data.Backpack:findFirstChild("Snowball") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Gear.Snowball
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code13 then
- if data.Backpack:findFirstChild("Snow Shank") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Gear["Magic Snowman"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Snow Shank"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets["Festive Gift"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code14 then
- if data.Backpack:findFirstChild("Sanic") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.Sanic
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code15 then
- if data.Backpack:findFirstChild("Snoop") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.Snoop
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code16 then
- if data.Backpack:findFirstChild("Skeleman") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.Skeleman
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code17 then
- if data.Backpack:findFirstChild("Super Sanic") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets["Super Sanic"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code18 then
- if data.Backpack:findFirstChild("Rainbow Frog") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets["Rainbow Frog"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code19 then
- if data.Backpack:findFirstChild("Sparkler") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Gear.Sparkler
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["2015 Knife"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.GunSkins["Gold Justice"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code20 then
- if data.Backpack:findFirstChild("Lenny") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.Lenny
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code21 and (user.userId == 59967 or user.userId == 61664 or user.userId == 62346773) then
- if data.Backpack:findFirstChild("PBJ") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.PBJ
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code22 and (user.userId == 59967 or user.userId == 61664 or user.userId == 62346773) then
- if data.Backpack:findFirstChild("Rainbow Lenny") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets["Rainbow Lenny"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code24 and (user.userId == 59967 or user.userId == 62346773) then
- if data.Backpack:findFirstChild("Love Panda") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets["Love Panda"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code25 then
- if data.Backpack:findFirstChild("Rose Launcher") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Gear["Rose Launcher"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code26 then
- if data.Backpack:findFirstChild("Flower Feet") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Gear["Flower Feet"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code23 then
- if data.Backpack:findFirstChild("Bullet Bill") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Bullet Bill"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code27 then
- if data.Backpack:findFirstChild("Dubshank") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins.Dubshank
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code28 then
- if data.Backpack:findFirstChild("Monster Cat") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Monster Cat"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code29 then
- if data.Backpack:findFirstChild("Puff") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.Puff
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code30 then
- if data.Backpack:findFirstChild("Puffy Shank") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Puffy Shank"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code31 then
- if data.Backpack:findFirstChild("Crimson Web") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.KnifeSkins["Crimson Web"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code32 and (user.userId == 59967 or user.userId == 62346773 or user.userId == 56586156 or user.userId == 59385130 or user.userId == 5314077) then
- if data.Backpack:findFirstChild("Hello Kitty") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets["Hello Kitty"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code33 then
- if data.Backpack:findFirstChild("Golden Cake") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Gear["Golden Cake"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code34 then
- if data.Backpack:findFirstChild("Squiddles") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.Squiddles
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code35 then
- if data.Backpack:findFirstChild("Zombie Doge") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets["Zombie Doge"]
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- if tb.Text == code36 then
- if data.Backpack:findFirstChild("Reindeer") == nil then
- tb.Text = "Code accepted"
- selectedItem = game.ReplicatedStorage.Shop.Pets.Reindeer
- shopGUI.SelectedInfo.Buy.Text = "UNLOCKING..."
- buy()
- else
- tb.Text = "Code already used"
- end
- else
- tb.Text = "Invalid code"
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- end
- db1 = false
- end
- end
- )
- local playing = false
- local onc = false
- script.Parent.GUI.TwistedRadioGUI.TextBox.Play.MouseButton1Click:connect(function()
- if user.Character:findFirstChild("TwistedRadio") then
- if user.Character.Torso:findFirstChild("Music") then
- user.Character.Torso:findFirstChild("Music"):Stop()
- wait()
- user.Character.Torso:findFirstChild("Music"):Destroy()
- end
- local s = Instance.new("Sound")
- s.Parent = user.Character.Torso
- s.Volume = 1
- if string.sub(script.Parent.GUI.TwistedRadioGUI.TextBox.Text, 1, 8) == "83594623" then
- script.Parent.GUI.TwistedRadioGUI.TextBox.Text = "Banned ID"
- return
- end
- s.SoundId = "rbxassetid://" .. script.Parent.GUI.TwistedRadioGUI.TextBox.Text
- s.Name = "Music"
- s.Looped = true
- s.Pitch = 1
- s:Play()
- wait()
- if s then
- s:Play()
- end
- if not onc then
- onc = true
- sc = user.Character:findFirstChild("TwistedRadio").Mesh.Scale * Vector3.new(0.05, 0.05, 0.1)
- end
- playing = true
- else
- do
- if user.Character:findFirstChild("Earbuds") then
- user.Character:findFirstChild("Earbuds").Handle.Transparency = 0
- if user.PlayerGui.Sounds:findFirstChild("Music") then
- user.PlayerGui.Sounds:findFirstChild("Music"):Stop()
- wait()
- user.PlayerGui.Sounds:findFirstChild("Music"):Destroy()
- end
- local s = Instance.new("Sound")
- s.Parent = user.PlayerGui.Sounds
- s.Volume = 1
- if string.sub(script.Parent.GUI.TwistedRadioGUI.TextBox.Text, 1, 8) == "83594623" then
- script.Parent.GUI.TwistedRadioGUI.TextBox.Text = "Banned ID"
- return
- end
- s.SoundId = "rbxassetid://" .. script.Parent.GUI.TwistedRadioGUI.TextBox.Text
- s.Name = "Music"
- s.Looped = true
- s.Pitch = 1
- s:Play()
- wait()
- if s then
- s:Play()
- end
- end
- end
- end
- end
- )
- script.Parent.GUI.TwistedRadioGUI.BuyRadio.Buy.MouseButton1Click:connect(function()
- MarketplaceService:PromptPurchase(user, 177132160)
- end
- )
- local mvpDoor = workspace.Lobby:FindFirstChild("MVPDoor")
- if mvpDoor then
- mvpDoor.SurfaceGui.Frame.bt.MouseButton1Click:connect(function()
- MarketplaceService:PromptPurchase(user, 182499700)
- end
- )
- end
- local buyAni = workspace.Lobby:FindFirstChild("BuyAni")
- if buyAni then
- buyAni.SurfaceGui.Frame.bt.MouseButton1Click:connect(function()
- MarketplaceService:PromptPurchase(user, 280891134)
- end
- )
- end
- script.Parent.GUI.TwistedRadioGUI.TextBox.Stop.MouseButton1Click:connect(function()
- playing = false
- do
- if user.Character.Torso:findFirstChild("Music") then
- local m = user.Character.Torso:findFirstChild("Music")
- m:Stop()
- wait()
- m:Destroy()
- end
- if user.PlayerGui.Sounds:findFirstChild("Music") then
- local m = user.PlayerGui.Sounds:findFirstChild("Music")
- if user.Character:findFirstChild("Earbuds") then
- user.Character:findFirstChild("Earbuds").Handle.Transparency = 1
- end
- m:Stop()
- wait()
- m:Destroy()
- end
- end
- end
- )
- repeat
- wait()
- until user.Character ~= nil
- repeat
- wait()
- until user.Character:findFirstChild("Humanoid") ~= nil
- user.Character.Humanoid.Died:connect(function()
- playing = false
- if user.Character:findFirstChild("Torso") and user.Character.Torso:findFirstChild("Music") then
- user.Character.Torso:findFirstChild("Music"):Stop()
- end
- if user.PlayerGui.Sounds and user.PlayerGui.Sounds:findFirstChild("Music") then
- user.PlayerGui.Sounds:findFirstChild("Music"):Stop()
- end
- end
- )
- script.Parent.GUI.Shop.Changed:connect(resetColor)
- script.Parent.GUI.Shop.MouseButton1Down:connect(shop)
- script.Parent.GUI.Spectate.MouseButton1Down:connect(spectate)
- while 1 do
- wait()
- if not playing or user.Character:findFirstChild("TwistedRadio") then
- wait(0.25)
- user.Character:findFirstChild("TwistedRadio").Mesh.Scale = user.Character:findFirstChild("TwistedRadio").Mesh.Scale + sc
- wait(0.25)
- user.Character:findFirstChild("TwistedRadio").Mesh.Scale = user.Character:findFirstChild("TwistedRadio").Mesh.Scale - sc
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement