I'm trying to teleport the players from the lobby to a random map and display "The game is.. " and then the games name.
this is the script:
local status = game.ReplicatedStorage.Status
local maps = game.ReplicatedStorage.Maps
while true do
for i = 1,10 do
status.Value = "Intermission.. "..10-i
wait(1)
end
local rand = math.random(1, #maps)
local map = maps[rand]:Clone()
map.Parent = workspace
status.Value = "The game is.. "..map.name
wait(4)
this is the output:
ServerScriptService.Script:10: attempt to get length of a userdata value
Stack Begin
Script 'ServerScriptService.Script', Line 10
Stack End

3 comments
did u have to bolden it?
i didnt
oh, I understand what happened, hashtags signify a header in this editor but I meant to use it as length. should b fixed