Skip to content

Instantly share code, notes, and snippets.

View Quenty's full-sized avatar
🎉
Follow me on Twitter @Quenty

James Onnen Quenty

🎉
Follow me on Twitter @Quenty
View GitHub Profile
@unrooot
unrooot / video_frame_player.lua
Created November 3, 2024 05:10
Seamlessly play multiple VideoFrames back to back
--[[
-- This script seamlessly* plays videos in a SurfaceGui in order. It's a bit
-- hacky for a few reasons (mainly Roblox limitations & random delays with
-- VideoFrames) but the biggest one being that Roblox only allows you to upload
-- 3, 30 second videos per month (...lol).
--
-- * - technically, because of a hack (see line 99), we end each clip early by 0.05 seconds
--
-- INSTRUCTIONS:
-- 1. Create a SurfaceGui somewhere
@MrChickenRocket
MrChickenRocket / DemoCode.lua
Last active April 10, 2025 19:13
Add SDF Strokes to editableImages in Roblox. Allows either full compositing or generation of a separate stroke image.
local module = require(script.StrokeScript)
local gui = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("ImageLabel")
local comp = game.Players.LocalPlayer.PlayerGui:WaitForChild("ScreenGui"):WaitForChild("CompositeImageLabel")
--Build a separate stroke image (white) and display it behind the src image
local stroke = 16
local strokeImage, origSize, finalSize = module:MakeStrokeImageFromAssetIdAsync(gui.Image, stroke)
if (strokeImage) then