Skip to content

Instantly share code, notes, and snippets.

View NobleDraconian's full-sized avatar

Noble_Draconian NobleDraconian

View GitHub Profile
@NobleDraconian
NobleDraconian / EmotePose.js
Created August 18, 2022 23:56
Roblox - avatar emote pose
// doing ajax because easy csrf handling w/their middleware lol
$.ajax({
method: "POST",
url: "https://avatar.roblox.com/v1/avatar/thumbnail-customization",
contentType: "application/json",
data: JSON.stringify({
"camera": {
// Ranges are inclusive.
"distanceScale": 1, // 0.5 to 4
"fieldOfViewDeg": 15, // 15 to 45
@NobleDraconian
NobleDraconian / ConvertModels.lua
Last active July 1, 2022 23:40
Convert all model files in a directory into binary format
local Debug_TabLevel = 0
local function SplitString(inputstr, sep)
if sep == nil then
sep = "%s"
end
local t={}
for str in string.gmatch(inputstr, "([^"..sep.."]+)") do
table.insert(t, str)
end
@NobleDraconian
NobleDraconian / lua-lint.yml
Created March 23, 2022 21:02
Selene lua linting
name: Lua linting
on:
push:
branches:
- 'v*.*.*'
- master
paths:
- 'src/**'
pull_request:
@NobleDraconian
NobleDraconian / publish.yml
Created February 18, 2022 22:22 — forked from boatbomber/publish.yml
A publishing workflow for Roblox projects
## Welcome to boatbomber's publish workflow.
# You'll need a few things in your GitHub Action secrets for this to work:
# - ROBLOSECURITY : A cookie of a Roblox account (used to install Studio for testing)
# - RBXID : Another cookie from the account (also used in Studio install)
# - PUBLISHCLOUD : A Roblox OpenCloud API key with Write permission in Place Management for your game
# This workflow assumes that you have:
# - A `foreman.toml` with rojo, selene, run-in-roblox, and darklua
# - A `default.project.json` that builds a place file
@NobleDraconian
NobleDraconian / README.md
Last active December 8, 2023 07:28
Roblox - CI for automated game deployments

Automated game deployment instructions

  1. Tag a commit in the repository with the format of v*.*.* for production releases, and a tag of v*.*.*-qa.* for QA / test releases. For example, v1.6.2-qa.3.
  2. Push the tag to origin
  3. The release.yml action should create a draft release, with the game's rbxl file automatically attached to it.
  4. Add a description to the draft release. Typically this will be release notes.
  5. Publish the release as either a full release or a pre-release.
  6. The deploy.yml action will deploy the place file to either your production environment or your test environment, depending on the naming of the tag.
  7. Your game is now deployed to the proper environment!
@NobleDraconian
NobleDraconian / DrawBeamCircle.lua
Created November 22, 2021 16:56 — forked from ecurtiss/DrawBeamCircle.lua
Creates a circle out of Beams in Roblox.
--[[
Creates a circle out of Beams.
You can let it use a default Beam object, but you probably want to pass it
your own via the BeamObject parameter.
local BeamCircle, Attachments, Beams = DrawBeamCircle({
[REQUIRED]
CFrame = CFrame of center of circle,
Radius = Radius of circle,
@NobleDraconian
NobleDraconian / AssetList.lua
Last active January 5, 2020 08:14
Using remodel to add assets to game
-- Example asset list
return{
AssetGroups = {
["UIs"] = {
"UIs",
"ReplicatedFirst.Assets.UIs"
},
["Market Assets"] = {
"Market_Assets",
"ServerStorage.Assets.Market_Assets"