This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Run this in the command line in Studio to preserve mesh size when bulk replacing meshes. | |
| local Selection = game:GetService("Selection") | |
| -- Table to store per-MeshPart tracking data | |
| local trackedParts: {[MeshPart]: { | |
| originalSize: Vector3, | |
| lastMeshId: string, | |
| connections: {RBXScriptConnection} | |
| }} = {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| products: | |
| robux_1: | |
| name: 1 Robux | |
| price: 1 | |
| robux_2: | |
| name: 2 Robux | |
| price: 2 | |
| robux_3: | |
| name: 3 Robux | |
| price: 3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://www.intel.com/content/www/us/en/download/19390/intel-wireless-bluetooth-for-intel-wireless-7260-family-and-intel-dual-band-wireless-ac-3160.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local BINDABLE_FUNCTION_NAME = "BindableFunctionForTaskFarm" | |
| local function setupTaskFarm(tasks) | |
| local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) | |
| local Promise = require("Promise") | |
| local RandomUtils = require("RandomUtils") | |
| local PromiseUtils = require("PromiseUtils") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local UserInputService = game:GetService("UserInputService") | |
| local RunService = game:GetService("RunService") | |
| local printRender = false | |
| UserInputService.InputBegan:ConnectParallel(function(inputObject) | |
| print("Running parallel (ConnectParallel) ", tick()) | |
| printRender = true | |
| end) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using System; | |
| namespace TestEventBehaviorConsoleApp | |
| { | |
| class MessageEventArgs : EventArgs | |
| { | |
| public string Message { get; set; } | |
| public MessageEventArgs(string message) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local function readonly(_table) | |
| return setmetatable(_table, { | |
| __index = function(self, index) | |
| error(("Bad index %q"):format(tostring(index)), 2) | |
| end; | |
| __newindex = function(self, index, value) | |
| error(("Bad index %q"):format(tostring(index)), 2) | |
| end; | |
| }) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| -- @classmod CameraChallenge | |
| -- @author Quenty | |
| local require = require(game:GetService("ReplicatedStorage"):WaitForChild("Nevermore")) | |
| -- Challenge: | |
| -- 1. Make `camera' always point to the the current or last known camera. | |
| -- a. Problem: CurrentCamera can be nil. | |
| -- b. Guarantee that `camera' is never nil. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| -- @module WaveCollapseUtils | |
| -- @author Quenty | |
| local WaveCollapseUtils = {} | |
| local EDGE_DATA = { | |
| { | |
| 2, -- Edge index (forward) | |
| 1, -- Neighbor's edgeindex (backward) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local function cross(vector0, vector1) | |
| local ux, uy = vector0[1], vector0[2] | |
| local vx, vy = vector1[1], vector1[2] | |
| return ux*vy - uy*vx | |
| end | |
| local function area(points) | |
| local area = cross(points[#points], points[1]) | |
| for i=1, #points-1 do |
NewerOlder