mirror of
https://github.com/unixtensor/Roblox-Elevator-Game.git
synced 2025-12-18 22:51:54 +00:00
db commit message latr
This commit is contained in:
20
src/shared/String.lua
Normal file
20
src/shared/String.lua
Normal 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
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user