When i run the game in roblox studio, this error comes in the output, pls help:

10:24:35.703 Infinite yield possible on 'Workspace.Folder:WaitForChild("Shipment by N0TaLaN")' - Studio 0:24:35.703 Stack Begin - Studio 10:24:35.703 Script 'Players.N0TaLaN.PlayerGui.LobbyGui.Deploy.LocalScript', Line 1 -
Studio - LocalScript:1 10:24:35.704 Stack End - Studio 10:24:48.654 Players.N0TaLaN.PlayerGui.LobbyGui.Deploy.LocalScript:6: attempt to get length of a Instance value - Client - LocalScript:6

Local Script:

local randomMap = game.Workspace.Folder:WaitForChild("Shipment by N0TaLaN") local spawns = randomMap.Spawns:GetChildren() local plr = game.Players.LocalPlayer

script.Parent.MouseButton1Click:Connect(function()

for i = 1, #plr do local randomSpawn = spawns[math.random(1, #spawns)] plr[i].Character.HumanoidRootPart.CFrame = CFrame.new(randomSpawn.Position) end end)

2 comments

0

The first warning, "Infinite yield possible" basically means that "Shipment by N0taLaN" cannot be found, and if it's not found, then the script would wait for it forever.

0

oh ok