Skip to content

Instantly share code, notes, and snippets.

@cozywitchcraft
cozywitchcraft / convert-scripts-hybrid.luau
Last active September 22, 2025 22:38
Reads and converts scripts from .rbxl to the file system
--!nonstrict
-- For projects that support RunContext and Legacy scripts
local roblox = require("@lune/roblox")
local fs = require("@lune/fs")
local Enum = roblox.Enum
local file = fs.readFile("out.rbxl")
local game = roblox.deserializePlace(file)
-- StarterCharacterScripts/AntiWallhop
local RunService = game:GetService("RunService")
local CAST_POINTS = {
-- Center line
Vector3.new(0, -0.75, 0),
Vector3.new(0, -0.75, 1),
Vector3.new(0, -0.75, -1),
-- Corners
#include <iostream>
const int pation = 1;
int main() {
std::cout << "POOPING" << std::endl;
while (pation) {}
std::cout << "DONE POOPING" << std::endl;
return 0;
}