Roblox Studio Setup

Studio

Direct installation and setup of R Anti-Cheat directly inside Roblox Studio.

# Overview

You can install R Anti-Cheat directly within Roblox Studio without external command-line tools. This guide walks you through importing the source folders, verifying service placements, and starting the engine.


# Direct Folder Structure

Ensure your Explorer window mirrors the following structure:

ReplicatedStorage
└── RAC
    ├── Config
    └── Remotes (auto-generated if missing)

ServerScriptService
└── RAC
    ├── Init.server.luau (Script)
    ├── Engine.luau (ModuleScript)
    ├── DetectionEngine.luau (ModuleScript)
    ├── HeuristicsEngine.luau (ModuleScript)
    ├── PunishmentManager.luau (ModuleScript)
    ├── RBACManager.luau (ModuleScript)
    ├── StorageManager.luau (ModuleScript)
    ├── DiscordIntegration.luau (ModuleScript)
    └── Detectors (Folder)
        ├── SpeedDetector.luau
        ├── FlyDetector.luau
        ├── TeleportDetector.luau
        ├── NoclipDetector.luau
        ├── JumpDetector.luau
        ├── CombatReachDetector.luau
        ├── DamageRateDetector.luau
        ├── WallbangDetector.luau
        ├── WalkSpeedTamperDetector.luau
        ├── GodModeDetector.luau
        ├── RemoteRateLimiter.luau
        ├── RemotePayloadInspector.luau
        ├── EconomyRateDetector.luau
        ├── InventoryOverflowDetector.luau
        └── HoneypotDetector.luau

StarterPlayer
└── StarterPlayerScripts
    └── RAC
        ├── Client.client.luau (LocalScript)
        └── AdminUI
            ├── Roact.luau
            ├── AdminApp.luau
            └── Components
                ├── DashboardDial.luau
                ├── SpatialRadar.luau
                ├── FlowRibbons.luau
                └── VelocityTrend.luau

# Verifying ServerScript Execution

In Roblox, scripts in ServerScriptService run automatically when the server starts. Init.server.luau performs the following automated steps upon boot:

  1. Remote Provisioning: Checks ReplicatedStorage.RAC.Remotes. If AdminRemote or honeypots are missing, the server creates secure RemoteFunction and RemoteEvent instances automatically.
  2. Detector Registration: Dynamically scans ServerScriptService.RAC.Detectors and registers each detector with DetectionEngine.
  3. Heartbeat Attachment: Hooks batched spatial simulation to RunService.Heartbeat.
  4. Player Listener Attachment: Subscribes to Players.PlayerAdded and Players.PlayerRemoving to manage session records, token buckets, and historical state buffers.

# Studio Test Run

Press F5 to start testing. You should see the following logs in your Output window:

[RAC:Init] Starting R Anti-Cheat Server Engine...
[RAC:Init] Discovered 15 detection modules in Detectors/.
[RAC:Storage] Connected to DataStore 'RAC_Punishments_v1'.
[RAC:Engine] Attached 15 detectors to RunService.Heartbeat.
[RAC:Engine] Server Engine initialized in 4.2ms.

If you see these logs, your Studio setup is complete and fully functional.


# Next Steps