This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use std::{ | |
collections::HashMap, | |
fs, | |
io::{self, Write}, | |
}; | |
use reqwest::Client; | |
use serde::{Deserialize, Serialize}; | |
use serde_json::json; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- instructions: | |
-- put the assets.lua into a ModuleScript inside ServerScriptService, then run this script inside the command bar | |
-- it will generate an output file in ServerScriptService, which you can then paste into assets.d.ts | |
local assets = require(game.ServerScriptService.assets) | |
local gen = [[declare namespace assetIds { | |
const ]] | |
function generateSection(sec) | |
local res = '' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const data = [3, 225, 1, 225, 6, 6, 1100, 1, 238, 225, 104, 0, 1101, 32, 43, 225, 101, 68, 192, 224, 1001, 224, -160, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 2, 224, 1, 223, 224, 223, 1001, 118, 77, 224, 1001, 224, -87, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 6, 224, 1, 223, 224, 223, 1102, 5, 19, 225, 1102, 74, 50, 224, 101, -3700, 224, 224, 4, 224, 1002, 223, 8, 223, 1001, 224, 1, 224, 1, 223, 224, 223, 1102, 89, 18, 225, 1002, 14, 72, 224, 1001, 224, -3096, 224, 4, 224, 102, 8, 223, 223, 101, 5, 224, 224, 1, 223, 224, 223, 1101, 34, 53, 225, 1102, 54, 10, 225, 1, 113, 61, 224, 101, -39, 224, 224, 4, 224, 102, 8, 223, 223, 101, 2, 224, 224, 1, 223, 224, 223, 1101, 31, 61, 224, 101, -92, 224, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 4, 224, 1, 223, 224, 223, 1102, 75, 18, 225, 102, 48, 87, 224, 101, -4272, 224, 224, 4, 224, 102, 8, 223, 223, 1001, 224, 7, 224, 1, 224, 223, 223, 1101, 23, 92, 225, 2, 165, 218, 224, 101, -3675, 224, 224, 4, 224, 1002, 223, 8, 223, 101, 1, 224, 224, 1, 223, 224, 223, 1102, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- OverHash method: https://devforum.roblox.com/t/detecting-on-which-map-the-character-is/233463/13?u=overhash | |
-- Aznarog method: https://devforum.roblox.com/t/what-is-the-quickest-and-most-efficient-way-to-check-if-a-player-is-within-a-region/367554/5?u=overhash | |
-- EDmaster24 method: https://devforum.roblox.com/t/what-is-the-quickest-and-most-efficient-way-to-check-if-a-player-is-within-a-region/367554/3?u=overhash | |
-- ForeverHD method: https://devforum.roblox.com/t/zonecontroller-retrieving-players-within-an-area-zone/397465 | |
local Functions = { } | |
local hitbox, part = workspace.Model.MAIN, workspace.Model.example | |
Functions["OverHash method"] = function() | |
local LocalDifference = (hitbox.CFrame - hitbox.CFrame.p):inverse() * (part.Position - hitbox.Position) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- This makes sure we can load Lemur and other libraries that depend on init.lua | |
package.path = package.path .. ";?/init.lua" | |
-- If this fails, make sure you've cloned all Git submodules. | |
local lemur = require("modules.lemur") | |
local habitat = lemur.Habitat.new() | |
local function newFolder(name, parent, content) | |
local folder |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import * as DataStore2 from "@rbxts/PACKAGETESTNAME"; | |
import { Players } from "@rbxts/services"; | |
DataStore2.Combine('main', 'test', 'test2') | |
DataStore2.ClearCache() | |
DataStore2.PatchGlobalSettings({ | |
SavingMethod: 'OrderedBackups' | |
}) | |
Players.PlayerAdded.Connect(async player => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local Players = game:GetService('Players') | |
local ReplicatedStorage = game:GetService('ReplicatedStorage') | |
local DataStore2 = require(ReplicatedStorage:WaitForChild('DataStore2')) | |
DataStore2.Combine('DATA', 'test') | |
Players.PlayerAdded:Connect(function(player) | |
local store = DataStore2('test', player) |