#I NEED HELP

11 messages · Page 1 of 1 (latest)

versed plinth
#

you just use math.random() and Humanoid:MoveTo() to move the player

fathom sail
#

alr i will try to

versed plinth
#

get all the spawns in a folder then find the number of spawns. then you would use math.random() to select which spawn to move to

#

basically like a table

fathom sail
#

like this?

scarlet pollenBOT
#

studio** You are now Level 1! **studio

fathom sail
#

-- Function to teleport players to a random map
local function teleportToRandomMap(player)
local randomMap = maps[math.random(1, #maps)]
player.Character.HumanoidRootPart.CFrame = randomMap.CFrame
end

#

oh mb lol

versed plinth
#

i would do this

local spawns = ...
    local randSpawn = math.random(1, #spawns:GetChildren())

    ...:MoveTo(spawns:FindFirstChild(randSpawn).Position)```
#

youd have to define spawns and the character

fathom sail
#

alr ty