1
This commit is contained in:
commit
a85391509d
211 files changed
+28903
No files matched your search
@@ -0,0 +1,312 @@
|
||||
--!strict
|
||||
-- Creates the reusable map-piece pool in ServerStorage once per place.
|
||||
|
||||
local ServerStorage = game:GetService("ServerStorage")
|
||||
|
||||
local old = ServerStorage:FindFirstChild("GameZonePrefabs")
|
||||
if old then old:Destroy() end
|
||||
local pool = Instance.new("Folder")
|
||||
pool.Name = "GameZonePrefabs"
|
||||
pool:SetAttribute("Ready", false)
|
||||
pool.Parent = ServerStorage
|
||||
|
||||
local function block(parent: Instance, name: string, size: Vector3, position: Vector3, color: Color3, material: Enum.Material): Part
|
||||
local p = Instance.new("Part")
|
||||
p.Name, p.Size, p.Position = name, size, position
|
||||
p.Anchored, p.CanCollide, p.Color, p.Material = true, true, color, material
|
||||
p.Parent = parent
|
||||
return p
|
||||
end
|
||||
|
||||
local function connector(parent: Model, name: string, position: Vector3, direction: Vector3)
|
||||
local a = Instance.new("Attachment")
|
||||
a.Name, a.Position, a.Axis = name, position, direction
|
||||
a:SetAttribute("Connector", true)
|
||||
a.Parent = parent.PrimaryPart
|
||||
end
|
||||
|
||||
local function prefab(name: string, size: Vector3, build: (Model, Part) -> ())
|
||||
local model = Instance.new("Model")
|
||||
model.Name = name
|
||||
model:SetAttribute("TileSize", size)
|
||||
local root = block(model, "Root", Vector3.new(1, 1, 1), Vector3.zero, Color3.new(1, 1, 1), Enum.Material.SmoothPlastic)
|
||||
root.Transparency, root.CanCollide = 1, false
|
||||
root:SetAttribute("PrefabRoot", true)
|
||||
model.PrimaryPart = root
|
||||
build(model, root)
|
||||
model.Parent = pool
|
||||
end
|
||||
|
||||
local road = Color3.fromRGB(48, 52, 58)
|
||||
local wall = Color3.fromRGB(178, 184, 220)
|
||||
local roof = Color3.fromRGB(115, 119, 154)
|
||||
local accent = Color3.fromRGB(255, 145, 91)
|
||||
local sidewalk = Color3.fromRGB(226, 202, 190)
|
||||
|
||||
local function gridTexture(part: BasePart, tile: number, color: Color3)
|
||||
local function face(normal: Vector3)
|
||||
local texture = Instance.new("Texture")
|
||||
texture.Name = "ConcreteGrid"
|
||||
texture.Texture = "rbxasset://textures/Studs.png"
|
||||
texture.Face = if normal == Vector3.yAxis then Enum.NormalId.Top
|
||||
elseif normal == -Vector3.yAxis then Enum.NormalId.Bottom
|
||||
elseif normal == Vector3.xAxis then Enum.NormalId.Right
|
||||
elseif normal == -Vector3.xAxis then Enum.NormalId.Left
|
||||
elseif normal == Vector3.zAxis then Enum.NormalId.Back else Enum.NormalId.Front
|
||||
texture.StudsPerTileU, texture.StudsPerTileV = tile, tile
|
||||
texture.Color3 = color
|
||||
texture.Transparency = 0.68
|
||||
texture.Parent = part
|
||||
end
|
||||
for _, axis in { Vector3.xAxis, -Vector3.xAxis, Vector3.yAxis, -Vector3.yAxis, Vector3.zAxis, -Vector3.zAxis } do face(axis) end
|
||||
end
|
||||
|
||||
local function inkEdges(parent: Instance, source: BasePart)
|
||||
local model = source:FindFirstAncestorOfClass("Model")
|
||||
if model then
|
||||
model:SetAttribute("PencilOutline", true)
|
||||
end
|
||||
end
|
||||
|
||||
local function wallPanel(parent: Instance, name: string, size: Vector3, position: Vector3)
|
||||
local panel = block(parent, name, size, position, wall, Enum.Material.Concrete)
|
||||
gridTexture(panel, 8, Color3.fromRGB(205, 209, 244))
|
||||
inkEdges(parent, panel)
|
||||
return panel
|
||||
end
|
||||
|
||||
prefab("RoadStraight", Vector3.new(40, 1, 40), function(m, root)
|
||||
local street = block(m, "Road", Vector3.new(40, 0.3, 20), Vector3.new(0, -0.35, 0), road, Enum.Material.Asphalt)
|
||||
inkEdges(m, street)
|
||||
block(m, "SidewalkA", Vector3.new(40, 0.2, 10), Vector3.new(0, -0.1, -15), sidewalk, Enum.Material.Concrete)
|
||||
block(m, "SidewalkB", Vector3.new(40, 0.2, 10), Vector3.new(0, -0.1, 15), sidewalk, Enum.Material.Concrete)
|
||||
block(m, "CurbA", Vector3.new(40, 0.2, 0.5), Vector3.new(0, -0.1, -10.25), Color3.fromRGB(173, 169, 184), Enum.Material.Concrete)
|
||||
block(m, "CurbB", Vector3.new(40, 0.2, 0.5), Vector3.new(0, -0.1, 10.25), Color3.fromRGB(173, 169, 184), Enum.Material.Concrete)
|
||||
for x = -15, 15, 10 do
|
||||
block(m, "PencilLaneDash", Vector3.new(4, 0.04, 0.3), Vector3.new(x, -0.18, 0), Color3.fromRGB(191, 190, 184), Enum.Material.SmoothPlastic)
|
||||
end
|
||||
connector(m, "West", Vector3.new(-20, 0, 0), Vector3.xAxis)
|
||||
connector(m, "East", Vector3.new(20, 0, 0), -Vector3.xAxis)
|
||||
end)
|
||||
|
||||
prefab("RoadIntersection", Vector3.new(40, 1, 40), function(m, root)
|
||||
local asphalt = block(m, "AsphaltBed", Vector3.new(39.8, 0.3, 39.8), Vector3.new(0, -0.35, 0), road, Enum.Material.Asphalt)
|
||||
inkEdges(m, asphalt)
|
||||
for _, x in {-14.5, 14.5} do
|
||||
for _, z in {-14.5, 14.5} do
|
||||
block(m, "CornerPavement", Vector3.new(11, 0.2, 11), Vector3.new(x, -0.1, z), sidewalk, Enum.Material.Concrete)
|
||||
end
|
||||
end
|
||||
for _, offset in {-14, 14} do
|
||||
for stripe = -2, 2 do
|
||||
block(m, "CrosswalkStripe", Vector3.new(0.65, 0.04, 1.4), Vector3.new(offset, -0.18, stripe * 2.1), Color3.fromRGB(210, 204, 195), Enum.Material.SmoothPlastic)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
prefab("Plaza", Vector3.new(40, 1, 40), function(m, root)
|
||||
block(m, "PlazaPaving", Vector3.new(39.8, 0.25, 39.8), Vector3.new(0, -0.15, 0), sidewalk, Enum.Material.Concrete)
|
||||
for _, x in {-15, 15} do
|
||||
for _, z in {-15, 15} do
|
||||
block(m, "LavenderInset", Vector3.new(8, 0.08, 8), Vector3.new(x, 0.02, z), Color3.fromRGB(190, 190, 218), Enum.Material.CeramicTiles)
|
||||
end
|
||||
end
|
||||
local basin = block(m, "FountainBasin", Vector3.new(11, 1.2, 11), Vector3.new(0, 0.55, 0), Color3.fromRGB(164, 177, 202), Enum.Material.Concrete)
|
||||
basin.Shape = Enum.PartType.Cylinder
|
||||
local water = block(m, "FountainWater", Vector3.new(8.5, 0.35, 8.5), Vector3.new(0, 1.28, 0), Color3.fromRGB(104, 205, 221), Enum.Material.Glass)
|
||||
water.Shape, water.Transparency = Enum.PartType.Cylinder, 0.18
|
||||
block(m, "FountainStem", Vector3.new(2, 5, 2), Vector3.new(0, 3.4, 0), Color3.fromRGB(190, 190, 218), Enum.Material.Concrete)
|
||||
local crown = block(m, "FountainCap", Vector3.new(4, 0.7, 4), Vector3.new(0, 6.1, 0), accent, Enum.Material.Slate)
|
||||
crown.Shape = Enum.PartType.Cylinder
|
||||
for _, x in {-12, 12} do
|
||||
for _, z in {-12, 12} do
|
||||
local lamp = block(m, "PlazaLantern", Vector3.new(0.8, 7, 0.8), Vector3.new(x, 3.5, z), Color3.fromRGB(58, 60, 78), Enum.Material.Metal)
|
||||
inkEdges(m, lamp)
|
||||
block(m, "LanternGlow", Vector3.new(2, 1.5, 2), Vector3.new(x, 7.3, z), Color3.fromRGB(255, 218, 145), Enum.Material.Neon)
|
||||
end
|
||||
end
|
||||
end)
|
||||
|
||||
prefab("RoadCorner", Vector3.new(40, 1, 40), function(m, root)
|
||||
local roadX = block(m, "RoadX", Vector3.new(40, 0.3, 12), Vector3.new(0, -0.35, 0), road, Enum.Material.Asphalt)
|
||||
local roadZ = block(m, "RoadZ", Vector3.new(12, 0.3, 40), Vector3.new(0, -0.35, 0), road, Enum.Material.Asphalt)
|
||||
inkEdges(m, roadX)
|
||||
inkEdges(m, roadZ)
|
||||
connector(m, "North", Vector3.new(0, 0, -20), -Vector3.zAxis)
|
||||
connector(m, "East", Vector3.new(20, 0, 0), -Vector3.xAxis)
|
||||
end)
|
||||
|
||||
prefab("OpenLot", Vector3.new(40, 1, 40), function(m, root)
|
||||
block(m, "Paving", Vector3.new(39.8, 0.25, 39.8), Vector3.new(0, -0.22, 0), Color3.fromRGB(222, 202, 190), Enum.Material.Concrete)
|
||||
connector(m, "North", Vector3.new(0, 0, -20), -Vector3.zAxis)
|
||||
connector(m, "East", Vector3.new(20, 0, 0), -Vector3.xAxis)
|
||||
connector(m, "South", Vector3.new(0, 0, 20), Vector3.zAxis)
|
||||
connector(m, "West", Vector3.new(-20, 0, 0), Vector3.xAxis)
|
||||
end)
|
||||
|
||||
prefab("Courtyard", Vector3.new(40, 1, 40), function(m, root)
|
||||
block(m, "Ground", Vector3.new(34, 0.5, 34), Vector3.new(0, 0.25, 0), Color3.fromRGB(216, 199, 183), Enum.Material.Concrete)
|
||||
for _, p in {{-14, -14}, {14, -14}, {-14, 14}, {14, 14}} do
|
||||
local pillar = wallPanel(m, "Pillar", Vector3.new(3, 8, 3), Vector3.new(p[1], 4, p[2]))
|
||||
gridTexture(pillar, 5, Color3.fromRGB(205, 209, 244))
|
||||
end
|
||||
connector(m, "South", Vector3.new(0, 0, 20), Vector3.zAxis)
|
||||
connector(m, "West", Vector3.new(-20, 0, 0), Vector3.xAxis)
|
||||
end)
|
||||
|
||||
local function house(name: string, style: number)
|
||||
prefab(name, Vector3.new(40, 1, 40), function(m, root)
|
||||
local wallColor = if style == 1 then Color3.fromRGB(220, 207, 195) elseif style == 2 then Color3.fromRGB(199, 207, 229) else Color3.fromRGB(225, 190, 167)
|
||||
wallPanel(m, "RearFacadeLeft", Vector3.new(10, 16, 2), Vector3.new(-10, 8, -14)).Color = wallColor
|
||||
wallPanel(m, "RearFacadeRight", Vector3.new(10, 16, 2), Vector3.new(10, 8, -14)).Color = wallColor
|
||||
local left = wallPanel(m, "LeftFacade", Vector3.new(2, 16, 28), Vector3.new(-14, 8, 0))
|
||||
left.Color = wallColor
|
||||
local right = wallPanel(m, "RightFacade", Vector3.new(2, 16, 28), Vector3.new(14, 8, 0))
|
||||
right.Color = wallColor
|
||||
wallPanel(m, "FrontLeft", Vector3.new(10, 16, 2), Vector3.new(-10, 8, 14)).Color = wallColor
|
||||
wallPanel(m, "FrontRight", Vector3.new(10, 16, 2), Vector3.new(10, 8, 14)).Color = wallColor
|
||||
block(m, "InteriorFloor", Vector3.new(25, 0.3, 25), Vector3.new(0, -0.08, 0), Color3.fromRGB(218, 197, 183), Enum.Material.Concrete)
|
||||
local roofPart = block(m, "OverhangingRoof", Vector3.new(36, 1.2, 34), Vector3.new(0, 16.8, 0), roof, Enum.Material.Slate)
|
||||
inkEdges(m, roofPart)
|
||||
for _, panelData in {
|
||||
{"UpperRear", Vector3.new(22, 7, 1.2), Vector3.new(0, 20.9, -11.4)},
|
||||
{"UpperLeft", Vector3.new(1.2, 7, 18), Vector3.new(-10.4, 20.9, -2)},
|
||||
{"UpperRight", Vector3.new(1.2, 7, 18), Vector3.new(10.4, 20.9, -2)},
|
||||
{"UpperFrontLeft", Vector3.new(7, 7, 1.2), Vector3.new(-7.5, 20.9, 7.4)},
|
||||
{"UpperFrontRight", Vector3.new(7, 7, 1.2), Vector3.new(7.5, 20.9, 7.4)},
|
||||
} do
|
||||
local upperWall = wallPanel(m, panelData[1], panelData[2], panelData[3])
|
||||
upperWall.Color = wallColor
|
||||
end
|
||||
local topRoof = block(m, "UpperRoof", Vector3.new(26, 0.8, 24), Vector3.new(0, 24.8, -2), accent, Enum.Material.Slate)
|
||||
inkEdges(m, topRoof)
|
||||
for _, x in {-8, 8} do
|
||||
local window = block(m, "Window", Vector3.new(5, 4, 0.18), Vector3.new(x, 9, 14.96), Color3.fromRGB(151, 205, 220), Enum.Material.Glass)
|
||||
window.Transparency = 0.25
|
||||
inkEdges(m, window)
|
||||
block(m, "WindowSill", Vector3.new(6, 0.35, 0.5), Vector3.new(x, 6.8, 14.8), accent, Enum.Material.Wood)
|
||||
end
|
||||
local door = block(m, "Door", Vector3.new(5, 10, 0.3), Vector3.new(0, 5, 14.95), Color3.fromRGB(127, 78, 63), Enum.Material.Wood)
|
||||
door.CanCollide = false
|
||||
inkEdges(m, door)
|
||||
local porch = block(m, "Porch", Vector3.new(12, 0.6, 5), Vector3.new(0, 0.2, 17), Color3.fromRGB(221, 195, 178), Enum.Material.Concrete)
|
||||
inkEdges(m, porch)
|
||||
-- Exterior steps lead to the broad first roof; a second stair continues to the rooftop.
|
||||
for step = 0, 14 do
|
||||
block(m, "RoofAccessStep", Vector3.new(5.2, 1.1, 2.25), Vector3.new(17.2, 0.55 + step * 1.1, 14 - step * 2.1), accent, Enum.Material.Metal)
|
||||
end
|
||||
for step = 0, 6 do
|
||||
block(m, "UpperRoofStep", Vector3.new(2.2, 1.1, 2.25), Vector3.new(12.5, 17.95 + step * 1.1, 7 - step * 2.2), roof, Enum.Material.Metal)
|
||||
end
|
||||
connector(m, "North", Vector3.new(0, 0, -20), -Vector3.zAxis)
|
||||
connector(m, "South", Vector3.new(0, 0, 20), Vector3.zAxis)
|
||||
end)
|
||||
end
|
||||
house("HouseWarm", 1)
|
||||
house("HouseBlue", 2)
|
||||
house("HouseTerracotta", 3)
|
||||
|
||||
prefab("Skybridge", Vector3.new(40, 1, 40), function(m, root)
|
||||
local deck = block(m, "BridgeDeck", Vector3.new(43, 0.8, 8), Vector3.new(0, 17.7, 0), Color3.fromRGB(178, 184, 220), Enum.Material.Concrete)
|
||||
inkEdges(m, deck)
|
||||
for _, z in {-4, 4} do
|
||||
block(m, "BridgeRail", Vector3.new(43, 2.2, 0.45), Vector3.new(0, 19.2, z), Color3.fromRGB(93, 95, 126), Enum.Material.Metal)
|
||||
end
|
||||
for _, x in {-15, 15} do
|
||||
block(m, "BridgeInkMark", Vector3.new(0.45, 0.04, 5.5), Vector3.new(x, 18.13, 0), accent, Enum.Material.SmoothPlastic)
|
||||
end
|
||||
end)
|
||||
|
||||
prefab("Tree", Vector3.new(40, 1, 40), function(m, root)
|
||||
local foliageRng = Random.new(DateTime.now().UnixTimestampMillis % 2147483647)
|
||||
local trunk = block(m, "Trunk", Vector3.new(2.5, 10, 2.5), Vector3.new(0, 5, 0), Color3.fromRGB(120, 83, 65), Enum.Material.Wood)
|
||||
inkEdges(m, trunk)
|
||||
for _, crown in {{0, 12, 0, 13}, {-4, 10, 2, 9}, {4, 11, -2, 10}, {1, 16, 1, 8}} do
|
||||
local foliage = Instance.new("Part")
|
||||
foliage.Name = "PaperLeafCanopy"
|
||||
foliage.Shape = Enum.PartType.Ball
|
||||
foliage.Size = Vector3.new(crown[4], crown[4] * 0.82, crown[4])
|
||||
foliage.Position = Vector3.new(crown[1], crown[2], crown[3])
|
||||
foliage.Anchored = true
|
||||
foliage.CanCollide = true
|
||||
foliage.Color = Color3.fromRGB(foliageRng:NextInteger(123, 158), 157, 137)
|
||||
foliage.Material = Enum.Material.SmoothPlastic
|
||||
foliage.Parent = m
|
||||
inkEdges(m, foliage)
|
||||
end
|
||||
block(m, "Planter", Vector3.new(10, 1, 10), Vector3.new(0, 0.1, 0), Color3.fromRGB(186, 170, 160), Enum.Material.Concrete)
|
||||
end)
|
||||
|
||||
prefab("StreetLamp", Vector3.new(40, 1, 40), function(m, root)
|
||||
local post = block(m, "LampPost", Vector3.new(0.7, 12, 0.7), Vector3.new(0, 6, 0), Color3.fromRGB(58, 60, 78), Enum.Material.Metal)
|
||||
inkEdges(m, post)
|
||||
local arm = block(m, "LampArm", Vector3.new(4, 0.6, 0.6), Vector3.new(1.6, 11.7, 0), Color3.fromRGB(58, 60, 78), Enum.Material.Metal)
|
||||
inkEdges(m, arm)
|
||||
local lamp = block(m, "WarmLamp", Vector3.new(2, 0.5, 1.5), Vector3.new(2.8, 11.2, 0), Color3.fromRGB(255, 218, 145), Enum.Material.Neon)
|
||||
inkEdges(m, lamp)
|
||||
end)
|
||||
|
||||
prefab("RoofRamp", Vector3.new(40, 1, 40), function(m, root)
|
||||
local slope = Instance.new("WedgePart")
|
||||
slope.Name = "RoofAccessRamp"
|
||||
slope.Size = Vector3.new(12, 18, 34)
|
||||
slope.CFrame = CFrame.new(0, 9, 0) * CFrame.Angles(0, math.rad(90), 0)
|
||||
slope.Anchored = true
|
||||
slope.Color = accent
|
||||
slope.Material = Enum.Material.Metal
|
||||
slope.Parent = m
|
||||
block(m, "LowerLanding", Vector3.new(14, 0.6, 8), Vector3.new(0, 0.3, 16), Color3.fromRGB(221, 195, 178), Enum.Material.Concrete)
|
||||
block(m, "UpperLanding", Vector3.new(14, 0.6, 8), Vector3.new(0, 9.3, -16), roof, Enum.Material.Slate)
|
||||
connector(m, "Lower", Vector3.new(0, 0, 20), Vector3.zAxis)
|
||||
connector(m, "Upper", Vector3.new(0, 9, -20), -Vector3.zAxis)
|
||||
end)
|
||||
|
||||
prefab("Barricade", Vector3.new(40, 1, 40), function(m, root)
|
||||
local body = block(m, "ConcreteBlock", Vector3.new(13, 5, 4), Vector3.new(0, 2.5, 0), Color3.fromRGB(221, 139, 104), Enum.Material.Concrete)
|
||||
gridTexture(body, 6, Color3.fromRGB(255, 204, 157))
|
||||
inkEdges(m, body)
|
||||
for x = -4, 4, 4 do
|
||||
block(m, "PaintStripe", Vector3.new(1.2, 5.1, 4.1), Vector3.new(x, 2.5, 0), Color3.fromRGB(244, 211, 172), Enum.Material.SmoothPlastic)
|
||||
end
|
||||
connector(m, "West", Vector3.new(-20, 0, 0), Vector3.xAxis)
|
||||
connector(m, "East", Vector3.new(20, 0, 0), -Vector3.xAxis)
|
||||
end)
|
||||
|
||||
prefab("Building", Vector3.new(40, 1, 40), function(m, root)
|
||||
wallPanel(m, "BuildingLeft", Vector3.new(14, 14, 28), Vector3.new(-13, 7, 0))
|
||||
wallPanel(m, "BuildingRight", Vector3.new(14, 14, 28), Vector3.new(13, 7, 0))
|
||||
wallPanel(m, "RearWall", Vector3.new(28, 14, 2), Vector3.new(0, 7, -14))
|
||||
wallPanel(m, "FrontLeft", Vector3.new(9, 14, 2), Vector3.new(-9.5, 7, 14))
|
||||
wallPanel(m, "FrontRight", Vector3.new(9, 14, 2), Vector3.new(9.5, 7, 14))
|
||||
block(m, "Roof", Vector3.new(34, 1, 30), Vector3.new(0, 14.5, 0), roof, Enum.Material.Metal)
|
||||
block(m, "PassageFloor", Vector3.new(10, 0.5, 28), Vector3.new(0, 0.25, 0), Color3.fromRGB(221, 195, 178), Enum.Material.Concrete)
|
||||
block(m, "OrangeCover", Vector3.new(9, 12, 7), Vector3.new(0, 6, 3), accent, Enum.Material.SmoothPlastic)
|
||||
connector(m, "North", Vector3.new(0, 0, -20), -Vector3.zAxis)
|
||||
connector(m, "South", Vector3.new(0, 0, 20), Vector3.zAxis)
|
||||
end)
|
||||
|
||||
prefab("Alley", Vector3.new(40, 1, 40), function(m, root)
|
||||
block(m, "AlleyFloor", Vector3.new(14, 0.4, 40), Vector3.new(0, 0, 0), Color3.fromRGB(225, 199, 181), Enum.Material.Concrete)
|
||||
wallPanel(m, "WestWall", Vector3.new(2, 16, 40), Vector3.new(-18, 8, 0))
|
||||
wallPanel(m, "EastWall", Vector3.new(2, 16, 40), Vector3.new(18, 8, 0))
|
||||
local orangeBlock = block(m, "OrangeBlock", Vector3.new(7, 10, 7), Vector3.new(-5, 5, -5), accent, Enum.Material.SmoothPlastic)
|
||||
gridTexture(orangeBlock, 6, Color3.fromRGB(255, 204, 157))
|
||||
inkEdges(m, orangeBlock)
|
||||
block(m, "LowDetour", Vector3.new(4, 3, 10), Vector3.new(5, 1.5, 8), roof, Enum.Material.Metal)
|
||||
connector(m, "North", Vector3.new(0, 0, -20), -Vector3.zAxis)
|
||||
connector(m, "South", Vector3.new(0, 0, 20), Vector3.zAxis)
|
||||
end)
|
||||
|
||||
prefab("Ramp", Vector3.new(40, 1, 40), function(m, root)
|
||||
local ramp = Instance.new("WedgePart")
|
||||
ramp.Name, ramp.Size, ramp.Position = "Ramp", Vector3.new(12, 10, 30), Vector3.new(0, 5, 0)
|
||||
ramp.Anchored, ramp.Color, ramp.Material, ramp.Parent = true, accent, Enum.Material.Metal, m
|
||||
block(m, "Landing", Vector3.new(18, 1, 10), Vector3.new(0, 10, -13), roof, Enum.Material.Metal)
|
||||
connector(m, "South", Vector3.new(0, 0, 20), Vector3.zAxis)
|
||||
connector(m, "North", Vector3.new(0, 10, -20), -Vector3.zAxis)
|
||||
end)
|
||||
|
||||
pool:SetAttribute("PrefabCount", #pool:GetChildren())
|
||||
|
||||
pool:SetAttribute("Ready", true)
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
--!strict
|
||||
-- Script in ServerScriptService.
|
||||
-- Spawns players immediately in the Hunter lobby without equipping a weapon.
|
||||
|
||||
local Players = game:GetService("Players")
|
||||
Players.CharacterAutoLoads = true
|
||||
|
||||
local lobby = workspace:WaitForChild("HunterLobby")
|
||||
local lobbySpawn = lobby:WaitForChild("Arrival Spawn") :: SpawnLocation
|
||||
|
||||
local function onCharacterAdded(player: Player, character: Model)
|
||||
task.defer(function()
|
||||
task.wait(0.2)
|
||||
if character.Parent then
|
||||
character:PivotTo(lobbySpawn.CFrame + Vector3.new(0, 4, 0))
|
||||
end
|
||||
end)
|
||||
end
|
||||
|
||||
local function onPlayerAdded(player: Player)
|
||||
player.CharacterAdded:Connect(function(character)
|
||||
onCharacterAdded(player, character)
|
||||
end)
|
||||
if player.Character then
|
||||
onCharacterAdded(player, player.Character)
|
||||
end
|
||||
end
|
||||
|
||||
Players.PlayerAdded:Connect(onPlayerAdded)
|
||||
for _, player in Players:GetPlayers() do
|
||||
onPlayerAdded(player)
|
||||
end
|
||||
@@ -0,0 +1,54 @@
|
||||
--!strict
|
||||
-- Lobby gateways send a player into the current server's generated GameZone.
|
||||
|
||||
local Players = game:GetService("Players")
|
||||
local Workspace = game:GetService("Workspace")
|
||||
|
||||
local lobby = Workspace:WaitForChild("HunterLobby")
|
||||
local zone = Workspace:WaitForChild("GameZone")
|
||||
while zone:GetAttribute("Ready") ~= true do
|
||||
task.wait()
|
||||
end
|
||||
|
||||
local destination = Vector3.new(0, 4, -180)
|
||||
local cooldown: { [Player]: boolean } = {}
|
||||
|
||||
local function teleport(hit: BasePart)
|
||||
local character = hit:FindFirstAncestorOfClass("Model")
|
||||
local player = character and Players:GetPlayerFromCharacter(character)
|
||||
local humanoid = character and character:FindFirstChildOfClass("Humanoid")
|
||||
if not player or not character or not humanoid or cooldown[player] then
|
||||
return
|
||||
end
|
||||
cooldown[player] = true
|
||||
character:PivotTo(CFrame.new(destination))
|
||||
local backpack = player:FindFirstChildOfClass("Backpack")
|
||||
local tool = backpack and backpack:FindFirstChild("SniperRifle")
|
||||
if tool and tool:IsA("Tool") then
|
||||
humanoid:EquipTool(tool)
|
||||
end
|
||||
task.delay(1.5, function()
|
||||
cooldown[player] = nil
|
||||
end)
|
||||
end
|
||||
|
||||
for _, name in { "Arena Gateway_001", "Training Gateway_001", "Duel Gateway_001" } do
|
||||
local gateway = lobby:WaitForChild(name)
|
||||
local cf, size = gateway:GetBoundingBox()
|
||||
local trigger = Instance.new("Part")
|
||||
trigger.Name = name .. " Teleport Trigger"
|
||||
trigger.Size = Vector3.new(math.min(size.X - 4, 18), 5, math.min(size.Z - 4, 18))
|
||||
trigger.CFrame = CFrame.new(cf.Position.X, 2.5, cf.Position.Z)
|
||||
trigger.Transparency = 1
|
||||
trigger.Anchored = true
|
||||
trigger.CanCollide = false
|
||||
trigger.CanTouch = true
|
||||
trigger.Parent = gateway
|
||||
trigger.Touched:Connect(teleport)
|
||||
end
|
||||
|
||||
Players.PlayerRemoving:Connect(function(player)
|
||||
cooldown[player] = nil
|
||||
end)
|
||||
|
||||
|
||||
@@ -0,0 +1,159 @@
|
||||
--!strict
|
||||
-- Builds a seeded 520x520 arena from connected 40-stud city modules.
|
||||
|
||||
local Workspace = game:GetService("Workspace")
|
||||
local ServerStorage = game:GetService("ServerStorage")
|
||||
local SIZE = 520
|
||||
local GRID_RADIUS = 6
|
||||
local STEP = 40
|
||||
local CENTER = Vector3.new(0, 0, -420)
|
||||
local rng = Random.new(DateTime.now().UnixTimestampMillis % 2147483647)
|
||||
local pool = ServerStorage:WaitForChild("GameZonePrefabs")
|
||||
while pool:GetAttribute("Ready") ~= true do
|
||||
task.wait()
|
||||
end
|
||||
|
||||
local old = Workspace:FindFirstChild("GameZone")
|
||||
if old then old:Destroy() end
|
||||
local zone = Instance.new("Folder")
|
||||
zone.Name = "GameZone"
|
||||
zone:SetAttribute("Size", SIZE)
|
||||
zone:SetAttribute("GridCells", GRID_RADIUS * 2 + 1)
|
||||
zone:SetAttribute("Seed", rng:NextInteger(1, 2147483646))
|
||||
zone:SetAttribute("Ready", false)
|
||||
zone.Parent = Workspace
|
||||
|
||||
local function block(name: string, size: Vector3, position: Vector3, color: Color3, material: Enum.Material): Part
|
||||
local p = Instance.new("Part")
|
||||
p.Name, p.Size, p.Position = name, size, position
|
||||
p.Anchored, p.CanCollide, p.Color, p.Material = true, true, color, material
|
||||
p.Parent = zone
|
||||
return p
|
||||
end
|
||||
|
||||
local function cloneAt(kind: string, name: string, position: Vector3, yaw: number?): Model?
|
||||
local source = pool:FindFirstChild(kind)
|
||||
if not source or not source:IsA("Model") then return nil end
|
||||
local model = source:Clone()
|
||||
model.Name = name
|
||||
model:PivotTo(CFrame.new(position) * CFrame.Angles(0, yaw or 0, 0))
|
||||
for _, item in model:GetDescendants() do
|
||||
if item:IsA("BasePart") and item:GetAttribute("PrefabRoot") then item:Destroy() end
|
||||
end
|
||||
model.Parent = zone
|
||||
return model
|
||||
end
|
||||
|
||||
local function addInkOutline(model: Model)
|
||||
for _, source in model:GetDescendants() do
|
||||
if source:IsA("BasePart") and source.Name ~= "Root" and source.Size.Magnitude >= 12 then
|
||||
local outline = Instance.new("Part")
|
||||
outline.Name = "PencilEdge"
|
||||
outline.Size = source.Size + Vector3.new(0.08, 0.08, 0.08)
|
||||
outline.CFrame = source.CFrame
|
||||
outline.Anchored, outline.CanCollide, outline.CanQuery, outline.CanTouch = true, false, false, false
|
||||
outline.Transparency = 1
|
||||
outline.Parent = model
|
||||
local box = Instance.new("SelectionBox")
|
||||
box.Name, box.Adornee = "PencilLine", outline
|
||||
box.Color3, box.LineThickness, box.SurfaceTransparency = Color3.fromRGB(48, 47, 67), 0.012, 1
|
||||
box.Parent = model
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
local edge = SIZE / 2
|
||||
local boundary = Color3.fromRGB(86, 91, 99)
|
||||
block("North Skyline Wall", Vector3.new(SIZE, 42, 4), CENTER + Vector3.new(0, 21, -edge), boundary, Enum.Material.Concrete)
|
||||
block("West Skyline Wall", Vector3.new(4, 42, SIZE), CENTER + Vector3.new(-edge, 21, 0), boundary, Enum.Material.Concrete)
|
||||
block("East Skyline Wall", Vector3.new(4, 42, SIZE), CENTER + Vector3.new(edge, 21, 0), boundary, Enum.Material.Concrete)
|
||||
-- Keep the south boulevard open as the one clear portal entrance.
|
||||
block("South Skyline West", Vector3.new(edge - 24, 42, 4), CENTER + Vector3.new(-edge / 2 - 12, 21, edge), boundary, Enum.Material.Concrete)
|
||||
block("South Skyline East", Vector3.new(edge - 24, 42, 4), CENTER + Vector3.new(edge / 2 + 12, 21, edge), boundary, Enum.Material.Concrete)
|
||||
|
||||
local function onMainStreet(value: number): boolean
|
||||
return value == -3 or value == 0 or value == 3
|
||||
end
|
||||
|
||||
local houseKinds = { "HouseWarm", "HouseBlue", "HouseTerracotta" }
|
||||
local lotKinds = { "House", "House", "House", "Courtyard", "Alley", "OpenLot" }
|
||||
local roadCells = 0
|
||||
local houseCount = 0
|
||||
local bridgeCells: { [number]: { [number]: boolean } } = { [-3] = { [-1] = true }, [3] = { [1] = true } }
|
||||
|
||||
for row = -GRID_RADIUS, GRID_RADIUS do
|
||||
for col = -GRID_RADIUS, GRID_RADIUS do
|
||||
local isStreet = onMainStreet(row) or onMainStreet(col)
|
||||
local position = CENTER + Vector3.new(col * STEP, 0, row * STEP)
|
||||
if isStreet then
|
||||
roadCells += 1
|
||||
if row == 0 and col == 0 then
|
||||
cloneAt("Plaza", "Central Fountain Plaza", position)
|
||||
elseif onMainStreet(row) and onMainStreet(col) then
|
||||
cloneAt("RoadIntersection", ("Intersection_%d_%d"):format(row, col), position)
|
||||
else
|
||||
local vertical = onMainStreet(col)
|
||||
local yaw = if vertical then math.rad(90) else 0
|
||||
local bridgeRow = bridgeCells[col]
|
||||
if bridgeRow and bridgeRow[row] then
|
||||
local bridge = cloneAt("Skybridge", ("RooftopBridge_%d_%d"):format(row, col), position)
|
||||
if bridge then bridge:PivotTo(CFrame.new(position + Vector3.new(0, 17.7, 0))) end
|
||||
end
|
||||
cloneAt("RoadStraight", ("Street_%d_%d"):format(row, col), position, yaw)
|
||||
end
|
||||
else
|
||||
-- A connected street grid surrounds compact blocks; controlled variation keeps every server's districts distinct.
|
||||
block(("DistrictPaving_%d_%d"):format(row, col), Vector3.new(39.7, 0.2, 39.7), position + Vector3.new(0, -0.25, 0), Color3.fromRGB(222, 202, 190), Enum.Material.Concrete)
|
||||
local pick = rng:NextInteger(1, #lotKinds)
|
||||
local lotType = lotKinds[pick]
|
||||
local kind = if lotType == "House" then houseKinds[rng:NextInteger(1, #houseKinds)] else lotType
|
||||
if math.abs(row) == 5 or math.abs(col) == 5 then
|
||||
kind = if rng:NextNumber() < 0.72 then houseKinds[rng:NextInteger(1, #houseKinds)] else "Courtyard"
|
||||
end
|
||||
local yaw = if kind == "Alley" and rng:NextNumber() < 0.5 then math.rad(90) else 0
|
||||
local tile = cloneAt(kind, ("Block_%s_%d_%d"):format(kind, row, col), position, yaw)
|
||||
if tile then
|
||||
tile:SetAttribute("GridX", col)
|
||||
tile:SetAttribute("GridZ", row)
|
||||
tile:SetAttribute("TileKind", kind)
|
||||
if kind:match("^House") then
|
||||
houseCount += 1
|
||||
addInkOutline(tile)
|
||||
end
|
||||
end
|
||||
if kind == "Courtyard" or kind == "OpenLot" then
|
||||
for _, offset in { {-14, -14}, {14, -14}, {-14, 14}, {14, 14} } do
|
||||
if rng:NextNumber() < 0.72 then
|
||||
local propName = if rng:NextNumber() < 0.72 then "Tree" else "StreetLamp"
|
||||
cloneAt(propName, ("%s_%d_%d_%d"):format(propName, row, col, rng:NextInteger(1, 99)), position + Vector3.new(offset[1], 0, offset[2]))
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
task.wait()
|
||||
end
|
||||
|
||||
-- Entry arch frames the south boulevard and stays clear of the portal's landing point.
|
||||
local archBase = CENTER + Vector3.new(0, 0, edge - 24)
|
||||
block("Entry Arch Left", Vector3.new(5, 24, 7), archBase + Vector3.new(-19, 12, 0), Color3.fromRGB(178, 184, 220), Enum.Material.Concrete)
|
||||
block("Entry Arch Right", Vector3.new(5, 24, 7), archBase + Vector3.new(19, 12, 0), Color3.fromRGB(178, 184, 220), Enum.Material.Concrete)
|
||||
block("Entry Arch Header", Vector3.new(43, 5, 8), archBase + Vector3.new(0, 25, 0), Color3.fromRGB(178, 184, 220), Enum.Material.Concrete)
|
||||
block("Entry Arch Ink", Vector3.new(45, 0.25, 0.35), archBase + Vector3.new(0, 27.7, 4.1), Color3.fromRGB(48, 47, 67), Enum.Material.SmoothPlastic)
|
||||
|
||||
local botSpawns = Workspace:FindFirstChild("BotSpawns")
|
||||
local spawnCells = { {0, -5}, {0, -2}, {0, 2}, {0, 5}, {-5, 0}, {5, 0}, {-3, 2}, {3, -2} }
|
||||
if botSpawns and botSpawns:IsA("Folder") then
|
||||
for index, marker in botSpawns:GetChildren() do
|
||||
if marker:IsA("BasePart") then
|
||||
local cell = spawnCells[((index - 1) % #spawnCells) + 1]
|
||||
marker.CFrame = CFrame.new(CENTER + Vector3.new(cell[1] * STEP, 2, cell[2] * STEP))
|
||||
marker:SetAttribute("Zone", "Game")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
zone:SetAttribute("RoadCells", roadCells)
|
||||
zone:SetAttribute("HouseCount", houseCount)
|
||||
zone:SetAttribute("Ready", true)
|
||||
|
||||
@@ -0,0 +1,49 @@
|
||||
--!strict
|
||||
-- Script in ServerScriptService.
|
||||
-- Target bots: a copy of ServerStorage.TargetBot stands on every part in Workspace.BotSpawns
|
||||
-- (move / add / remove those parts to place them; each bot faces where its part faces).
|
||||
-- They do nothing but stand and take bullets (SniperShots deals the damage to models tagged
|
||||
-- "TargetBot"); a dead bot falls apart and a new one stands up on the same spot after RESPAWN_TIME.
|
||||
|
||||
local CollectionService = game:GetService("CollectionService")
|
||||
local ServerStorage = game:GetService("ServerStorage")
|
||||
|
||||
local TAG = "TargetBot"
|
||||
local RESPAWN_TIME = 4
|
||||
local template = ServerStorage:WaitForChild("TargetBot") :: Model
|
||||
local gameZone = workspace:WaitForChild("GameZone")
|
||||
while gameZone:GetAttribute("Ready") ~= true do task.wait() end
|
||||
local spawns = workspace:WaitForChild("BotSpawns")
|
||||
|
||||
local botsFolder = Instance.new("Folder")
|
||||
botsFolder.Name = "TargetBots"
|
||||
botsFolder.Parent = workspace
|
||||
|
||||
local function spawnBot(marker: BasePart)
|
||||
local bot = template:Clone()
|
||||
local root = bot:FindFirstChild("HumanoidRootPart") :: BasePart
|
||||
local humanoid = bot:FindFirstChildOfClass("Humanoid") :: Humanoid
|
||||
-- feet on the marker: the root sits half its height plus the hip height above the ground
|
||||
local lift = root.Size.Y / 2 + humanoid.HipHeight
|
||||
bot:PivotTo(marker.CFrame * CFrame.new(0, lift - marker.Size.Y / 2, 0))
|
||||
root.Anchored = true -- stands still, cannot be pushed over
|
||||
bot.Name = "Bot_" .. marker.Name
|
||||
CollectionService:AddTag(bot, TAG)
|
||||
bot.Parent = botsFolder
|
||||
humanoid.Died:Once(function()
|
||||
root.Anchored = false -- let the body fall
|
||||
task.delay(RESPAWN_TIME, function()
|
||||
bot:Destroy()
|
||||
if marker.Parent then
|
||||
spawnBot(marker)
|
||||
end
|
||||
end)
|
||||
end)
|
||||
end
|
||||
|
||||
for _, marker in spawns:GetChildren() do
|
||||
if marker:IsA("BasePart") then
|
||||
spawnBot(marker)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
{"content":[{"type":"text","text":"{\"botChanges\":[{\"before\":[1740.495361328125,7.560688495635986,239.5489044189453,-0.880471408367157,-0.0002455839712638408,0.4740999937057495,-0.00013392482651397586,1.0000003576278687,0.00026928301667794585,-0.4740998446941376,0.00017360225319862366,-0.8804711103439331],\"name\":\"BotSpawn3\",\"after\":[1740.495361328125,8.060686111450196,239.5490264892578,-0.880471408367157,-0.0002455839712638408,0.4740999937057495,-0.00013392482651397586,1.0000003576278687,0.00026928301667794585,-0.4740998446941376,0.00017360225319862366,-0.8804711103439331]},{\"before\":[1730.495361328125,7.565176486968994,199.5489044189453,-0.9981689453125,-0.0002455839712638408,0.060495052486658099,-0.00023463212710339576,1.0000003576278687,0.0001881408243207261,-0.060495078563690189,0.00017360225319862366,-0.9981684684753418],\"name\":\"BotSpawn5\",\"after\":[1730.495361328125,8.065174102783204,199.5489959716797,-0.9981689453125,-0.0002455839712638408,0.060495052486658099,-0.00023463212710339576,1.0000003576278687,0.0001881408243207261,-0.060495078563690189,0.00017360225319862366,-0.9981684684753418]},{\"before\":[1705.495361328125,7.557301044464111,209.5489044189453,-0.9363296031951904,-0.00024558400036767125,-0.3511236011981964,-0.0002909032627940178,1.0000004768371583,0.00007631848711753264,0.3511234521865845,0.00017360226775053889,-0.9363292455673218],\"name\":\"BotSpawn4\",\"after\":[1705.495361328125,8.05729866027832,209.5489959716797,-0.9363296031951904,-0.00024558400036767125,-0.3511236011981964,-0.0002909032627940178,1.0000004768371583,0.00007631848711753264,0.3511234521865845,0.00017360226775053889,-0.9363292455673218]},{\"before\":[1750.495361328125,7.569220542907715,204.5489044189453,-0.9305663108825684,-0.0002455839712638408,0.36612439155578616,-0.00016497210890520364,1.0000003576278687,0.00025146250845864415,-0.36612430214881899,0.00017360225319862366,-0.9305659532546997],\"name\":\"BotSpawn6\",\"after\":[1750.495361328125,8.069217681884766,204.5489959716797,-0.9305663108825684,-0.0002455839712638408,0.36612439155578616,-0.00016497210890520364,1.0000003576278687,0.00025146250845864415,-0.36612430214881899,0.00017360225319862366,-0.9305659532546997]},{\"before\":[1715.495361328125,7.568437099456787,159.5489044189453,-0.9946590662002564,-0.00024558400036767125,-0.10321935266256333,-0.000262191315414384,1.0000004768371583,0.0001473258889745921,0.10321928560733795,0.00017360226775053889,-0.9946585893630981],\"name\":\"BotSpawn7\",\"after\":[1715.495361328125,8.068434715270996,159.54896545410157,-0.9946590662002564,-0.00024558400036767125,-0.10321935266256333,-0.000262191315414384,1.0000004768371583,0.0001473258889745921,0.10321928560733795,0.00017360226775053889,-0.9946585893630981]},{\"before\":[1726.495361328125,7.5581183433532719,234.5489044189453,-1,-0.0002455839712638408,0,-0.0002455839712638408,1,0.0001736021658871323,0,0.00017360225319862366,-1],\"name\":\"BotSpawn2\",\"after\":[1726.495361328125,8.05811595916748,234.5490264892578,-1,-0.0002455839712638408,0,-0.0002455839712638408,1,0.0001736021658871323,0,0.00017360225319862366,-1]},{\"before\":[1712.495361328125,7.553812026977539,239.5489044189453,-0.880471408367157,-0.0002455839712638408,-0.4741000533103943,-0.0002985343453474343,1.0000003576278687,0.00003642036608653143,0.4740998446941376,0.00017360225319862366,-0.8804711103439331],\"name\":\"BotSpawn1\",\"after\":[1712.495361328125,8.053810119628907,239.5490264892578,-0.880471408367157,-0.0002455839712638408,-0.4741000533103943,-0.0002985343453474343,1.0000003576278687,0.00003642036608653143,0.4740998446941376,0.00017360225319862366,-0.8804711103439331]},{\"before\":[25,0.10000000149011612,-120,-0.9868499636650086,0,0.16163921356201173,0,1.0000001192092896,-0,-0.16163921356201173,0,-0.9868499636650086],\"name\":\"BotSpawn8\",\"after\":[1712.0001220703126,8.075840950012207,-200.00009155273438,-0.9868499636650086,0,0.16163921356201173,0,1.0000001192092896,0,-0.16163921356201173,0,-0.9868499636650086]}],\"spawns\":12}"}],"isError":false}
|
||||
@@ -0,0 +1,36 @@
|
||||
--!strict
|
||||
-- Initial spawn is in the lobby; players who entered a portal respawn in the arena.
|
||||
local Players = game:GetService("Players")
|
||||
local ArenaSpawns = require(script.Parent:WaitForChild("ArenaSpawns"))
|
||||
local lobbySpawn = workspace:WaitForChild("HunterLobby"):WaitForChild("Arrival Spawn") :: SpawnLocation
|
||||
|
||||
local function onCharacterAdded(player: Player, character: Model)
|
||||
local root = character:WaitForChild("HumanoidRootPart", 10)
|
||||
local humanoid = character:WaitForChild("Humanoid", 10)
|
||||
if not root or not humanoid or not humanoid:IsA("Humanoid") or player.Character ~= character then return end
|
||||
local inArena = player:GetAttribute("InArena") == true
|
||||
local destination = if inArena then ArenaSpawns.choose(player) else lobbySpawn
|
||||
player.RespawnLocation = destination
|
||||
ArenaSpawns.place(character, destination)
|
||||
if inArena then
|
||||
local backpack = player:WaitForChild("Backpack", 5)
|
||||
local tool = backpack and backpack:WaitForChild("SniperRifle", 5)
|
||||
if tool and tool:IsA("Tool") and player.Character == character and humanoid.Health > 0 then
|
||||
humanoid:EquipTool(tool)
|
||||
end
|
||||
else
|
||||
humanoid:UnequipTools()
|
||||
end
|
||||
end
|
||||
|
||||
local function onPlayerAdded(player: Player)
|
||||
player:SetAttribute("InArena", false)
|
||||
player.RespawnLocation = lobbySpawn
|
||||
player.CharacterAdded:Connect(function(character)
|
||||
onCharacterAdded(player, character)
|
||||
end)
|
||||
if player.Character then task.spawn(onCharacterAdded, player, player.Character) end
|
||||
end
|
||||
|
||||
Players.PlayerAdded:Connect(onPlayerAdded)
|
||||
for _, player in Players:GetPlayers() do onPlayerAdded(player) end
|
||||
@@ -0,0 +1,40 @@
|
||||
--!strict
|
||||
-- All lobby gateways lead to validated spawn points on the imported static arena.
|
||||
local Players = game:GetService("Players")
|
||||
local ArenaSpawns = require(script.Parent:WaitForChild("ArenaSpawns"))
|
||||
local lobby = workspace:WaitForChild("HunterLobby")
|
||||
local cooldown: {[Player]: boolean} = {}
|
||||
|
||||
local function teleport(hit: BasePart)
|
||||
local character = hit:FindFirstAncestorOfClass("Model")
|
||||
local player = character and Players:GetPlayerFromCharacter(character)
|
||||
local humanoid = character and character:FindFirstChildOfClass("Humanoid")
|
||||
if not player or not character or not humanoid or humanoid.Health <= 0 or cooldown[player] then return end
|
||||
local destination = ArenaSpawns.choose(player)
|
||||
cooldown[player] = true
|
||||
player:SetAttribute("InArena", true)
|
||||
player.RespawnLocation = destination
|
||||
ArenaSpawns.place(character, destination)
|
||||
local backpack = player:FindFirstChildOfClass("Backpack")
|
||||
local tool = backpack and backpack:FindFirstChild("SniperRifle")
|
||||
if tool and tool:IsA("Tool") then humanoid:EquipTool(tool) end
|
||||
task.delay(1.5, function() cooldown[player] = nil end)
|
||||
end
|
||||
|
||||
for _, name in {"Arena Gateway_001", "Training Gateway_001", "Duel Gateway_001"} do
|
||||
local gateway = lobby:WaitForChild(name) :: Model
|
||||
local cf, size = gateway:GetBoundingBox()
|
||||
local trigger = Instance.new("Part")
|
||||
trigger.Name = name .. " Teleport Trigger"
|
||||
trigger.Size = Vector3.new(math.min(size.X - 4, 18), 5, math.min(size.Z - 4, 18))
|
||||
trigger.CFrame = CFrame.new(cf.Position.X, 2.5, cf.Position.Z)
|
||||
trigger.Transparency = 1
|
||||
trigger.Anchored = true
|
||||
trigger.CanCollide = false
|
||||
trigger.CanQuery = false
|
||||
trigger.CanTouch = true
|
||||
trigger.Parent = gateway
|
||||
trigger.Touched:Connect(teleport)
|
||||
end
|
||||
|
||||
Players.PlayerRemoving:Connect(function(player) cooldown[player] = nil end)
|
||||
@@ -0,0 +1,6 @@
|
||||
[mcp_servers.Roblox_Studio]
|
||||
command = "cmd.exe"
|
||||
args = [
|
||||
"/c",
|
||||
'cd /d %LOCALAPPDATA%\Roblox && .\mcp.bat',
|
||||
]
|
||||
@@ -0,0 +1,100 @@
|
||||
# Hunter compact context
|
||||
|
||||
## Current shape
|
||||
|
||||
Roblox hunter/shooter project. Main place: `Hunter.rbxl`. Gameplay and presentation logic is primarily in `scripts/`; weapon and first-person work includes sniper/rifle viewmodels, reloads, shots, sights, damage numbers, crosshair, kill feed, goggles, bots, and lighting.
|
||||
|
||||
## Working rules
|
||||
|
||||
- Keep server authority in `*.server.luau`; keep input/camera/UI in `*.client.luau`.
|
||||
- Treat Blender files, GLB exports, textures, renders, and `.rbxl` as binary assets; inspect through the relevant app or previews.
|
||||
- Prefer targeted changes and preserve existing working behavior.
|
||||
- For scene modeling, textures are visual only; use mesh/collision-proxy geometry and run `blender/check_collisions.py` before export.
|
||||
- Luau quality baseline: `--!strict`, server-authoritative remotes, finite/range/state validation, and cleanup of long-lived frame connections.
|
||||
|
||||
## Active decisions
|
||||
|
||||
- `Hunter.rbxl` runs one arena per server, `workspace.ProceduralArena` at (6500, 8, 0). The retired `HunterMonolithImport` model and its bot spawn markers are preserved in ServerStorage. Its runes remain available as generation templates. `scripts/procedural/BuildProceduralKit.luau` derives 11 native box templates, two ramp meshes and a three-part flank gate from the source dimensions and textures. `ProceduralArena.luau` assembles a floor of 84×98 cells (about 455×531 studs) before each round from three independent citadel profiles, three tunnel networks and three ramp patterns. Each category changes between consecutive rounds, and the last five combinations cannot repeat. Ground routes link two sheltered bases, four flank galleries and 14 ramps, with ten spawns per team.
|
||||
|
||||
- `ArenaModes.luau` routes the active procedural arena. The lobby directory opens team rosters with selectable columns. For local Connect, the server checks balance and capacity on the chosen side, reserves a seat and shows the confirmation for 1.05 seconds before deployment. After a 300-second round with an empty roster, the server immediately picks a different ruleset and regenerates the layout. Populated rounds retain results, voting and the winner reveal.
|
||||
|
||||
- `HostedArenaHud.client.luau` renders the right-side public arena directory, team details and the Create Arena button. `HostedArenaService.server.luau` manages same-server private invitations (35 seconds), a paginated public directory with team snapshots and Roblox reserved sessions. A public join carries the chosen side across the transfer. The destination checks balance again and leaves the player in the hosted lobby with a notice if the chosen team is unavailable. When the owner departs, ownership passes to the earliest remaining admitted player and the directory reflects the change. The last departure retires the session and removes its public entry. Verified in local Studio and with multiplayer fixtures for platform calls. Saved to Hunter.rbxl.
|
||||
|
||||
- Unpublished `Hunter.rbxl` previews public hosting on the existing procedural arena within the Studio session. Creation sets the card's owner and opens the existing team picker. The published path uses the Roblox memory stores and reserved server. Session registration retries transient failures and logs a specific cause before reporting a service error.
|
||||
|
||||
- The arena creator selects one of eight initial rulesets and can disable mode changes for public or private sessions. Reserved servers load these options before the first round. With changes disabled, populated rounds show results and skip the ballot, and empty rounds regenerate without changing the mode. With changes enabled, voting and empty-round rotation follow the existing rules. The local public preview uses the same options.
|
||||
|
||||
- `MatchRules.luau` lists Team Deathmatch, Hot Point, Three Points, Capture the Flag, Trophy Hunt, Citadel Siege, One Life and Hunt the Leader. `ArenaObjectives.luau` owns mode-specific wins, objective scores, tokens and flags, and uses `ArenaObjectiveSites.luau` for verified arena sites. `MatchVoteHud.client.luau` displays the previous round's ballot. Votes lock for the final three seconds. Ties draw among the leaders and empty ballots retain the rule. The server sends the winner for a three-second reveal before starting the next round. Participants with an accepted vote return to the same arena through the normal deployment path, keeping prior teams when balance permits.
|
||||
- `ModeCard.luau` renders the eight ruleset voting cards and the compact illustrated arena cards in the lobby directory. The sidebar uses the current ruleset from the local match or public directory snapshot, shows the arena identity and occupancy, and fits the list height until it reaches the viewport limit. The art map links each `MatchRules` ID to an image owned by Axion Games Studio (779665335). The matching 4:3 PNGs are in `assets/mode-cards/`, based on the approved concept `renders/hunter-mode-cards-v1.png`.
|
||||
|
||||
- `HunterMonolithImport.ArenaRunes` holds 14 animated direction markers, six running jump runes and 20 pink-to-gold ramp strips. Jumps rise 48 studs while preserving horizontal velocity and normal steering. The simulation owner applies lift immediately, and the server validates the replicated activation effect. Uphill boosters raise speed by 48% for two seconds. Their chevrons glide along the ramp surface at 12 studs per second, fading before they loop back. `scripts/studio/BuildArenaRunes.luau` fits the editable strips to the collidable ramp faces.
|
||||
|
||||
- Each procedural layout contains 14 fitted booster strips and six jump runes leading toward the four flank galleries and two citadel balconies. The generator validates each footprint and publishes runes only with a valid layout. `ArenaMobility.luau` registers and removes them as the layout changes. Each mode retains its own triggers and cooldown lifecycle.
|
||||
|
||||
- Procedural kit v6 keeps the floor, navy and amber MaterialVariants at 5.419642 studs per cell. Native box faces start the texture at each face edge, including odd-cell widths and heights. Structural volume faces snap to the floor grid before routes and cover are validated. All orange ramps use six cells of rise, eight of run and ten along the slope. The archived model retains its imported textures.
|
||||
|
||||
- Ally kill counters sit 3 px beside the portrait with scaled text. Holding RMB interrupts the F inspect and blends into aim. V is lobby-only and arena entry locks the camera to first person.
|
||||
|
||||
- Ramp boosters play `BLD_MACH_RUSH` for the activating player at 80% playback speed. Jump runes play `Dash Wind Burst` for the jumping player. Both cues use local SoundService playback at .30 base volume and stop on leaving the arena.
|
||||
|
||||
- `ArenaMobilityScreen.luau` draws outward speed streaks on boost and rising violet sigils and sparks on local jump activation. It dims the overlays when aiming. The rifle's camera adds a smoothed 6° hip-fire FOV increase during a boost and blends into the usual scope FOV.
|
||||
|
||||
- `SniperShots.server.luau` owns rifle damage and uses `ShotHistory.luau` to test up to 240 ms of server-recorded poses against solid geometry and current cover. A fresh peek across an occluded sightline has a short, bounded defender grace based on measured ping. The client confirms hit feedback only from the server.
|
||||
|
||||
- `RifleSpray.luau` defines four exact shots followed by a fixed upward, left and right sweep at one third of the configured angular amplitude. The default burst reset is 0.4 seconds. Shot tuning retains the existing spread attributes for spray growth, recovery and ADS scaling. The shared visual tracer travels at 800 studs/s.
|
||||
|
||||
- Author Hunter UI with the designed desktop composition and editable artwork from `ReplicatedStorage.HunterUI.Elements`. New buttons use Normal, Hover and Pressed, player rows highlight on hover, and progress lines animate. Dedicated phone layouts are deferred.
|
||||
- The HUD puts timer, scores and ally portraits at upper left, a double animated streak arc near the crosshair, HP at lower left, and skin, wallet and ammo at lower right. Six HUD plates use animated contour lightning. Key 1 operates the rifle with the default backpack hidden.
|
||||
|
||||
- During active arena play, the upper-left HUD shows the current ruleset and its instructions from `MatchRules.luau` below the timer. Live objective status or a personal flag, token or leader notice appears beneath the instructions.
|
||||
|
||||
- Clients in an arena see a large red countdown at top center for the match's final five seconds. `ArenaRoundHud.client.luau` uses that mode's server deadline and plays one local Timer Tick cue (113416294133952) per digit through `SniperEffects.luau`.
|
||||
- On the arena, `ArenaAtmosphere.client.luau` blends in the blue-hour profile. The place's 26 existing route lights use cyan, amber, violet and mint accents. Lobby values return on leaving the arena and the grade yields to goggles.
|
||||
- In combat, E cycles six rifle skins and shows the selected name above the wallet. `ArenaRounds` validates requests and retains the choice through respawns and rounds within the session. The five extra skins are defined in `RifleSkinCatalog.luau` and `RifleSkinVariants.luau`.
|
||||
|
||||
- The arena rifle defaults to `Skin="BlueFlame"`. On equipped copies, `RifleSkin.luau` gives the rifle pearl-white panels, a shifting cobalt body, and cyan flames and glints flowing toward the stock. A shot briefly brightens the effect; aiming reduces the flames while the colors keep shifting.
|
||||
|
||||
- The arena wallet stays at the lower right above ammo. Its rotating 3D gold H coin also appears in pickup flights, with a glint on arrival. Each collected coin adds its own value when it lands. The lobby shows the server balance.
|
||||
|
||||
- Each PvP elimination also drops one randomly selected power sphere from `PowerUpCatalog.luau`. Client models have 15 distinct colors and icons, orbiting stars, a vertical beam, and a 60-second countdown. The server selects the nearest living arena player within 12 studs with clear sight, grants the effect on arrival, and sends a single pickup cue using `Level_up`. Spheres clear on expiration and round end. Coins and power spheres share `LootMagnet.luau`; the ammo sphere tops up the rifle's current magazine.
|
||||
|
||||
- Future non-coin drops will use the existing `magic sound 1` pickup sound (`rbxassetid://117243786893013`). Coins have their own pickup and 80% cues.
|
||||
|
||||
- Arena PvP kills refresh the gold arcs near the crosshair for 13 seconds and update the multiplier. The multiplier resets on death or lobby return. Every confirmed hit plays `hitmarker_2`. Criticals add `Magic Hit` at 0.2 base volume, and every increase in streak (including ×1) plays `Level_up`.
|
||||
|
||||
- «Трофеи» use gold H coins. PvP kills spawn 10–20 coins worth 10–15 each, with world labels. The killer can attract each coin within 12 studs with a clear path. Credits and `MoneyCollect1` occur per arrival; `CupidKnife` plays at `ceil(0.8 × coin count)` once per drop. Unclaimed coins expire after 16 seconds or at round end. `TrophyWallet.luau` persists collected amounts in the published experience; plain Studio sessions are in memory.
|
||||
|
||||
- Death disables weapon input and rendering immediately. The server rejects shots and reloads from dead characters. The local death screen covers the frozen camera until it follows the new living character; the original three-second respawn delay remains.
|
||||
|
||||
- Hunter's match HUD uses compact team score panels and a row of teammate portraits. The team picker keeps both actions visible while its rosters scroll on smaller screens. Buttons animate on hover, focus and press; the picker fades/scales in and score changes pulse.
|
||||
- Lobby inventory is blocked on the server and the default hotbar is hidden there. HP and crosshair show only in the arena, while the lobby uses a visible free cursor and defaults to third person. Combat defaults to first person with its cursor hidden; the Studio P tuner can still show a cursor.
|
||||
|
||||
- The team picker shows Roblox headshots. The match HUD shows timer, both team scores and personal kill counts for the local team. Only confirmed PvP kills earn points; team scores remain visible until the next round starts. Verified with three clients in Studio.
|
||||
- Holding Tab shows the Hunter scoreboard. Releasing it or switching window focus closes the live view. The scoreboard reuses the results layout to show live scores, avatars, kills and deaths for both teams in the player's match or selected lobby mode. The final results replace the live view at round end and use their own deadline.
|
||||
|
||||
- The lobby button opens a live team picker. `ArenaRounds.server.luau` runs 300-second Blue/Orange rounds and 15-second breaks, caps each side at 10, limits the count difference to one, and rebalances after departures. At round end it snapshots each team's score, players, kills and deaths before sending them back to the lobby without rifles. `ArenaRoundHud.client.luau` presents those results to the match participants until the server's next-round deadline. Rifle template lives in `ReplicatedStorage.ArenaEquipment`. The old lobby gateways are archived in `ServerStorage.RetiredLobbyGateways`.
|
||||
- `PlayerOcclusionOutlines.client.luau` draws unfilled outlines behind cover and colored overhead health bars for visible players in the same arena match. Roblox Teams determine green allies and red rivals. `ArenaRounds.server.luau` supplies the authoritative health fraction on each character. Verified with two Studio clients and saved to local Hunter.rbxl.
|
||||
|
||||
- The Studio P panel's Movement tab now adjusts base player speed and world gravity live. `MovementTuning.server.luau` scales the configured jump height with gravity, and aiming uses the updated base speed. The selected speed 36.2 and gravity 155 were saved to the SniperViewmodel attributes in local Hunter.rbxl. Automatic transfer from Play to Edit via the existing ViewmodelTuneSaver plugin was not observed in this Studio session.
|
||||
|
||||
- The local `Hunter.rbxl` uses the imported static arena. `HunterMonolithImport.PlayerSpawns` contains eight courtyard and four gallery SpawnLocations. Initial spawn is unarmed in the lobby. Team members respawn in the arena during a round. Eight target bots spawn on the arena.
|
||||
|
||||
- Import completed in place 127514573501219: Workspace.HunterMonolithImport, source origin (1600,8,0), footprint896x896. Asset94623364447810 uploaded once to group779665335; automatic textures137719708984464/82420782531753/76473273465933. All176 meshes anchored/textured;74 gate colliders,26 SpotLights;12 gate passages and20 ramps passed targeted collision ray checks. Place not published. Package remains linked; repairs are local to this instance, rerun SetupImport on fresh import/update. Full result: `3D models/game_zone/Roblox_Import/studio_import_result.json`.
|
||||
- Import package: `3D models/game_zone/Roblox_Import/Hunter_Monolith_Arena.glb` (13,576,976 bytes), 176 meshes, 3 embedded 2048 maps, 18,580 triangles; maximum 448 per mesh. Active-scene export fixed two foreign objects. GLB round-trip passed (250.88x250.88x33.6 m). SetupImport.luau restores 896-stud scale, anchoring, 74 gate collider boxes and 26 SpotLights. 203 intentional contacts classified in manifest.json.
|
||||
- Arena lighting: `blender/add_arena_lighting.py`, called by the monolith builder, adds 42 substantial fixtures/markers and 26 local lights: cyan north/center, amber south, violet west/middle gallery, mint east. Uses scene lights in Blender material preview; screenshots only. Roblox light conversion/performance remains unverified.
|
||||
- Central citadel now has three playable levels at 0/48/96 studs. Wide side decks preserve middle-gallery access beside two offset solid ramps to the top. Map now has 108 architecture meshes and 20 ramps; screenshot `renders/monolith_three_levels_screenshot.png`.
|
||||
- User requires viewport screenshots only; do not generate renders. Geometry must look monolithic, with no thin surfaces; minimum 2-stud thickness. Modular block sizing uses an 8-stud step; ramps are solid right-triangular prisms.
|
||||
- Current redesign: `blender/build_monolith_arena.py` creates `3D models/game_zone/Hunter_Monolith_Arena.blend`: 896x896, 105 solids, levels 0/24/40/48, central passages, outer galleries, four corner courts and 18 ramps. `blender/build_hd_grid_textures.py` supplies 2048x2048 maps with 8-stud cells (512px/cell) and face-space UVs including slopes. Previous pencil arena layout was rejected. Blender visual review only; Roblox import/playtest remains outstanding.
|
||||
- Use this file plus `tasks.md` as the first-read context.
|
||||
- Add durable discoveries here; do not turn this into a dump of implementation details.
|
||||
|
||||
## Entry points
|
||||
|
||||
- Weapons: `scripts/ThirdPersonRifle*`, `Sniper*`, `RifleSights.server.luau`, `EquipRifle.server.luau`.
|
||||
- Combat feedback: `DamageNumbers.client.luau`, `KillFeed.client.luau`, `Crosshair.client.luau`.
|
||||
- World/test: `TargetBots.server.luau`, `NightLighting.server.luau`.
|
||||
- Asset automation: `blender/` scripts, especially build/export helpers.
|
||||
- Collision validation: `blender/check_collisions.py`.
|
||||
- Luau quality guidance: `C:\Users\Alex\.codex\skills\roblox-hunter-workflow\references\roblox-quality.md`.
|
||||
- Spawn flow: `scripts/ArenaRounds.server.luau` handles lobby arrival, team selection and respawn via `scripts/ArenaSpawns.luau`. `scripts/ArenaRoundHud.client.luau` builds the team lists and timer. `scripts/studio/SetupStaticArenaSpawns.luau` places markers for a fresh import.
|
||||
- Current Blender map: `blender/build_pencil_arena.py` builds `3D models/game_zone/Hunter_Pencil_Arena.blend` and overview/player renders in `renders/`. It is a separate 520x520 arena with imperfect hand-drawn grid textures, ground bypasses, connected elevated decks, bridges and four ramps. The user explicitly rejected the house approach; do not use `build_house_prototype.py` as the new map basis.
|
||||
+136
@@ -0,0 +1,136 @@
|
||||
# Hunter task board
|
||||
|
||||
## Now
|
||||
|
||||
- [ ] [ui/runtime] Enlarge Hot Point, add a rising magic ring and shared capture HUD, and verify capture timing, damage, death, and scoring.
|
||||
|
||||
- [x] [ui/runtime] Configure the starting ruleset and mode changes when creating a public or private arena. Verified all eight creator cards, real Studio entry in the selected mode, private and public registry handoff with test doubles, a winning vote with switching enabled, and stable rules across populated and empty rounds with switching disabled. Saved locally.
|
||||
|
||||
- [x] [runtime/ui] Recover public arena creation in an unpublished Studio file. Real clicks opened team selection and deployed the creator. Two local clients verified the shared card and owner transfer. A simulated cloud registry verified a denied write and retry on a transient failure before teleport. Saved locally.
|
||||
|
||||
- [x] [ui] Show the active mode and objective below the arena timer. Verified normal arena entry, all eight HUD states and separate live status with replicated values in Studio. Hidden in the lobby and between rounds. Saved locally.
|
||||
|
||||
- [x] [ui/runtime] Make both team columns selectable with hover, press and selected feedback. Studio verified clicks and deployment to the chosen team. Three-client tests verified team balance, the public transfer payload and the destination's recheck with a mocked registry and teleport. Saved locally.
|
||||
|
||||
- [x] [ui/runtime] Reveal the server-assigned team in the arena details dialog before entering the match. Studio confirmed the animated column, opposite-side dimming, and deployment after 1.05 seconds. A three-client test verified balanced parallel bookings, correct assigned sides, duplicate suppression and a join at the round deadline. Saved locally.
|
||||
|
||||
- [x] [runtime] Run only the dynamic arena and archive the retired map intact in ServerStorage. Studio verified 1,918 archived descendants, 20 active spawns and 20 mobility runes, two empty round rotations, and voting after a populated round. Three-client tests for both hosted access types confirmed persistent owner transfer and empty-session cleanup, including a transient removal retry. The tests used a mock session registry.
|
||||
|
||||
- [x] [ui] Show public arenas as illustrated mode cards in the right lobby column. Studio verified both standard arenas updated their artwork on a ruleset change, plus scrolling, occupancy and opening team details for a hosted listing supplied by a temporary fixture. Saved to local Hunter.rbxl.
|
||||
|
||||
- [x] [runtime/ui] Create public and private arenas from the right-side lobby directory. Verified the team details dialog, close and standard arena entry in Studio, the creator's loaded avatar, invite acceptance and decline, public listings and team payloads in a four-client test, and reserved admission with two approved players and one denied player. Studio used test doubles for TeleportService and MemoryStore. Live platform travel still needs validation on the published place.
|
||||
|
||||
- [x] [runtime] Return prior participants with an accepted ballot to the same arena after the reveal. A three-client Studio test verified two teammates returned, split 1–1, and spawned equipped in a regenerated procedural arena in One Life. The abstaining player stayed in the lobby.
|
||||
|
||||
- [x] [ui] Lock voting for the last three seconds, mute the cards, and animate the server-selected winner into the center. Studio verified an accepted vote change, rejection of a late request, the reveal animation, and fallback to the existing rule when no vote was accepted.
|
||||
|
||||
- [x] [ui] Connect all eight mode illustrations uploaded by the user as Axion Games Studio (779665335). Matched the IDs to the asset names, confirmed all eight loaded in the ballot, and verified that the lobby switched to the correct illustration when the ruleset changed. Saved to local Hunter.rbxl.
|
||||
|
||||
- [x] [ui] Build a shared mode card for the four-column ballot and the lobby. Prepared eight separate 1448×1086 PNGs. A Studio client confirmed all eight slots, vote counts, selection, hover and press states, and the lobby card updating after the ballot closed. Saved to local Hunter.rbxl.
|
||||
|
||||
- [x] [runtime] Add all eight match rules and a post-results vote in both arenas. Verified each rule on both maps, objective sites across 80 generated layouts, independent elections with three clients, live flag and hot-point scoring, and early One Life results with two clients.
|
||||
|
||||
- [x] [world] Anchor procedural rectangular surface textures at their face edges. Verified the former half-cell shift in a face-on comparison, the corrected arena preview, 107 seeds across all 27 profiles, and live routes through the flank gate and to the roof from both bases.
|
||||
|
||||
- [x] [world] Align procedural arena volumes and textures to the floor cells and use amber on every ramp. Verified 80 seeds across all 27 profiles, all 14 ramp shapes and colors, both walkable roof routes, an uphill boost and a flank jump in Studio.
|
||||
|
||||
- [x] [world] Keep the original floor's 5.42-stud square grid on resized procedural walls, covers, decks and ramp faces. Verified face-on and scene screenshots, 80 seeds across all 27 combinations and correct materials on a live regenerated arena.
|
||||
|
||||
- [x] [world] Add 14 uphill boosters and six running jump runes to the procedural arena. Studio verified 106 seeds across all 27 combinations, uphill-only boosting, a live jump onto a flank roof, both arena modes and working runes after replacement.
|
||||
|
||||
- [x] [ui] Show the live scoreboard for both teams while Tab is held. Studio verified hold and release in the lobby and combat, including release after the automatic final results appeared. Three earlier clients verified live stats and mode isolation.
|
||||
|
||||
- [x] [ui] Show both final team rosters, scores, kills and deaths during the 15-second intermission. Three Studio clients confirmed fixed snapshots, death counts, separate mode results, automatic dismissal and lobby return. Verified the final layout in a Studio screenshot.
|
||||
|
||||
- [x] [ui] Add a red animated round-end countdown. Two Studio clients in separate modes each displayed 5–1, played exactly five audible cues and cleared the overlay on returning to the lobby.
|
||||
|
||||
- [x] [world] Assemble varying citadel sections, tunnel mouths and ramp layouts at every procedural round. Studio validated 156 seeds covering all 27 combinations, 18 successive generations without recent repeats, and five live rounds with walkable roof and tunnel routes and an independent classic timer.
|
||||
|
||||
- [x] [ui] Show red enemy and green ally health bars in both arena modes. Two-client Studio test verified damage, healing, max HP changes, cover, mode isolation, death and lobby visibility.
|
||||
|
||||
- [x] [world] Rebuild the random arena with the reference citadel and covered flanks. Verified 48 seeded layouts, paths to the roof from both bases in both layouts, and live round rollover that replaced the previous layout, returned the player to the lobby and preserved the classic timer. Saved to Hunter.rbxl.
|
||||
|
||||
- [x] [world] Add the separate procedural mode inside Hunter.rbxl. Verified 64 seeds, walks between both bases and up to the central gallery, team entry and respawn, loot isolation, and layout replacement at the next round while the classic match continues. The original arena's geometry signature matches.
|
||||
|
||||
- [x] [runtime] Make rifle shots 1–4 exact, add a learnable spray pattern and double tracer speed. Two 15-shot Studio bursts matched all server-confirmed impact positions and reset after the pause. Verified roughly 800 studs/s tracer playback and saved the place.
|
||||
|
||||
- [x] [world] Add distinct magic spheres for 15 kill-drop boosts, with icon, stars, beam, 60-second timer, coin-style attraction, and confirmed Level_up cue. Studio verified all visuals and expiration, one healed pickup with a single cue, and targeted movement, shield, reload, and coin effects.
|
||||
|
||||
- [x] [ui] Add screen-space speed trails to boosters and rising magic to jump runes. Studio verified both real activations, a 6° running FOV increase, stable scoped FOV, and clearing the overlay when leaving the arena. Saved to the local place.
|
||||
|
||||
- [ ] [runtime] Add a local hurt sound and eight-direction segmented damage display. Verify confirmed victim feedback, screen direction, and fade in Studio.
|
||||
|
||||
- [x] [world] Replace guided flights with running hops and add animated uphill chevrons to 20 ramps. Studio verified unchanged horizontal speed on launch from three directions, no hop at rest, and 48% acceleration uphill on four ramp types with no boost downhill. Saved to the local place.
|
||||
|
||||
- [x] [world] Add animated route runes, speed pads, and jump platforms. Studio playtest verified 14 direction markers, six 48% speed boosts for two seconds, and successful landings for all six jumps. Saved to the local place.
|
||||
|
||||
- [x] [runtime] Compact ally kill badges. Verified the 3 px portrait gap and fit with three digits. Real input in Studio confirmed F to RMB opens Scope without resuming the inspection, and V switches camera only in the lobby.
|
||||
|
||||
- [x] [runtime] Synchronize rifle hits with bounded server pose history, live cover checks, and short peek grace. Two-client tests passed on LAN and at about 133 ms measured RTT. Verified rewind, gear exclusion, protection, wall blocking, and a 52 ms LAN fresh-peek grace.
|
||||
|
||||
- [x] [scene] Add an arena-only dusk profile and tune 26 route lights. Verified the blue-hour profile, visibility, goggles compatibility, and restoration of daytime values on return to lobby state.
|
||||
- [x] [ui] Show a rotating 3D trophy coin and a glint in the wallet and pickup flights. Verified live rotation, sparkle, and balance increment only when the coin arrives in desktop Studio.
|
||||
|
||||
- [x] [ui] Implement the approved desktop Hunter HUD with 15 editable components and matching proportions. Verified two animated streak arcs, angled counters, six moving lightning outlines, button states, roster hover, and weapon key 1 without the default backpack slot.
|
||||
|
||||
- [x] [runtime] Cycle six rifle skins with E. Verified all five new animations, names, aiming, and wraparound using real keys in Studio. Two-client test verified replicated effects, player isolation, respawn, and lobby rejection.
|
||||
|
||||
- [x] [runtime] Rework Blue Flame using the 01:01 video reference. Verified pearl-white armor, a shifting cobalt body, moving cyan fire and glints, a real shot pulse, and reduced effects while aiming. Checked both camera modes and captured the inspect pose in Studio.
|
||||
|
||||
- [x] [runtime] Replace dark rifle body materials on Blue Flame and animate blue-to-cyan heat across the visible panels. Verified live panel color changes and flame motion in both views, including inspect and reduced flames while aiming.
|
||||
|
||||
- [x] [runtime] Add the Blue Flame rifle skin. Verified moving flame tips and particles in both views, reduced effects while aiming, and cleanup on death and restoration on respawn. Checked the inspect pose in Studio.
|
||||
|
||||
- [x] [runtime] Keep the combat wallet visible above ammo and fly each collected coin into it. Verified 15 arrivals and 15 balance increments totaling 186, plus simulated late savings and lobby return during flight.
|
||||
|
||||
- [x] [runtime] Value-labeled gold coin drops of 10–20, each worth 10–15 Trophies. Verified labels, partial collection, exact animated total, MoneyCollect1 on each coin and CupidKnife once at the 80% threshold in a two-client playtest.
|
||||
|
||||
- [x] [runtime] Drop five gold trophies on PvP kills and collect by proximity. Two-client test verified owner-only drop, no pickup at distance or through walls, pickup sound and exactly +5. Checked the coin models in the arena viewport.
|
||||
|
||||
- [x] [runtime] Add gold streak meter and arcade cues. Verified all five sounds load and play, and two-client hit, critical, round kill, streak, reload, meter expiry and death behavior.
|
||||
|
||||
- [x] [runtime] Add gold Trophies currency in lobby, with +5 per confirmed PvP kill. Verified HUD and two-client rewards, bot exclusion, and idempotent save retry with an in-memory store. Live DataStore was not exercised.
|
||||
|
||||
- [x] [runtime] Block post-death weapon use and camera view — verified live shots, an opaque death screen, server rejection with a rifle still on the corpse, and restored camera/weapon after respawn.
|
||||
|
||||
- [x] [runtime] Restyle and animate the HUD and team picker. Verified desktop hover, press, menu and score feedback, plus readable picker in the portrait iPhone simulator.
|
||||
- [x] [runtime] Hide HP and prevent weapon equip in the lobby, with a free cursor in lobby and hidden cursor in regular combat. Verified inventory guards, key 1, arena HUD, and round return in Studio.
|
||||
|
||||
- [x] [runtime] Add Roblox portraits to team selection and match HUD with ally kill counts — verified portraits in Studio, plus a three-client test of live rosters, PvP scoring, ally stats, bot exclusion and round reset.
|
||||
|
||||
- [x] [runtime] Replace lobby gateways with a balanced team picker and continuous 300-second rounds with 10-second breaks. Verified click-to-join, respawn and production settings, plus three-client roster updates, rejection, departure rebalance and full round transition using a shortened test timer.
|
||||
|
||||
- [x] [runtime] Show outlines only through cover — two-client Studio test passed neutral, allied and opposing colors, clear and partial visibility, invisible helpers, arena passage colliders, and eliminated players.
|
||||
|
||||
- [x] [runtime] Add speed and gravity to the P panel's Movement tab — verified inputs, server values, a higher jump at reduced gravity, and saved values after restarting Studio Play.
|
||||
|
||||
- [x] [runtime] Replace procedural generation with 12 static arena SpawnLocations — verified unarmed lobby entry, portal travel, arena respawn and eight target bots in Studio. Saved to local Hunter.rbxl.
|
||||
|
||||
- [x] [world] Import Monolith arena into Studio — 176 meshes/3 textures, correct896x896 footprint, anchoring,74 gate colliders and26 lights;12 gates/20 ramps passed ray checks.
|
||||
- [ ] [world] Test full arena traversal and runtime lighting performance when requested.
|
||||
|
||||
## Done / durable notes
|
||||
|
||||
- Project context is centralized in `.codex/context.md`.
|
||||
- Skill: `roblox-hunter-workflow`.
|
||||
- Collision-safe modeling workflow and pre-export checker are integrated.
|
||||
- Selected guidance from `roblox-dev-0.1.0-v1` is integrated: strict Luau, remote security, performance, testing/review.
|
||||
|
||||
## Task format
|
||||
|
||||
`- [ ] [area] goal — acceptance check`
|
||||
|
||||
- [x] [runtime] Remove startup menu and restore lobby spawn — playtest shows no menu and player appears at HunterLobby.Arrival Spawn.
|
||||
- [x] [runtime] Keep lobby players unarmed — playtest shows third-person-capable default camera and SniperRifle remains in Backpack.
|
||||
- [x] [runtime] Hide lobby crosshair and restore camera toggle — playtest hides Crosshair and V switches to Classic third-person camera.
|
||||
- [x] [runtime] Add lobby portal travel — playtest moves a player from a gateway to GameZone and equips SniperRifle.
|
||||
- [x] [world] Assemble GameZone from prepared connected prefabs — playtest reports 5 templates, 49 grid tiles, connector metadata, buildings, courtyards, roads and ramps.
|
||||
|
||||
- [x] [world] Create hand-drawn textured arena — Studio playtest shows the 300x300 map with paper palette, grid walls, pencil outlines, and 49 connected prefabs.
|
||||
|
||||
- [x] [world] Fix arena floor overlap and add visible architecture — Studio shows no shared floor slab, 22 houses, trees, lamps, and a roof access ramp.
|
||||
- [x] [world] Build a detailed Blender house prototype — true door/window openings, furnished rooms, second floor, and a supported stair that reaches the roof terrace.
|
||||
- [x] [world] Build an independent 520x520 pencil-textured Blender arena — ground bypasses, connected elevated bridges, four attached ramps, and overview/player renders.
|
||||
- [x] [world] Separate lobby audio and generate unique 300x300 game zone — playtest confirms generated buildings/ramps/passages, synchronized bots, and 120-stud combat audio falloff.
|
||||
- [ ] [runtime] Complete Citadel Assault — verify two 150-second attacks, swap, role spawns, capture reasons, results, disconnected-team handling and mobile effects in a multiplayer playtest.
|
||||
- [ ] [runtime] End Citadel Assault on the final capture and show each participant their animated outcome.
|
||||
@@ -0,0 +1,9 @@
|
||||
# Compact workflow
|
||||
|
||||
1. Read `context.md` and the relevant task.
|
||||
2. Locate symbols with `rg`.
|
||||
3. Read only the smallest relevant files.
|
||||
4. Edit and validate the focused path.
|
||||
5. Update task status and durable context.
|
||||
|
||||
Use `C:\Users\Alex\.codex\skills\roblox-hunter-workflow\scripts\build_context.ps1` to print a bounded context packet for a task.
|
||||
Reference in new issue
Block a user