Skip to content

Instantly share code, notes, and snippets.

@suush-ii
Created September 15, 2025 21:16
Show Gist options
  • Select an option

  • Save suush-ii/d9bb02eae3bcc71c6e796930d574e0a0 to your computer and use it in GitHub Desktop.

Select an option

Save suush-ii/d9bb02eae3bcc71c6e796930d574e0a0 to your computer and use it in GitHub Desktop.
Final avatar script used by hexagon with 2016 rcc.
-- Avatar v1.0.2
-- This is the thumbnail script for R6 avatars. Straight up and down, with the right arm out if they have a gear.
local characterAppearanceUrl, baseUrl, fileExtension, x, y, pose = ...
local ThumbnailGenerator = game:GetService("ThumbnailGenerator")
local Lighting = game:GetService("Lighting") -- old lighting
Lighting.TimeOfDay = "10:00:00"
Lighting.Brightness = 1
Lighting.GeographicLatitude = 5
pcall(function() game:GetService("ContentProvider"):SetBaseUrl(baseUrl) end)
game:GetService("ScriptContext").ScriptsDisabled = true
local player = game:GetService("Players"):CreateLocalPlayer(0)
player.CharacterAppearance = characterAppearanceUrl
player:LoadCharacter(false)
-- Raise up the character's arm if they have gear.
if player.Character then
-- Fix gear on /Asset/CharacterFetch.ashx
for _, child in pairs(player.Backpack:GetChildren()) do
child.Parent = player.Character
end
for _, child in pairs(player.Character:GetChildren()) do
if child:IsA("Tool") then
player.Character.Torso["Right Shoulder"].CurrentAngle = math.rad(90)
break
end
end
if pose == "overlord" then
player.Character.Torso['Left Shoulder'].C0=CFrame.new(-1, 0.5, 0, -4.37113883e-08, 0, -1, 0, 0.99999994, 0, 1, 0, -4.37113883e-08);
player.Character.Torso['Left Shoulder'].C1=CFrame.new(0.49999997, 0.49999997, 4.47034836e-08, 0.163175777, -0.229498923, -0.959533036, -0.33284384, 0.90274477, -0.272519022, 0.928756475, 0.363843203, 0.0709187835);
player.Character.Torso['Right Shoulder'].C0=CFrame.new(1, 0.5, 0, -4.37113883e-08, 0, 1, -0, 0.99999994, 0, -1, 0, -4.37113883e-08);
player.Character.Torso['Right Shoulder'].C1=CFrame.new(-0.5, 0.5, 0, 0.163175479, 0.229498848, 0.959533155, 0.332843512, 0.902745068, -0.272518843, -0.928756654, 0.363842756, 0.0709186569);
end
if pose == "walking" then
player.Character.Torso["Left Hip"].CurrentAngle = 0.2
player.Character.Torso["Left Shoulder"].CurrentAngle = -0.5
player.Character.Torso["Right Hip"].CurrentAngle = 0.5
player.Character.Torso["Right Shoulder"].CurrentAngle = -0.5
end
if pose == "sitting" then
player.Character.Torso["Left Hip"].CurrentAngle = -1.57
player.Character.Torso["Left Shoulder"].CurrentAngle = -1.57
player.Character.Torso["Right Hip"].CurrentAngle = 1.57
player.Character.Torso["Right Shoulder"].CurrentAngle = 1.57
end
end
local result, requestedUrls = ThumbnailGenerator:Click(fileExtension, x, y, --[[hideSky = ]] true)
return result, requestedUrls
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment