BufferModule

A system built to help combat input latency with physics-based tools on Roblox.

View the Project on GitHub

< Back to main page

BufferModule

local BufferModule = require(ReplicatedStorage.BufferModule)

-- Creates a new Buffer called "MyBuffer" under whatever this script is parented to.
local buffer = BufferModule:CreateBuffer(script.Parent, "MyBuffer")

Methods

CreateBuffer

BufferModule:CreateBuffer(instance: Instance, bufferName: string): Buffer

Constructs a new Buffer. Shorthand for BufferModule.Buffer.new().

Equivilant to BufferModule.new() and BufferModule.Buffer.new()

Util.RegisterTouchInterest

BufferModule.Util.RegisterTouchInterest(part: BasePart)

Creates a TouchTransmitter as a child of the provided Instance. If a TouchTransmitter already exists under the provided Instance then nothing will be created.