0% found this document useful (0 votes)
5 views1 page

Map Screen Module

The document outlines a script for creating a map interface in a game using Roblox. It initializes a map page with a grid background and fills it with grid lines, along with markers for the player and a vault. The map page is set to be a child of the PipBoy interface and is initially hidden.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views1 page

Map Screen Module

The document outlines a script for creating a map interface in a game using Roblox. It initializes a map page with a grid background and fills it with grid lines, along with markers for the player and a vault. The map page is set to be a child of the PipBoy interface and is initially hidden.
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

task.

wait(1)
local PipBoy = _G.PipBoy
if not PipBoy then return end

local mapPage = [Link]("Frame")


[Link] = "MapPage"
[Link] = [Link](1, 1)
[Link] = 1
[Link] = false
[Link] = [Link]

-- Grid Background
local gridFrame = [Link]("Frame")
[Link] = "Grid"
[Link] = [Link](0.9, 0.8)
[Link] = [Link](0.05, 0.1)
gridFrame.BackgroundColor3 = [Link](0,0,0)
[Link] = 0.5
[Link] = 1
gridFrame.BorderColor3 = [Link]
[Link] = mapPage

local gridPattern = [Link]("UIGridLayout")


[Link] = [Link](40, 40)
[Link] = [Link](0, 0)
[Link] = gridFrame

-- Fill with grid lines


for i = 1, 200 do
local box = [Link]("Frame")
[Link] = 1
[Link] = 1
box.BorderColor3 = [Link]
[Link] = [Link]
[Link] = gridFrame

local boxStroke = [Link]("UIStroke")


[Link] = [Link]
[Link] = 0.8
[Link] = box
end

-- Map Markers
local playerMarker = [Link]("TextLabel")
[Link] = "PlayerMarker"
[Link] = [Link](20, 20)
[Link] = [Link](0.5, 0.5)
[Link] = 1
[Link] = "?"
playerMarker.TextColor3 = [Link]
[Link] = 24
[Link] = gridFrame

local vaultMarker = [Link]("TextLabel")


[Link] = "VaultMarker"
[Link] = [Link](20, 20)
[Link] = [Link](0.2, 0.3)
[Link] = 1
[Link] = "?"
vaultMarker.TextColor3 = [Link]
[Link] = 20
[Link] = gridFrame

_G.MapPage = mapPage

You might also like