So i want to move the enemies without an humanoid i created some values inside some module scripts.
thats for the enemies and their data like how many health they have and also other things.
local Enemies = {
["Normal"] = {
["Speed"] = 2; -- the speed how fast he get moved right away.
["Hidden"] = false; -- if its hidden or not
["Flying"] = false; -- if its Flying or not
["Defense"] = nil; -- nil means no Defense
["Health"] = 4; -- to set the health
["BurningResistance"] = false; -- if its resist to all burning effects.
["StunResistance"] = false; -- if its resist to all stuns.
};
["Quick"] = {
["Speed"] = 4; -- the speed how fast he get moved right away.
["Hidden"] = false; -- if its hidden or not
["Flying"] = false; -- if its Flying or not
["Defense"] = nil; -- nil means no Defense
["Health"] = 3; -- to set the health
["BurningResistance"] = false; -- if its resist to all burning effects.
["StunResistance"] = false; -- if its resist to all stuns.
};
["Heavy"] = {
["Speed"] = 1.5; -- the speed how fast he get moved right away.
["Hidden"] = false; -- if its hidden or not
["Flying"] = false; -- if its Flying or not
["Defense"] = nil; -- nil means no Defense
["Health"] = 10; -- to set the health
["BurningResistance"] = false; -- if its resist to all burning effects.
["StunResistance"] = false; -- if its resist to all stuns.
};
["NormalBoss"] = {
["Speed"] = 1; -- the speed how fast he get moved right away.
["Hidden"] = false; -- if its hidden or not
["Flying"] = false; -- if its Flying or not
["Defense"] = nil; -- nil means no Defense
["Health"] = 150; -- to set the health
["BurningResistance"] = false; -- if its resist to all burning effects.
["StunResistance"] = false; -- if its resist to all stuns.
};
["Shadow"] = {
["Speed"] = 2; -- the speed how fast he get moved right away.
["Hidden"] = true; -- if its hidden or not
["Flying"] = false; -- if its Flying or not
["Defense"] = nil; -- nil means no Defense
["Health"] = 20; -- to set the health
["BurningResistance"] = false; -- if its resist to all burning effects.
["StunResistance"] = false; -- if its resist to all stuns.
}
}
return Enemies
this is the data for every difficulty i planned to do.
local Difficulty = {
["Easy"] = {
["Waves"] = 30;
["TakiReward"] = 5;
["ZenReward"] = 250;
["XpReward"] = 50;
},
["Normal"] = {
["Waves"] = 40;
["TakiReward"] = 10;
["ZenReward"] = 500;
["XpReward"] = 100;
},
["Hard"] = {
["Waves"] = 50;
["TakiReward"] = 20;
["ZenReward"] = 1000;
["XpReward"] = 250;
},
["Impossible"] = {
["Waves"] = 60;
["TakiReward"] = 50;
["ZenReward"] = 2000;
["XpReward"] = 500;
}
}
return Difficulty
This are the Waves of the Easy mode, and the Module script is named like the Difficulty i just choosed.
local Waves = {
[0] = {
["Timer"] = 30;
["Enemies"] = {}
};
[1] = {
["Timer"] = 50;
["Enemies"] = {
[1] = {
["Name"] = "Normal";
["Amount"] = 3;
["SpawnCooldown"] = 1;
["TimeUntilNextGroup"] = 3;
};
};
};
[2] = {
["Timer"] = 50;
["Enemies"] = {
[1] = {
["Name"] = "Normal";
["Amount"] = 4;
["SpawnCooldown"] = 1;
["TimeUntilNextGroup"] = 3;
};
};
};
[3] = { -- wave
["Timer"] = 35;
["Enemies"] = {
[1] = { -- order of enemies
["Name"] = "Quick";
["Amount"] = 4;
["SpawnCooldown"] = 1.5;
["TimeUntilNextGroup"] = 3;
};
[2] = {
["Name"] = "Normal";
["Amount"] = 2;
["SpawnCooldown"] = 1;
["TimeUntilNextGroup"] = 3;
};
};
};
[4] = {
["Timer"] = 50;
["Enemies"] = {
[1] = {
["Name"] = "Normal";
["Amount"] = 5;
["SpawnCooldown"] = 1;
["TimeUntilNextGroup"] = 3;
};
[2] = {
["Name"] = "Quick";
["Amount"] = 5;
["SpawnCooldown"] = 1.5;
["TimeUntilNextGroup"] = 3;
};
};
};
}
return Waves
im gonna add more later but idk what is now the best methode to spawn, them and to move them right away.