Skip to content

Instantly share code, notes, and snippets.

View RyanLua's full-sized avatar

Ryan Luu RyanLua

View GitHub Profile
@RyanLua
RyanLua / fritzing.md
Last active July 7, 2025 18:55
Free download of Fritzing using the official download links

Fritzing Free Download

Important

You need to be logged into Fritzing for these download links to work.

Works by redirecting to the official release download. Visiting the links in the browser directly won't work and needs to be a redirect from a website such as Fritzing or GitHub.

Steps

  1. Sign up or log into https://fritzing.org
@RyanLua
RyanLua / GroupBlacklist.server.luau
Created February 2, 2025 03:13
Kick people from a certain group on Roblox. Place this in a Script under ServerScriptStorage
--!strict
local Players = game:GetService("Players")
local groupId: number = 0 -- Blacklisted group id
local kickReason: string = "Your group is blacklisted" -- Kick reason
local function onPlayerAdded(player: Player): ()
if player:IsInGroup(groupId) then
player:Kick(kickReason)
end
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@RyanLua
RyanLua / TimeOfDay.luau
Last active January 31, 2025 09:24
Script for a time cycle on Roblox using an infinite loop and compound assignment operators. Place this in a Script under ServerScriptService.
local Lighting = game:GetService("Lighting")
local SECOND_DURATION = 0.001
while true do
Lighting.ClockTime += 1/360
task.wait(SECOND_DURATION)
end
@RyanLua
RyanLua / LevelOfDetailOptimize.luau
Last active January 31, 2025 09:26
Changes the LevelOfDetail for all Models to StreamingMesh
local ChangeHistoryService = game:GetService("ChangeHistoryService")
local recording = ChangeHistoryService:TryBeginRecording("Change LevelOfDetail to StreamingMesh")
for _, descendant in pairs(game:GetDescendants()) do
if descendant:IsA("Model") then
descendant.LevelOfDetail = Enum.ModelLevelOfDetail.StreamingMesh
end
end
local GuiService = game:GetService("GuiService")
local TweenService = game:GetService("TweenService")
local Players = game:GetService("Players")
local PlayerGui = Players.LocalPlayer.PlayerGui
local selectionImage = Instance.new("Frame")
selectionImage.Name = "SelectionImage"
selectionImage.BackgroundTransparency = 1
selectionImage.Size = UDim2.fromScale(1, 1)
@RyanLua
RyanLua / CollisionFidelityOptimize.luau
Last active January 31, 2025 09:23
Change all CollisionFidelity to Box
local ChangeHistoryService = game:GetService("ChangeHistoryService")
local recording = ChangeHistoryService:TryBeginRecording("Change CollisionFidelity to Box on TriangleMeshParts")
for _, descendant in pairs(game:GetDescendants()) do
if descendant:IsA("TriangleMeshPart") then
descendant.CollisionFidelity = Enum.CollisionFidelity.Box
end
end
@RyanLua
RyanLua / DestroyWelds.luau
Last active January 31, 2025 09:21
Destory all welds
local ChangeHistoryService = game:GetService("ChangeHistoryService")
local recording = ChangeHistoryService:TryBeginRecording("Destory Welds")
for _, descendant in pairs(game:GetDescendants()) do
if descendant:IsA("Weld") then
descendant:Destroy()
end
end
@RyanLua
RyanLua / ShadowOptimize.luau
Last active January 31, 2025 09:21
Disables shadows for small parts to improve performance
local ChangeHistoryService = game:GetService("ChangeHistoryService")
local minSize = Vector3.new(5, 5, 5)
local recording = ChangeHistoryService:TryBeginRecording("Disable CastShadow")
for _, descendant in pairs(game:GetDescendants()) do
if descendant:IsA("MeshPart") or descendant:IsA("Part") or descendant:IsA("UnionOperation") then
if descendant.Size.X < minSize.X and descendant.Size.Y < minSize.Y and descendant.Size.Z < minSize.Z then
descendant.CastShadow = false
@RyanLua
RyanLua / WorkspaceOptimize.lua
Created September 5, 2023 07:05
Optimizes performance by setting Workspace properties
workspace.ClientAnimatorThrottling = Enum.ClientAnimatorThrottlingMode.Enabled
workspace.InterpolationThrottling = Enum.InterpolationThrottlingMode.Enabled
workspace.Retargeting = Enum.AnimatorRetargetingMode.Enabled