Advertisement
qsenko1

AccessoriesShop

May 1st, 2021
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 123.94 KB | None | 0 0
  1. -- Variables
  2. local debounce = true
  3. local dataStore = game:GetService("DataStoreService"):GetDataStore("RealAccessories")
  4. local ReplicatedStorage = game:GetService("ReplicatedStorage")
  5. local itemsFolder = game.ReplicatedStorage.Accessories:WaitForChild("Events")
  6.  
  7. local Goblet = game.ReplicatedStorage.Accessories:FindFirstChild("Goblet")
  8. local ChocolateMilk = game.ReplicatedStorage.Accessories:FindFirstChild("ChocolateMilk")
  9. local StarBloxCoffee = game.ReplicatedStorage.Accessories:FindFirstChild("StarBloxCoffee")
  10. local HotDog = game.ReplicatedStorage.Accessories:FindFirstChild("HotDog")
  11. local TeddyBloxpin = game.ReplicatedStorage.Accessories:FindFirstChild("TeddyBloxpin")
  12. local PirateJuice = game.ReplicatedStorage.Accessories:FindFirstChild("PirateJuice")
  13. local Taco = game.ReplicatedStorage.Accessories:FindFirstChild("Taco")
  14. local Watermelon = game.ReplicatedStorage.Accessories:FindFirstChild("Watermelon")
  15. local Pizza = game.ReplicatedStorage.Accessories:FindFirstChild("Pizza")
  16. local FoamFinger = game.ReplicatedStorage.Accessories:FindFirstChild("FoamFinger")
  17. local Compass = game.ReplicatedStorage.Accessories:FindFirstChild("Compass")
  18. local TomsBeans = game.ReplicatedStorage.Accessories:FindFirstChild("TomsBeans")
  19. local IceCream = game.ReplicatedStorage.Accessories:FindFirstChild("IceCream")
  20. local Waffle = game.ReplicatedStorage.Accessories:FindFirstChild("Waffle")
  21. local WitchesBrew = game.ReplicatedStorage.Accessories:FindFirstChild("WitchesBrew")
  22. local Torch = game.ReplicatedStorage.Accessories:FindFirstChild("Torch")
  23. local BloxxyRadar = game.ReplicatedStorage.Accessories:FindFirstChild("BloxxyRadar")
  24. local SpaceSandwitch = game.ReplicatedStorage.Accessories:FindFirstChild("SpaceSandwitch")
  25. local Cake = game.ReplicatedStorage.Accessories:FindFirstChild("Cake")
  26. local FaceoffPotion = game.ReplicatedStorage.Accessories:FindFirstChild("FaceOffPotion")
  27. local Bubblegum = game.ReplicatedStorage.Accessories:FindFirstChild("BubbleGum")
  28. local Monkey = game.ReplicatedStorage.Accessories:FindFirstChild("Monkey")
  29. local NoiseMaker = game.ReplicatedStorage.Accessories:FindFirstChild("NoiseMaker")
  30. local ApplePie = game.ReplicatedStorage.Accessories:FindFirstChild("ApplePie")
  31. local PandaFriend = game.ReplicatedStorage.Accessories:FindFirstChild("PandaFriend")
  32. local BangGun = game.ReplicatedStorage.Accessories:FindFirstChild("BangGun")
  33. local WhopeeCushion = game.ReplicatedStorage.Accessories:FindFirstChild("WhopeeCushion")
  34. local WoodenSword = game.ReplicatedStorage.Accessories:FindFirstChild("WoodenSword")
  35. local Dragon = game.ReplicatedStorage.Accessories:FindFirstChild("Dragon")
  36. local WoodenStaff = game.ReplicatedStorage.Accessories:FindFirstChild("WoodenStaff")
  37. local Spray = game.ReplicatedStorage.Accessories:FindFirstChild("Spray")
  38. local ClownBomb = game.ReplicatedStorage.Accessories:FindFirstChild("ClownBomb")
  39. local ChameleonPotion = game.ReplicatedStorage.Accessories:FindFirstChild("ChameleonPotion")
  40. local SpyDrone = game.ReplicatedStorage.Accessories:FindFirstChild("SpyDrone")
  41. local Moneybag = game.ReplicatedStorage.Accessories:FindFirstChild("Moneybag") -- 18
  42. -- Functions
  43.    
  44. game.Players.PlayerAdded:Connect(function(player)
  45.     -- Stats for the player
  46.     local AccessoriesInventory = Instance.new("Folder",player); AccessoriesInventory.Name = "AccessoriesInventory"
  47.     local EquippedAccessories = Instance.new("Folder",AccessoriesInventory); EquippedAccessories.Name = "EquippedAccessories"
  48.     local GobletAccessory = Instance.new("StringValue",EquippedAccessories); GobletAccessory.Name = "EquippedGoblet"
  49.     local Gobletbool = Instance.new("BoolValue",player.AccessoriesInventory); Gobletbool.Name = "Goblet"
  50.     local ChocolateMilkAccessory = Instance.new("StringValue",EquippedAccessories); ChocolateMilkAccessory.Name = "EquippedChocolateMilk"
  51.     local ChocolateMilkbool = Instance.new("BoolValue",player.AccessoriesInventory); ChocolateMilkbool.Name = "ChocolateMilk"
  52.     local StarBloxCoffeeAccessory = Instance.new("StringValue",EquippedAccessories); StarBloxCoffeeAccessory.Name = "EquippedStarBloxCoffee"
  53.     local StarBloxCoffeebool = Instance.new("BoolValue",player.AccessoriesInventory); StarBloxCoffeebool.Name = "StarBloxCoffee"
  54.     local HotdogAccessory = Instance.new("StringValue",EquippedAccessories); HotdogAccessory.Name = "EquippedHotdog"
  55.     local Hotdogbool = Instance.new("BoolValue",player.AccessoriesInventory); Hotdogbool.Name = "Hotdog"
  56.     local TeddyBloxpinAccessory = Instance.new("StringValue",EquippedAccessories); TeddyBloxpinAccessory.Name = "EquippedTeddyBloxpin"
  57.     local TeddyBloxpinbool = Instance.new("BoolValue",player.AccessoriesInventory); TeddyBloxpinbool.Name = "TeddyBloxpin"
  58.     local PirateJuiceAccessory = Instance.new("StringValue",EquippedAccessories); PirateJuiceAccessory.Name = "EquippedPirateJuice"
  59.     local PirateJuicebool = Instance.new("BoolValue",player.AccessoriesInventory); PirateJuicebool.Name = "PirateJuice"
  60.     local TacoAccessory = Instance.new("StringValue",EquippedAccessories); TacoAccessory.Name = "EquippedTaco"
  61.     local Tacobool = Instance.new("BoolValue",player.AccessoriesInventory); Tacobool.Name = "Taco"
  62.     local WatermelonAccessory = Instance.new("StringValue",EquippedAccessories); WatermelonAccessory.Name = "EquippedWatermelon"
  63.     local Watermelonbool = Instance.new("BoolValue",player.AccessoriesInventory); Watermelonbool.Name = "Watermelon"
  64.     local PizzaAccessory = Instance.new("StringValue",EquippedAccessories); PizzaAccessory.Name = "EquippedPizza"
  65.     local Pizzabool = Instance.new("BoolValue",player.AccessoriesInventory); Pizzabool.Name = "Pizza"
  66.     local FoamFingerAccessory = Instance.new("StringValue",EquippedAccessories); FoamFingerAccessory.Name = "EquippedFoamFinger"
  67.     local FoamFingerbool = Instance.new("BoolValue",player.AccessoriesInventory); FoamFingerbool.Name = "FoamFinger"
  68.     local CompassAccessory = Instance.new("StringValue",EquippedAccessories); CompassAccessory.Name = "EquippedCompass"
  69.     local Compassbool = Instance.new("BoolValue",player.AccessoriesInventory); Compassbool.Name = "Compass"
  70.     local TomsBeansAccessory = Instance.new("StringValue",EquippedAccessories); TomsBeansAccessory.Name = "EquippedTomsBeans"
  71.     local TomsBeansbool = Instance.new("BoolValue",player.AccessoriesInventory); TomsBeansbool.Name = "TomsBeans"
  72.     local IceCreamAccessory = Instance.new("StringValue",EquippedAccessories); IceCreamAccessory.Name = "EquippedIceCream"
  73.     local IceCreambool = Instance.new("BoolValue",player.AccessoriesInventory); IceCreambool.Name = "IceCream"
  74.     local WaffleAccessory = Instance.new("StringValue",EquippedAccessories); WaffleAccessory.Name = "EquippedWaffle"
  75.     local Wafflebool = Instance.new("BoolValue",player.AccessoriesInventory); Wafflebool.Name = "Waffle"
  76.     local WitchesBrewAccessory = Instance.new("StringValue",EquippedAccessories); WitchesBrewAccessory.Name = "EquippedWitchesBrew"
  77.     local WitchesBrewbool = Instance.new("BoolValue",player.AccessoriesInventory); WitchesBrewbool.Name = "WitchesBrew"
  78.     local TorchAccessory = Instance.new("StringValue",EquippedAccessories); TorchAccessory.Name = "EquippedTorch"
  79.     local Torchbool = Instance.new("BoolValue",player.AccessoriesInventory); Torchbool.Name = "Torch"
  80.     local BloxxyRadarAccessory = Instance.new("StringValue",EquippedAccessories); BloxxyRadarAccessory.Name = "EquippedBloxxyRadar"
  81.     local BloxxyRadarbool = Instance.new("BoolValue",player.AccessoriesInventory); BloxxyRadarbool.Name = "BloxxyRadar"
  82.     local SpaceSandwitchAccessory = Instance.new("StringValue",EquippedAccessories); SpaceSandwitchAccessory.Name = "EquippedSpaceSandwitch"
  83.     local SpaceSandwitchbool = Instance.new("BoolValue",player.AccessoriesInventory); SpaceSandwitchbool.Name = "SpaceSandwitch"
  84.     local CakeAccessory = Instance.new("StringValue",EquippedAccessories); CakeAccessory.Name = "EquippedCake"
  85.     local Cakebool = Instance.new("BoolValue",player.AccessoriesInventory); Cakebool.Name = "Cake"
  86.     local FaceoffPotionAccessory = Instance.new("StringValue",EquippedAccessories); FaceoffPotionAccessory.Name = "EquippedFaceoffPotion"
  87.     local FaceoffPotionbool = Instance.new("BoolValue",player.AccessoriesInventory); FaceoffPotionbool.Name = "FaceoffPotion"
  88.     local BubblegumAccessory = Instance.new("StringValue",EquippedAccessories); BubblegumAccessory.Name = "EquippedBubblegum"
  89.     local Bubblegumbool = Instance.new("BoolValue",player.AccessoriesInventory); Bubblegumbool.Name = "Bubblegum"
  90.     local MonkeyAccessory = Instance.new("StringValue",EquippedAccessories); MonkeyAccessory.Name = "EquippedMonkey"
  91.     local Monkeybool = Instance.new("BoolValue",player.AccessoriesInventory); Monkeybool.Name = "Monkey"
  92.     local NoiseMakerAccessory = Instance.new("StringValue",EquippedAccessories); NoiseMakerAccessory.Name = "EquippedNoiseMaker"
  93.     local NoiseMakerbool = Instance.new("BoolValue",player.AccessoriesInventory); NoiseMakerbool.Name = "NoiseMaker"
  94.     local ApplePieAccessory = Instance.new("StringValue",EquippedAccessories); ApplePieAccessory.Name = "EquippedApplePie"
  95.     local ApplePiebool = Instance.new("BoolValue",player.AccessoriesInventory); ApplePiebool.Name = "ApplePie"
  96.     local PandaFriendAccessory = Instance.new("StringValue",EquippedAccessories); PandaFriendAccessory.Name = "EquippedPandaFriend"
  97.     local PandaFriendbool = Instance.new("BoolValue",player.AccessoriesInventory); PandaFriendbool.Name = "PandaFriend"
  98.     local BangGunAccessory = Instance.new("StringValue",EquippedAccessories); BangGunAccessory.Name = "EquippedBangGun"
  99.     local BangGunbool = Instance.new("BoolValue",player.AccessoriesInventory); BangGunbool.Name = "BangGun"
  100.     local WhopeeCushionAccessory = Instance.new("StringValue",EquippedAccessories); WhopeeCushionAccessory.Name = "EquippedWhopeeCushion"
  101.     local WhopeeCushionbool = Instance.new("BoolValue",player.AccessoriesInventory); WhopeeCushionbool.Name = "WhopeeCushion"
  102.     local WoodenSwordAccessory = Instance.new("StringValue",EquippedAccessories); WoodenSwordAccessory.Name = "EquippedWoodenSword"
  103.     local WoodenSwordbool = Instance.new("BoolValue",player.AccessoriesInventory); WoodenSwordbool.Name = "WoodenSword"
  104.     local DragonAccessory = Instance.new("StringValue",EquippedAccessories); DragonAccessory.Name = "EquippedDragon"
  105.     local Dragonbool = Instance.new("BoolValue",player.AccessoriesInventory); Dragonbool.Name = "Dragon"
  106.     local WoodenStaffAccessory = Instance.new("StringValue",EquippedAccessories); WoodenStaffAccessory.Name = "EquippedWoodenStaff"
  107.     local WoodenStaffbool = Instance.new("BoolValue",player.AccessoriesInventory); WoodenStaffbool.Name = "WoodenStaff"
  108.     local SprayAccessory = Instance.new("StringValue",EquippedAccessories); SprayAccessory.Name = "EquippedSpray"
  109.     local Spraybool = Instance.new("BoolValue",player.AccessoriesInventory); Spraybool.Name = "Spray"
  110.     local ClownBombAccessory = Instance.new("StringValue",EquippedAccessories); ClownBombAccessory.Name = "EquippedClownBomb"
  111.     local ClownBombbool = Instance.new("BoolValue",player.AccessoriesInventory); ClownBombbool.Name = "ClownBomb"
  112.     local ChameleonPotionAccessory = Instance.new("StringValue",EquippedAccessories); ChameleonPotionAccessory.Name = "EquippedChameleonPotion"
  113.     local ChameleonPotionbool = Instance.new("BoolValue",player.AccessoriesInventory); ChameleonPotionbool.Name = "ChameleonPotion"
  114.     local SpyDroneAccessory = Instance.new("StringValue",EquippedAccessories); SpyDroneAccessory.Name = "EquippedSpyDrone"
  115.     local SpyDronebool = Instance.new("BoolValue",player.AccessoriesInventory); SpyDronebool.Name = "SpyDrone"
  116.     local MoneybagAccessory = Instance.new("StringValue",EquippedAccessories); MoneybagAccessory.Name = "EquippedMoneybag"
  117.     local Moneybagbool = Instance.new("BoolValue",player.AccessoriesInventory); Moneybagbool.Name = "Moneybag"
  118.    
  119.     local PlayerUserId = "Player_"..player.UserId
  120.    
  121.     --Load Data
  122.     local data
  123.     local success, errormessage = pcall(function()
  124.         data = dataStore:GetAsync(PlayerUserId)
  125.     end)
  126.  
  127.         if success then
  128.         if data then
  129.             Gobletbool.Value = data.Gobletbool
  130.             GobletAccessory.Value = data.GobletAccessory    
  131.             ChocolateMilkbool.Value = data.ChocolateMilkbool
  132.             ChocolateMilkAccessory.Value = data.ChocolateMilkAccessory
  133.             StarBloxCoffeebool.Value = data.StarBloxCoffeebool
  134.             StarBloxCoffeeAccessory.Value = data.StarBloxCoffeeAccessory
  135.             Hotdogbool.Value = data.Hotdogbool
  136.             HotdogAccessory.Value = data.HotdogAccessory
  137.             TeddyBloxpinbool.Value = data.TeddyBloxpinbool
  138.             TeddyBloxpinAccessory.Value = data.TeddyBloxpinAccessory
  139.             PirateJuicebool.Value = data.PirateJuicebool
  140.             PirateJuiceAccessory.Value = data.PirateJuiceAccessory
  141.             Tacobool.Value = data.Tacobool
  142.             TacoAccessory.Value = data.TacoAccessory
  143.             Watermelonbool.Value = data.Watermelonbool
  144.             WatermelonAccessory.Value = data.WatermelonAccessory
  145.             Pizzabool.Value = data.Pizzabool
  146.             PizzaAccessory.Value = data.PizzaAccessory
  147.             FoamFingerbool.Value = data.FoamFingerbool
  148.             FoamFingerAccessory.Value = data.FoamFingerAccessory
  149.             Compassbool.Value = data.Compassbool
  150.             CompassAccessory.Value = data.CompassAccessory
  151.             TomsBeansbool.Value = data.TomsBeansbool
  152.             TomsBeansAccessory.Value = data.TomsBeansAccessory
  153.             IceCreambool.Value = data.IceCreambool
  154.             IceCreamAccessory.Value = data.IceCreamAccessory
  155.             Wafflebool.Value = data.Wafflebool
  156.             WaffleAccessory.Value = data.WaffleAccessory
  157.             WitchesBrewbool.Value = data.WitchesBrewbool
  158.             WitchesBrewAccessory.Value = data.WitchesBrewAccessory
  159.             Torchbool.Value = data.Torchbool
  160.             TorchAccessory.Value = data.TorchAccessory
  161.             BloxxyRadarbool.Value = data.BloxxyRadarbool
  162.             BloxxyRadarAccessory.Value = data.BloxxyRadarAccessory
  163.             SpaceSandwitchbool.Value = data.SpaceSandwitchbool
  164.             SpaceSandwitchAccessory.Value = data.SpaceSandwitchAccessory
  165.             Cakebool.Value = data.Cakebool
  166.             CakeAccessory.Value = data.CakeAccessory
  167.             FaceoffPotionbool.Value = data.FaceoffPotionbool
  168.             FaceoffPotionAccessory.Value = data.FaceoffPotionAccessory
  169.             Bubblegumbool.Value = data.Bubblegumbool
  170.             BubblegumAccessory.Value = data.BubblegumAccessory
  171.             Monkeybool.Value = data.Monkeybool
  172.             MonkeyAccessory.Value = data.MonkeyAccessory
  173.             NoiseMakerbool.Value = data.NoiseMakerbool
  174.             NoiseMakerAccessory.Value = data.NoiseMakerAccessory
  175.             ApplePiebool.Value = data.ApplePiebool
  176.             ApplePieAccessory.Value = data.ApplePieAccessory
  177.             PandaFriendbool.Value = data.PandaFriendbool
  178.             PandaFriendAccessory.Value = data.PandaFriendAccessory
  179.             BangGunbool.Value = data.BangGunbool
  180.             BangGunAccessory.Value = data.BangGunAccessory
  181.             WhopeeCushionbool.Value = data.WhopeeCushionbool
  182.             WhopeeCushionAccessory.Value = data.WhopeeCushionAccessory
  183.             WoodenSwordbool.Value = data.WoodenSwordbool
  184.             WoodenSwordAccessory.Value = data.WoodenSwordAccessory
  185.             Dragonbool.Value = data.Spraybool
  186.             DragonAccessory.Value = data.SprayAccessory
  187.             WoodenStaffbool.Value = data.WoodenStaffbool
  188.             WoodenStaffAccessory.Value = data.WoodenStaffAccessory     
  189.             Spraybool.Value = data.Spraybool
  190.             SprayAccessory.Value = data.SprayAccessory     
  191.             ClownBombbool.Value = data.ClownBombbool
  192.             ClownBombAccessory.Value = data.ClownBombAccessory 
  193.             ChameleonPotionbool.Value = data.ChameleonPotionbool
  194.             ChameleonPotionAccessory.Value = data.ChameleonPotionAccessory 
  195.             SpyDronebool.Value = data.SpyDronebool
  196.             SpyDroneAccessory.Value = data.SpyDroneAccessory   
  197.             Moneybagbool.Value = data.Moneybagbool
  198.             MoneybagAccessory.Value = data.MoneybagAccessory   
  199.         end        
  200.     end    
  201.     -- This event will fire the client to update the gui
  202.     game.ReplicatedStorage.Accessories.Events.SendData:FireClient(player,data) 
  203. end)
  204.  
  205.     game.Players.PlayerRemoving:Connect(function(player)
  206.  
  207.         local PlayerUserId = "Player_"..player.UserId
  208.  
  209.     local data = {
  210.         Gobletbool = player.AccessoriesInventory.Goblet.Value;
  211.         GobletAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedGoblet.Value;
  212.         ChocolateMilkbool = player.AccessoriesInventory.ChocolateMilk.Value;
  213.         ChocolateMilkAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedChocolateMilk.Value;
  214.         StarBloxCoffeebool = player.AccessoriesInventory.StarBloxCoffee.Value;
  215.         StarBloxCoffeeAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedStarBloxCoffee.Value;
  216.         Hotdogbool = player.AccessoriesInventory.Hotdog.Value;
  217.         HotdogAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedHotdog.Value;
  218.         TeddyBloxpinbool = player.AccessoriesInventory.TeddyBloxpin.Value;
  219.         TeddyBloxpinAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedTeddyBloxpin.Value;
  220.         PirateJuicebool = player.AccessoriesInventory.PirateJuice.Value;
  221.         PirateJuiceAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedPirateJuice.Value;
  222.         Tacobool = player.AccessoriesInventory.Taco.Value;
  223.         TacoAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedTaco.Value;
  224.         Watermelonbool = player.AccessoriesInventory.Watermelon.Value;
  225.         WatermelonAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedWatermelon.Value;
  226.         Pizzabool = player.AccessoriesInventory.Pizza.Value;
  227.         PizzaAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedPizza.Value;
  228.         FoamFingerbool = player.AccessoriesInventory.FoamFinger.Value;
  229.         FoamFingerAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedFoamFinger.Value;
  230.         Compassbool = player.AccessoriesInventory.Compass.Value;
  231.         CompassAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedCompass.Value;
  232.         TomsBeansbool = player.AccessoriesInventory.TomsBeans.Value;
  233.         TomsBeansAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedTomsBeans.Value;
  234.         IceCreambool = player.AccessoriesInventory.IceCream.Value;
  235.         IceCreamAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedIceCream.Value;
  236.         Wafflebool = player.AccessoriesInventory.Waffle.Value;
  237.         WaffleAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedWaffle.Value;
  238.         WitchesBrewbool = player.AccessoriesInventory.WitchesBrew.Value;
  239.         WitchesBrewAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedWitchesBrew.Value;
  240.         Torchbool = player.AccessoriesInventory.Torch.Value;
  241.         TorchAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedTorch.Value;
  242.         BloxxyRadarbool = player.AccessoriesInventory.BloxxyRadar.Value;
  243.         BloxxyRadarAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedBloxxyRadar.Value;
  244.         SpaceSandwitchbool = player.AccessoriesInventory.SpaceSandwitch.Value;
  245.         SpaceSandwitchAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedSpaceSandwitch.Value;
  246.         Cakebool = player.AccessoriesInventory.Cake.Value;
  247.         CakeAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedCake.Value;
  248.         FaceoffPotionbool = player.AccessoriesInventory.FaceoffPotion.Value;
  249.         FaceoffPotionAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedFaceoffPotion.Value;
  250.         Bubblegumbool = player.AccessoriesInventory.Bubblegum.Value;
  251.         BubblegumAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedBubblegum.Value;
  252.         Monkeybool = player.AccessoriesInventory.Monkey.Value;
  253.         MonkeyAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedMonkey.Value;
  254.         NoiseMakerbool = player.AccessoriesInventory.NoiseMaker.Value;
  255.         NoiseMakerAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedNoiseMaker.Value;
  256.         ApplePiebool = player.AccessoriesInventory.ApplePie.Value;
  257.         ApplePieAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedApplePie.Value;
  258.         PandaFriendbool = player.AccessoriesInventory.PandaFriend.Value;
  259.         PandaFriendAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedPandaFriend.Value;
  260.         BangGunbool = player.AccessoriesInventory.BangGun.Value;
  261.         BangGunAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedBangGun.Value;
  262.         WhopeeCushionbool = player.AccessoriesInventory.WhopeeCushion.Value;
  263.         WhopeeCushionAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedWhopeeCushion.Value;
  264.         WoodenSwordbool = player.AccessoriesInventory.WoodenSword.Value;
  265.         WoodenSwordAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedWoodenSword.Value;
  266.         Dragonbool = player.AccessoriesInventory.Dragon.Value;
  267.         DragonAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedDragon.Value;
  268.         WoodenStaffbool = player.AccessoriesInventory.WoodenStaff.Value;
  269.         WoodenStaffAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedWoodenStaff.Value;
  270.         Spraybool = player.AccessoriesInventory.Spray.Value;
  271.         SprayAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedSpray.Value;
  272.         ClownBombbool = player.AccessoriesInventory.ClownBomb.Value;
  273.         ClownBombAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedClownBomb.Value;
  274.         ChameleonPotionbool = player.AccessoriesInventory.ChameleonPotion.Value;
  275.         ChameleonPotionAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedChameleonPotion.Value;
  276.         SpyDronebool = player.AccessoriesInventory.SpyDrone.Value;
  277.         SpyDroneAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedSpyDrone.Value;
  278.         Moneybagbool = player.AccessoriesInventory.Moneybag.Value;
  279.         MoneybagAccessory = player.AccessoriesInventory.EquippedAccessories.EquippedMoneybag.Value;    
  280.         }              
  281.    
  282.         local success, errormessage = pcall(function()
  283.             dataStore:SetAsync(PlayerUserId, data)
  284.         end)
  285.  
  286.         if success then
  287.             print("Accessories successfully saved:)")
  288.         else
  289.             print("There was an error!")
  290.             warn(errormessage)
  291.         end
  292.     end)
  293.  
  294. game:BindToClose(function()
  295.     --when game is ready to shutdown
  296.  
  297.     for i, player in pairs(game.Players:GetPlayers()) do
  298.         if player then
  299.             player:Kick("This game has shutted down")
  300.         end
  301.     end
  302.  
  303.     wait(5)
  304.  
  305. end)
  306.  
  307. game.ReplicatedStorage.Accessories.Events.GiveAccessory1.OnServerInvoke = function(player, GobletName)
  308.     if debounce == true then
  309.         debounce = false
  310.         --print("RemoteFunction fired")
  311.         local GobletifsInInventory
  312.         local bool = player.AccessoriesInventory:FindFirstChild("Goblet")
  313.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  314.        
  315.         if player.Backpack:FindFirstChild("Goblet") then
  316.             GobletifsInInventory = true
  317.         end    
  318.            
  319.         if Goblet then
  320.             if Goblet:FindFirstChild("Price") then
  321.                 if not GobletifsInInventory then
  322.                     -- Check if we can buy the Item
  323.                     if player.leaderstats.Coins.Value >= Goblet.Price.Value and bool.Value == false then
  324.                         print(player.Name.." brought the ".. Goblet.Name.." item")
  325.  
  326.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Goblet.Price.Value           
  327.  
  328.                         local giveTool = ReplicatedStorage.Accessories:FindFirstChild(Goblet.Name):Clone()
  329.                         giveTool.Parent = player.Backpack
  330.  
  331.                         local giveTool2 = ReplicatedStorage.Accessories:FindFirstChild(Goblet.Name):Clone()
  332.                         giveTool2.Parent = player.StarterGear  
  333.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedGoblet").Value = Goblet.Name 
  334.                         bool.Value = true
  335.                         GobletifsInInventory = true
  336.                         wait(.5)
  337.                         debounce = true
  338.                         return "Brought"
  339.                     end
  340.                 end
  341.             end
  342.         end
  343.        
  344.         if player.leaderstats.Coins.Value < Goblet.Price.Value and not GobletifsInInventory and bool.Value == false then --and bool.Value == false
  345.             return "NotEnough" 
  346.         end             --if player.leaderstats.Coins.Value < Goblet.Price.Value  then --and bool.Value == false
  347.                             --return "NotEnough"   
  348.                         --end      
  349.         if bool.Value == true then                         
  350.                     if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedGoblet").Value ~= Goblet.Name then
  351.                      -- You already owned it                                                       
  352.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedGoblet").Value = Goblet.Name         
  353.                        
  354.                         local giveTool = ReplicatedStorage.Accessories:FindFirstChild(Goblet.Name):Clone()
  355.                         giveTool.Parent = player.Backpack
  356.  
  357.                         local giveTool = ReplicatedStorage.Accessories:FindFirstChild(Goblet.Name):Clone()
  358.                         giveTool.Parent = player.StarterGear
  359.                        
  360.                         wait(.1)
  361.                         debounce = true
  362.                         return "Equip" 
  363.                  end
  364.             end
  365.                 if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedGoblet").Value == Goblet.Name and bool.Value == true then
  366.                    player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedGoblet").Value = ""
  367.                      --local itemName = "Goblet" --Change this
  368.                      --  local Char = player.Character or player.CharactedAdded:Wait()
  369.             --  local GearInCharacter = Char:findFirstChild("Goblet")
  370.             humanoid:UnequipTools()
  371.             if player.Backpack:FindFirstChild("Goblet")then --:IsA("Tool")
  372.                 if humanoid then
  373.                     humanoid:UnequipTools()
  374.                     player.Backpack:FindFirstChild("Goblet"):Destroy()
  375.                     player.StarterGear:FindFirstChild("Goblet"):Destroy()  
  376.                     return "Unequip"
  377.                 end                                    
  378.                            wait(.1)
  379.                            debounce = true 
  380.                            return "Unequip"
  381.                         end
  382.                      end                       
  383.                  end
  384.          wait(.5)
  385.     debounce = true
  386. end
  387.  
  388. game.ReplicatedStorage.Accessories.Events.GiveAccessory2.OnServerInvoke = function(player,ChocolateMilkName)
  389.     if debounce == true then
  390.         debounce = false
  391.  
  392.         local ChocolateMilkifsInInventory
  393.         local bool2 = player.AccessoriesInventory:FindFirstChild("ChocolateMilk")
  394.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  395.        
  396.         if player.Backpack:FindFirstChild("ChocolateMilk") then
  397.             ChocolateMilkifsInInventory = true
  398.         end    
  399.  
  400.         if ChocolateMilk then
  401.             if ChocolateMilk:FindFirstChild("Price") then
  402.                 if not ChocolateMilkifsInInventory then
  403.                     -- Check if we can buy the Item
  404.                     if player.leaderstats.Coins.Value >= ChocolateMilk.Price.Value and bool2.Value == false then
  405.                         print(player.Name.." brought the Chocolate Milk item")
  406.  
  407.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - ChocolateMilk.Price.Value        
  408.  
  409.                         local giveTool2 = ReplicatedStorage.Accessories:FindFirstChild("ChocolateMilk"):Clone()
  410.                         giveTool2.Parent = player.Backpack
  411.  
  412.                         local giveTool2 = ReplicatedStorage.Accessories:FindFirstChild("ChocolateMilk"):Clone()
  413.                         giveTool2.Parent = player.StarterGear  
  414.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChocolateMilk").Value = ChocolateMilk.Name   
  415.                        
  416.                         bool2.Value = true
  417.                         ChocolateMilkifsInInventory = true
  418.                         wait(.5)
  419.                         debounce = true
  420.                         return "Brought"
  421.                     end
  422.                 end
  423.             end
  424.         end
  425.  
  426.         if player.leaderstats.Coins.Value < ChocolateMilk.Price.Value and not ChocolateMilkifsInInventory and bool2.Value == false then
  427.             print("NotChocolate")
  428.             return "NotEnough" 
  429.         end        
  430.        
  431.         if bool2.Value == true then                        
  432.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChocolateMilk").Value ~= ChocolateMilk.Name then
  433.                 -- You already owned it                                                        
  434.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChocolateMilk").Value = ChocolateMilk.Name           
  435.  
  436.                 local giveTool2 = ReplicatedStorage.Accessories:FindFirstChild("ChocolateMilk"):Clone()
  437.                 giveTool2.Parent = player.Backpack
  438.  
  439.                 local giveTool2 = ReplicatedStorage.Accessories:FindFirstChild("ChocolateMilk"):Clone()
  440.                 giveTool2.Parent = player.StarterGear
  441.  
  442.                 wait(.1)
  443.                 debounce = true
  444.                 return "Equip" 
  445.             end
  446.         end
  447.  
  448.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChocolateMilk").Value == ChocolateMilk.Name and bool2.Value == true then
  449.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChocolateMilk").Value = ""
  450.             humanoid:UnequipTools()
  451.             if player.Backpack:FindFirstChild("ChocolateMilk")then --:IsA("Tool")
  452.                     if humanoid then
  453.                     humanoid:UnequipTools()
  454.                     player.Backpack:FindFirstChild("ChocolateMilk"):Destroy()
  455.                     player.StarterGear:FindFirstChild("ChocolateMilk"):Destroy()   
  456.                         return "Unequip"
  457.                     end            
  458.                 wait(.1)
  459.                 debounce = true
  460.                 return "Unequip"
  461.             end
  462.         end                    
  463.     end
  464.     wait(.5)
  465.     debounce = true
  466. end
  467.  
  468. game.ReplicatedStorage.Accessories.Events.GiveAccessory3.OnServerInvoke = function(player,StarBloxCoffeeName)
  469.     if debounce == true then
  470.         debounce = false
  471.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  472.         local StarBloxCoffeeifsInInventory
  473.         local bool3 = player.AccessoriesInventory:FindFirstChild("StarBloxCoffee")
  474.  
  475.         if player.Backpack:FindFirstChild("StarBloxCoffee") then
  476.             StarBloxCoffeeifsInInventory = true
  477.         end    
  478.  
  479.         if StarBloxCoffee then
  480.             if StarBloxCoffee:FindFirstChild("Price") then
  481.                 if not StarBloxCoffeeifsInInventory then
  482.                     -- Check if we can buy the Item
  483.                     if player.leaderstats.Coins.Value >= StarBloxCoffee.Price.Value and bool3.Value == false then
  484.                         print(player.Name.." brought the StarBlox Coffee item")
  485.  
  486.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - StarBloxCoffee.Price.Value           
  487.  
  488.                         local giveTool3 = ReplicatedStorage.Accessories:FindFirstChild("StarBloxCoffee"):Clone()
  489.                         giveTool3.Parent = player.Backpack
  490.  
  491.                         local giveTool3 = ReplicatedStorage.Accessories:FindFirstChild("StarBloxCoffee"):Clone()
  492.                         giveTool3.Parent = player.StarterGear  
  493.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedStarBloxCoffee").Value = StarBloxCoffee.Name 
  494.  
  495.                         bool3.Value = true
  496.                         StarBloxCoffeeifsInInventory = true
  497.                         wait(.5)
  498.                         debounce = true
  499.                         return "Brought"
  500.                     end
  501.                 end
  502.             end
  503.         end
  504.  
  505.         if player.leaderstats.Coins.Value < StarBloxCoffee.Price.Value and not StarBloxCoffeeifsInInventory and bool3.Value == false then
  506.             return "NotEnough" 
  507.         end        
  508.  
  509.         if bool3.Value == true then                        
  510.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedStarBloxCoffee").Value ~= StarBloxCoffee.Name then
  511.                 -- You already owned it                                                        
  512.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedStarBloxCoffee").Value = StarBloxCoffee.Name         
  513.  
  514.                 local giveTool3 = ReplicatedStorage.Accessories:FindFirstChild("StarBloxCoffee"):Clone()
  515.                 giveTool3.Parent = player.Backpack
  516.  
  517.                 local giveTool3 = ReplicatedStorage.Accessories:FindFirstChild("StarBloxCoffee"):Clone()
  518.                 giveTool3.Parent = player.StarterGear
  519.                 wait(.1)
  520.                 debounce = true
  521.                 return "Equip" 
  522.             end
  523.         end
  524.  
  525.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedStarBloxCoffee").Value == StarBloxCoffee.Name and bool3.Value == true then
  526.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedStarBloxCoffee").Value = ""
  527.             humanoid:UnequipTools()
  528.             if player.Backpack:FindFirstChild("StarBloxCoffee") then        --:IsA("Tool")
  529.                 if humanoid then
  530.                     --print("Im Unequipped")
  531.                     humanoid:UnequipTools()
  532.                     player.Backpack:FindFirstChild("StarBloxCoffee"):Destroy()
  533.                     player.StarterGear:FindFirstChild("StarBloxCoffee"):Destroy()  
  534.                     return "Unequip"
  535.                 end
  536.                 --  player.Backpack:FindFirstChild("StarBloxCoffee").Unequipped:Connect(function()     
  537.                 --player.Backpack:FindFirstChild("StarBloxCoffee"):Destroy()
  538.             --  player.StarterGear:FindFirstChild("StarBloxCoffee"):Destroy()      
  539.                 wait(.1)
  540.                 debounce = true
  541.                 return "Unequip"
  542.             --  end)
  543.             end
  544.         end                    
  545.     end
  546.     wait(.5)
  547.     debounce = true
  548. end
  549.  
  550. game.ReplicatedStorage.Accessories.Events.GiveAccessory4.OnServerInvoke = function(player,HotdogName)
  551.     if debounce == true then
  552.         debounce = false
  553.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  554.         local HotdogifsInInventory
  555.         local bool4 = player.AccessoriesInventory:FindFirstChild("Hotdog")
  556.  
  557.         if player.Backpack:FindFirstChild("HotDog") then
  558.             HotdogifsInInventory = true
  559.         end    
  560.  
  561.         if HotDog then
  562.             if HotDog:FindFirstChild("Price") then
  563.                 if not HotdogifsInInventory then
  564.                     -- Check if we can buy the Item
  565.                     if player.leaderstats.Coins.Value >= HotDog.Price.Value and bool4.Value == false then
  566.                         print(player.Name.." brought the Hot Dog item")
  567.                        
  568.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - HotDog.Price.Value           
  569.  
  570.                         local giveTool4 = ReplicatedStorage.Accessories:FindFirstChild("HotDog"):Clone()
  571.                         giveTool4.Parent = player.Backpack
  572.  
  573.                         local giveTool4 = ReplicatedStorage.Accessories:FindFirstChild("HotDog"):Clone()
  574.                         giveTool4.Parent = player.StarterGear  
  575.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedHotdog").Value = HotDog.Name 
  576.  
  577.                         bool4.Value = true
  578.                         HotdogifsInInventory = true
  579.                         wait(.5)
  580.                         debounce = true
  581.                         return "Brought"
  582.                     end
  583.                 end
  584.             end
  585.         end
  586.  
  587.         if player.leaderstats.Coins.Value < HotDog.Price.Value and not HotdogifsInInventory and bool4.Value == false then
  588.             return "NotEnough" 
  589.         end        
  590.  
  591.         if bool4.Value == true then                        
  592.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedHotdog").Value ~= HotDog.Name then
  593.                 -- You already owned it                                                        
  594.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedHotdog").Value = HotDog.Name         
  595.  
  596.                 local giveTool4 = ReplicatedStorage.Accessories:FindFirstChild("HotDog"):Clone()
  597.                 giveTool4.Parent = player.Backpack
  598.  
  599.                 local giveTool4 = ReplicatedStorage.Accessories:FindFirstChild("HotDog"):Clone()
  600.                 giveTool4.Parent = player.StarterGear
  601.                 wait(.1)
  602.                 debounce = true
  603.                 return "Equip" 
  604.             end
  605.         end
  606.  
  607.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedHotdog").Value == HotDog.Name and bool4.Value == true then
  608.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedHotdog").Value = ""
  609.             humanoid:UnequipTools()
  610.             if player.Backpack:FindFirstChild("HotDog") then        --:IsA("Tool")
  611.                 if humanoid then
  612.                     humanoid:UnequipTools()
  613.                     player.Backpack:FindFirstChild("HotDog"):Destroy()
  614.                     player.StarterGear:FindFirstChild("HotDog"):Destroy()  
  615.                     return "Unequip"
  616.                 end
  617.                 wait(.1)
  618.                 debounce = true
  619.                 return "Unequip"
  620.                 --  end)
  621.             end
  622.         end                    
  623.     end
  624.     wait(.5)
  625.     debounce = true
  626. end
  627.  
  628. game.ReplicatedStorage.Accessories.Events.GiveAccessory5.OnServerInvoke = function(player,TeddyBloxpin)
  629.     if debounce == true then
  630.         debounce = false
  631.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  632.         local TeddyBloxpinifsInInventory
  633.         local bool5 = player.AccessoriesInventory:FindFirstChild("TeddyBloxpin")
  634.  
  635.         if player.Backpack:FindFirstChild("TeddyBloxpin") then
  636.             TeddyBloxpinifsInInventory = true
  637.         end    
  638.  
  639.         if TeddyBloxpin then
  640.             if TeddyBloxpin:FindFirstChild("Price") then
  641.                 if not TeddyBloxpinifsInInventory then
  642.                     -- Check if we can buy the Item
  643.                     if player.leaderstats.Coins.Value >= TeddyBloxpin.Price.Value and bool5.Value == false then
  644.                         print(player.Name.." brought the Teddy Bloxpin item")
  645.  
  646.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - TeddyBloxpin.Price.Value         
  647.  
  648.                         local giveTool5 = ReplicatedStorage.Accessories:FindFirstChild("TeddyBloxpin"):Clone()
  649.                         giveTool5.Parent = player.Backpack
  650.  
  651.                         local giveTool5 = ReplicatedStorage.Accessories:FindFirstChild("TeddyBloxpin"):Clone()
  652.                         giveTool5.Parent = player.StarterGear  
  653.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTeddyBloxpin").Value = TeddyBloxpin.Name 
  654.  
  655.                         bool5.Value = true
  656.                         TeddyBloxpinifsInInventory = true
  657.                         wait(.5)
  658.                         debounce = true
  659.                         return "Brought"
  660.                     end
  661.                 end
  662.             end
  663.         end
  664.  
  665.         if player.leaderstats.Coins.Value < TeddyBloxpin.Price.Value and not TeddyBloxpinifsInInventory and bool5.Value == false then
  666.             return "NotEnough" 
  667.         end        
  668.  
  669.         if bool5.Value == true then                        
  670.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTeddyBloxpin").Value ~= TeddyBloxpin.Name then
  671.                 -- You already owned it                                                        
  672.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTeddyBloxpin").Value = TeddyBloxpin.Name         
  673.  
  674.                 local giveTool5 = ReplicatedStorage.Accessories:FindFirstChild("TeddyBloxpin"):Clone()
  675.                 giveTool5.Parent = player.Backpack
  676.  
  677.                 local giveTool5 = ReplicatedStorage.Accessories:FindFirstChild("TeddyBloxpin"):Clone()
  678.                 giveTool5.Parent = player.StarterGear
  679.                 wait(.1)
  680.                 debounce = true
  681.                 return "Equip" 
  682.             end
  683.         end
  684.  
  685.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTeddyBloxpin").Value == TeddyBloxpin.Name and bool5.Value == true then
  686.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTeddyBloxpin").Value = ""
  687.             humanoid:UnequipTools()
  688.             if player.Backpack:FindFirstChild("TeddyBloxpin") then      --:IsA("Tool")
  689.                 if humanoid then
  690.                     humanoid:UnequipTools()
  691.                     player.Backpack:FindFirstChild("TeddyBloxpin"):Destroy()
  692.                     player.StarterGear:FindFirstChild("TeddyBloxpin"):Destroy()
  693.                     return "Unequip"
  694.                 end
  695.                 wait(.1)
  696.                 debounce = true
  697.                 return "Unequip"
  698.                 --  end)
  699.             end
  700.         end                    
  701.     end
  702.     wait(.5)
  703.     debounce = true
  704. end
  705.  
  706. game.ReplicatedStorage.Accessories.Events.GiveAccessory6.OnServerInvoke = function(player,PirateJuice)
  707.     if debounce == true then
  708.         debounce = false
  709.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  710.         local PirateJuiceifsInInventory
  711.         local bool6 = player.AccessoriesInventory:FindFirstChild("PirateJuice")
  712.  
  713.         if player.Backpack:FindFirstChild("PirateJuice") then
  714.             PirateJuiceifsInInventory = true
  715.         end    
  716.  
  717.         if PirateJuice then
  718.             if PirateJuice:FindFirstChild("Price") then
  719.                 if not PirateJuiceifsInInventory then
  720.                     -- Check if we can buy the Item
  721.                     if player.leaderstats.Coins.Value >= PirateJuice.Price.Value and bool6.Value == false then
  722.                         print(player.Name.." brought the Pirate Juice item")
  723.  
  724.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - PirateJuice.Price.Value          
  725.  
  726.                         local giveTool6 = ReplicatedStorage.Accessories:FindFirstChild("PirateJuice"):Clone()
  727.                         giveTool6.Parent = player.Backpack
  728.  
  729.                         local giveTool6 = ReplicatedStorage.Accessories:FindFirstChild("PirateJuice"):Clone()
  730.                         giveTool6.Parent = player.StarterGear  
  731.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPirateJuice").Value = PirateJuice.Name   
  732.  
  733.                         bool6.Value = true
  734.                         PirateJuiceifsInInventory = true
  735.                         wait(.5)
  736.                         debounce = true
  737.                         return "Brought"
  738.                     end
  739.                 end
  740.             end
  741.         end
  742.  
  743.         if player.leaderstats.Coins.Value < PirateJuice.Price.Value and not PirateJuiceifsInInventory and bool6.Value == false then
  744.             return "NotEnough" 
  745.         end        
  746.  
  747.         if bool6.Value == true then                        
  748.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPirateJuice").Value ~= PirateJuice.Name then
  749.                 -- You already owned it                                                        
  750.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPirateJuice").Value = PirateJuice.Name           
  751.  
  752.                 local giveTool6 = ReplicatedStorage.Accessories:FindFirstChild("PirateJuice"):Clone()
  753.                 giveTool6.Parent = player.Backpack
  754.  
  755.                 local giveTool6 = ReplicatedStorage.Accessories:FindFirstChild("PirateJuice"):Clone()
  756.                 giveTool6.Parent = player.StarterGear
  757.                 wait(.1)
  758.                 debounce = true
  759.                 return "Equip" 
  760.             end
  761.         end
  762.  
  763.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPirateJuice").Value == PirateJuice.Name and bool6.Value == true then
  764.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPirateJuice").Value = ""
  765.             humanoid:UnequipTools()
  766.             if player.Backpack:FindFirstChild("PirateJuice") then       --:IsA("Tool")
  767.                 if humanoid then
  768.                     humanoid:UnequipTools()
  769.                     player.Backpack:FindFirstChild("PirateJuice"):Destroy()
  770.                     player.StarterGear:FindFirstChild("PirateJuice"):Destroy() 
  771.                     return "Unequip"
  772.                 end
  773.                 wait(.1)
  774.                 debounce = true
  775.                 return "Unequip"
  776.                 --  end)
  777.             end
  778.         end                    
  779.     end
  780.     wait(.5)
  781.     debounce = true
  782. end
  783.  
  784. game.ReplicatedStorage.Accessories.Events.GiveAccessory7.OnServerInvoke = function(player,Taco)
  785.     if debounce == true then
  786.         debounce = false
  787.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  788.         local TacoifsInInventory
  789.         local bool7 = player.AccessoriesInventory:FindFirstChild("Taco")
  790.  
  791.         if player.Backpack:FindFirstChild("Taco") then
  792.             TacoifsInInventory = true
  793.         end    
  794.  
  795.         if Taco then
  796.             if Taco:FindFirstChild("Price") then
  797.                 if not TacoifsInInventory then
  798.                     -- Check if we can buy the Item
  799.                     if player.leaderstats.Coins.Value >= Taco.Price.Value and bool7.Value == false then
  800.                         print(player.Name.." brought the Taco item")
  801.  
  802.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Taco.Price.Value         
  803.  
  804.                         local giveTool7 = ReplicatedStorage.Accessories:FindFirstChild("Taco"):Clone()
  805.                         giveTool7.Parent = player.Backpack
  806.  
  807.                         local giveTool7 = ReplicatedStorage.Accessories:FindFirstChild("Taco"):Clone()
  808.                         giveTool7.Parent = player.StarterGear  
  809.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTaco").Value = Taco.Name 
  810.  
  811.                         bool7.Value = true
  812.                         TacoifsInInventory = true
  813.                         wait(.5)
  814.                         debounce = true
  815.                         return "Brought"
  816.                     end
  817.                 end
  818.             end
  819.         end
  820.  
  821.         if player.leaderstats.Coins.Value < Taco.Price.Value and not TacoifsInInventory and bool7.Value == false then
  822.             return "NotEnough" 
  823.         end        
  824.  
  825.         if bool7.Value == true then                        
  826.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTaco").Value ~= Taco.Name then
  827.                 -- You already owned it                                                        
  828.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTaco").Value = Taco.Name         
  829.  
  830.                 local giveTool7 = ReplicatedStorage.Accessories:FindFirstChild("Taco"):Clone()
  831.                 giveTool7.Parent = player.Backpack
  832.  
  833.                 local giveTool7 = ReplicatedStorage.Accessories:FindFirstChild("Taco"):Clone()
  834.                 giveTool7.Parent = player.StarterGear
  835.                 wait(.1)
  836.                 debounce = true
  837.                 return "Equip" 
  838.             end
  839.         end
  840.  
  841.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTaco").Value == Taco.Name and bool7.Value == true then
  842.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTaco").Value = ""
  843.             humanoid:UnequipTools()
  844.             if player.Backpack:FindFirstChild("Taco") then      --:IsA("Tool")
  845.                 if humanoid then
  846.                     humanoid:UnequipTools()
  847.                     player.Backpack:FindFirstChild("Taco"):Destroy()
  848.                     player.StarterGear:FindFirstChild("Taco"):Destroy()
  849.                     return "Unequip"
  850.                 end
  851.                 wait(.1)
  852.                 debounce = true
  853.                 return "Unequip"
  854.                 --  end)
  855.             end
  856.         end                    
  857.     end
  858.     wait(.5)
  859.     debounce = true
  860. end
  861.  
  862. game.ReplicatedStorage.Accessories.Events.GiveAccessory8.OnServerInvoke = function(player,Watermelon)
  863.     if debounce == true then
  864.         debounce = false
  865.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  866.         local WatermelonifsInInventory
  867.         local bool8 = player.AccessoriesInventory:FindFirstChild("Watermelon")
  868.  
  869.         if player.Backpack:FindFirstChild("Watermelon") then
  870.             WatermelonifsInInventory = true
  871.         end    
  872.  
  873.         if Watermelon then
  874.             if Watermelon:FindFirstChild("Price") then
  875.                 if not WatermelonifsInInventory then
  876.                     -- Check if we can buy the Item
  877.                     if player.leaderstats.Coins.Value >= Watermelon.Price.Value and bool8.Value == false then
  878.                         print(player.Name.." brought the Watermelon item")
  879.  
  880.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Watermelon.Price.Value           
  881.  
  882.                         local giveTool8 = ReplicatedStorage.Accessories:FindFirstChild("Watermelon"):Clone()
  883.                         giveTool8.Parent = player.Backpack
  884.  
  885.                         local giveTool8 = ReplicatedStorage.Accessories:FindFirstChild("Watermelon"):Clone()
  886.                         giveTool8.Parent = player.StarterGear  
  887.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWatermelon").Value = Watermelon.Name 
  888.  
  889.                         bool8.Value = true
  890.                         WatermelonifsInInventory = true
  891.                         wait(.5)
  892.                         debounce = true
  893.                         return "Brought"
  894.                     end
  895.                 end
  896.             end
  897.         end
  898.  
  899.         if player.leaderstats.Coins.Value < Watermelon.Price.Value and not WatermelonifsInInventory and bool8.Value == false then
  900.             return "NotEnough" 
  901.         end        
  902.  
  903.         if bool8.Value == true then                        
  904.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWatermelon").Value ~= Watermelon.Name then
  905.                 -- You already owned it                                                        
  906.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWatermelon").Value = Watermelon.Name         
  907.  
  908.                 local giveTool8 = ReplicatedStorage.Accessories:FindFirstChild("Watermelon"):Clone()
  909.                 giveTool8.Parent = player.Backpack
  910.  
  911.                 local giveTool8 = ReplicatedStorage.Accessories:FindFirstChild("Watermelon"):Clone()
  912.                 giveTool8.Parent = player.StarterGear
  913.                 wait(.1)
  914.                 debounce = true
  915.                 return "Equip" 
  916.             end
  917.         end
  918.  
  919.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWatermelon").Value == Watermelon.Name and bool8.Value == true then
  920.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWatermelon").Value = ""
  921.             humanoid:UnequipTools()
  922.             if player.Backpack:FindFirstChild("Watermelon") then        --:IsA("Tool")
  923.                 if humanoid then
  924.                     humanoid:UnequipTools()
  925.                     player.Backpack:FindFirstChild("Watermelon"):Destroy()
  926.                     player.StarterGear:FindFirstChild("Watermelon"):Destroy()  
  927.                     return "Unequip"
  928.                 end
  929.                 wait(.1)
  930.                 debounce = true
  931.                 return "Unequip"
  932.                 --  end)
  933.             end
  934.         end                    
  935.     end
  936.     wait(.5)
  937.     debounce = true
  938. end
  939.  
  940. game.ReplicatedStorage.Accessories.Events.GiveAccessory9.OnServerInvoke = function(player,Pizza)
  941.     if debounce == true then
  942.         debounce = false
  943.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  944.         local PizzaifsInInventory
  945.         local bool9 = player.AccessoriesInventory:FindFirstChild("Pizza")
  946.  
  947.         if player.Backpack:FindFirstChild("Pizza") then
  948.             PizzaifsInInventory = true
  949.         end    
  950.  
  951.         if Pizza then
  952.             if Pizza:FindFirstChild("Price") then
  953.                 if not PizzaifsInInventory then
  954.                     -- Check if we can buy the Item
  955.                     if player.leaderstats.Coins.Value >= Pizza.Price.Value and bool9.Value == false then
  956.                         print(player.Name.." brought the Watermelon item")
  957.  
  958.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Pizza.Price.Value        
  959.  
  960.                         local giveTool9 = ReplicatedStorage.Accessories:FindFirstChild("Pizza"):Clone()
  961.                         giveTool9.Parent = player.Backpack
  962.  
  963.                         local giveTool9 = ReplicatedStorage.Accessories:FindFirstChild("Pizza"):Clone()
  964.                         giveTool9.Parent = player.StarterGear  
  965.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPizza").Value = Pizza.Name   
  966.  
  967.                         bool9.Value = true
  968.                         PizzaifsInInventory = true
  969.                         wait(.5)
  970.                         debounce = true
  971.                         return "Brought"
  972.                     end
  973.                 end
  974.             end
  975.         end
  976.  
  977.         if player.leaderstats.Coins.Value < Pizza.Price.Value and not PizzaifsInInventory and bool9.Value == false then
  978.             return "NotEnough" 
  979.         end        
  980.  
  981.         if bool9.Value == true then                        
  982.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPizza").Value ~=Pizza.Name then
  983.                 -- You already owned it                                                        
  984.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPizza").Value = Pizza.Name           
  985.  
  986.                 local giveTool9 = ReplicatedStorage.Accessories:FindFirstChild("Pizza"):Clone()
  987.                 giveTool9.Parent = player.Backpack
  988.  
  989.                 local giveTool9 = ReplicatedStorage.Accessories:FindFirstChild("Pizza"):Clone()
  990.                 giveTool9.Parent = player.StarterGear
  991.                 wait(.1)
  992.                 debounce = true
  993.                 return "Equip" 
  994.             end
  995.         end
  996.  
  997.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPizza").Value == Pizza.Name and bool9.Value == true then
  998.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPizza").Value = ""
  999.             humanoid:UnequipTools()
  1000.             if player.Backpack:FindFirstChild("Pizza") then         --:IsA("Tool")
  1001.                 if humanoid then
  1002.                     humanoid:UnequipTools()
  1003.                     player.Backpack:FindFirstChild("Pizza"):Destroy()
  1004.                     player.StarterGear:FindFirstChild("Pizza"):Destroy()   
  1005.                     return "Unequip"
  1006.                 end
  1007.                 wait(.1)
  1008.                 debounce = true
  1009.                 return "Unequip"
  1010.                 --  end)
  1011.             end
  1012.         end                    
  1013.     end
  1014.     wait(.5)
  1015.     debounce = true
  1016. end
  1017.  
  1018. game.ReplicatedStorage.Accessories.Events.GiveAccessory10.OnServerInvoke = function(player,FoamFinger)
  1019.     if debounce == true then
  1020.         debounce = false
  1021.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1022.         local FoamFingerifsInInventory
  1023.         local bool10 = player.AccessoriesInventory:FindFirstChild("FoamFinger")
  1024.  
  1025.         if player.Backpack:FindFirstChild("FoamFinger") then
  1026.             FoamFingerifsInInventory = true
  1027.         end    
  1028.  
  1029.         if FoamFinger then
  1030.             if FoamFinger:FindFirstChild("Price") then
  1031.                 if not FoamFingerifsInInventory then
  1032.                     -- Check if we can buy the Item
  1033.                     if player.leaderstats.Coins.Value >= FoamFinger.Price.Value and bool10.Value == false then
  1034.                         print(player.Name.." brought the Foam Finger item")
  1035.  
  1036.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - FoamFinger.Price.Value           
  1037.  
  1038.                         local giveTool10 = ReplicatedStorage.Accessories:FindFirstChild("FoamFinger"):Clone()
  1039.                         giveTool10.Parent = player.Backpack
  1040.  
  1041.                         local giveTool10 = ReplicatedStorage.Accessories:FindFirstChild("FoamFinger"):Clone()
  1042.                         giveTool10.Parent = player.StarterGear 
  1043.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFoamFinger").Value = FoamFinger.Name 
  1044.  
  1045.                         bool10.Value = true
  1046.                         FoamFingerifsInInventory = true
  1047.                         wait(.5)
  1048.                         debounce = true
  1049.                         return "Brought"
  1050.                     end
  1051.                 end
  1052.             end
  1053.         end
  1054.  
  1055.         if player.leaderstats.Coins.Value < FoamFinger.Price.Value and not FoamFingerifsInInventory and bool10.Value == false then
  1056.             return "NotEnough" 
  1057.         end        
  1058.  
  1059.         if bool10.Value == true then                           
  1060.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFoamFinger").Value ~= FoamFinger.Name then
  1061.                 -- You already owned it                                                        
  1062.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFoamFinger").Value = FoamFinger.Name         
  1063.  
  1064.                 local giveTool10 = ReplicatedStorage.Accessories:FindFirstChild("FoamFinger"):Clone()
  1065.                 giveTool10.Parent = player.Backpack
  1066.  
  1067.                 local giveTool10 = ReplicatedStorage.Accessories:FindFirstChild("FoamFinger"):Clone()
  1068.                 giveTool10.Parent = player.StarterGear
  1069.                 wait(.1)
  1070.                 debounce = true
  1071.                 return "Equip" 
  1072.             end
  1073.         end
  1074.  
  1075.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFoamFinger").Value == FoamFinger.Name and bool10.Value == true then
  1076.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFoamFinger").Value = ""
  1077.             humanoid:UnequipTools()
  1078.             if player.Backpack:FindFirstChild("FoamFinger") then        --:IsA("Tool")
  1079.                 if humanoid then
  1080.                     humanoid:UnequipTools()
  1081.                     player.Backpack:FindFirstChild("FoamFinger"):Destroy()
  1082.                     player.StarterGear:FindFirstChild("FoamFinger"):Destroy()  
  1083.                     return "Unequip"
  1084.                 end
  1085.                 wait(.1)
  1086.                 debounce = true
  1087.                 return "Unequip"
  1088.                 --  end)
  1089.             end
  1090.         end                    
  1091.     end
  1092.     wait(.5)
  1093.     debounce = true
  1094. end
  1095.  
  1096. game.ReplicatedStorage.Accessories.Events.GiveAccessory11.OnServerInvoke = function(player,Compass)
  1097.     if debounce == true then
  1098.         debounce = false
  1099.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1100.         local CompassifsInInventory
  1101.         local bool11 = player.AccessoriesInventory:FindFirstChild("Compass")
  1102.  
  1103.         if player.Backpack:FindFirstChild("Compass") then
  1104.             CompassifsInInventory = true
  1105.         end    
  1106.  
  1107.         if Compass then
  1108.             if Compass:FindFirstChild("Price") then
  1109.                 if not CompassifsInInventory then
  1110.                     -- Check if we can buy the Item
  1111.                     if player.leaderstats.Coins.Value >= FoamFinger.Price.Value and bool11.Value == false then
  1112.                         print(player.Name.." brought the Compass item")
  1113.  
  1114.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Compass.Price.Value          
  1115.  
  1116.                         local giveTool11 = ReplicatedStorage.Accessories:FindFirstChild("Compass"):Clone()
  1117.                         giveTool11.Parent = player.Backpack
  1118.  
  1119.                         local giveTool11 = ReplicatedStorage.Accessories:FindFirstChild("Compass"):Clone()
  1120.                         giveTool11.Parent = player.StarterGear 
  1121.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCompass").Value = Compass.Name   
  1122.  
  1123.                         bool11.Value = true
  1124.                         CompassifsInInventory = true
  1125.                         wait(.5)
  1126.                         debounce = true
  1127.                         return "Brought"
  1128.                     end
  1129.                 end
  1130.             end
  1131.         end
  1132.  
  1133.         if player.leaderstats.Coins.Value < Compass.Price.Value and not CompassifsInInventory and bool11.Value == false then
  1134.             return "NotEnough" 
  1135.         end        
  1136.  
  1137.         if bool11.Value == true then                           
  1138.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCompass").Value ~= Compass.Name then
  1139.                 -- You already owned it                                                        
  1140.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCompass").Value = Compass.Name           
  1141.  
  1142.                 local giveTool11 = ReplicatedStorage.Accessories:FindFirstChild("Compass"):Clone()
  1143.                 giveTool11.Parent = player.Backpack
  1144.  
  1145.                 local giveTool11 = ReplicatedStorage.Accessories:FindFirstChild("Compass"):Clone()
  1146.                 giveTool11.Parent = player.StarterGear
  1147.                 wait(.1)
  1148.                 debounce = true
  1149.                 return "Equip" 
  1150.             end
  1151.         end
  1152.  
  1153.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCompass").Value == Compass.Name and bool11.Value == true then
  1154.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCompass").Value = ""
  1155.             humanoid:UnequipTools()
  1156.             if player.Backpack:FindFirstChild("Compass") then       --:IsA("Tool")
  1157.                 if humanoid then
  1158.                     humanoid:UnequipTools()
  1159.                     player.Backpack:FindFirstChild("Compass"):Destroy()
  1160.                     player.StarterGear:FindFirstChild("Compass"):Destroy() 
  1161.                     return "Unequip"
  1162.                 end
  1163.                 wait(.1)
  1164.                 debounce = true
  1165.                 return "Unequip"
  1166.                 --  end)
  1167.             end
  1168.         end                    
  1169.     end
  1170.     wait(.5)
  1171.     debounce = true
  1172. end
  1173.  
  1174. game.ReplicatedStorage.Accessories.Events.GiveAccessory12.OnServerInvoke = function(player,TomsBeans)
  1175.     if debounce == true then
  1176.         debounce = false
  1177.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1178.         local TomsBeansifsInInventory
  1179.         local bool12 = player.AccessoriesInventory:FindFirstChild("TomsBeans")
  1180.  
  1181.         if player.Backpack:FindFirstChild("TomsBeans") then
  1182.             TomsBeansifsInInventory = true
  1183.         end    
  1184.  
  1185.         if TomsBeans then
  1186.             if TomsBeans:FindFirstChild("Price") then
  1187.                 if not TomsBeansifsInInventory then
  1188.                     -- Check if we can buy the Item
  1189.                     if player.leaderstats.Coins.Value >= TomsBeans.Price.Value and bool12.Value == false then
  1190.                         print(player.Name.." brought the Tom's Beans item")
  1191.  
  1192.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - TomsBeans.Price.Value        
  1193.  
  1194.                         local giveTool12 = ReplicatedStorage.Accessories:FindFirstChild("TomsBeans"):Clone()
  1195.                         giveTool12.Parent = player.Backpack
  1196.  
  1197.                         local giveTool12 = ReplicatedStorage.Accessories:FindFirstChild("TomsBeans"):Clone()
  1198.                         giveTool12.Parent = player.StarterGear 
  1199.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTomsBeans").Value = TomsBeans.Name   
  1200.  
  1201.                         bool12.Value = true
  1202.                         TomsBeansifsInInventory = true
  1203.                         wait(.5)
  1204.                         debounce = true
  1205.                         return "Brought"
  1206.                     end
  1207.                 end
  1208.             end
  1209.         end
  1210.  
  1211.         if player.leaderstats.Coins.Value < TomsBeans.Price.Value and not TomsBeansifsInInventory and bool12.Value == false then
  1212.             return "NotEnough" 
  1213.         end        
  1214.  
  1215.         if bool12.Value == true then                           
  1216.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTomsBeans").Value ~= TomsBeans.Name then
  1217.                 -- You already owned it                                                        
  1218.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTomsBeans").Value = TomsBeans.Name           
  1219.  
  1220.                 local giveTool12 = ReplicatedStorage.Accessories:FindFirstChild("TomsBeans"):Clone()
  1221.                 giveTool12.Parent = player.Backpack
  1222.  
  1223.                 local giveTool12 = ReplicatedStorage.Accessories:FindFirstChild("TomsBeans"):Clone()
  1224.                 giveTool12.Parent = player.StarterGear
  1225.                 wait(.1)
  1226.                 debounce = true
  1227.                 return "Equip" 
  1228.             end
  1229.         end
  1230.  
  1231.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTomsBeans").Value == TomsBeans.Name and bool12.Value == true then
  1232.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTomsBeans").Value = ""
  1233.             humanoid:UnequipTools()
  1234.             if player.Backpack:FindFirstChild("TomsBeans") then
  1235.                 if humanoid then
  1236.                     humanoid:UnequipTools()
  1237.                     player.Backpack:FindFirstChild("TomsBeans"):Destroy()
  1238.                     player.StarterGear:FindFirstChild("TomsBeans"):Destroy()   
  1239.                     return "Unequip"
  1240.                 end
  1241.                 wait(.1)
  1242.                 debounce = true
  1243.                 return "Unequip"
  1244.             end
  1245.         end                    
  1246.     end
  1247.     wait(.5)
  1248.     debounce = true
  1249. end
  1250.  
  1251. game.ReplicatedStorage.Accessories.Events.GiveAccessory13.OnServerInvoke = function(player,IceCream)
  1252.     if debounce == true then
  1253.         debounce = false
  1254.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1255.         local IceCreamifsInInventory
  1256.         local bool13 = player.AccessoriesInventory:FindFirstChild("IceCream")
  1257.  
  1258.         if player.Backpack:FindFirstChild("IceCream") then
  1259.             IceCreamifsInInventory = true
  1260.         end    
  1261.  
  1262.         if IceCream then
  1263.             if IceCream:FindFirstChild("Price") then
  1264.                 if not IceCreamifsInInventory then
  1265.                     -- Check if we can buy the Item
  1266.                     if player.leaderstats.Coins.Value >= IceCream.Price.Value and bool13.Value == false then
  1267.                         print(player.Name.." brought the Ice Cream item")
  1268.  
  1269.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - IceCream.Price.Value         
  1270.  
  1271.                         local giveTool13 = ReplicatedStorage.Accessories:FindFirstChild("IceCream"):Clone()
  1272.                         giveTool13.Parent = player.Backpack
  1273.  
  1274.                         local giveTool13 = ReplicatedStorage.Accessories:FindFirstChild("IceCream"):Clone()
  1275.                         giveTool13.Parent = player.StarterGear 
  1276.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedIceCream").Value = IceCream.Name 
  1277.  
  1278.                         bool13.Value = true
  1279.                         IceCreamifsInInventory = true
  1280.                         wait(.5)
  1281.                         debounce = true
  1282.                         return "Brought"
  1283.                     end
  1284.                 end
  1285.             end
  1286.         end
  1287.  
  1288.         if player.leaderstats.Coins.Value < IceCream.Price.Value and not IceCreamifsInInventory and bool13.Value == false then
  1289.             return "NotEnough" 
  1290.         end        
  1291.  
  1292.         if bool13.Value == true then                           
  1293.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedIceCream").Value ~= IceCream.Name then
  1294.                 -- You already owned it                                                        
  1295.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedIceCream").Value = IceCream.Name         
  1296.  
  1297.                 local giveTool13 = ReplicatedStorage.Accessories:FindFirstChild("IceCream"):Clone()
  1298.                 giveTool13.Parent = player.Backpack
  1299.  
  1300.                 local giveTool13 = ReplicatedStorage.Accessories:FindFirstChild("IceCream"):Clone()
  1301.                 giveTool13.Parent = player.StarterGear
  1302.                 wait(.1)
  1303.                 debounce = true
  1304.                 return "Equip" 
  1305.             end
  1306.         end
  1307.  
  1308.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedIceCream").Value == IceCream.Name and bool13.Value == true then
  1309.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedIceCream").Value = ""
  1310.             humanoid:UnequipTools()
  1311.             if player.Backpack:FindFirstChild("IceCream") then      --:IsA("Tool")
  1312.                 if humanoid then
  1313.                     humanoid:UnequipTools()
  1314.                     player.Backpack:FindFirstChild("IceCream"):Destroy()
  1315.                     player.StarterGear:FindFirstChild("IceCream"):Destroy()
  1316.                     return "Unequip"
  1317.                 end
  1318.                 wait(.1)
  1319.                 debounce = true
  1320.                 return "Unequip"
  1321.             end
  1322.         end                    
  1323.     end
  1324.     wait(.5)
  1325.     debounce = true
  1326. end
  1327.  
  1328. game.ReplicatedStorage.Accessories.Events.GiveAccessory14.OnServerInvoke = function(player,Waffle)
  1329.     if debounce == true then
  1330.         debounce = false
  1331.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1332.         local WaffleifsInInventory
  1333.         local bool14 = player.AccessoriesInventory:FindFirstChild("Waffle")
  1334.  
  1335.         if player.Backpack:FindFirstChild("Waffle") then
  1336.             WaffleifsInInventory = true
  1337.         end    
  1338.  
  1339.         if Waffle then
  1340.             if Waffle:FindFirstChild("Price") then
  1341.                 if not WaffleifsInInventory then
  1342.                     -- Check if we can buy the Item
  1343.                     if player.leaderstats.Coins.Value >= Waffle.Price.Value and bool14.Value == false then
  1344.                         print(player.Name.." brought the Waffle item")
  1345.  
  1346.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Waffle.Price.Value           
  1347.  
  1348.                         local giveTool14 = ReplicatedStorage.Accessories:FindFirstChild("Waffle"):Clone()
  1349.                         giveTool14.Parent = player.Backpack
  1350.  
  1351.                         local giveTool14 = ReplicatedStorage.Accessories:FindFirstChild("Waffle"):Clone()
  1352.                         giveTool14.Parent = player.StarterGear 
  1353.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWaffle").Value = Waffle.Name 
  1354.  
  1355.                         bool14.Value = true
  1356.                         WaffleifsInInventory = true
  1357.                         wait(.5)
  1358.                         debounce = true
  1359.                         return "Brought"
  1360.                     end
  1361.                 end
  1362.             end
  1363.         end
  1364.  
  1365.         if player.leaderstats.Coins.Value < Waffle.Price.Value and not WaffleifsInInventory and bool14.Value == false then
  1366.             return "NotEnough" 
  1367.         end        
  1368.  
  1369.         if bool14.Value == true then                           
  1370.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWaffle").Value ~= Waffle.Name then
  1371.                 -- You already owned it                                                        
  1372.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWaffle").Value = Waffle.Name         
  1373.  
  1374.                 local giveTool14 = ReplicatedStorage.Accessories:FindFirstChild("Waffle"):Clone()
  1375.                 giveTool14.Parent = player.Backpack
  1376.  
  1377.                 local giveTool14 = ReplicatedStorage.Accessories:FindFirstChild("Waffle"):Clone()
  1378.                 giveTool14.Parent = player.StarterGear
  1379.                 wait(.1)
  1380.                 debounce = true
  1381.                 return "Equip" 
  1382.             end
  1383.         end
  1384.  
  1385.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWaffle").Value == Waffle.Name and bool14.Value == true then
  1386.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWaffle").Value = ""
  1387.             humanoid:UnequipTools()
  1388.             if player.Backpack:FindFirstChild("Waffle") then
  1389.                 if humanoid then
  1390.                     humanoid:UnequipTools()
  1391.                     player.Backpack:FindFirstChild("Waffle"):Destroy()
  1392.                     player.StarterGear:FindFirstChild("Waffle"):Destroy()  
  1393.                     return "Unequip"
  1394.                 end
  1395.                 wait(.1)
  1396.                 debounce = true
  1397.                 return "Unequip"
  1398.             end
  1399.         end                    
  1400.     end
  1401.     wait(.5)
  1402.     debounce = true
  1403. end
  1404.  
  1405. game.ReplicatedStorage.Accessories.Events.GiveAccessory15.OnServerInvoke = function(player,WitchesBrew)
  1406.     if debounce == true then
  1407.         debounce = false
  1408.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1409.         local WitchesBrewifsInInventory
  1410.         local bool15 = player.AccessoriesInventory:FindFirstChild("WitchesBrew")
  1411.  
  1412.         if player.Backpack:FindFirstChild("Waffle") then
  1413.             WitchesBrewifsInInventory = true
  1414.         end    
  1415.  
  1416.         if WitchesBrew then
  1417.             if WitchesBrew:FindFirstChild("Price") then
  1418.                 if not WitchesBrewifsInInventory then
  1419.                     -- Check if we can buy the Item
  1420.                     if player.leaderstats.Coins.Value >= WitchesBrew.Price.Value and bool15.Value == false then
  1421.                         print(player.Name.." brought the Witches Brew item")
  1422.  
  1423.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - WitchesBrew.Price.Value          
  1424.  
  1425.                         local giveTool15 = ReplicatedStorage.Accessories:FindFirstChild("WitchesBrew"):Clone()
  1426.                         giveTool15.Parent = player.Backpack
  1427.  
  1428.                         local giveTool15 = ReplicatedStorage.Accessories:FindFirstChild("WitchesBrew"):Clone()
  1429.                         giveTool15.Parent = player.StarterGear 
  1430.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWitchesBrew").Value = WitchesBrew.Name   
  1431.  
  1432.                         bool15.Value = true
  1433.                         WitchesBrewifsInInventory = true
  1434.                         wait(.5)
  1435.                         debounce = true
  1436.                         return "Brought"
  1437.                     end
  1438.                 end
  1439.             end
  1440.         end
  1441.  
  1442.         if player.leaderstats.Coins.Value < WitchesBrew.Price.Value and not WitchesBrewifsInInventory and bool15.Value == false then
  1443.             return "NotEnough" 
  1444.         end        
  1445.  
  1446.         if bool15.Value == true then                           
  1447.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWitchesBrew").Value ~= WitchesBrew.Name then
  1448.                 -- You already owned it                                                        
  1449.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWitchesBrew").Value = WitchesBrew.Name           
  1450.  
  1451.                 local giveTool15 = ReplicatedStorage.Accessories:FindFirstChild("WitchesBrew"):Clone()
  1452.                 giveTool15.Parent = player.Backpack
  1453.  
  1454.                 local giveTool15 = ReplicatedStorage.Accessories:FindFirstChild("WitchesBrew"):Clone()
  1455.                 giveTool15.Parent = player.StarterGear
  1456.                 wait(.1)
  1457.                 debounce = true
  1458.                 return "Equip" 
  1459.             end
  1460.         end
  1461.  
  1462.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWitchesBrew").Value == WitchesBrew.Name and bool15.Value == true then
  1463.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWitchesBrew").Value = ""
  1464.             humanoid:UnequipTools()
  1465.             if player.Backpack:FindFirstChild("WitchesBrew") then
  1466.                 if humanoid then
  1467.                     humanoid:UnequipTools()
  1468.                     player.Backpack:FindFirstChild("WitchesBrew"):Destroy()
  1469.                     player.StarterGear:FindFirstChild("WitchesBrew"):Destroy() 
  1470.                     return "Unequip"
  1471.                 end
  1472.                 wait(.1)
  1473.                 debounce = true
  1474.                 return "Unequip"
  1475.             end
  1476.         end                    
  1477.     end
  1478.     wait(.5)
  1479.     debounce = true
  1480. end
  1481.  
  1482. game.ReplicatedStorage.Accessories.Events.GiveAccessory16.OnServerInvoke = function(player,Torch)
  1483.     if debounce == true then
  1484.         debounce = false
  1485.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1486.         local TorchifsInInventory
  1487.         local bool16 = player.AccessoriesInventory:FindFirstChild("Torch")
  1488.  
  1489.         if player.Backpack:FindFirstChild("Torch") then
  1490.             TorchifsInInventory = true
  1491.         end    
  1492.  
  1493.         if Torch then
  1494.             if Torch:FindFirstChild("Price") then
  1495.                 if not TorchifsInInventory then
  1496.                     -- Check if we can buy the Item
  1497.                     if player.leaderstats.Coins.Value >= Torch.Price.Value and bool16.Value == false then
  1498.                         print(player.Name.." brought the Torch item")
  1499.  
  1500.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Torch.Price.Value        
  1501.  
  1502.                         local giveTool16 = ReplicatedStorage.Accessories:FindFirstChild("Torch"):Clone()
  1503.                         giveTool16.Parent = player.Backpack
  1504.  
  1505.                         local giveTool16 = ReplicatedStorage.Accessories:FindFirstChild("Torch"):Clone()
  1506.                         giveTool16.Parent = player.StarterGear 
  1507.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTorch").Value = Torch.Name   
  1508.  
  1509.                         bool16.Value = true
  1510.                         TorchifsInInventory = true
  1511.                         wait(.5)
  1512.                         debounce = true
  1513.                         return "Brought"
  1514.                     end
  1515.                 end
  1516.             end
  1517.         end
  1518.  
  1519.         if player.leaderstats.Coins.Value < Torch.Price.Value and not TorchifsInInventory and bool16.Value == false then
  1520.             return "NotEnough" 
  1521.         end        
  1522.  
  1523.         if bool16.Value == true then                           
  1524.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTorch").Value ~= Torch.Name then
  1525.                 -- You already owned it                                                        
  1526.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTorch").Value = Torch.Name           
  1527.  
  1528.                 local giveTool16 = ReplicatedStorage.Accessories:FindFirstChild("Torch"):Clone()
  1529.                 giveTool16.Parent = player.Backpack
  1530.  
  1531.                 local giveTool16 = ReplicatedStorage.Accessories:FindFirstChild("Torch"):Clone()
  1532.                 giveTool16.Parent = player.StarterGear
  1533.                 wait(.1)
  1534.                 debounce = true
  1535.                 return "Equip" 
  1536.             end
  1537.         end
  1538.  
  1539.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTorch").Value == Torch.Name and bool16.Value == true then
  1540.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedTorch").Value = ""
  1541.             humanoid:UnequipTools()
  1542.             if player.Backpack:FindFirstChild("Torch") then
  1543.                 if humanoid then
  1544.                     humanoid:UnequipTools()
  1545.                     player.Backpack:FindFirstChild("Torch"):Destroy()
  1546.                     player.StarterGear:FindFirstChild("Torch"):Destroy()   
  1547.                     return "Unequip"
  1548.                 end
  1549.                 wait(.1)
  1550.                 debounce = true
  1551.                 return "Unequip"
  1552.             end
  1553.         end                    
  1554.     end
  1555.     wait(.5)
  1556.     debounce = true
  1557. end
  1558.  
  1559. game.ReplicatedStorage.Accessories.Events.GiveAccessory17.OnServerInvoke = function(player,BloxxyRadar)
  1560.     if debounce == true then
  1561.         debounce = false
  1562.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1563.         local BloxxyRadarifsInInventory
  1564.         local bool17 = player.AccessoriesInventory:FindFirstChild("BloxxyRadar")
  1565.  
  1566.         if player.Backpack:FindFirstChild("BloxxyRadar") then
  1567.             BloxxyRadarifsInInventory = true
  1568.         end    
  1569.  
  1570.         if BloxxyRadar then
  1571.             if BloxxyRadar:FindFirstChild("Price") then
  1572.                 if not BloxxyRadarifsInInventory then
  1573.                     -- Check if we can buy the Item
  1574.                     if player.leaderstats.Coins.Value >= BloxxyRadar.Price.Value and bool17.Value == false then
  1575.                         print(player.Name.." brought the BloxxyRadar item")
  1576.  
  1577.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - BloxxyRadar.Price.Value          
  1578.  
  1579.                         local giveTool17 = ReplicatedStorage.Accessories:FindFirstChild("BloxxyRadar"):Clone()
  1580.                         giveTool17.Parent = player.Backpack
  1581.  
  1582.                         local giveTool17 = ReplicatedStorage.Accessories:FindFirstChild("BloxxyRadar"):Clone()
  1583.                         giveTool17.Parent = player.StarterGear 
  1584.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBloxxyRadar").Value = BloxxyRadar.Name   
  1585.  
  1586.                         bool17.Value = true
  1587.                         BloxxyRadarifsInInventory = true
  1588.                         wait(.5)
  1589.                         debounce = true
  1590.                         return "Brought"
  1591.                     end
  1592.                 end
  1593.             end
  1594.         end
  1595.  
  1596.         if player.leaderstats.Coins.Value < BloxxyRadar.Price.Value and not BloxxyRadarifsInInventory and bool17.Value == false then
  1597.             return "NotEnough" 
  1598.         end        
  1599.  
  1600.         if bool17.Value == true then                           
  1601.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBloxxyRadar").Value ~= BloxxyRadar.Name then
  1602.                 -- You already owned it                                                        
  1603.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBloxxyRadar").Value = BloxxyRadar.Name           
  1604.  
  1605.                 local giveTool17 = ReplicatedStorage.Accessories:FindFirstChild("BloxxyRadar"):Clone()
  1606.                 giveTool17.Parent = player.Backpack
  1607.  
  1608.                 local giveTool17 = ReplicatedStorage.Accessories:FindFirstChild("BloxxyRadar"):Clone()
  1609.                 giveTool17.Parent = player.StarterGear
  1610.                 wait(.1)
  1611.                 debounce = true
  1612.                 return "Equip" 
  1613.             end
  1614.         end
  1615.  
  1616.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBloxxyRadar").Value == BloxxyRadar.Name and bool17.Value == true then
  1617.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBloxxyRadar").Value = ""
  1618.             humanoid:UnequipTools()
  1619.             if player.Backpack:FindFirstChild("BloxxyRadar") then
  1620.                 if humanoid then
  1621.                     humanoid:UnequipTools()
  1622.                     player.Backpack:FindFirstChild("BloxxyRadar"):Destroy()
  1623.                     player.StarterGear:FindFirstChild("BloxxyRadar"):Destroy() 
  1624.                     return "Unequip"
  1625.                 end
  1626.                 wait(.1)
  1627.                 debounce = true
  1628.                 return "Unequip"
  1629.             end
  1630.         end                    
  1631.     end
  1632.     wait(.5)
  1633.     debounce = true
  1634. end
  1635.  
  1636. game.ReplicatedStorage.Accessories.Events.GiveAccessory18.OnServerInvoke = function(player,Moneybag)
  1637.     if debounce == true then
  1638.         debounce = false
  1639.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1640.         local MoneybagifsInInventory
  1641.         local bool18 = player.AccessoriesInventory:FindFirstChild("Moneybag")
  1642.  
  1643.         if player.Backpack:FindFirstChild("Moneybag") then
  1644.             MoneybagifsInInventory = true
  1645.         end    
  1646.  
  1647.         if Moneybag then
  1648.             if Moneybag:FindFirstChild("Price") then
  1649.                 if not MoneybagifsInInventory then
  1650.                     -- Check if we can buy the Item
  1651.                     if player.leaderstats.Coins.Value >= Moneybag.Price.Value and bool18.Value == false then
  1652.                         print(player.Name.." brought the Moneybag item")
  1653.  
  1654.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Moneybag.Price.Value         
  1655.  
  1656.                         local giveTool18 = ReplicatedStorage.Accessories:FindFirstChild("Moneybag"):Clone()
  1657.                         giveTool18.Parent = player.Backpack
  1658.  
  1659.                         local giveTool18 = ReplicatedStorage.Accessories:FindFirstChild("Moneybag"):Clone()
  1660.                         giveTool18.Parent = player.StarterGear 
  1661.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMoneybag").Value = Moneybag.Name 
  1662.  
  1663.                         bool18.Value = true
  1664.                         MoneybagifsInInventory = true
  1665.                         wait(.5)
  1666.                         debounce = true
  1667.                         return "Brought"
  1668.                     end
  1669.                 end
  1670.             end
  1671.         end
  1672.  
  1673.         if player.leaderstats.Coins.Value < Moneybag.Price.Value and not MoneybagifsInInventory and bool18.Value == false then
  1674.             return "NotEnough" 
  1675.         end        
  1676.  
  1677.         if bool18.Value == true then                           
  1678.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMoneybag").Value ~= Moneybag.Name then
  1679.                 -- You already owned it                                                        
  1680.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMoneybag").Value = Moneybag.Name         
  1681.  
  1682.                 local giveTool18 = ReplicatedStorage.Accessories:FindFirstChild("Moneybag"):Clone()
  1683.                 giveTool18.Parent = player.Backpack
  1684.  
  1685.                 local giveTool18 = ReplicatedStorage.Accessories:FindFirstChild("Moneybag"):Clone()
  1686.                 giveTool18.Parent = player.StarterGear
  1687.                 wait(.1)
  1688.                 debounce = true
  1689.                 return "Equip" 
  1690.             end
  1691.         end
  1692.  
  1693.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMoneybag").Value == Moneybag.Name and bool18.Value == true then
  1694.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMoneybag").Value = ""
  1695.             humanoid:UnequipTools()
  1696.             if player.Backpack:FindFirstChild("Moneybag") then
  1697.                 if humanoid then
  1698.                     humanoid:UnequipTools()
  1699.                     player.Backpack:FindFirstChild("Moneybag"):Destroy()
  1700.                     player.StarterGear:FindFirstChild("Moneybag"):Destroy()
  1701.                     return "Unequip"
  1702.                 end
  1703.                 wait(.1)
  1704.                 debounce = true
  1705.                 return "Unequip"
  1706.             end
  1707.         end                    
  1708.     end
  1709.     wait(.5)
  1710.     debounce = true
  1711. end
  1712.  
  1713. game.ReplicatedStorage.Accessories.Events.GiveAccessory19.OnServerInvoke = function(player,SpaceSandwitch)
  1714.     if debounce == true then
  1715.         debounce = false
  1716.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1717.         local SpaceSandwitchifsInInventory
  1718.         local bool19 = player.AccessoriesInventory:FindFirstChild("SpaceSandwitch")
  1719.  
  1720.         if player.Backpack:FindFirstChild("SpaceSandwitch") then
  1721.             SpaceSandwitchifsInInventory = true
  1722.         end    
  1723.  
  1724.         if SpaceSandwitch then
  1725.             if SpaceSandwitch:FindFirstChild("Price") then
  1726.                 if not SpaceSandwitchifsInInventory then
  1727.                     -- Check if we can buy the Item
  1728.                     if player.leaderstats.Coins.Value >= SpaceSandwitch.Price.Value and bool19.Value == false then
  1729.                         print(player.Name.." brought the SpaceSandwitch item")
  1730.  
  1731.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - SpaceSandwitch.Price.Value           
  1732.  
  1733.                         local giveTool19 = ReplicatedStorage.Accessories:FindFirstChild("SpaceSandwitch"):Clone()
  1734.                         giveTool19.Parent = player.Backpack
  1735.  
  1736.                         local giveTool19 = ReplicatedStorage.Accessories:FindFirstChild("SpaceSandwitch"):Clone()
  1737.                         giveTool19.Parent = player.StarterGear 
  1738.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpaceSandwitch").Value = SpaceSandwitch.Name 
  1739.  
  1740.                         bool19.Value = true
  1741.                         SpaceSandwitchifsInInventory = true
  1742.                         wait(.5)
  1743.                         debounce = true
  1744.                         return "Brought"
  1745.                     end
  1746.                 end
  1747.             end
  1748.         end
  1749.  
  1750.         if player.leaderstats.Coins.Value < SpaceSandwitch.Price.Value and not SpaceSandwitchifsInInventory and bool19.Value == false then
  1751.             return "NotEnough" 
  1752.         end        
  1753.  
  1754.         if bool19.Value == true then                           
  1755.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpaceSandwitch").Value ~= SpaceSandwitch.Name then
  1756.                 -- You already owned it                                                        
  1757.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpaceSandwitch").Value = SpaceSandwitch.Name         
  1758.  
  1759.                 local giveTool19 = ReplicatedStorage.Accessories:FindFirstChild("SpaceSandwitch"):Clone()
  1760.                 giveTool19.Parent = player.Backpack
  1761.  
  1762.                 local giveTool19 = ReplicatedStorage.Accessories:FindFirstChild("SpaceSandwitch"):Clone()
  1763.                 giveTool19.Parent = player.StarterGear
  1764.                 wait(.1)
  1765.                 debounce = true
  1766.                 return "Equip" 
  1767.             end
  1768.         end
  1769.  
  1770.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpaceSandwitch").Value == SpaceSandwitch.Name and bool19.Value == true then
  1771.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpaceSandwitch").Value = ""
  1772.             humanoid:UnequipTools()
  1773.             if player.Backpack:FindFirstChild("SpaceSandwitch") then
  1774.                 if humanoid then
  1775.                     humanoid:UnequipTools()
  1776.                     player.Backpack:FindFirstChild("SpaceSandwitch"):Destroy()
  1777.                     player.StarterGear:FindFirstChild("SpaceSandwitch"):Destroy()  
  1778.                     return "Unequip"
  1779.                 end
  1780.                 wait(.1)
  1781.                 debounce = true
  1782.                 return "Unequip"
  1783.             end
  1784.         end                    
  1785.     end
  1786.     wait(.5)
  1787.     debounce = true
  1788. end
  1789.  
  1790. game.ReplicatedStorage.Accessories.Events.GiveAccessory20.OnServerInvoke = function(player,Cake)
  1791.     if debounce == true then
  1792.         debounce = false
  1793.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1794.         local CakeifsInInventory
  1795.         local bool20 = player.AccessoriesInventory:FindFirstChild("Cake")
  1796.  
  1797.         if player.Backpack:FindFirstChild("Cake") then
  1798.             CakeifsInInventory = true
  1799.         end    
  1800.  
  1801.         if Cake then
  1802.             if Cake:FindFirstChild("Price") then
  1803.                 if not CakeifsInInventory then
  1804.                     -- Check if we can buy the Item
  1805.                     if player.leaderstats.Coins.Value >= Cake.Price.Value and bool20.Value == false then
  1806.                         print(player.Name.." brought the Cake item")
  1807.  
  1808.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Cake.Price.Value         
  1809.  
  1810.                         local giveTool20 = ReplicatedStorage.Accessories:FindFirstChild("Cake"):Clone()
  1811.                         giveTool20.Parent = player.Backpack
  1812.  
  1813.                         local giveTool20 = ReplicatedStorage.Accessories:FindFirstChild("Cake"):Clone()
  1814.                         giveTool20.Parent = player.StarterGear 
  1815.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCake").Value = Cake.Name 
  1816.  
  1817.                         bool20.Value = true
  1818.                         CakeifsInInventory = true
  1819.                         wait(.5)
  1820.                         debounce = true
  1821.                         return "Brought"
  1822.                     end
  1823.                 end
  1824.             end
  1825.         end
  1826.  
  1827.         if player.leaderstats.Coins.Value < Cake.Price.Value and not CakeifsInInventory and bool20.Value == false then
  1828.             return "NotEnough" 
  1829.         end        
  1830.  
  1831.         if bool20.Value == true then                           
  1832.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCake").Value ~= Cake.Name then
  1833.                 -- You already owned it                                                        
  1834.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCake").Value = Cake.Name         
  1835.  
  1836.                 local giveTool20 = ReplicatedStorage.Accessories:FindFirstChild("Cake"):Clone()
  1837.                 giveTool20.Parent = player.Backpack
  1838.  
  1839.                 local giveTool20 = ReplicatedStorage.Accessories:FindFirstChild("Cake"):Clone()
  1840.                 giveTool20.Parent = player.StarterGear
  1841.                 wait(.1)
  1842.                 debounce = true
  1843.                 return "Equip" 
  1844.             end
  1845.         end
  1846.  
  1847.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCake").Value == Cake.Name and bool20.Value == true then
  1848.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedCake").Value = ""
  1849.             humanoid:UnequipTools()
  1850.             if player.Backpack:FindFirstChild("Cake") then
  1851.                 if humanoid then
  1852.                     humanoid:UnequipTools()
  1853.                     player.Backpack:FindFirstChild("Cake"):Destroy()
  1854.                     player.StarterGear:FindFirstChild("Cake"):Destroy()
  1855.                     return "Unequip"
  1856.                 end
  1857.                 wait(.1)
  1858.                 debounce = true
  1859.                 return "Unequip"
  1860.             end
  1861.         end                    
  1862.     end
  1863.     wait(.5)
  1864.     debounce = true
  1865. end
  1866.  
  1867. game.ReplicatedStorage.Accessories.Events.GiveAccessory21.OnServerInvoke = function(player,FaceoffPotion)
  1868.     if debounce == true then
  1869.         debounce = false
  1870.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1871.         local FaceoffPotionifsInInventory
  1872.         local bool21 = player.AccessoriesInventory:FindFirstChild("FaceoffPotion")
  1873.  
  1874.         if player.Backpack:FindFirstChild("FaceoffPotion") then
  1875.             FaceoffPotionifsInInventory = true
  1876.         end    
  1877.  
  1878.         if FaceoffPotion then
  1879.             if FaceoffPotion:FindFirstChild("Price") then
  1880.                 if not FaceoffPotionifsInInventory then
  1881.                     -- Check if we can buy the Item
  1882.                     if player.leaderstats.Coins.Value >= FaceoffPotion.Price.Value and bool21.Value == false then
  1883.                         print(player.Name.." brought the FaceoffPotion item")
  1884.  
  1885.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - FaceoffPotion.Price.Value        
  1886.  
  1887.                         local giveTool21 = ReplicatedStorage.Accessories:FindFirstChild("FaceoffPotion"):Clone()
  1888.                         giveTool21.Parent = player.Backpack
  1889.  
  1890.                         local giveTool21 = ReplicatedStorage.Accessories:FindFirstChild("FaceoffPotion"):Clone()
  1891.                         giveTool21.Parent = player.StarterGear 
  1892.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFaceoffPotion").Value = FaceoffPotion.Name   
  1893.  
  1894.                         bool21.Value = true
  1895.                         FaceoffPotionifsInInventory = true
  1896.                         wait(.5)
  1897.                         debounce = true
  1898.                         return "Brought"
  1899.                     end
  1900.                 end
  1901.             end
  1902.         end
  1903.  
  1904.         if player.leaderstats.Coins.Value < FaceoffPotion.Price.Value and not FaceoffPotionifsInInventory and bool21.Value == false then
  1905.             return "NotEnough" 
  1906.         end        
  1907.  
  1908.         if bool21.Value == true then                           
  1909.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFaceoffPotion").Value ~= FaceoffPotion.Name then
  1910.                 -- You already owned it                                                        
  1911.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFaceoffPotion").Value = FaceoffPotion.Name           
  1912.  
  1913.                 local giveTool21 = ReplicatedStorage.Accessories:FindFirstChild("FaceoffPotion"):Clone()
  1914.                 giveTool21.Parent = player.Backpack
  1915.  
  1916.                 local giveTool21 = ReplicatedStorage.Accessories:FindFirstChild("FaceoffPotion"):Clone()
  1917.                 giveTool21.Parent = player.StarterGear
  1918.                 wait(.1)
  1919.                 debounce = true
  1920.                 return "Equip" 
  1921.             end
  1922.         end
  1923.  
  1924.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFaceoffPotion").Value == FaceoffPotion.Name and bool21.Value == true then
  1925.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedFaceoffPotion").Value = ""
  1926.             humanoid:UnequipTools()
  1927.             if player.Backpack:FindFirstChild("FaceoffPotion") then
  1928.                 if humanoid then
  1929.                     humanoid:UnequipTools()
  1930.                     player.Backpack:FindFirstChild("FaceoffPotion"):Destroy()
  1931.                     player.StarterGear:FindFirstChild("FaceoffPotion"):Destroy()   
  1932.                     return "Unequip"
  1933.                 end
  1934.                 wait(.1)
  1935.                 debounce = true
  1936.                 return "Unequip"
  1937.             end
  1938.         end                    
  1939.     end
  1940.     wait(.5)
  1941.     debounce = true
  1942. end
  1943.  
  1944. game.ReplicatedStorage.Accessories.Events.GiveAccessory22.OnServerInvoke = function(player,Bubblegum)
  1945.     if debounce == true then
  1946.         debounce = false
  1947.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  1948.         local BubblegumifsInInventory
  1949.         local bool22 = player.AccessoriesInventory:FindFirstChild("Bubblegum")
  1950.  
  1951.         if player.Backpack:FindFirstChild("Bubblegum") then
  1952.             BubblegumifsInInventory = true
  1953.         end    
  1954.  
  1955.         if Bubblegum then
  1956.             if Bubblegum:FindFirstChild("Price") then
  1957.                 if not BubblegumifsInInventory then
  1958.                     -- Check if we can buy the Item
  1959.                     if player.leaderstats.Coins.Value >= Bubblegum.Price.Value and bool22.Value == false then
  1960.                         print(player.Name.." brought the Bubblegum item")
  1961.  
  1962.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Bubblegum.Price.Value        
  1963.  
  1964.                         local giveTool22 = ReplicatedStorage.Accessories:FindFirstChild("Bubblegum"):Clone()
  1965.                         giveTool22.Parent = player.Backpack
  1966.  
  1967.                         local giveTool22 = ReplicatedStorage.Accessories:FindFirstChild("Bubblegum"):Clone()
  1968.                         giveTool22.Parent = player.StarterGear 
  1969.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBubblegum").Value = Bubblegum.Name   
  1970.  
  1971.                         bool22.Value = true
  1972.                         BubblegumifsInInventory = true
  1973.                         wait(.5)
  1974.                         debounce = true
  1975.                         return "Brought"
  1976.                     end
  1977.                 end
  1978.             end
  1979.         end
  1980.  
  1981.         if player.leaderstats.Coins.Value < Bubblegum.Price.Value and not BubblegumifsInInventory and bool22.Value == false then
  1982.             return "NotEnough" 
  1983.         end        
  1984.  
  1985.         if bool22.Value == true then                           
  1986.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBubblegum").Value ~= Bubblegum.Name then
  1987.                 -- You already owned it                                                        
  1988.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBubblegum").Value = Bubblegum.Name           
  1989.  
  1990.                 local giveTool22 = ReplicatedStorage.Accessories:FindFirstChild("Bubblegum"):Clone()
  1991.                 giveTool22.Parent = player.Backpack
  1992.  
  1993.                 local giveTool22 = ReplicatedStorage.Accessories:FindFirstChild("Bubblegum"):Clone()
  1994.                 giveTool22.Parent = player.StarterGear
  1995.                 wait(.1)
  1996.                 debounce = true
  1997.                 return "Equip" 
  1998.             end
  1999.         end
  2000.  
  2001.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBubblegum").Value == Bubblegum.Name and bool22.Value == true then
  2002.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBubblegum").Value = ""
  2003.             humanoid:UnequipTools()
  2004.             if player.Backpack:FindFirstChild("Bubblegum") then
  2005.                 if humanoid then
  2006.                     humanoid:UnequipTools()
  2007.                     player.Backpack:FindFirstChild("Bubblegum"):Destroy()
  2008.                     player.StarterGear:FindFirstChild("Bubblegum"):Destroy()   
  2009.                     return "Unequip"
  2010.                 end
  2011.                 wait(.1)
  2012.                 debounce = true
  2013.                 return "Unequip"
  2014.             end
  2015.         end                    
  2016.     end
  2017.     wait(.5)
  2018.     debounce = true
  2019. end
  2020.  
  2021. game.ReplicatedStorage.Accessories.Events.GiveAccessory23.OnServerInvoke = function(player,Monkey)
  2022.     if debounce == true then
  2023.         debounce = false
  2024.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2025.         local MonkeyifsInInventory
  2026.         local bool23 = player.AccessoriesInventory:FindFirstChild("Monkey")
  2027.  
  2028.         if player.Backpack:FindFirstChild("Monkey") then
  2029.             MonkeyifsInInventory = true
  2030.         end    
  2031.  
  2032.         if Monkey then
  2033.             if Monkey:FindFirstChild("Price") then
  2034.                 if not MonkeyifsInInventory then
  2035.                     -- Check if we can buy the Item
  2036.                     if player.leaderstats.Coins.Value >= Monkey.Price.Value and bool23.Value == false then
  2037.                         print(player.Name.." brought the Monkey item")
  2038.  
  2039.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Monkey.Price.Value           
  2040.  
  2041.                         local giveTool23 = ReplicatedStorage.Accessories:FindFirstChild("Monkey"):Clone()
  2042.                         giveTool23.Parent = player.Backpack
  2043.  
  2044.                         local giveTool23 = ReplicatedStorage.Accessories:FindFirstChild("Monkey"):Clone()
  2045.                         giveTool23.Parent = player.StarterGear 
  2046.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMonkey").Value = Monkey.Name 
  2047.  
  2048.                         bool23.Value = true
  2049.                         MonkeyifsInInventory = true
  2050.                         wait(.5)
  2051.                         debounce = true
  2052.                         return "Brought"
  2053.                     end
  2054.                 end
  2055.             end
  2056.         end
  2057.  
  2058.         if player.leaderstats.Coins.Value < Monkey.Price.Value and not MonkeyifsInInventory and bool23.Value == false then
  2059.             return "NotEnough" 
  2060.         end        
  2061.  
  2062.         if bool23.Value == true then                           
  2063.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMonkey").Value ~= Monkey.Name then
  2064.                 -- You already owned it                                                        
  2065.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMonkey").Value = Monkey.Name         
  2066.  
  2067.                 local giveTool23 = ReplicatedStorage.Accessories:FindFirstChild("Monkey"):Clone()
  2068.                 giveTool23.Parent = player.Backpack
  2069.  
  2070.                 local giveTool23 = ReplicatedStorage.Accessories:FindFirstChild("Monkey"):Clone()
  2071.                 giveTool23.Parent = player.StarterGear
  2072.                 wait(.1)
  2073.                 debounce = true
  2074.                 return "Equip" 
  2075.             end
  2076.         end
  2077.  
  2078.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMonkey").Value == Monkey.Name and bool23.Value == true then
  2079.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedMonkey").Value = ""
  2080.             humanoid:UnequipTools()
  2081.             if player.Backpack:FindFirstChild("Monkey") then
  2082.                 if humanoid then
  2083.                     humanoid:UnequipTools()
  2084.                     player.Backpack:FindFirstChild("Monkey"):Destroy()
  2085.                     player.StarterGear:FindFirstChild("Monkey"):Destroy()  
  2086.                     return "Unequip"
  2087.                 end
  2088.                 wait(.1)
  2089.                 debounce = true
  2090.                 return "Unequip"
  2091.             end
  2092.         end                    
  2093.     end
  2094.     wait(.5)
  2095.     debounce = true
  2096. end
  2097.  
  2098. game.ReplicatedStorage.Accessories.Events.GiveAccessory24.OnServerInvoke = function(player,NoiseMaker)
  2099.     if debounce == true then
  2100.         debounce = false
  2101.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2102.         local NoiseMakerifsInInventory
  2103.         local bool24 = player.AccessoriesInventory:FindFirstChild("NoiseMaker")
  2104.  
  2105.         if player.Backpack:FindFirstChild("NoiseMaker") then
  2106.             NoiseMakerifsInInventory = true
  2107.         end    
  2108.  
  2109.         if NoiseMaker then
  2110.             if NoiseMaker:FindFirstChild("Price") then
  2111.                 if not NoiseMakerifsInInventory then
  2112.                     -- Check if we can buy the Item
  2113.                     if player.leaderstats.Coins.Value >= NoiseMaker.Price.Value and bool24.Value == false then
  2114.                         print(player.Name.." brought the NoiseMaker item")
  2115.  
  2116.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - NoiseMaker.Price.Value           
  2117.  
  2118.                         local giveTool24 = ReplicatedStorage.Accessories:FindFirstChild("NoiseMaker"):Clone()
  2119.                         giveTool24.Parent = player.Backpack
  2120.  
  2121.                         local giveTool24 = ReplicatedStorage.Accessories:FindFirstChild("NoiseMaker"):Clone()
  2122.                         giveTool24.Parent = player.StarterGear 
  2123.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedNoiseMaker").Value = NoiseMaker.Name 
  2124.  
  2125.                         bool24.Value = true
  2126.                         NoiseMakerifsInInventory = true
  2127.                         wait(.5)
  2128.                         debounce = true
  2129.                         return "Brought"
  2130.                     end
  2131.                 end
  2132.             end
  2133.         end
  2134.  
  2135.         if player.leaderstats.Coins.Value < NoiseMaker.Price.Value and not NoiseMakerifsInInventory and bool24.Value == false then
  2136.             return "NotEnough" 
  2137.         end        
  2138.  
  2139.         if bool24.Value == true then                           
  2140.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedNoiseMaker").Value ~= NoiseMaker.Name then
  2141.                 -- You already owned it                                                        
  2142.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedNoiseMaker").Value = NoiseMaker.Name         
  2143.  
  2144.                 local giveTool24 = ReplicatedStorage.Accessories:FindFirstChild("NoiseMaker"):Clone()
  2145.                 giveTool24.Parent = player.Backpack
  2146.  
  2147.                 local giveTool24 = ReplicatedStorage.Accessories:FindFirstChild("NoiseMaker"):Clone()
  2148.                 giveTool24.Parent = player.StarterGear
  2149.                 wait(.1)
  2150.                 debounce = true
  2151.                 return "Equip" 
  2152.             end
  2153.         end
  2154.  
  2155.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedNoiseMaker").Value == NoiseMaker.Name and bool24.Value == true then
  2156.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedNoiseMaker").Value = ""
  2157.             humanoid:UnequipTools()
  2158.             if player.Backpack:FindFirstChild("NoiseMaker") then
  2159.                 if humanoid then
  2160.                     humanoid:UnequipTools()
  2161.                     player.Backpack:FindFirstChild("NoiseMaker"):Destroy()
  2162.                     player.StarterGear:FindFirstChild("NoiseMaker"):Destroy()  
  2163.                     return "Unequip"
  2164.                 end
  2165.                 wait(.1)
  2166.                 debounce = true
  2167.                 return "Unequip"
  2168.             end
  2169.         end                    
  2170.     end
  2171.     wait(.5)
  2172.     debounce = true
  2173. end
  2174.  
  2175. game.ReplicatedStorage.Accessories.Events.GiveAccessory25.OnServerInvoke = function(player,ApplePie)
  2176.     if debounce == true then
  2177.         debounce = false
  2178.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2179.         local ApplePieifsInInventory
  2180.         local bool25 = player.AccessoriesInventory:FindFirstChild("ApplePie")
  2181.  
  2182.         if player.Backpack:FindFirstChild("ApplePie") then
  2183.             ApplePieifsInInventory = true
  2184.         end    
  2185.  
  2186.         if ApplePie then
  2187.             if ApplePie:FindFirstChild("Price") then
  2188.                 if not ApplePieifsInInventory then
  2189.                     -- Check if we can buy the Item
  2190.                     if player.leaderstats.Coins.Value >= ApplePie.Price.Value and bool25.Value == false then
  2191.                         print(player.Name.." brought the Apple Pie item")
  2192.  
  2193.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - ApplePie.Price.Value         
  2194.  
  2195.                         local giveTool25 = ReplicatedStorage.Accessories:FindFirstChild("ApplePie"):Clone()
  2196.                         giveTool25.Parent = player.Backpack
  2197.  
  2198.                         local giveTool25 = ReplicatedStorage.Accessories:FindFirstChild("ApplePie"):Clone()
  2199.                         giveTool25.Parent = player.StarterGear 
  2200.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedApplePie").Value = ApplePie.Name 
  2201.  
  2202.                         bool25.Value = true
  2203.                         ApplePieifsInInventory = true
  2204.                         wait(.5)
  2205.                         debounce = true
  2206.                         return "Brought"
  2207.                     end
  2208.                 end
  2209.             end
  2210.         end
  2211.  
  2212.         if player.leaderstats.Coins.Value < ApplePie.Price.Value and not ApplePieifsInInventory and bool25.Value == false then
  2213.             return "NotEnough" 
  2214.         end        
  2215.  
  2216.         if bool25.Value == true then                           
  2217.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedApplePie").Value ~= ApplePie.Name then
  2218.                 -- You already owned it                                                        
  2219.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedApplePie").Value = ApplePie.Name         
  2220.  
  2221.                 local giveTool25 = ReplicatedStorage.Accessories:FindFirstChild("ApplePie"):Clone()
  2222.                 giveTool25.Parent = player.Backpack
  2223.  
  2224.                 local giveTool25 = ReplicatedStorage.Accessories:FindFirstChild("ApplePie"):Clone()
  2225.                 giveTool25.Parent = player.StarterGear
  2226.                 wait(.1)
  2227.                 debounce = true
  2228.                 return "Equip" 
  2229.             end
  2230.         end
  2231.  
  2232.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedApplePie").Value == ApplePie.Name and bool25.Value == true then
  2233.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedApplePie").Value = ""
  2234.             humanoid:UnequipTools()
  2235.             if player.Backpack:FindFirstChild("ApplePie") then
  2236.                 if humanoid then
  2237.                     humanoid:UnequipTools()
  2238.                     player.Backpack:FindFirstChild("ApplePie"):Destroy()
  2239.                     player.StarterGear:FindFirstChild("ApplePie"):Destroy()
  2240.                     return "Unequip"
  2241.                 end
  2242.                 wait(.1)
  2243.                 debounce = true
  2244.                 return "Unequip"
  2245.             end
  2246.         end                    
  2247.     end
  2248.     wait(.5)
  2249.     debounce = true
  2250. end
  2251.  
  2252. game.ReplicatedStorage.Accessories.Events.GiveAccessory26.OnServerInvoke = function(player,PandaFriend)
  2253.     if debounce == true then
  2254.         debounce = false
  2255.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2256.         local PandaFriendifsInInventory
  2257.         local bool26 = player.AccessoriesInventory:FindFirstChild("PandaFriend")
  2258.  
  2259.         if player.Backpack:FindFirstChild("PandaFriend") then
  2260.             PandaFriendifsInInventory = true
  2261.         end    
  2262.  
  2263.         if PandaFriend then
  2264.             if PandaFriend:FindFirstChild("Price") then
  2265.                 if not PandaFriendifsInInventory then
  2266.                     -- Check if we can buy the Item
  2267.                     if player.leaderstats.Coins.Value >= PandaFriend.Price.Value and bool26.Value == false then
  2268.                         print(player.Name.." brought the Panda Friend item")
  2269.  
  2270.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - PandaFriend.Price.Value          
  2271.  
  2272.                         local giveTool26 = ReplicatedStorage.Accessories:FindFirstChild("PandaFriend"):Clone()
  2273.                         giveTool26.Parent = player.Backpack
  2274.  
  2275.                         local giveTool26 = ReplicatedStorage.Accessories:FindFirstChild("PandaFriend"):Clone()
  2276.                         giveTool26.Parent = player.StarterGear 
  2277.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPandaFriend").Value = PandaFriend.Name   
  2278.  
  2279.                         bool26.Value = true
  2280.                         PandaFriendifsInInventory = true
  2281.                         wait(.5)
  2282.                         debounce = true
  2283.                         return "Brought"
  2284.                     end
  2285.                 end
  2286.             end
  2287.         end
  2288.  
  2289.         if player.leaderstats.Coins.Value < PandaFriend.Price.Value and not PandaFriendifsInInventory and bool26.Value == false then
  2290.             return "NotEnough" 
  2291.         end        
  2292.  
  2293.         if bool26.Value == true then                           
  2294.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPandaFriend").Value ~= PandaFriend.Name then
  2295.                 -- You already owned it                                                        
  2296.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPandaFriend").Value = PandaFriend.Name           
  2297.  
  2298.                 local giveTool26 = ReplicatedStorage.Accessories:FindFirstChild("PandaFriend"):Clone()
  2299.                 giveTool26.Parent = player.Backpack
  2300.  
  2301.                 local giveTool26 = ReplicatedStorage.Accessories:FindFirstChild("PandaFriend"):Clone()
  2302.                 giveTool26.Parent = player.StarterGear
  2303.                 wait(.1)
  2304.                 debounce = true
  2305.                 return "Equip" 
  2306.             end
  2307.         end
  2308.  
  2309.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPandaFriend").Value == PandaFriend.Name and bool26.Value == true then
  2310.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedPandaFriend").Value = ""
  2311.             humanoid:UnequipTools()
  2312.             if player.Backpack:FindFirstChild("PandaFriend") then
  2313.                 if humanoid then
  2314.                     humanoid:UnequipTools()
  2315.                     player.Backpack:FindFirstChild("PandaFriend"):Destroy()
  2316.                     player.StarterGear:FindFirstChild("PandaFriend"):Destroy() 
  2317.                     return "Unequip"
  2318.                 end
  2319.                 wait(.1)
  2320.                 debounce = true
  2321.                 return "Unequip"
  2322.             end
  2323.         end                    
  2324.     end
  2325.     wait(.5)
  2326.     debounce = true
  2327. end
  2328.  
  2329. game.ReplicatedStorage.Accessories.Events.GiveAccessory27.OnServerInvoke = function(player,BangGun)
  2330.     if debounce == true then
  2331.         debounce = false
  2332.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2333.         local BangGunifsInInventory
  2334.         local bool27 = player.AccessoriesInventory:FindFirstChild("BangGun")
  2335.  
  2336.         if player.Backpack:FindFirstChild("BangGun") then
  2337.             BangGunifsInInventory = true
  2338.         end    
  2339.  
  2340.         if BangGun then
  2341.             if BangGun:FindFirstChild("Price") then
  2342.                 if not BangGunifsInInventory then
  2343.                     -- Check if we can buy the Item
  2344.                     if player.leaderstats.Coins.Value >= BangGun.Price.Value and bool27.Value == false then
  2345.                         print(player.Name.." brought the Bang Gun item")
  2346.  
  2347.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - BangGun.Price.Value          
  2348.  
  2349.                         local giveTool27 = ReplicatedStorage.Accessories:FindFirstChild("BangGun"):Clone()
  2350.                         giveTool27.Parent = player.Backpack
  2351.  
  2352.                         local giveTool27 = ReplicatedStorage.Accessories:FindFirstChild("BangGun"):Clone()
  2353.                         giveTool27.Parent = player.StarterGear 
  2354.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBangGun").Value = BangGun.Name   
  2355.  
  2356.                         bool27.Value = true
  2357.                         BangGunifsInInventory = true
  2358.                         wait(.5)
  2359.                         debounce = true
  2360.                         return "Brought"
  2361.                     end
  2362.                 end
  2363.             end
  2364.         end
  2365.  
  2366.         if player.leaderstats.Coins.Value < BangGun.Price.Value and not BangGunifsInInventory and bool27.Value == false then
  2367.             return "NotEnough" 
  2368.         end        
  2369.  
  2370.         if bool27.Value == true then                           
  2371.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBangGun").Value ~= BangGun.Name then
  2372.                 -- You already owned it                                                        
  2373.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBangGun").Value = BangGun.Name           
  2374.  
  2375.                 local giveTool27 = ReplicatedStorage.Accessories:FindFirstChild("BangGun"):Clone()
  2376.                 giveTool27.Parent = player.Backpack
  2377.  
  2378.                 local giveTool27 = ReplicatedStorage.Accessories:FindFirstChild("BangGun"):Clone()
  2379.                 giveTool27.Parent = player.StarterGear
  2380.                 wait(.1)
  2381.                 debounce = true
  2382.                 return "Equip" 
  2383.             end
  2384.         end
  2385.  
  2386.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBangGun").Value == BangGun.Name and bool27.Value == true then
  2387.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedBangGun").Value = ""
  2388.             humanoid:UnequipTools()
  2389.             if player.Backpack:FindFirstChild("BangGun") then
  2390.                 if humanoid then
  2391.                     humanoid:UnequipTools()
  2392.                     player.Backpack:FindFirstChild("BangGun"):Destroy()
  2393.                     player.StarterGear:FindFirstChild("BangGun"):Destroy() 
  2394.                     return "Unequip"
  2395.                 end
  2396.                 wait(.1)
  2397.                 debounce = true
  2398.                 return "Unequip"
  2399.             end
  2400.         end                    
  2401.     end
  2402.     wait(.5)
  2403.     debounce = true
  2404. end
  2405.  
  2406. game.ReplicatedStorage.Accessories.Events.GiveAccessory28.OnServerInvoke = function(player,WhopeeCushion)
  2407.     if debounce == true then
  2408.         debounce = false
  2409.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2410.         local WhopeeCushionifsInInventory
  2411.         local bool28 = player.AccessoriesInventory:FindFirstChild("WhopeeCushion")
  2412.  
  2413.         if player.Backpack:FindFirstChild("WhopeeCushion") then
  2414.             WhopeeCushionifsInInventory = true
  2415.         end    
  2416.  
  2417.         if WhopeeCushion then
  2418.             if WhopeeCushion:FindFirstChild("Price") then
  2419.                 if not WhopeeCushionifsInInventory then
  2420.                     -- Check if we can buy the Item
  2421.                     if player.leaderstats.Coins.Value >= WhopeeCushion.Price.Value and bool28.Value == false then
  2422.                         print(player.Name.." brought the Whopee Cushion item")
  2423.  
  2424.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - WhopeeCushion.Price.Value        
  2425.  
  2426.                         local giveTool28 = ReplicatedStorage.Accessories:FindFirstChild("WhopeeCushion"):Clone()
  2427.                         giveTool28.Parent = player.Backpack
  2428.  
  2429.                         local giveTool28 = ReplicatedStorage.Accessories:FindFirstChild("WhopeeCushion"):Clone()
  2430.                         giveTool28.Parent = player.StarterGear 
  2431.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWhopeeCushion").Value = WhopeeCushion.Name   
  2432.  
  2433.                         bool28.Value = true
  2434.                         WhopeeCushionifsInInventory = true
  2435.                         wait(.5)
  2436.                         debounce = true
  2437.                         return "Brought"
  2438.                     end
  2439.                 end
  2440.             end
  2441.         end
  2442.  
  2443.         if player.leaderstats.Coins.Value < WhopeeCushion.Price.Value and not WhopeeCushionifsInInventory and bool28.Value == false then
  2444.             return "NotEnough" 
  2445.         end        
  2446.  
  2447.         if bool28.Value == true then                           
  2448.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWhopeeCushion").Value ~= WhopeeCushion.Name then
  2449.                 -- You already owned it                                                        
  2450.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWhopeeCushion").Value = WhopeeCushion.Name           
  2451.  
  2452.                 local giveTool28 = ReplicatedStorage.Accessories:FindFirstChild("WhopeeCushion"):Clone()
  2453.                 giveTool28.Parent = player.Backpack
  2454.  
  2455.                 local giveTool28 = ReplicatedStorage.Accessories:FindFirstChild("WhopeeCushion"):Clone()
  2456.                 giveTool28.Parent = player.StarterGear
  2457.                 wait(.1)
  2458.                 debounce = true
  2459.                 return "Equip" 
  2460.             end
  2461.         end
  2462.  
  2463.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWhopeeCushion").Value == WhopeeCushion.Name and bool28.Value == true then
  2464.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWhopeeCushion").Value = ""
  2465.             humanoid:UnequipTools()
  2466.             if player.Backpack:FindFirstChild("WhopeeCushion") then
  2467.                 if humanoid then
  2468.                     humanoid:UnequipTools()
  2469.                     player.Backpack:FindFirstChild("WhopeeCushion"):Destroy()
  2470.                     player.StarterGear:FindFirstChild("WhopeeCushion"):Destroy()   
  2471.                     return "Unequip"
  2472.                 end
  2473.                 wait(.1)
  2474.                 debounce = true
  2475.                 return "Unequip"
  2476.             end
  2477.         end                    
  2478.     end
  2479.     wait(.5)
  2480.     debounce = true
  2481. end
  2482.  
  2483. game.ReplicatedStorage.Accessories.Events.GiveAccessory29.OnServerInvoke = function(player,WoodenSword)
  2484.     if debounce == true then
  2485.         debounce = false
  2486.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2487.         local WoodenSwordifsInInventory
  2488.         local bool29 = player.AccessoriesInventory:FindFirstChild("WoodenSword")
  2489.  
  2490.         if player.Backpack:FindFirstChild("WoodenSword") then
  2491.             WoodenSwordifsInInventory = true
  2492.         end    
  2493.  
  2494.         if WoodenSword then
  2495.             if WoodenSword:FindFirstChild("Price") then
  2496.                 if not WoodenSwordifsInInventory then
  2497.                     -- Check if we can buy the Item
  2498.                     if player.leaderstats.Coins.Value >= WoodenSword.Price.Value and bool29.Value == false then
  2499.                         print(player.Name.." brought the Wooden Sword item")
  2500.  
  2501.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - WoodenSword.Price.Value          
  2502.  
  2503.                         local giveTool29 = ReplicatedStorage.Accessories:FindFirstChild("WoodenSword"):Clone()
  2504.                         giveTool29.Parent = player.Backpack
  2505.  
  2506.                         local giveTool29 = ReplicatedStorage.Accessories:FindFirstChild("WoodenSword"):Clone()
  2507.                         giveTool29.Parent = player.StarterGear 
  2508.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenSword").Value = WoodenSword.Name   
  2509.  
  2510.                         bool29.Value = true
  2511.                         WoodenSwordifsInInventory = true
  2512.                         wait(.5)
  2513.                         debounce = true
  2514.                         return "Brought"
  2515.                     end
  2516.                 end
  2517.             end
  2518.         end
  2519.  
  2520.         if player.leaderstats.Coins.Value < WoodenSword.Price.Value and not WoodenSwordifsInInventory and bool29.Value == false then
  2521.             return "NotEnough" 
  2522.         end        
  2523.  
  2524.         if bool29.Value == true then                           
  2525.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenSword").Value ~= WoodenSword.Name then
  2526.                 -- You already owned it                                                        
  2527.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenSword").Value = WoodenSword.Name           
  2528.  
  2529.                 local giveTool29 = ReplicatedStorage.Accessories:FindFirstChild("WoodenSword"):Clone()
  2530.                 giveTool29.Parent = player.Backpack
  2531.  
  2532.                 local giveTool29 = ReplicatedStorage.Accessories:FindFirstChild("WoodenSword"):Clone()
  2533.                 giveTool29.Parent = player.StarterGear
  2534.                 wait(.1)
  2535.                 debounce = true
  2536.                 return "Equip" 
  2537.             end
  2538.         end
  2539.  
  2540.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenSword").Value == WoodenSword.Name and bool29.Value == true then
  2541.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenSword").Value = ""
  2542.             humanoid:UnequipTools()
  2543.             if player.Backpack:FindFirstChild("WoodenSword") then
  2544.                 if humanoid then
  2545.                     humanoid:UnequipTools()
  2546.                     player.Backpack:FindFirstChild("WoodenSword"):Destroy()
  2547.                     player.StarterGear:FindFirstChild("WoodenSword"):Destroy() 
  2548.                     return "Unequip"
  2549.                 end
  2550.                 wait(.1)
  2551.                 debounce = true
  2552.                 return "Unequip"
  2553.             end
  2554.         end                    
  2555.     end
  2556.     wait(.5)
  2557.     debounce = true
  2558. end
  2559.  
  2560. game.ReplicatedStorage.Accessories.Events.GiveAccessory30.OnServerInvoke = function(player,Dragon)
  2561.     if debounce == true then
  2562.         debounce = false
  2563.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2564.         local DragonifsInInventory
  2565.         local bool30 = player.AccessoriesInventory:FindFirstChild("Dragon")
  2566.  
  2567.         if player.Backpack:FindFirstChild("WoodenSword") then
  2568.             DragonifsInInventory = true
  2569.         end    
  2570.  
  2571.         if Dragon then
  2572.             if Dragon:FindFirstChild("Price") then
  2573.                 if not DragonifsInInventory then
  2574.                     -- Check if we can buy the Item
  2575.                     if player.leaderstats.Coins.Value >= Dragon.Price.Value and bool30.Value == false then
  2576.                         print(player.Name.." brought the Dragon item")
  2577.  
  2578.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Dragon.Price.Value           
  2579.  
  2580.                         local giveTool30 = ReplicatedStorage.Accessories:FindFirstChild("Dragon"):Clone()
  2581.                         giveTool30.Parent = player.Backpack
  2582.  
  2583.                         local giveTool30 = ReplicatedStorage.Accessories:FindFirstChild("Dragon"):Clone()
  2584.                         giveTool30.Parent = player.StarterGear 
  2585.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedDragon").Value = Dragon.Name 
  2586.  
  2587.                         bool30.Value = true
  2588.                         DragonifsInInventory = true
  2589.                         wait(.5)
  2590.                         debounce = true
  2591.                         return "Brought"
  2592.                     end
  2593.                 end
  2594.             end
  2595.         end
  2596.  
  2597.         if player.leaderstats.Coins.Value < Dragon.Price.Value and not DragonifsInInventory and bool30.Value == false then
  2598.             return "NotEnough" 
  2599.         end        
  2600.  
  2601.         if bool30.Value == true then                           
  2602.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedDragon").Value ~= Dragon.Name then
  2603.                 -- You already owned it                                                        
  2604.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedDragon").Value = Dragon.Name         
  2605.  
  2606.                 local giveTool30 = ReplicatedStorage.Accessories:FindFirstChild("Dragon"):Clone()
  2607.                 giveTool30.Parent = player.Backpack
  2608.  
  2609.                 local giveTool30 = ReplicatedStorage.Accessories:FindFirstChild("Dragon"):Clone()
  2610.                 giveTool30.Parent = player.StarterGear
  2611.                 wait(.1)
  2612.                 debounce = true
  2613.                 return "Equip" 
  2614.             end
  2615.         end
  2616.  
  2617.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedDragon").Value == Dragon.Name and bool30.Value == true then
  2618.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedDragon").Value = ""
  2619.             humanoid:UnequipTools()
  2620.             if player.Backpack:FindFirstChild("Dragon") then
  2621.                 if humanoid then
  2622.                     humanoid:UnequipTools()
  2623.                     player.Backpack:FindFirstChild("Dragon"):Destroy()
  2624.                     player.StarterGear:FindFirstChild("Dragon"):Destroy()  
  2625.                     return "Unequip"
  2626.                 end
  2627.                 wait(.1)
  2628.                 debounce = true
  2629.                 return "Unequip"
  2630.             end
  2631.         end                    
  2632.     end
  2633.     wait(.5)
  2634.     debounce = true
  2635. end
  2636.  
  2637. game.ReplicatedStorage.Accessories.Events.GiveAccessory31.OnServerInvoke = function(player,WoodenStaff)
  2638.     if debounce == true then
  2639.         debounce = false
  2640.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2641.         local WoodenStaffifsInInventory
  2642.         local bool31 = player.AccessoriesInventory:FindFirstChild("WoodenStaff")
  2643.  
  2644.         if player.Backpack:FindFirstChild("WoodenStaff") then
  2645.             WoodenStaffifsInInventory = true
  2646.         end    
  2647.  
  2648.         if WoodenStaff then
  2649.             if WoodenStaff:FindFirstChild("Price") then
  2650.                 if not WoodenStaffifsInInventory then
  2651.                     -- Check if we can buy the Item
  2652.                     if player.leaderstats.Coins.Value >= WoodenStaff.Price.Value and bool31.Value == false then
  2653.                         print(player.Name.." brought the StaffofTheWoodlands item")
  2654.  
  2655.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - WoodenStaff.Price.Value          
  2656.  
  2657.                         local giveTool31 = ReplicatedStorage.Accessories:FindFirstChild("WoodenStaff"):Clone()
  2658.                         giveTool31.Parent = player.Backpack
  2659.  
  2660.                         local giveTool31 = ReplicatedStorage.Accessories:FindFirstChild("WoodenStaff"):Clone()
  2661.                         giveTool31.Parent = player.StarterGear 
  2662.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenStaff").Value = WoodenStaff.Name   
  2663.  
  2664.                         bool31.Value = true
  2665.                         WoodenStaffifsInInventory = true
  2666.                         wait(.5)
  2667.                         debounce = true
  2668.                         return "Brought"
  2669.                     end
  2670.                 end
  2671.             end
  2672.         end
  2673.  
  2674.         if player.leaderstats.Coins.Value < WoodenStaff.Price.Value and not WoodenStaffifsInInventory and bool31.Value == false then
  2675.             return "NotEnough" 
  2676.         end        
  2677.  
  2678.         if bool31.Value == true then                           
  2679.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenStaff").Value ~= WoodenStaff.Name then
  2680.                 -- You already owned it                                                        
  2681.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenStaff").Value = WoodenStaff.Name           
  2682.  
  2683.                 local giveTool31 = ReplicatedStorage.Accessories:FindFirstChild("WoodenStaff"):Clone()
  2684.                 giveTool31.Parent = player.Backpack
  2685.  
  2686.                 local giveTool31 = ReplicatedStorage.Accessories:FindFirstChild("WoodenStaff"):Clone()
  2687.                 giveTool31.Parent = player.StarterGear
  2688.                 wait(.1)
  2689.                 debounce = true
  2690.                 return "Equip" 
  2691.             end
  2692.         end
  2693.  
  2694.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenStaff").Value == WoodenStaff.Name and bool31.Value == true then
  2695.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedWoodenStaff").Value = ""
  2696.             humanoid:UnequipTools()
  2697.             if player.Backpack:FindFirstChild("WoodenStaff") then
  2698.                 if humanoid then
  2699.                     humanoid:UnequipTools()
  2700.                     player.Backpack:FindFirstChild("WoodenStaff"):Destroy()
  2701.                     player.StarterGear:FindFirstChild("WoodenStaff"):Destroy() 
  2702.                     return "Unequip"
  2703.                 end
  2704.                 wait(.1)
  2705.                 debounce = true
  2706.                 return "Unequip"
  2707.             end
  2708.         end                    
  2709.     end
  2710.     wait(.5)
  2711.     debounce = true
  2712. end
  2713.  
  2714. game.ReplicatedStorage.Accessories.Events.GiveAccessory32.OnServerInvoke = function(player,Spray)
  2715.     if debounce == true then
  2716.         debounce = false
  2717.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2718.         local SprayifsInInventory
  2719.         local bool32 = player.AccessoriesInventory:FindFirstChild("Spray")
  2720.  
  2721.         if player.Backpack:FindFirstChild("Spray") then
  2722.             SprayifsInInventory = true
  2723.         end    
  2724.  
  2725.         if Spray then
  2726.             if Spray:FindFirstChild("Price") then
  2727.                 if not SprayifsInInventory then
  2728.                     -- Check if we can buy the Item
  2729.                     if player.leaderstats.Coins.Value >= Spray.Price.Value and bool32.Value == false then
  2730.                         print(player.Name.." brought the Spray item")
  2731.  
  2732.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - Spray.Price.Value        
  2733.  
  2734.                         local giveTool32 = ReplicatedStorage.Accessories:FindFirstChild("Spray"):Clone()
  2735.                         giveTool32.Parent = player.Backpack
  2736.  
  2737.                         local giveTool32 = ReplicatedStorage.Accessories:FindFirstChild("Spray"):Clone()
  2738.                         giveTool32.Parent = player.StarterGear 
  2739.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpray").Value = Spray.Name   
  2740.  
  2741.                         bool32.Value = true
  2742.                         SprayifsInInventory = true
  2743.                         wait(.5)
  2744.                         debounce = true
  2745.                         return "Brought"
  2746.                     end
  2747.                 end
  2748.             end
  2749.         end
  2750.  
  2751.         if player.leaderstats.Coins.Value < Spray.Price.Value and not SprayifsInInventory and bool32.Value == false then
  2752.             return "NotEnough" 
  2753.         end        
  2754.  
  2755.         if bool32.Value == true then                           
  2756.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpray").Value ~= Spray.Name then
  2757.                 -- You already owned it                                                        
  2758.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpray").Value = Spray.Name           
  2759.  
  2760.                 local giveTool32 = ReplicatedStorage.Accessories:FindFirstChild("Spray"):Clone()
  2761.                 giveTool32.Parent = player.Backpack
  2762.  
  2763.                 local giveTool32 = ReplicatedStorage.Accessories:FindFirstChild("Spray"):Clone()
  2764.                 giveTool32.Parent = player.StarterGear
  2765.                 wait(.1)
  2766.                 debounce = true
  2767.                 return "Equip" 
  2768.             end
  2769.         end
  2770.  
  2771.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpray").Value == Spray.Name and bool32.Value == true then
  2772.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpray").Value = ""
  2773.             humanoid:UnequipTools()
  2774.             if player.Backpack:FindFirstChild("Spray") then
  2775.                 if humanoid then
  2776.                     humanoid:UnequipTools()
  2777.                     player.Backpack:FindFirstChild("Spray"):Destroy()
  2778.                     player.StarterGear:FindFirstChild("Spray"):Destroy()   
  2779.                     return "Unequip"
  2780.                 end
  2781.                 wait(.1)
  2782.                 debounce = true
  2783.                 return "Unequip"
  2784.             end
  2785.         end                    
  2786.     end
  2787.     wait(.5)
  2788.     debounce = true
  2789. end
  2790.  
  2791. game.ReplicatedStorage.Accessories.Events.GiveAccessory33.OnServerInvoke = function(player,ClownBomb)
  2792.     if debounce == true then
  2793.         debounce = false
  2794.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2795.         local ClownBombifsInInventory
  2796.         local bool33 = player.AccessoriesInventory:FindFirstChild("ClownBomb")
  2797.  
  2798.         if player.Backpack:FindFirstChild("ClownBomb") then
  2799.             ClownBombifsInInventory = true
  2800.         end    
  2801.  
  2802.         if ClownBomb then
  2803.             if ClownBomb:FindFirstChild("Price") then
  2804.                 if not ClownBombifsInInventory then
  2805.                     -- Check if we can buy the Item
  2806.                     if player.leaderstats.Coins.Value >= ClownBomb.Price.Value and bool33.Value == false then
  2807.                         print(player.Name.." brought the Clown Bomb item")
  2808.  
  2809.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - ClownBomb.Price.Value        
  2810.  
  2811.                         local giveTool33 = ReplicatedStorage.Accessories:FindFirstChild("ClownBomb"):Clone()
  2812.                         giveTool33.Parent = player.Backpack
  2813.  
  2814.                         local giveTool33 = ReplicatedStorage.Accessories:FindFirstChild("ClownBomb"):Clone()
  2815.                         giveTool33.Parent = player.StarterGear 
  2816.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedClownBomb").Value = ClownBomb.Name   
  2817.  
  2818.                         bool33.Value = true
  2819.                         ClownBombifsInInventory = true
  2820.                         wait(.5)
  2821.                         debounce = true
  2822.                         return "Brought"
  2823.                     end
  2824.                 end
  2825.             end
  2826.         end
  2827.  
  2828.         if player.leaderstats.Coins.Value < ClownBomb.Price.Value and not ClownBombifsInInventory and bool33.Value == false then
  2829.             return "NotEnough" 
  2830.         end        
  2831.  
  2832.         if bool33.Value == true then                           
  2833.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedClownBomb").Value ~= ClownBomb.Name then
  2834.                 -- You already owned it                                                        
  2835.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedClownBomb").Value = ClownBomb.Name           
  2836.  
  2837.                 local giveTool33 = ReplicatedStorage.Accessories:FindFirstChild("ClownBomb"):Clone()
  2838.                 giveTool33.Parent = player.Backpack
  2839.  
  2840.                 local giveTool33 = ReplicatedStorage.Accessories:FindFirstChild("ClownBomb"):Clone()
  2841.                 giveTool33.Parent = player.StarterGear
  2842.                 wait(.1)
  2843.                 debounce = true
  2844.                 return "Equip" 
  2845.             end
  2846.         end
  2847.  
  2848.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedClownBomb").Value == ClownBomb.Name and bool33.Value == true then
  2849.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedClownBomb").Value = ""
  2850.             humanoid:UnequipTools()
  2851.             if player.Backpack:FindFirstChild("ClownBomb") then
  2852.                 if humanoid then
  2853.                     humanoid:UnequipTools()
  2854.                     player.Backpack:FindFirstChild("ClownBomb"):Destroy()
  2855.                     player.StarterGear:FindFirstChild("ClownBomb"):Destroy()   
  2856.                     return "Unequip"
  2857.                 end
  2858.                 wait(.1)
  2859.                 debounce = true
  2860.                 return "Unequip"
  2861.             end
  2862.         end                    
  2863.     end
  2864.     wait(.5)
  2865.     debounce = true
  2866. end
  2867.  
  2868. game.ReplicatedStorage.Accessories.Events.GiveAccessory34.OnServerInvoke = function(player,ChameleonPotion)
  2869.     if debounce == true then
  2870.         debounce = false
  2871.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2872.         local ChameleonPotionifsInInventory
  2873.         local bool34 = player.AccessoriesInventory:FindFirstChild("ChameleonPotion")
  2874.  
  2875.         if player.Backpack:FindFirstChild("ChameleonPotion") then
  2876.             ChameleonPotionifsInInventory = true
  2877.         end    
  2878.  
  2879.         if ChameleonPotion then
  2880.             if ChameleonPotion:FindFirstChild("Price") then
  2881.                 if not ChameleonPotionifsInInventory then
  2882.                     -- Check if we can buy the Item
  2883.                     if player.leaderstats.Coins.Value >= ChameleonPotion.Price.Value and bool34.Value == false then
  2884.                         print(player.Name.." brought the Clown Bomb item")
  2885.  
  2886.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - ChameleonPotion.Price.Value          
  2887.  
  2888.                         local giveTool34 = ReplicatedStorage.Accessories:FindFirstChild("ChameleonPotion"):Clone()
  2889.                         giveTool34.Parent = player.Backpack
  2890.  
  2891.                         local giveTool34 = ReplicatedStorage.Accessories:FindFirstChild("ChameleonPotion"):Clone()
  2892.                         giveTool34.Parent = player.StarterGear 
  2893.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChameleonPotion").Value = ChameleonPotion.Name   
  2894.  
  2895.                         bool34.Value = true
  2896.                         ChameleonPotionifsInInventory = true
  2897.                         wait(.5)
  2898.                         debounce = true
  2899.                         return "Brought"
  2900.                     end
  2901.                 end
  2902.             end
  2903.         end
  2904.  
  2905.         if player.leaderstats.Coins.Value < ChameleonPotion.Price.Value and not ChameleonPotionifsInInventory and bool34.Value == false then
  2906.             return "NotEnough" 
  2907.         end        
  2908.  
  2909.         if bool34.Value == true then                           
  2910.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChameleonPotion").Value ~= ChameleonPotion.Name then
  2911.                 -- You already owned it                                                        
  2912.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChameleonPotion").Value = ChameleonPotion.Name           
  2913.  
  2914.                 local giveTool34 = ReplicatedStorage.Accessories:FindFirstChild("ChameleonPotion"):Clone()
  2915.                 giveTool34.Parent = player.Backpack
  2916.  
  2917.                 local giveTool34 = ReplicatedStorage.Accessories:FindFirstChild("ChameleonPotion"):Clone()
  2918.                 giveTool34.Parent = player.StarterGear
  2919.                 wait(.1)
  2920.                 debounce = true
  2921.                 return "Equip" 
  2922.             end
  2923.         end
  2924.  
  2925.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChameleonPotion").Value == ChameleonPotion.Name and bool34.Value == true then
  2926.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedChameleonPotion").Value = ""
  2927.             humanoid:UnequipTools()
  2928.             if player.Backpack:FindFirstChild("ChameleonPotion") then
  2929.                 if humanoid then
  2930.                     humanoid:UnequipTools()
  2931.                     player.Backpack:FindFirstChild("ChameleonPotion"):Destroy()
  2932.                     player.StarterGear:FindFirstChild("ChameleonPotion"):Destroy() 
  2933.                     return "Unequip"
  2934.                 end
  2935.                 wait(.1)
  2936.                 debounce = true
  2937.                 return "Unequip"
  2938.             end
  2939.         end                    
  2940.     end
  2941.     wait(.5)
  2942.     debounce = true
  2943. end
  2944.  
  2945. game.ReplicatedStorage.Accessories.Events.GiveAccessory35.OnServerInvoke = function(player,SpyDrone)
  2946.     if debounce == true then
  2947.         debounce = false
  2948.         local humanoid = player.Character:FindFirstChildOfClass("Humanoid")
  2949.         local SpyDroneifsInInventory
  2950.         local bool35 = player.AccessoriesInventory:FindFirstChild("SpyDrone")
  2951.  
  2952.         if player.Backpack:FindFirstChild("SpyDrone") then
  2953.             SpyDroneifsInInventory = true
  2954.         end    
  2955.  
  2956.         if SpyDrone then
  2957.             if SpyDrone:FindFirstChild("Price") then
  2958.                 if not SpyDroneifsInInventory then
  2959.                     -- Check if we can buy the Item
  2960.                     if player.leaderstats.Coins.Value >= SpyDrone.Price.Value and bool35.Value == false then
  2961.                         print(player.Name.." brought the Clown Bomb item")
  2962.  
  2963.                         player.leaderstats.Coins.Value = player.leaderstats.Coins.Value - SpyDrone.Price.Value         
  2964.  
  2965.                         local giveTool35 = ReplicatedStorage.Accessories:FindFirstChild("SpyDrone"):Clone()
  2966.                         giveTool35.Parent = player.Backpack
  2967.  
  2968.                         local giveTool35 = ReplicatedStorage.Accessories:FindFirstChild("SpyDrone"):Clone()
  2969.                         giveTool35.Parent = player.StarterGear 
  2970.                         player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpyDrone").Value = SpyDrone.Name 
  2971.  
  2972.                         bool35.Value = true
  2973.                         SpyDroneifsInInventory = true
  2974.                         wait(.5)
  2975.                         debounce = true
  2976.                         return "Brought"
  2977.                     end
  2978.                 end
  2979.             end
  2980.         end
  2981.  
  2982.         if player.leaderstats.Coins.Value < SpyDrone.Price.Value and not SpyDroneifsInInventory and bool35.Value == false then
  2983.             return "NotEnough" 
  2984.         end        
  2985.  
  2986.         if bool35.Value == true then                           
  2987.             if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpyDrone").Value ~= SpyDrone.Name then
  2988.                 -- You already owned it                                                        
  2989.                 player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpyDrone").Value = SpyDrone.Name         
  2990.  
  2991.                 local giveTool35 = ReplicatedStorage.Accessories:FindFirstChild("SpyDrone"):Clone()
  2992.                 giveTool35.Parent = player.Backpack
  2993.  
  2994.                 local giveTool35 = ReplicatedStorage.Accessories:FindFirstChild("SpyDrone"):Clone()
  2995.                 giveTool35.Parent = player.StarterGear
  2996.                 wait(.1)
  2997.                 debounce = true
  2998.                 return "Equip" 
  2999.             end
  3000.         end
  3001.  
  3002.         if player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpyDrone").Value == SpyDrone.Name and bool35.Value == true then
  3003.             player.AccessoriesInventory:FindFirstChild("EquippedAccessories"):FindFirstChild("EquippedSpyDrone").Value = ""
  3004.             humanoid:UnequipTools()
  3005.             if player.Backpack:FindFirstChild("SpyDrone") then
  3006.                 if humanoid then
  3007.                     humanoid:UnequipTools()
  3008.                     player.Backpack:FindFirstChild("SpyDrone"):Destroy()
  3009.                     player.StarterGear:FindFirstChild("SpyDrone"):Destroy()
  3010.                     return "Unequip"
  3011.                 end
  3012.                 wait(.1)
  3013.                 debounce = true
  3014.                 return "Unequip"
  3015.             end
  3016.         end                    
  3017.     end
  3018.     wait(.5)
  3019.     debounce = true
  3020. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement