@@Why-Just already used a different tutorial that actually works unlike this.
@swedesask9 күн бұрын
useless waste of time didnt work
@imthebiggestbirb24 күн бұрын
funny ice fairy that likes the number 9 gets mauled by the embodiment of treachery
@scoopyjscoopers141828 күн бұрын
bro can make a attack animation/design better than me😔
@Why-Just27 күн бұрын
@@scoopyjscoopers1418 don't worry it takes practice but I am sure you can do it
@TheRealDOgMa228 күн бұрын
you didnt use the rage variable you made.. how inefficient
@Why-Just28 күн бұрын
Yeah because I'm stupid and working with code that's over a year old
@KingDumpling201328 күн бұрын
Your information of how to do it is very very unclear I think because we can’t hear and others
@josediahgaming668529 күн бұрын
This does not work i did everything right and spent almost a whole week on this and it did not work, people do not waste your time on this.
@Why-Just29 күн бұрын
@@josediahgaming6685 btw to anyone reading this skins don't show up on purpose unless you own them, and make sure you set your crates onsale
@josediahgaming668529 күн бұрын
@Why-Just It was already on sale also the crates don’t show up
@Why-Just29 күн бұрын
@@josediahgaming6685 did you make your variables correctly? That could possibly be the issue
@josediahgaming668529 күн бұрын
@Why-Just are you talking about the locals? If you are I put all my locals in my other comment
@josediahgaming668529 күн бұрын
@@Why-Just Shop Client: local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local BadgeService = game:GetService("BadgeService") local towers = require(ReplicatedStorage:WaitForChild("TowerShop")) local skins = require(ReplicatedStorage:WaitForChild("SkinShop")) local crates = require(ReplicatedStorage:WaitForChild("CrateShop")) local ShopPart = workspace.ShopPart local getDataFunc = ReplicatedStorage:WaitForChild("GetData") local interactItemFunc = ReplicatedStorage:WaitForChild("InteractItem") local interactSkinFunc = ReplicatedStorage:WaitForChild("InteractSkin") local interactCrateFunc = ReplicatedStorage:WaitForChild("InteractCrate") local LocalPlayer = Players.LocalPlayer local gui = script.Parent local exit = gui.Container.Exit local star = gui.Container.Stars local limit = gui.Container.Limit local itemsFrame = gui.Container.Frame.ItemsFrame local itemsFrame2 = gui.Container.ItemsFrame2 local skinsFrame = gui.SkinContainer.Frame2 local skinsFrame2 = gui.SkinContainer.ItemsFrame3 local cratesFrame = gui.CrateContainer.ItemsFrame local cratesFrame2 = gui.CrateContainer.ItemsFrame4 local skinButton = cratesFrame.Parent.SkinButton local Frame2 = gui.SkinContainer.Frame2 Shop Server: local DataStoreService = game:GetService("DataStoreService") local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local MarketPlaceService = game:GetService("MarketplaceService") local PopcatGamepassID = 847404968 local database = DataStoreService:GetDataStore("database") local towers = require(ReplicatedStorage:WaitForChild("TowerShop")) local skins = require(ReplicatedStorage:WaitForChild("SkinShop")) local crates = require(ReplicatedStorage:WaitForChild("CrateShop"))
@AnimaticSonic29 күн бұрын
better than I ever could
@Why-Just27 күн бұрын
@@AnimaticSonic practice makes perfect!
@josediahgaming6685Ай бұрын
Dosen’t work the skins and crates aren’t their
@Why-JustАй бұрын
@@josediahgaming6685 did you even make them visible?
@Why-JustАй бұрын
@@josediahgaming6685 or parent then correctly
@josediahgaming6685Ай бұрын
Yes I made them visible and I think I parented the. Correctly but I will look again
@josediahgaming6685Ай бұрын
@@Why-Just please I need help
@josediahgaming6685Ай бұрын
@@Why-JustI checked it and I found some things that were wrong but it still doesn’t work maybe it’s the locals so: Client: local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local BadgeService = game:GetService("BadgeService") local towers = require(ReplicatedStorage:WaitForChild("TowerShop")) local skins = require(ReplicatedStorage:WaitForChild("SkinShop")) local crates = require(ReplicatedStorage:WaitForChild("CrateShop")) local ShopPart = workspace.ShopPart local getDataFunc = ReplicatedStorage:WaitForChild("GetData") local interactItemFunc = ReplicatedStorage:WaitForChild("InteractItem") local interactSkinFunc = ReplicatedStorage:WaitForChild("InteractSkin") local LocalPlayer = Players.LocalPlayer local gui = script.Parent local exit = gui.Container.Exit local star = gui.Container.Stars local limit = gui.Container.Limit local itemsFrame = gui.Container.Frame.ItemsFrame local itemsFrame2 = gui.Container.ItemsFrame2 local skinsFrame = gui.SkinContainer.Frame2 local skinsFrame2 = gui.SkinContainer.ItemsFrame3 local cratesFrame = gui.CrateContainer.Frame local cratesFrame2 = gui.CrateContainer.ItemsFrame4 local skinButton = cratesFrame.Parent.SkinButton local Frame2 = gui.SkinContainer.Frame2 Shop Server: local DataStoreService = game:GetService("DataStoreService") local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local MarketPlaceService = game:GetService("MarketplaceService") local PopcatGamepassID = 847404968 local database = DataStoreService:GetDataStore("database") local towers = require(ReplicatedStorage:WaitForChild("TowerShop")) local skins = require(ReplicatedStorage:WaitForChild("SkinShop")) local crates = require(ReplicatedStorage:WaitForChild("CrateShop")) local MAX_SELECTED_TOWERS = 4 local data = {}
@josediahgaming6685Ай бұрын
7:23
@awesomeiscalАй бұрын
I have a question. Is there a way you could make it so you can buy the skins like you do with towers?
@Why-JustАй бұрын
@@awesomeiscal just copy your tower shop script and use that for your skins
@awesomeiscalАй бұрын
@@Why-Just ok thank you. Merry Christmas
@lord__sinister-ogАй бұрын
im a bit lost, do i need to watch any other videos on this channel before this?
@Why-JustАй бұрын
@@lord__sinister-og the enemy attacking system one
@VibhuVG8Ай бұрын
hi mr.Just why, i dont how to update the buy button's text when activated, please if u see this, reply with the fix, here is my scrpit:
@geust03423Ай бұрын
better interactcrate function: local function getRandomSkin(playerData, crate) -- Debug print to check crate print("Crate:", crate) local availableSkins = {} -- Debug print to check playerData print("Player Data:", playerData) for _, skin in ipairs(crate.RareSkins or {}) do if not table.find(playerData.OwnedSkins, skin) then table.insert(availableSkins, {skin = skin, rarity = "Rare"}) end end for _, skin in ipairs(crate.EpicSkins or {}) do if not table.find(playerData.OwnedSkins, skin) then table.insert(availableSkins, {skin = skin, rarity = "Epic"}) end end for _, skin in ipairs(crate.LegendarySkins or {}) do if not table.find(playerData.OwnedSkins, skin) then table.insert(availableSkins, {skin = skin, rarity = "Legendary"}) end end -- Debug print to check availableSkins print("Available Skins:", availableSkins) if #availableSkins == 0 then return nil end -- Calculate cumulative probability local totalChance = crate.RareChance + crate.EpicChance + crate.LegendaryChance local randomValue = math.random(1, totalChance) local cumulativeChance = 0 for _, skinData in ipairs(availableSkins) do if skinData.rarity == "Rare" then cumulativeChance = cumulativeChance + crate.RareChance elseif skinData.rarity == "Epic" then cumulativeChance = cumulativeChance + crate.EpicChance elseif skinData.rarity == "Legendary" then cumulativeChance = cumulativeChance + crate.LegendaryChance end if randomValue <= cumulativeChance then return skinData.skin end end -- If no skin was selected, return a random skin from availableSkins return availableSkins[math.random(1, #availableSkins)].skin end ReplicatedStorage.InteractCrate.OnServerInvoke = function(player, itemName) local shopItem = crates[itemName] local playerData = data[player.UserId] if shopItem and playerData then if shopItem.Coins == "Ice Shards" then if playerData["get"] >= shopItem.Price then playerData["Ice Shardes"] -= shopItem.Price local selectedSkin = getRandomSkin(playerData, shopItem) if selectedSkin then table.insert(playerData.OwnedSkins, selectedSkin) ReplicatedStorage.CrateResult:FireClient(player, selectedSkin) -- Updated line return playerData else warn("No available skins to give to the player") end else warn("Player does not have enough gems") end else -- coins crates end else warn("Player data or shop item does not exist") end return false end
@zakie2xАй бұрын
frame rate is neat
@zakie2xАй бұрын
old tutorial was better tbh
@AlltheworldsprayersАй бұрын
YOU GOT YOUR GOOFY AHH BEAT BY BUFFOON ☺
@TheActualDOgMaАй бұрын
thanks for this addon! even tho this uses advanced attaacking , i made it work with gnomecodes system Also is it possible to make a range buff with this? and how?
@Why-JustАй бұрын
@@TheActualDOgMa just replace the cooldown buff with the buff of your choosing
@scoopyjscoopers1418Ай бұрын
absolutely helpful 100% thanks dude!1!!1!1
@Sans_In_A_Basement2 ай бұрын
GREETING GUESTS. IM INSECURE. THOSE PEOPLE LOVE MY SHOW!
@@Galaxy_IdkOff how about instead of making a horrible cash grab of a game you actually try making something good
@Galaxy_IdkOff2 ай бұрын
@Why-Just idk, i like crates in td games
@PilotgamerRBLX-t5v2 ай бұрын
@@Why-Justwhat’s the parent for the boombox module script
@Why-Just2 ай бұрын
@PilotgamerRBLX-t5v it uses the advanced tower attacking addon so go watch that
@Why-Just2 ай бұрын
NOTE this addon uses the Advanced Tower Attacking addon
@IchabodDD252 ай бұрын
so where should i create the module script (oh i found sorry)
@IchabodDD252 ай бұрын
where should i create the script
@Why-Just2 ай бұрын
@@IchabodDD25 I forgot to mention that this addon used the Advanced Tower Attacking addon my bad
@MaVVlyTyan2 ай бұрын
I have a problem when I equip 2 skins with the same Original Tower, I can no longer equip skins
@Why-Just2 ай бұрын
@@MaVVlyTyan weird never had that issue, not sure how I could help. Maybe try messing around with the code?
@MaVVlyTyan2 ай бұрын
@@Why-Just everything is fine, I just messed up some parameters, the addon works perfectly👍
@Why-Just2 ай бұрын
@@MaVVlyTyan yeah I have it in the pinned comment
@MaVVlyTyan2 ай бұрын
@@Why-Just also i have another problem, if i spam equip/unequip button then random skin has been unequiped
@TimTam21192 ай бұрын
Goated
@TheRidiculousBucketHead2 ай бұрын
the battle bricks lol
@AtlasTles2 ай бұрын
MAKE INVENTORY SYSTEM!!
@loboGOAT_TD3 ай бұрын
Hey quick question, Can i replace skins with towers? Thanks if you response me
@Why-Just3 ай бұрын
@@loboGOAT_TD while I hate almost all gacha games with a burning passion... Sadly yes you can replace the skins with towers. But please consider actually trying to not make a gacha cash grab tower defense
@Sans_In_A_Basement3 ай бұрын
mister mancer
@gallepboi3 ай бұрын
hi ik it may be a bit late, but i just wanted to say, great addon, it does work perfectly, but could u make it so the enemy still looks at the tower while attacking? because when the enemy attacks he just looks at tower for less than a sec and then while moving on the path he does the animation
@Why-Just3 ай бұрын
@@gallepboi I might come back to this and do a new addition to it for that suggestion
@gallepboi3 ай бұрын
@@Why-Just thx man¡ looking forward that new addon
@swedesask3 ай бұрын
another issue i have is when i equip a tower the text does not change to "equipped" it just stays as equip unless i click on the tower again. and it wont save it to the loadout unless i click on the tower gui help me its really annoying
@Why-Just3 ай бұрын
@@swedesask sorry pal I'm stumped on this without being able to see your code, maybe you forgot a few lines?
@swedesask3 ай бұрын
@@Why-Just so am i suppose to send literally my entire code
@FlaminFish7503 ай бұрын
I have a delay value just like you.....
@swedesask3 ай бұрын
the name wont change HELPP
@Why-Just3 ай бұрын
@@swedesask did you actually add the line of code that adds the tower name?
@swedesask3 ай бұрын
@@Why-Just i fixed it already
@Tree-Channel4 ай бұрын
what happened to fatboy
@Why-Just4 ай бұрын
@@Tree-Channel shhhh
@Tree-Channel4 ай бұрын
@@Why-Just for some reason i cant read the top text of the script
@wabadylan21324 ай бұрын
W tutorial
@ZeroPlays2914 ай бұрын
this remake sucks. I have 2 problems. and when i click the tower it doesnt update until i click the buy button
@AtlasTles4 ай бұрын
Bro thanks for wasting a time and the shop button to open the shop don't work
@Why-Just4 ай бұрын
@@AtlasTles are you even calling the update shop function in the first place?
@scoopyjscoopers14184 ай бұрын
no questions but this add-on is definitely what I needed
@CycroStudio4 ай бұрын
I can use this addon to make bundle pass or maybe bundle for player to purchase i know how to script so it gives tower