#map randomizing system and spawn system
42 messages · Page 1 of 1 (latest)
just a suggest an idea that could work without making to complicated scrtips
i need a script
oops 😭
done.
fixed it
since your here any suggestions for making the map randomization?
i tried just doing when you die, this frame will show with buttons like deploy and whne the deploy button is pressed, it should teleport them to somewhere in this map. after 5 minutes the map changes and so does the deploy button this way the player will teleport and also only into the new map.
4 other?
.
i mnean the idea is fine BUT i need the script to actually randomize map choosing and i dont know how to do that ;-; also, when it does randomize, it should detect what map it is so it could change the deployement button
yeah, you're basically asking for someone to do the script for you
suggestion.
Bro, there's a bunch of great content on YouTube to learn how to script anything, you just need to start
i did im just not that good, and i have a tight schedule
@wild trail are you a scripter?
I can suggest some yt channels
Yup
yes please.
can you help me after this?
Ya, fr. You can dm me
i just send a post
Alvin Blox, TheDevKing, GnomeCode, Suphi Kaner (for advanced content) and others you'll find teaching little stuff that helps a lot
That's the ones I remember now
i need help with map choosing system and deploy system, any of them help with that?
i was learning from TheDevKing he teaches so well
you need to learn the basics to do that
the best thing im good at is modeling and im not even really good at that 😭
what are basics
what counts as basics
you'll learn that from TheDevKing
aw hell nah hes not what i need.
** You are now Level 3! **
how i usually do it is have a map folder somewhere in ServerStorage that contains every map, and all the spawns (i assume you're trying to use a default spawn point) will just be contained inside that map.
to actually pick the map you want to get all the children of the map folder and grab one randomly.
local ServerStorage = game:GetService("ServerStorage")
local MapFolder = ServerStorage.MapFolder
local AllMaps = MapFolder:GetChildren()
local function GetRandomMap()
return AllMaps[math.random(1,#AllMaps)]
end
:GetChildren() returns a table containing every instance that is a direct child of the given instance, so the function GetRandomMap simply returns a random map through a basic random picker. table[index] gives the given value at an index within a table, giving nil if nonexistent, lua tables start at 1 for the first index so to get a random value we use math.random(min,max) to get a random value within the bounds 1 and the amount of all maps since #table gives you the amount of items in a table.