repo
stringclasses
341 values
file_path
stringlengths
29
173
language
stringclasses
2 values
file_type
stringclasses
4 values
code
stringlengths
2
1.66M
tokens
int64
2
598k
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Classes/ObjectiveInfo.luau
luau
.luau
--!strict local QuestObjective = require(script.Parent.QuestObjective) local assertProperties = require(script.Parent.Parent.Functions.assertProperties) export type QuestObjective = typeof(QuestObjective) --[=[ @class ObjectiveInfo @tag Class The ObjectiveInfo contains the static data for our quest objec...
818
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Classes/Quest.luau
luau
.luau
--!strict local assertProperties = require(script.Parent.Parent.Functions.assertProperties) local QuestAcceptType = require(script.Parent.Parent.Enums.QuestAcceptType) local QuestDeliverType = require(script.Parent.Parent.Enums.QuestDeliverType) local QuestRepeatableType = require(script.Parent.Parent.Enums.QuestRepeat...
4,389
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Classes/QuestLifeCycle.luau
luau
.luau
--!strict local QuestObjective = require(script.Parent.QuestObjective) local QuestStatus = require(script.Parent.Parent.Enums.QuestStatus) local Signal = require(script.Parent.Parent.Parent.Vendor.Signal) local QuestAcceptType = require(script.Parent.Parent.Enums.QuestAcceptType) local QuestDeliverType = require(script...
1,388
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Classes/QuestObjective.luau
luau
.luau
--!strict local QuestObjectiveProgress = require(script.Parent.Parent.Structs.QuestObjectiveProgress) local assertProperties = require(script.Parent.Parent.Functions.assertProperties) local Signal = require(script.Parent.Parent.Parent.Vendor.Signal) local Trove = require(script.Parent.Parent.Parent.Vendor.Trove) type ...
1,896
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Data/StatusToLifeCycle.luau
luau
.luau
local QuestStatus = require(script.Parent.Parent.Enums.QuestStatus) return { [QuestStatus.InProgress] = "OnStart", [QuestStatus.Completed] = "OnComplete", [QuestStatus.Delivered] = "OnDeliver", }
53
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Data/TimeRequirement.luau
luau
.luau
local QuestRepeatableType = require(script.Parent.Parent.Enums.QuestRepeatableType) local function hoursToSeconds(hours: number): number return hours * 3600 end return { [QuestRepeatableType.Custom] = 0, [QuestRepeatableType.Daily] = hoursToSeconds(23), [QuestRepeatableType.Weekly] = hoursToSeconds(16...
113
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Data/WarningMessages.luau
luau
.luau
return { RoQuestAlreadyInit = "RoQuest has already been initialized", LoadDirectoryMixedType = "Cannot load directory with mixed file types. Make sure you only load Quests or only QuestLifeCycles", NoQuestById = "No quest with the id %s was found", DuplicateQuestId = "Duplicate quest id %s found", ...
211
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Enums/QuestAcceptType.luau
luau
.luau
--!strict --[=[ @class QuestAcceptType @tag Enum Sets if the quest should be accepted automatically or manually ]=] local QuestAcceptType = { Automatic = "Automatic", Manual = "Manual", } --[=[ @interface Status @within QuestAcceptType .Automatic "Automatic" -- The quest will automatic...
130
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Enums/QuestDeliverType.luau
luau
.luau
--!strict --[=[ @class QuestDeliverType @tag Enum Sets if the quest should be delivered automatically or manually ]=] local QuestDeliverType = { Automatic = "Automatic", Manual = "Manual", } --[=[ @interface Status @within QuestDeliverType .Automatic "Automatic" -- The quest will autom...
131
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Enums/QuestRepeatableType.luau
luau
.luau
--!strict --[=[ @class QuestRepeatableType @tag Enum Sets how often and if it is possible to repeat a quest ]=] local QuestRepeatableType = { NonRepeatable = "NonRepeatable", Infinite = "Infinite", Daily = "Daily", Weekly = "Weekly", Custom = "Custom", } --[=[ @interface Status ...
210
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Enums/QuestStatus.luau
luau
.luau
--!strict --[=[ @class QuestStatus @tag Enum Tracks the current status of the player's quest ]=] local QuestStatus = { NotStarted = "NotStarted", InProgress = "InProgress", Completed = "Completed", Delivered = "Delivered", } --[=[ @interface Status @within QuestStatus .NotStart...
172
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Functions/assertProperties.luau
luau
.luau
local function assertProperties(properties, class) properties = properties or {} for index: string, value: any in properties do if class[index] == nil then error(string.format("Property %s does not exist in class %s", index, class.__type)) end if typeof(value) ~= typeof(cla...
129
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Functions/createStruct.luau
luau
.luau
local function createStruct(data) return setmetatable({}, { __call = function(_, properties) local dataTable = setmetatable({}, data) for index: string, value: any in pairs(data) do if properties[index] == nil then if typeof(value) == ...
118
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Functions/loadDirectory.luau
luau
.luau
local WarningMessages = require(script.Parent.Parent.Data.WarningMessages) local Quest = require(script.Parent.Parent.Classes.Quest) local QuestLifeCycle = require(script.Parent.Parent.Classes.QuestLifeCycle) type Quest = Quest.Quest type QuestLifeCycle = QuestLifeCycle.QuestLifeCycle local LOAD_DIRECTORY_TYPES: {[st...
278
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Functions/networkQuestParser.luau
luau
.luau
local Quest = require(script.Parent.Parent.Classes.Quest) type Quest = Quest.Quest local REPLICATE_PROPERTIES: {[string]: true} = { Name = true, Description = true, QuestId = true, QuestAcceptType = true, QuestDeliverType = true, QuestRepeatableType = true, QuestStart = true, QuestEnd ...
164
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Functions/warn.luau
luau
.luau
--!strict local HEADER: string = "[RoQuest]: " return function(message: string): () warn(HEADER .. message, "\n", debug.traceback()) end
36
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Structs/PlayerQuestData.luau
luau
.luau
local QuestProgress = require(script.Parent.QuestProgress) local createStruct = require(script.Parent.Parent.Functions.createStruct) export type QuestProgress = QuestProgress.QuestProgress --[=[ @class PlayerQuestData @tag Struct ```csharp struct PlayerQuestData { InProgress: {[string]: Quest...
256
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Structs/QuestObjectiveProgress.luau
luau
.luau
local createStruct = require(script.Parent.Parent.Functions.createStruct) --[=[ @class QuestObjectiveProgress @tag Struct ```csharp struct QuestObjectiveProgress { CurrentProgress: number, Completed: boolean } ``` ]=] local QuestObjectiveProgress = { CurrentProgress = 0, ...
154
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Structs/QuestProgress.luau
luau
.luau
local QuestStatus = require(script.Parent.Parent.Enums.QuestStatus) local createStruct = require(script.Parent.Parent.Functions.createStruct) local QuestObjectiveProgress = require(script.Parent.QuestObjectiveProgress) type QuestStatus = QuestStatus.QuestStatus type QuestObjectiveProgress = QuestObjectiveProgress.Ques...
393
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/Net/Event.luau
luau
.luau
local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Remote = ReplicatedStorage:FindFirstChild("RedEvent") :: RemoteEvent local IS_CLIENT = RunService:IsClient() local Serdes = require(script.Parent.Serdes) local Spawn = require(script.Parent.Parent.Ut...
1,927
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/Net/Serdes.luau
luau
.luau
local RunService = game:GetService("RunService") local ReplicatedStorage = game:GetService("ReplicatedStorage") local Event = ReplicatedStorage:WaitForChild("RedEvent") local Promise = require(script.Parent.Parent.Util.Promise) local Serdes = {} Serdes.NextId = 0 Serdes.NextOT = 0 function Serdes.RegisterIdentifie...
372
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/Util/Bin.luau
luau
.luau
local Spawn = require(script.Parent.Spawn) type BinItem = Instance | RBXScriptConnection | () -> ...any return function() local Bin: { BinItem } = {} return function(Item: BinItem) table.insert(Bin, Item) end, function() for _, Item in Bin do if typeof(Item) == "Instance" then Item:Destroy() elseif ...
131
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/Util/Clock.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RunService = game:GetService("RunService") local function MakeHeartbeatFunction(Clock: Clock) return function(Delta) Clock:Advance(Delta) end end local Clock = {} Clock.__index = Clock function Clock.Clock(Interval: number, Callback: () -> ()) ...
326
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/Util/Collection.luau
luau
.luau
local CollectionService = game:GetService("CollectionService") local Spawn = require(script.Parent.Spawn) return function<T...>(Tag: string, Start: (Instance) -> T..., Stop: (T...) -> ()): () -> () local InstanceMap = {} for _, Instance in CollectionService:GetTagged(Tag) do Spawn(function() InstanceMap[Insta...
223
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/Util/Promise.luau
luau
.luau
local Spawn = require(script.Parent.Spawn) local Promise = {} Promise.__index = Promise function Promise.Promise(Callback: (Resolve: (...any) -> (), Reject: (...any) -> ()) -> ()) local self = setmetatable({}, Promise) self.Status = "Pending" self.OnResolve = {} :: { (...any) -> () } self.OnReject = {} :: { (......
1,039
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/Util/Ratelimit.luau
luau
.luau
return function<T>(Limit: number, Interval: number) assert(Limit > 0, "Limit must be greater than 0") local CountMap = {} :: { [T]: number } local CountKeyless = 0 return function(Key: T?) if Key then local Count = CountMap[Key] if Count == nil then Count = 0 task.delay(Interval, function() ...
209
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/Util/Signal.luau
luau
.luau
local Promise = require(script.Parent.Promise) local Spawn = require(script.Parent.Spawn) type SignalNode<T...> = { Next: SignalNode<T...>?, Callback: (T...) -> (), } export type Signal<T...> = { Root: SignalNode<T...>?, Connect: (self: Signal<T...>, Callback: (T...) -> ()) -> () -> (), Wait: (self: Signal<T......
403
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/Util/Spawn.luau
luau
.luau
local FreeThread: thread? = nil local function FunctionPasser(fn, ...) local AquiredThread = FreeThread FreeThread = nil fn(...) FreeThread = AquiredThread end local function Yielder() while true do FunctionPasser(coroutine.yield()) end end return function<T...>(fn: (T...) -> (), ...: T...) if not FreeThrea...
124
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Red/init.luau
luau
.luau
local Net = require(script.Net) return { Server = Net.Server, Client = Net.Client, Collection = require(script.Util.Collection), Ratelimit = require(script.Util.Ratelimit), Promise = require(script.Util.Promise), Signal = require(script.Util.Signal), Clock = require(script.Util.Clock), Spawn = require(script....
80
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Trove.luau
luau
.luau
--!strict local RunService = game:GetService("RunService") export type Trove = { Extend: (self: Trove) -> Trove, Clone: <T>(self: Trove, instance: T & Instance) -> T, Construct: <T, A...>(self: Trove, class: Constructable<T, A...>, A...) -> T, Connect: (self: Trove, signal: SignalLike | RBXScriptSignal, fn: (...a...
3,857
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/init.luau
luau
.luau
local RunService = game:GetService("RunService") local Client = require(script.Client) local Server = require(script.Server) if RunService:IsClient() then -- No Server object on the client script.Server:Destroy() Server = nil else Client = nil end return setmetatable({ Client = Client, Server = S...
175
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/LifeCycles/Client/AppleQuest.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Client type QuestLifeCycle = RoQuest.QuestLifeCycle local QuestLifeCycle = RoQuest.QuestLifeCycle local AppleQuest = QuestLifeCycle { Name = "AppleQuest", } function AppleQuest:OnStart() -- prin...
154
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/LifeCycles/Server/AppleQuest.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server type QuestLifeCycle = RoQuest.QuestLifeCycle local QuestLifeCycle = RoQuest.QuestLifeCycle local AppleQuest = QuestLifeCycle { Name = "AppleQuest", } function AppleQuest:OnStart() --prin...
154
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/LifeCycles/Server/CornQuest.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server type QuestLifeCycle = RoQuest.QuestLifeCycle local QuestLifeCycle = RoQuest.QuestLifeCycle local CornQuest: QuestLifeCycle = QuestLifeCycle { Name = "CornQuest", } return CornQuest
75
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/ObjectiveInfos/Apple.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local ObjectiveInfo = RoQuest.ObjectiveInfo return ObjectiveInfo.new { Description = "%s/%s apples collected", Name = "Collect Apples", ObjectiveId = "Apple", }
69
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/ObjectiveInfos/Corn.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local ObjectiveInfo = RoQuest.ObjectiveInfo return ObjectiveInfo.new { Description = "%s/%s corn collected", Name = "Collect Corn", ObjectiveId = "Corn", }
68
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/ObjectiveInfos/Flower.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local ObjectiveInfo = RoQuest.ObjectiveInfo return ObjectiveInfo.new { Description = "%s/%s flowers collected", Name = "Collect Flowers", ObjectiveId = "Flower", }
69
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/ObjectiveInfos/Marble.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local ObjectiveInfo = RoQuest.ObjectiveInfo return ObjectiveInfo.new { Description = "%s/%s marbles collected", Name = "Collect Marbles", ObjectiveId = "Marble", }
71
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/ObjectiveInfos/Zombie.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local ObjectiveInfo = RoQuest.ObjectiveInfo return ObjectiveInfo.new { Description = "%s/%s zombies killed", Name = "Kill Zombies", ObjectiveId = "KillZombie", }
70
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/Quests/Apple.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local appleObjective = require(ReplicatedStorage.ObjectiveInfos.Apple) local Quest = RoQuest.Quest return Quest { Name = "Collect Apples", -- The name of our quest Description = "Collect 2...
308
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/Quests/Apple2.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local appleObjective = require(ReplicatedStorage.ObjectiveInfos.Apple) local Quest = RoQuest.Quest return Quest { Name = "Collect Apples", -- The name of our quest Description = "Collect 3...
312
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/Quests/CornCurse.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local cornObjective = require(ReplicatedStorage.ObjectiveInfos.Corn) local Quest = RoQuest.Quest return Quest { Name = "Corn Curse!", -- The name of our quest Description = "Collect 3 corn...
306
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/Quests/Event.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local flowerObjective = require(ReplicatedStorage.ObjectiveInfos.Flower) local Quest = RoQuest.Quest return Quest { Name = "Collect Flowers", -- The name of our quest Disabled = true, ...
322
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/Quests/Flower.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local flowerObjective = require(ReplicatedStorage.ObjectiveInfos.Flower) local Quest = RoQuest.Quest return Quest { Name = "Collect Flowers", -- The name of our quest Description = "Collec...
307
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/Quests/InfiniteCorn.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local cornObjective = require(ReplicatedStorage.ObjectiveInfos.Corn) local Quest = RoQuest.Quest return Quest { Name = "Corn Trouble!", -- The name of our quest Description = "Collect 1 co...
302
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/Quests/Marble.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local marbleObjective = require(ReplicatedStorage.ObjectiveInfos.Marble) local Quest = RoQuest.Quest return Quest { Name = "Collect Shiny Marble", -- The name of our quest Description = "C...
304
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ReplicatedStorage/Quests/Zombie.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local zombieObjective = require(ReplicatedStorage.ObjectiveInfos.Zombie) local Quest = RoQuest.Quest return Quest { Name = "An undead problem!", -- The name of our quest Description = "Kil...
309
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ServerScriptService/QuestManager.server.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Server local Red = require(ReplicatedStorage.RoQuest.Vendor.Red).Server RoQuest.OnStart():andThen(function() local Net = Red "QuestManager" Net:On("AcceptQuest", function(player: Player, questId:...
163
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/ServerScriptService/main.server.luau
luau
.luau
local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local DataStoreService = game:GetService("DataStoreService") local RoQuest = require(ReplicatedStorage.RoQuest).Server local questsStore = DataStoreService:GetDataStore("PlayerQuests") local PlayerQuestData = RoQ...
454
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/StarterPlayerScripts/Components/QuestGiver.client.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local CollectionService = game:GetService("CollectionService") local RoQuest = require(ReplicatedStorage.RoQuest).Client local Hud = require(script.Parent.Parent.Interface.Hud) local Prompt = require(script.Parent.Parent.Interface.Prompt) local QuestStatus...
597
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/StarterPlayerScripts/Interface/Hud.luau
luau
.luau
--!strict local Players = game:GetService("Players") local localPlayer: Player = Players.LocalPlayer local playerGui: PlayerGui = localPlayer:WaitForChild("PlayerGui") local questLog: ScreenGui = playerGui:WaitForChild("QuestLog") local prompts: ScreenGui = playerGui:WaitForChild("Prompts") local hud: ScreenGui = play...
293
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/StarterPlayerScripts/Interface/Popup.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local SoundService = game:GetService("SoundService") local Players = game:GetService("Players") local TweenService = game:GetService("TweenService") local RoQuest = require(ReplicatedStorage.RoQuest).Client type Quest = RoQuest.Quest local localPlayer: P...
476
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/StarterPlayerScripts/Interface/Prompt.luau
luau
.luau
--!strict local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Client local Red = require(ReplicatedStorage.RoQuest.Vendor.Red).Client local Hud = require(script.Parent.Hud) type Quest = RoQuest.Quest type QuestObj...
541
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/StarterPlayerScripts/Interface/QuestLog.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local Players = game:GetService("Players") local RoQuest = require(ReplicatedStorage.RoQuest).Client local Red = require(ReplicatedStorage.RoQuest.Vendor.Red).Client type Quest = RoQuest.Quest local DEFAULT_COLOR: Color3 = Color3.fromRGB(140, 140, 140) l...
1,173
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/StarterPlayerScripts/Interface/Quests.luau
luau
.luau
local Players = game:GetService("Players") local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Client type Quest = RoQuest.Quest type QuestObjective = RoQuest.QuestObjective local QuestStatus = RoQuest.QuestStatus local localPlayer: Player = Players.Loca...
798
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/StarterPlayerScripts/Interface/init.client.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Client RoQuest.OnStart():andThen(function() for _, moduleScript: ModuleScript in script:GetChildren() do require(moduleScript):Init() end end)
64
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/src/StarterPlayerScripts/main.client.luau
luau
.luau
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Client RoQuest:Init(RoQuest:LoadDirectory(ReplicatedStorage.LifeCycles.Client))
48
ohzw/roblox-dev-skills
ohzw-roblox-dev-skills-8eb7488/.claude/skills/building-3d-objects/scripts/validate.luau
luau
.luau
-- Roblox Object Validation Script -- Usage: Execute this script via mcp__roblox__run_code after completing a build. local TARGET_MODEL_NAME = "YourModelNameHere" -- AI: Update this before running local model = workspace:FindFirstChild(TARGET_MODEL_NAME) if not model then print("[ERROR] Model '" .. TARGET_MODEL_N...
479
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/api/Group.luau
luau
.luau
--!strict --!optimize 2 -- Named player sets with __iter and auto-cleanup on PlayerRemoving. local Players = game:GetService("Players") local Array = require(script.Parent.Parent.util.Array) local Log = require(script.Parent.Parent.util.Log) -- Public types -----------------------------------------------------------...
925
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/api/Packet.luau
luau
.luau
--!strict --!optimize 2 -- Packet definition: send, on, once, wait, stats. local Players = game:GetService("Players") local RunService = game:GetService("RunService") local Baseline = require(script.Parent.Parent.internal.Baseline) local Channel = require(script.Parent.Parent.internal.Channel) local Log = require(scr...
2,246
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/api/Scope.luau
luau
.luau
--!strict --!optimize 2 -- Batched connection lifecycle for Lync, RBXScriptConnection, and disconnect()-style objects. local Types = require(script.Parent.Parent.Types) -- Public types ----------------------------------------------------------- export type ScopeHandle = { on: (self: ScopeHandle, source: any, fn:...
619
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/api/Signal.luau
luau
.luau
--!strict --!optimize 2 -- O(1) disconnect signal with thread reuse and reentrancy-safe fire. local Types = require(script.Parent.Parent.Types) -- Constants -------------------------------------------------------------- local STATE_DISCONNECTED = 0 local STATE_CONNECTED = 1 local STATE_ONCE = 2 -- State -----------...
1,155
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/Base.luau
luau
.luau
--!strict --!optimize 2 -- Fixed-size codec factory + channel buffer-grow primitive. local Log = require(script.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Types) -- Constants -------------------------------------------------------------- local DEFAULT_MAX = 1048576 local INITIAL_BUF = 1024 -...
961
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/composite/Array.luau
luau
.luau
--!strict --!native -- array() and deltaArray(). Bool elements are bit-packed. local Base = require(script.Parent.Parent.Base) local Baseline = require(script.Parent.Parent.Parent.internal.Baseline) local Log = require(script.Parent.Parent.Parent.util.Log) local Shared = require(script.Parent.Parent.composite.Shared) ...
3,731
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/composite/Map.luau
luau
.luau
--!strict --!native -- map() and deltaMap(). Keys sorted at encode for stable wire bytes. local Base = require(script.Parent.Parent.Base) local Baseline = require(script.Parent.Parent.Parent.internal.Baseline) local Log = require(script.Parent.Parent.Parent.util.Log) local Shared = require(script.Parent.Parent.composi...
3,901
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/composite/Optional.luau
luau
.luau
--!strict --!native -- Optional codec. 1-byte present/absent flag, value only when present. local Channel = require(script.Parent.Parent.Parent.internal.Channel) local Log = require(script.Parent.Parent.Parent.util.Log) local Shared = require(script.Parent.Parent.composite.Shared) local Types = require(script.Parent.P...
361
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/composite/Shared.luau
luau
.luau
--!strict --!native -- Shared composite-codec helpers: delta flags, scratch pool, bool packing. local Base = require(script.Parent.Parent.Base) local Buf = require(script.Parent.Parent.Parent.util.Buffer) local Channel = require(script.Parent.Parent.Parent.internal.Channel) local Log = require(script.Parent.Parent.Par...
2,271
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/composite/Struct.luau
luau
.luau
--!strict --!native -- struct() and deltaStruct(). Bool fields bit-pack into a tail block. local Base = require(script.Parent.Parent.Base) local Baseline = require(script.Parent.Parent.Parent.internal.Baseline) local Channel = require(script.Parent.Parent.Parent.internal.Channel) local Log = require(script.Parent.Pare...
4,114
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/composite/Tagged.luau
luau
.luau
--!strict --!native -- Discriminated union codec. u8 variant tag + variant payload. local Channel = require(script.Parent.Parent.Parent.internal.Channel) local Log = require(script.Parent.Parent.Parent.util.Log) local Shared = require(script.Parent.Parent.composite.Shared) local Types = require(script.Parent.Parent.Pa...
699
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/composite/Tuple.luau
luau
.luau
--!strict --!native -- Positional ordered codec. Like struct but indexed. local Base = require(script.Parent.Parent.Base) local Log = require(script.Parent.Parent.Parent.util.Log) local Shared = require(script.Parent.Parent.composite.Shared) local Types = require(script.Parent.Parent.Parent.Types) -- Private --------...
998
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/Buffer.luau
luau
.luau
--!strict --!native -- Raw buffer codec with dense-prefix-varint length prefix. local Base = require(script.Parent.Parent.Base) local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent.Types) local Varint = require(script.Parent.Parent.primitive.Varint) -- Private --...
450
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/CFrame.luau
luau
.luau
--!strict --!native -- CFrame codec. Default lossless (24B); __call yields smallest-three quat (16B). local Base = require(script.Parent.Parent.Base) local Quat = require(script.Parent.Parent.Parent.util.Quat) local Types = require(script.Parent.Parent.Parent.Types) -- Constants --------------------------------------...
997
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/Color.luau
luau
.luau
--!strict --!native -- Color3 codec. 3 bytes (R/G/B u8 per channel), clamped to [0, 1]. local Base = require(script.Parent.Parent.Base) local Constants = require(script.Parent.Parent.Parent.util.Constants) -- Private ---------------------------------------------------------------- local U8_MAX = Constants.U8_MAX loc...
294
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/Instance.luau
luau
.luau
--!strict --!native -- Instance codec via the channel's sidecar reference array. local Channel = require(script.Parent.Parent.Parent.internal.Channel) local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent.Types) -- Private -----------------------------------------...
332
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/IntVector.luau
luau
.luau
--!strict --!native -- Vector2int16 (4B) and Vector3int16 (6B) codecs. local Base = require(script.Parent.Parent.Base) local Signed = require(script.Parent.Parent.primitive.Signed) -- Private ---------------------------------------------------------------- local writeI16 = Signed.writeI16 local readi16 = buffer.read...
376
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/NumberRange.luau
luau
.luau
--!strict --!native -- NumberRange codec. 8B: Min f32 + Max f32. local Base = require(script.Parent.Parent.Base) local Log = require(script.Parent.Parent.Parent.util.Log) -- Private ---------------------------------------------------------------- local writef32 = buffer.writef32 local readf32 = buffer.readf32 local...
281
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/Ray.luau
luau
.luau
--!strict --!native -- Ray codec. 24B: Origin (3x f32) + Direction (3x f32). local Base = require(script.Parent.Parent.Base) -- Private ---------------------------------------------------------------- local writef32 = buffer.writef32 local readf32 = buffer.readf32 local function writeRay(b: buffer, off: number, val...
308
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/Rect.luau
luau
.luau
--!strict --!native -- Rect codec. 16B: 4x f32 (Min.X, Min.Y, Max.X, Max.Y). local Base = require(script.Parent.Parent.Base) -- Private ---------------------------------------------------------------- local writef32 = buffer.writef32 local readf32 = buffer.readf32 local function writeRect(b: buffer, off: number, va...
255
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/Region.luau
luau
.luau
--!strict --!native -- Region3 (24B) and Region3int16 (12B) codecs. local Base = require(script.Parent.Parent.Base) local Signed = require(script.Parent.Parent.primitive.Signed) -- Private ---------------------------------------------------------------- local writef32 = buffer.writef32 local readf32 = buffer.readf32...
656
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/Sequence.luau
luau
.luau
--!strict --!native -- NumberSequence (12B/keypoint) and ColorSequence (7B/keypoint) codecs. local Base = require(script.Parent.Parent.Base) local Constants = require(script.Parent.Parent.Parent.util.Constants) local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent....
1,449
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/String.luau
luau
.luau
--!strict --!native -- UTF-8 string codec. __call yields a length-bounded variant. local Base = require(script.Parent.Parent.Base) local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent.Types) local Varint = require(script.Parent.Parent.primitive.Varint) -- Private...
698
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/UDim.luau
luau
.luau
--!strict --!native -- UDim (8B) and UDim2 (16B) codecs. Scale = f32, Offset = i32. local Base = require(script.Parent.Parent.Base) local Signed = require(script.Parent.Parent.primitive.Signed) -- Private ---------------------------------------------------------------- local writef32 = buffer.writef32 local readf32 ...
428
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/datatype/Vector.luau
luau
.luau
--!strict --!native -- Vector2 / Vector3 codecs. __call yields a quantized variant. local Base = require(script.Parent.Parent.Base) local Quantize = require(script.Parent.Parent.Parent.util.Quantize) local Types = require(script.Parent.Parent.Parent.Types) -- Private --------------------------------------------------...
1,239
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/meta/Auto.luau
luau
.luau
--!strict --!native -- Self-describing codec. u8 type tag + value payload. local Base = require(script.Parent.Parent.Base) local BufferC = require(script.Parent.Parent.datatype.Buffer) local CFrameC = require(script.Parent.Parent.datatype.CFrame) local Channel = require(script.Parent.Parent.Parent.internal.Channel) lo...
2,683
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/meta/Bitfield.luau
luau
.luau
--!strict --!native -- Sub-byte packed bool/uint/int fields. Up to 32 bits total per record. local Base = require(script.Parent.Parent.Base) local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent.Types) -- Constants -------------------------------------------------...
1,392
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/meta/Custom.luau
luau
.luau
--!strict --!optimize 2 -- User-defined fixed-size codec. local Base = require(script.Parent.Parent.Base) local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent.Types) -- Private ---------------------------------------------------------------- local floor = math.f...
241
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/meta/DeltaScalar.luau
luau
.luau
--!strict --!native -- Delta scalars: zigzag-varint diff against previous frame for ints, floats, vec3, CFrame. local Base = require(script.Parent.Parent.Base) local Baseline = require(script.Parent.Parent.Parent.internal.Baseline) local Log = require(script.Parent.Parent.Parent.util.Log) local Quantize = require(scri...
3,579
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/meta/Enum.luau
luau
.luau
--!strict --!native -- String-keyed enum codec. Maps values to u8 indices at definition time. local Base = require(script.Parent.Parent.Base) local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent.Types) -- Public ---------------------------------------------------...
378
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/meta/Float.luau
luau
.luau
--!strict --!native -- Fixed-point float quantizer. Maps a float range to u8/u16/u32. local Base = require(script.Parent.Parent.Base) local Quantize = require(script.Parent.Parent.Parent.util.Quantize) local Types = require(script.Parent.Parent.Parent.Types) -- Private ------------------------------------------------...
287
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/meta/Nothing.luau
luau
.luau
--!strict --!optimize 2 -- 0-byte codec. Reads nil. For fire-and-forget signals. local Base = require(script.Parent.Parent.Base) -- Public ----------------------------------------------------------------- local Nothing = {} Nothing.nothing = Base.constant(nil :: nil) return table.freeze(Nothing)
59
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/meta/Unknown.luau
luau
.luau
--!strict --!native -- Bypass codec. Stashes the value in the channel sidecar refs (no schema). local Channel = require(script.Parent.Parent.Parent.internal.Channel) local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent.Types) -- Private --------------------------...
256
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/primitive/Bool.luau
luau
.luau
--!strict --!optimize 2 -- 1-byte boolean codec. _isBool flag opts struct/array into bit packing. local Base = require(script.Parent.Parent.Base) -- Private ---------------------------------------------------------------- local function writeBool(b: buffer, off: number, value: boolean): () buffer.writeu8(b, off,...
153
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/primitive/Float16.luau
luau
.luau
--!strict --!native -- IEEE 754 binary16 codec. 2 bytes, +/-65504 finite range, ~3 decimal digits. local Base = require(script.Parent.Parent.Base) -- Constants -------------------------------------------------------------- local MAX_FINITE = 65504 local NAN_BITS = 0x7E00 local INF_BITS = 0x7C00 -- Private ---------...
690
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/primitive/Int.luau
luau
.luau
--!strict --!optimize 2 -- Range-typed integer codec. Picks the narrowest u8/u16/u32/i8/i16/i32 form. local Base = require(script.Parent.Parent.Base) local Log = require(script.Parent.Parent.Parent.util.Log) local Signed = require(script.Parent.Signed) local Types = require(script.Parent.Parent.Parent.Types) -- Priva...
470
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/primitive/Number.luau
luau
.luau
--!strict --!optimize 2 -- Explicit-precision float codecs: f32 (4B) and f64 (8B). local Base = require(script.Parent.Parent.Base) -- State ------------------------------------------------------------------ --[[ Roblox is single-threaded, so a module-level scratch is safe to alias. Auto codec uses this to ro...
174
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/primitive/Signed.luau
luau
.luau
--!strict --!native -- Signed integer writers via writeu* + two's complement (writei* is not FASTCALL). -- Private ---------------------------------------------------------------- local writeu8 = buffer.writeu8 local writeu16 = buffer.writeu16 local writeu32 = buffer.writeu32 -- Public ------------------------------...
252
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/primitive/Varint.luau
luau
.luau
--!strict --!native -- Dense prefix varint over [0, 2^32 - 1]. Single-branch decode. local Base = require(script.Parent.Parent.Base) local Constants = require(script.Parent.Parent.Parent.util.Constants) local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent.Types) ...
1,395
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/codec/primitive/Zint.luau
luau
.luau
--!strict --!native -- Signed varint via zigzag mapping. Small magnitudes pack in 1 byte. local Log = require(script.Parent.Parent.Parent.util.Log) local Types = require(script.Parent.Parent.Parent.Types) local Varint = require(script.Parent.Parent.primitive.Varint) -- Constants --------------------------------------...
762
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/internal/Baseline.luau
luau
.luau
--!strict --!optimize 2 -- Read-side delta cache, keyed by (deltaId, peer). local Types = require(script.Parent.Parent.Types) -- State ------------------------------------------------------------------ -- Per-deltaId map keyed by BaselineKey: server uses Player, client uses `false`. local _caches: { [number]: { [Typ...
359
Axp3cter/Lync
Axp3cter-Lync-8fb9770/src/internal/Middleware.luau
luau
.luau
--!strict --!optimize 2 -- Ordered intercept chains for send/receive/drop hooks. local Signal = require(script.Parent.Parent.api.Signal) local Types = require(script.Parent.Parent.Types) -- State ------------------------------------------------------------------ local _sendSignal = Signal.create() local _receiveSign...
647