Installation
Using Wally
Add Rewind to your wally.toml:
[dependencies]
Rewind = "text21/rewind@1.2.1"
Then run:
wally install
Or Install RBXM (Recommended)
- Download the latest release: Rewindv1.2.1.rbxm
- Insert the RBXM file into
ReplicatedStoragein Roblox Studio - Done! The module is ready to use
Dependencies
Rewind requires the following packages:
| Package | Version | Purpose |
|---|---|---|
| Promise | ^4.0.0 | Async operations |
| Signal | ^2.0.0 | Event handling |
| Trove | ^1.0.0 | Cleanup management |
| t | ^3.0.0 | Runtime type checking (optional) |
Project Configuration
Rojo Configuration
Add to your default.project.json:
{
"tree": {
"$className": "DataModel",
"ReplicatedStorage": {
"$className": "ReplicatedStorage",
"Packages": {
"$path": "Packages"
},
"Rewind": {
"$path": "src/shared/Rewind"
}
}
}
}
Creating RemoteEvents
Rewind requires specific RemoteEvents. They're auto-created if missing, but you can pre-create them:
-- In ReplicatedStorage.Remotes
local remotes = Instance.new("Folder")
remotes.Name = "RewindRemotes"
remotes.Parent = ReplicatedStorage
local clockSync = Instance.new("RemoteFunction")
clockSync.Name = "ClockSync"
clockSync.Parent = remotes
local hitValidation = Instance.new("RemoteEvent")
hitValidation.Name = "HitValidation"
hitValidation.Parent = remotes
Verify Installation
Test that Rewind is installed correctly:
-- Server Script
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local Rewind = require(ReplicatedStorage.Rewind)
print("Rewind version:", Rewind.Version) -- Should print "1.2.1"
Next Steps
Continue to Quick Start to set up your first hit validation!