
Key Required

local segmentSystem = workspace:FindFirstChild("segmentSystem")
if not segmentSystem then
warn("segmentSystem is not on workspace")
return
end
print("segmentSystem found")
local segmentsFolder = segmentSystem:FindFirstChild("Segments")
if not segmentsFolder then
warn("Segments not found in segmentSystem")
return
end
print("folder Segments found")
-- Iterate over all the segments (Segment1, Segment2, etc.)
for _, segment in ipairs(segmentsFolder:GetChildren()) do
if segment:IsA("Model") then
print("Exploring segment (Model): " .. segment.Name)
local folder = segment:FindFirstChild("Folder") -- Check if a "Folder" exists in each Model
if folder then
print("'Folder' found in " .. segment.Name)
-- Iterate over all children of the Folder
for _, child in ipairs(folder:GetChildren()) do
if child:IsA("Part") then
print("Part detected: " .. child.Name)
-- Check if the Part has exactly 3 children
local childrenCount = #child:GetChildren()
print("Part " .. child.Name .. " has " .. childrenCount .. " children")
if childrenCount == 3 then
print("Deleting the Part: " .. child.Name)
child:Destroy() -- Delete the Part on the client side
end
end
end
else
print("No 'Folder' found in " .. segment.Name)
end
else
print(segment.Name .. " is not a Model, ignored")
end
end



local ScreenGui = Instance.new("ScreenGui") local Button = Instance.new("TextButton") ScreenGui.Parent = game:GetService("CoreGui") Button.Parent = ScreenGui Button.Size = UDim2.new(0, 100, 0, 30) Button.Position = UDim2.new(0.5, -50, 0.5, -15) Button.Text = "Teleport" Button.BackgroundColor3 = Color3.fromRGB(255, 255, 255) Button.MouseButton1Click:Connect(function() local player = game.Players.LocalPlayer local character = player.Character if character then character.HumanoidRootPart.CFrame = CFrame.new(-729, -3, -524) end end) tp to win