Skip to content

Commit dc598f6

Browse files
committed
bro
1 parent 930d28c commit dc598f6

File tree

8 files changed

+14
-47
lines changed

8 files changed

+14
-47
lines changed

src/Features/Lighting.lua

+3-3
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ end
4444
**Example:**
4545
```lua
4646
-- Changes the fog to 100 and the fog color to white
47-
local LightingFeature = Maplib:GetFeature("Lighting")
47+
local LightingFeature = MapLib:GetFeature("Lighting")
4848
4949
LightingFeature:SetLighting({
5050
FogEnd = 100,
@@ -56,7 +56,7 @@ end
5656
This function also supports lighting effects to be updated and they will be replicated to specators.
5757
```lua
5858
-- Changes the fog to 100 and the fog color to white and makes everything monochrome.
59-
local LightingFeature = Maplib:GetFeature("Lighting")
59+
local LightingFeature = MapLib:GetFeature("Lighting")
6060
6161
LightingFeature:SetLighting({
6262
FogEnd = 100,
@@ -79,7 +79,7 @@ end
7979
and then we can parent it back to lighting when we need it.
8080
8181
```lua
82-
local LightingFeature = Maplib:GetFeature("Lighting")
82+
local LightingFeature = MapLib:GetFeature("Lighting")
8383
8484
--Disables the atmosphere effect
8585
LightingFeature:SetLighting({}, {

src/Features/PlayerUI.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ end
4646
**Example:**
4747
```lua
4848
-- Loads an UI for everyone in the round
49-
local PlayersFeature = Maplib:GetFeature("Players")
49+
local PlayersFeature = MapLib:GetFeature("Players")
5050
local PlayerUI = MapLib:GetFeature("PlayerUI")
5151
5252
local ui = map:WaitForChild("MyGUI")

src/Features/Players.lua

+4-4
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ local Players = {}
2525
**Example:**
2626
```lua
2727
--Teleports all players ingame to map.Destination.
28-
local PlayersFeature = Maplib:GetFeature("Players")
29-
local TeleportFeature = Maplib:GetFeature("Teleport")
28+
local PlayersFeature = MapLib:GetFeature("Players")
29+
local TeleportFeature = MapLib:GetFeature("Teleport")
3030
3131
for _, player in pairs(PlayersFeature:GetPlayers()) do
3232
TeleportFeature:Teleport(player, map.Destination.Position)
@@ -51,8 +51,8 @@ end
5151
**Example:**
5252
```lua
5353
--Teleports all players that are within 5 studs from map.Spawn.
54-
local PlayersFeature = Maplib:GetFeature("Players")
55-
local TeleportFeature = Maplib:GetFeature("Teleport")
54+
local PlayersFeature = MapLib:GetFeature("Players")
55+
local TeleportFeature = MapLib:GetFeature("Teleport")
5656
5757
for _, player in pairs(PlayersFeature:GetPlayersInRadius(map.Spawn.Position, 5)) do
5858
TeleportFeature:Teleport(player, map.Destination.Position)

src/Features/Settings.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ local Settings = { context = "client" }
3232
**Example:**
3333
```lua
3434
-- Changes the camera FOV to an arbitrary number and then sets it back to the saved settings value.
35-
local SettingsFeature = Maplib:GetFeature("Settings")
35+
local SettingsFeature = MapLib:GetFeature("Settings")
3636
3737
local camera = workspace.CurrentCamera
3838

src/Features/Skills.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ end
2828
2929
**Example:**
3030
```lua
31-
local SkillsFeature = Maplib:GetFeature("Skills")
31+
local SkillsFeature = MapLib:GetFeature("Skills")
3232
3333
SkillsFeature:ToggleSliding(false)
3434
task.wait(5)
@@ -52,7 +52,7 @@ end
5252
5353
**Example:**
5454
```lua
55-
local SkillsFeature = Maplib:GetFeature("Skills")
55+
local SkillsFeature = MapLib:GetFeature("Skills")
5656
5757
SkillsFeature:ToggleAirDive(false)
5858
task.wait(5)

src/Features/Teleport.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ local Teleport = {}
2828
**Example:**
2929
```lua
3030
--Teleports all players ingame to map.Destination and makes the camera face the front.
31-
local PlayersFeature = Maplib:GetFeature("Players")
32-
local TeleportFeature = Maplib:GetFeature("Teleport")
31+
local PlayersFeature = MapLib:GetFeature("Players")
32+
local TeleportFeature = MapLib:GetFeature("Teleport")
3333
3434
for _, player in pairs(PlayersFeature:GetPlayers()) do
3535
TeleportFeature:Teleport(player, map.Destination.Position, true)

src/Features/rockytanker.lua

-33
This file was deleted.

src/init.lua

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ function MapLib:GetFeature(featureName: string)
312312
if feature.context == "client" and IS_SERVER or feature.context == "server" and not IS_SERVER then
313313
error(("Feature '%s' can only be used on the '%s'"):format(featureName, feature.context), 2)
314314
end
315-
--Ensures the feature is called with the maplib object for said map
315+
--Ensures the feature is called with the MapLib object for said map
316316
return feature.new and feature.new(currentMapLib) or feature
317317
else
318318
error(("Cannot find feature '%s'"):format(featureName), 2)

0 commit comments

Comments
 (0)