Hello anyone who reads this, I have a question. I want to load in the pokemon stats, however, it's not changing I do not see anything wrong in my code I think it's because the number of parameters I have in my function(I'm not quite sure) Here is the hierarchy: game>ReplicatedStorage>Modules>PokemonModule game>ReplicatedStorage>YourPokemon>Main>YourPokeStats>(Then the stats here that is being used in the function) Here is the module script: By the way, this is not FE enabled, then I will change it to FE enabled. There are no errors if you are asking.
local allPokes = {} local yourPoke = game.ReplicatedStorage.YourPokemon.Main local stats = yourPoke.Main.YourPokeStats function allPokes.getPokeStats(name,iv,ev,pokeType,level,evolutions,evolveLevels,health,damage,defense,specialDamage,specialDefense) -- I have a lot of paramters(I know, maybe its because of that??) stats.PokeName.Value = name stats.IV.Value = iv stats.EV.Value = ev stats.Level.Value = level stats.Health.Value = health stats.Damage.Value = damage stats.Defense.Value = defense stats.SpecialDefense.Value = specialDefense stats.SpecialDamage.Value = specialDamage -- I make them to values so then I can make them as a wild poke or as a pokemon someone would have end return allPokes
Here is the server script
local pokeModule = require(script.Parent.Parent.Parent.Modules.PokemonModule) pokeModule.getPokeStats("Charmander",5,10,"Fire",5,{"Charmander","Charmeleon","Charizard","Mega Charizard X","Mega Charizard Y"},{1,16,36},5,5,5,5,5) -- Returns all of the parameters in the module
Please answer this question if possible