#map randomizing system and spawn system

42 messages · Page 1 of 1 (latest)

dusty crane
#

people dont make scripts for you

#

#💵︱hiring

earnest sequoia
#

need to be level 5 sad;y

#

also i dont need someone to make me a script

dusty crane
earnest sequoia
#

just a suggest an idea that could work without making to complicated scrtips

dusty crane
#

i need a script

earnest sequoia
#

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

wild trail
earnest sequoia
#

suggestion.

wild trail
#

Bro, there's a bunch of great content on YouTube to learn how to script anything, you just need to start

earnest sequoia
#

i did im just not that good, and i have a tight schedule

calm ginkgo
#

@wild trail are you a scripter?

wild trail
earnest sequoia
calm ginkgo
wild trail
calm ginkgo
#

i just send a post

wild trail
# earnest sequoia yes please.

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

earnest sequoia
#

i need help with map choosing system and deploy system, any of them help with that?

calm ginkgo
#

i was learning from TheDevKing he teaches so well

calm ginkgo
earnest sequoia
#

the best thing im good at is modeling and im not even really good at that 😭

earnest sequoia
#

what counts as basics

calm ginkgo
calm ginkgo
#

theres everything

earnest sequoia
#

no there isnt ;-;

#

i just found this guy that has what i needddd 😄
RetroAmythest

earnest sequoia
#

aw hell nah hes not what i need.

wet vigilBOT
#

studio** You are now Level 3! **studio

sacred hill
#

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.