db commit message latr

This commit is contained in:
2023-12-24 15:04:50 -05:00
parent 52e787eb50
commit d1f9efce89
14 changed files with 225 additions and 166 deletions

20
src/shared/String.lua Normal file
View File

@@ -0,0 +1,20 @@
local StringModule = {}
StringModule.__index = StringModule
function StringModule.new(String: string)
return setmetatable({
String = String
}, StringModule)
end
type ByteArray = {string}
function StringModule:bytes(): ByteArray
local cbytes = {self.String:byte(1,-1)}
for i = 1, #cbytes do
cbytes[i] = tostring(cbytes[i]):char()
end
return cbytes
end
return StringModule

View File

@@ -5,7 +5,7 @@ local TS = game:GetService("TweenService")
type TweenAnimation = {[string]: any}
function Tween.constructor(TweenSettings: TweenInfo | nil, Object: Instance | nil, PreProperties: TweenAnimation | nil)
function Tween.constructor(TweenSettings: TweenInfo?, Object: Instance?, PreProperties: TweenAnimation?)
return setmetatable({
TweenInfo = TweenSettings,
Instance = Object,
@@ -13,7 +13,7 @@ function Tween.constructor(TweenSettings: TweenInfo | nil, Object: Instance | ni
}, Tween)
end
function Tween:Start(PostInstance: Instance | nil, PostProperties: TweenAnimation | nil, PostTweenSettings: TweenInfo | nil): Tween
function Tween:Start(PostInstance: Instance?, PostProperties: TweenAnimation?, PostTweenSettings: TweenInfo?): Tween
local Props = self.PreProperties
local Object = self.Instance
local TweenSettings = self.TweenInfo