
Key Required

local function NameToBase(TargetName)
local Bases = workspace.Map.Bases:GetChildren()
for i, Base in pairs(Bases) do
local Interactables = Base.Interactables
local Sign = Interactables.Sign
local SignText = Sign:FindFirstChild("TextLabel", true).Text
local OwnerName = string.match(SignText, "(.*)'s")
if OwnerName == TargetName then
return Base
end
end
end
-- Example Usage
local LocalPlayer = game:GetService("Players").LocalPlayer
local MyBase = NameToBase(LocalPlayer.DisplayName)
if MyBase then
LocalPlayer.Character.PrimaryPart.CFrame = MyBase.SpawnPart.CFrame
endNo comments yet for this script.



