repo
stringclasses
254 values
file_path
stringlengths
29
241
code
stringlengths
100
233k
tokens
int64
14
69.4k
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/SettingsMenu.luau
local MarketplaceService = game:GetService("MarketplaceService") local StarterGui = game:GetService("StarterGui") local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States...
938
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/TopbarHUD.luau
local UserInputService = game:GetService("UserInputService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local Components = require(Rorooms.SourceCode.Cl...
1,433
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/WorldPageMenu.luau
local MarketplaceService = game:GetService("MarketplaceService") local RunService = game:GetService("RunService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Future = require(script.Parent.Parent.Parent.Parent.Parent.Parent.Future) local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = requir...
1,415
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/ScreenGuis/WorldsMenu.luau
local RunService = game:GetService("RunService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local Worlds = require(Rorooms.SourceCode.Client.UI.States.Wo...
1,422
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/CoreGui.luau
local GuiService = game:GetService("GuiService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(script.Parent) local Peek = Fusion.peek local CoreGui = { Scope = Fusion.scoped(Fusion), } CoreGui.IsUnibarOpen = CoreGui.Scope:Computed(fun...
410
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Profiles.luau
local RunService = game:GetService("RunService") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local States = require(script.Parent) local Future = require(Rorooms.Parent.Future) local Fusion = require(Rorooms.Parent.Fusion) local Types = require(Rorooms.SourceCode.Shared.Types) local ProfilesController = ...
638
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Prompts.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local ReconcileTable = require(Rorooms.SourceCode.Shared.ExtPackages.ReconcileTable) local States = require(script.Parent) local Fusion = require(Rorooms.Parent.Fusion) local Peek = Fusion.peek type Prompt = { Title: string, Text: string, Buttons: { [numb...
305
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/RemoteProperties.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local States = require(script.Parent) local Knit = require(Rorooms.Parent.Knit) local RemoteProperties = {} function RemoteProperties:Start() local ItemsController = require(Rorooms.SourceCode.Client.Items.ItemsController) ItemsController.EquippedItemsUpdat...
172
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/ScreenSize.luau
local Workspace = game:GetService("Workspace") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(script.Parent) local Out = Fusion.Out local ScreenSize = { Scope = Fusion.scoped(Fusion), } function ScreenSize:Start() self.Scope:Hydrate(W...
103
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Services.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Knit = require(Rorooms.Parent.Knit) local States = require(script.Parent) type KnitService = typeof(Knit.GetService) local Services = {} function Services:Start() Knit.OnStart():andThen(function() for ServiceName, _ in pairs(States.Services) do St...
101
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Topbar.luau
local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent.Parent local States = require(script.Parent) local OnyxUI = require(Rorooms.Parent.OnyxUI) local Fusion = require(Rorooms.Parent.Fusion) local Assets = require(Rorooms.SourceCode.Shared.Assets) local Peek = Fusion.peek local...
642
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/Worlds.luau
local Rorooms = script.Parent.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(script.Parent) local Knit = require(Rorooms.Parent.Knit) local Peek = Fusion.peek local ROW_SIZE = 3 local RANDOM_WORLD_BASIS = ROW_SIZE * 3 local DEFAULT_WORLD_COUNT = 10 * ROW_SIZE local T...
1,444
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/States/init.luau
local Rorooms = script.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local Loader = require(Rorooms.Parent.Loader) local function UnloadedService(): { [any]: any } return {} end local Scope = Fusion.scoped(Fusion) local States = { Services = { ProfilesService = UnloadedService(), Wo...
712
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/UI/UIController.luau
local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local OnyxUI = require(Rorooms.Parent.OnyxUI) local OnyxUITheme = require(script.Parent.OnyxUITheme) local Config = req...
545
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/Updates/UpdatesController.luau
local RunService = game:GetService("RunService") local Rorooms = script.Parent.Parent.Parent.Parent local Fusion = require(Rorooms.Parent.Fusion) local States = require(Rorooms.SourceCode.Client.UI.States) local Prompts = require(Rorooms.SourceCode.Client.UI.States.Prompts) local Peek = Fusion.peek local UpdatesContr...
267
rorooms/rorooms
rorooms-rorooms-3d06941/src/Client/Worlds/WorldsController.luau
local MarketplaceService = game:GetService("MarketplaceService") local TeleportService = game:GetService("TeleportService") local Rorooms = script.Parent.Parent.Parent.Parent local Knit = require(Rorooms.Parent.Knit) local Topbar = require(Rorooms.SourceCode.Client.UI.States.Topbar) local UIController = require(Roroom...
783
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Components/ComponentsService.luau
local ComponentsService = { Name = script.Name, } function ComponentsService:KnitStart() for _, Module in ipairs(script.Parent:GetChildren()) do if Module:IsA("ModuleScript") and Module ~= script then require(Module) end end end return ComponentsService
61
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Components/LockedZoneComponent.luau
local Rorooms = script.Parent.Parent.Parent.Parent local Component = require(Rorooms.Parent.Component) local Zone = require(Rorooms.Parent.Zone) local Fusion = require(Rorooms.Parent.Fusion) local AttributeBind = require(Rorooms.SourceCode.Shared.ExtPackages.AttributeBind) local Trove = require(Rorooms.Parent.Trove) lo...
467
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Components/VariantCyclerComponent.luau
local Rorooms = script.Parent.Parent.Parent.Parent local Component = require(Rorooms.Parent.Component) local VariantCyclerComponent = Component.new { Tag = `RR_{string.gsub(script.Name, "Component$", "")}`, Variants = {}, } function VariantCyclerComponent:CycleVariant() local ActiveVariant = self.Instance:GetAttr...
633
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Defaults/CharacterDefaultsService.luau
local CollectionService = game:GetService("CollectionService") local Players = game:GetService("Players") local CharacterDefaultsService = { Name = "CharacterDefaultsService", } function CharacterDefaultsService:KnitStart() Players.PlayerAdded:Connect(function(Player) Player.CharacterAdded:Connect(function(Char) ...
85
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Emotes/EmotesService.luau
local MarketplaceService = game:GetService("MarketplaceService") local Rorooms = script.Parent.Parent.Parent.Parent local PlayerCharacterComponent = require(Rorooms.SourceCode.Server.Components.PlayerCharacterComponent) local PlayerDataStoreService = require(Rorooms.SourceCode.Server.PlayerDataStore.PlayerDataStoreServ...
638
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Items/ItemsService.luau
local MarketplaceService = game:GetService("MarketplaceService") local Rorooms = script.Parent.Parent.Parent.Parent local PlayerDataStoreService = require(Rorooms.SourceCode.Server.PlayerDataStore.PlayerDataStoreService) local t = require(Rorooms.Parent.t) local Config = require(Rorooms.Config).Config local Future = re...
1,089
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Music/MusicService.luau
local SoundService = game:GetService("SoundService") local Rorooms = script.Parent.Parent.Parent.Parent local Knit = require(Rorooms.Parent.Knit) local Config = require(Rorooms.Config).Config local MusicService = { Name = "MusicService", Client = { CurrentSong = Knit.CreateProperty(), }, CurrentIndex = 0, Son...
352
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/PlayerDataStore/DataTemplate.luau
export type PlayerData = { Level: number, XP: number, MinutesSpent: number, Profile: { Nickname: string, Bio: string, Role: string?, }, } local Template: PlayerData = { Level = 1, XP = 0, MinutesSpent = 0, Profile = { Nickname = "", Bio = "", Role = nil, }, } return Template
101
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/PlayerDataStore/LevelingService.luau
local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent local PlayerDataStoreService = require(script.Parent.PlayerDataStoreService) local XPToLevelUp = require(Rorooms.SourceCode.Shared.XPToLevelUp) local Knit = require(Rorooms.Parent.Knit) local DataTemplate = require(Rorooms.Sou...
1,020
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/PlayerDataStore/PlayerDataStoreService.luau
local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent local ProfileService = require(Rorooms.Parent.ProfileService) local Signal = require(Rorooms.Parent.Signal) local DataTemplate = require(script.Parent.DataTemplate) local DeepCopy = require(Rorooms.SourceCode.Shared.ExtPackag...
622
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Profiles/ProfilesService.luau
local MarketplaceService = game:GetService("MarketplaceService") local Players = game:GetService("Players") local UserService = game:GetService("UserService") local Rorooms = script.Parent.Parent.Parent.Parent local Knit = require(Rorooms.Parent.Knit) local FilterString = require(Rorooms.SourceCode.Shared.ExtPackages....
1,517
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Worlds/RandomWorldsService.luau
local Rorooms = script.Parent.Parent.Parent.Parent local WorldRegistryService = require(script.Parent.WorldRegistryService) local ShuffleArray = require(Rorooms.SourceCode.Shared.ExtPackages.ShuffleArray) local Knit = require(Rorooms.Parent.Knit) local t = require(Rorooms.Parent.t) local GetEntriesFromArray = require(R...
385
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Worlds/TopWorldsService.luau
local DataStoreService = game:GetService("DataStoreService") local Players = game:GetService("Players") local Rorooms = script.Parent.Parent.Parent.Parent local Future = require(Rorooms.Parent.Future) local WorldRegistryService = require(Rorooms.SourceCode.Server.Worlds.WorldRegistryService) local Knit = require(Roroo...
1,336
rorooms/rorooms
rorooms-rorooms-3d06941/src/Server/Worlds/WorldsService.luau
local RunService = game:GetService("RunService") local TeleportService = game:GetService("TeleportService") local Rorooms = script.Parent.Parent.Parent.Parent local t = require(Rorooms.Parent.t) local WorldsService = { Name = script.Name, Client = {}, } function WorldsService.Client:TeleportToWorld(Player: Player,...
180
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/Assets/Icons.luau
local Icons = { UserBadges = { Level = "rbxassetid://113726942412490", Rorooms = "rbxassetid://74362866882865", RoroomsPlus = "rbxassetid://98919849651582", ServerOwner = "rbxassetid://81805631752548", WorldBuilder = "rbxassetid://72011443469820", }, Topbar = { Settings = { Outlined = "rbxassetid://17...
648
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/Assets/Images.luau
return { RoroomsLogo = "rbxassetid://124390954251956", RoroomsGlyph = "rbxassetid://97237065883195", }
39
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/FindFeatureFromModule.luau
local FEATURE_MODULES_MAP = { Profiles = { "ProfilesService", "ProfilesController" }, Items = { "ItemsService", "ItemsController" }, Emotes = { "EmotesService", "EmotesController" }, Worlds = { "WorldsService", "WorldRegistryService", "TopWorldsService", "RandomWorldsService", "WorldsController", }, Mus...
179
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/Types.luau
export type Profile = { Nickname: string?, DisplayName: string, Username: string, Bio: string?, Role: string?, Level: number, } return nil
39
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/XPToGetToLevel.luau
local XPToLevelUp = require(script.Parent.XPToLevelUp) return function(GoalLevel: number) local Level = 0 local TotalXP = 0 for _ = 0, GoalLevel do TotalXP += XPToLevelUp(Level) Level += 1 end return TotalXP end
75
rorooms/rorooms
rorooms-rorooms-3d06941/src/Shared/XPToLevelUp.luau
local Rorooms = script.Parent.Parent.Parent local Config = require(Rorooms.Config).Config local CURVE_MULTIPLIER = 0.85 return function(Level: number) Level = math.floor(Level) local Result = Config.Systems.Leveling.BaseLevelUpXP * (CURVE_MULTIPLIER * ((Level % 5) + (Level / 5))) if Result > 0 then return Result...
108
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Shared/Classes/ObjectiveInfo.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
--!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
--!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
--!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
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
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
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
--!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
--!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
--!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
--!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
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
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
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
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
--!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
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
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
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
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
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
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
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
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
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
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
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
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
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/Signal.luau
-- ----------------------------------------------------------------------------- -- Batched Yield-Safe Signal Implementation -- -- This is a Signal class which has effectively identical behavior to a -- -- normal RBXScriptSignal, with the only difference being a couple extra ...
2,702
prooheckcp/RoQuest
prooheckcp-RoQuest-ab9fff8/RoQuest/Vendor/Trove.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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
--!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
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
--!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
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
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
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
local ReplicatedStorage = game:GetService("ReplicatedStorage") local RoQuest = require(ReplicatedStorage.RoQuest).Client RoQuest:Init(RoQuest:LoadDirectory(ReplicatedStorage.LifeCycles.Client))
48
mkargus/PartToTerrain
mkargus-PartToTerrain-b170632/src/Components/App.luau
local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Localization = require(Plugin.Util.Localization) local Store = require(Plugin.Util.Store) local Tooltip = require(Plugin.Components.Tooltip) local TabSet = require(Plugin.Components.TabSet) local UpdateNotice = require(Plugin.Comp...
596
mkargus/PartToTerrain
mkargus-PartToTerrain-b170632/src/Components/MaterialPanel/MaterialGridItem.luau
local Plugin = script.Parent.Parent.Parent local React = require(Plugin.Packages.React) local Localization = require(Plugin.Util.Localization) local MaterialPreviewImage = require(script.Parent.MaterialPreviewImage) local Tooltip = require(Plugin.Components.Tooltip) local useTheme = require(Plugin.Hooks.useTheme) ...
737
mkargus/PartToTerrain
mkargus-PartToTerrain-b170632/src/Components/MaterialPanel/MaterialPreviewImage.luau
local React = require(script.Parent.Parent.Parent.Packages.React) local MATERIAL_IMAGE_BASE = 'rbxasset://textures/TerrainTools/mtrl_%s.png' type Props = { Material: Enum.Material, LayoutOrder: number?, Size: UDim2?, Use2022Materials: boolean?, } local function MaterialPreviewImage(props: Props) local mate...
200
mkargus/PartToTerrain
mkargus-PartToTerrain-b170632/src/Components/MaterialPanel/init.luau
local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Constants = require(Plugin.Util.Constants) local Localization = require(Plugin.Util.Localization) local Store = require(Plugin.Util.Store) local MaterialGridItem = require(script.MaterialGridItem) local ScrollingFrame = require(Pl...
820
mkargus/PartToTerrain
mkargus-PartToTerrain-b170632/src/Components/Outline.luau
local CoreGui = game:GetService('CoreGui') local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local ReactRoblox = require(Plugin.Packages.ReactRoblox) local Util = Plugin.Util local Constants = require(Util.Constants) local Settings = require(Util.Settings) local TerrainEnum = require(U...
884
mkargus/PartToTerrain
mkargus-PartToTerrain-b170632/src/Components/PluginApp.luau
local ChangeHistoryService = game:GetService('ChangeHistoryService') local Selection = game:GetService('Selection') local UserInputService = game:GetService('UserInputService') local Plugin = script.Parent.Parent local React = require(Plugin.Packages.React) local Util = Plugin.Util local Constants = require(Util.Con...
1,103