Skill v1.0.1
currentAutomated scan100/100+3 new
version: "1.0.1" name: playtest description: Runs a Roblox game in a Studio playtest with checks that prove server or client behavior, spawns, doors or multiplayer. Use for "test my game", "playtest", "does it work", "try it with two players", or when a run_playtest result fails or times out. Not for building maps (map-building skill), writing Luau (luau skill) or animation.
Playtest
A playtest proves something only when a check states a fact and a report says which facts held. The enemy is a session started by hand, glanced at in the console and called tested. The overcorrection is a multiplayer run for every small edit, when a server-only run answers it in seconds.
Rough requests
Keep every ask, name and limit the user stated. Fill only what the work needs from preset or code defaults, and add nothing unasked. Ask only when two readings give materially different results: the fewest questions, each short and plain. Do not wait for plan approval; act at once. Pick solo or multiplayer from the claim; ask only if the fact to prove is unclear.
When to use
- Proving behavior in a running game: spawns, doors, scripts, replication, what each player sees.
- A
run_playtestcall that returnedpassed: false, reportederrorsor threw. - Not for map soundness (
check_map, map-building skill), writing Luau (luau skill) or animation.
Process
- Pick the smallest mode.
runis the server only,play(the default) adds one player,multiplayeraddsplayersclients from 1 to 8, default 2.playersoutsidemultiplayerandclientChecksinrunfail the call, because they could never take effect. - Write check bodies, not functions.
serverChecksis the body ofrunChecks(check, expectedClients).clientChecksis the body ofrunChecks(check, player)and every client runs it once. A call with neither fails. - Record one fact per `check(name, passed, detail)`. Put the measured value in
detail, an optional string, so a failure explains itself. Put server-owned facts inserverChecksandLocalPlayerorPlayerGuifacts inclientChecks, because each runs in its own script. - Keep `timeoutSeconds` short. It runs 1 to 300 and defaults to 60; the tool keeps a 10 s margin on top. It bounds the server checks and the wait for every client report. Split a longer scenario into several calls.
- Read `errors` before `peers`.
passedis true only with noerrors, no failed check and at least one recorded check. The server comes first inpeers, then each client by player name.checkscountstotal,passedandfailedover all peers. - Know the failures.
- A body that throws becomes a failed check, "server checks ran to the end" or "client checks ran to the end", and earlier checks stay.
- A body that never calls
checkadds "No check was recorded" toerrors. - A yielding body past the timeout adds "server checks did not finish", or "N of M clients reported" for clients.
- Fix a syntax error from the console. A server body that does not compile never ends the test, so the call throws after the timeout plus 10 s. Read
get_console_output, fix the body and retry. A client one usually shows as a missing client report. - Leave Studio's play state alone during the call. It needs an open place in Edit mode and runs one test at a time. Stopping play early throws "ended without a report". After a timeout the tool calls
start_stop_playwithis_startfalse itself and reports if that failed.
- Prove a rejoin with two calls. Write a random token to a real store in the first call and read it in the second. Studio reaches the real DataStore only with API access on in a published place; the
dataskill'sDataChecksdoes this against its_Studiostore.
Built-in tools
run_playtestis for repeatable assertions, and itsserverChecksalready run in a live server Script. For one look inside a session you started withstart_stop_play, callrun_in_playtestwith a Luau body that returns one JSON value: it runs on the server of that session, sorequirereturns the live module instances. Stop the session when done, becauserun_in_playtestnever starts or stops one. Studio's other tools are for a hand-driven input.- Start play with
start_stop_play(is_starttrue), checkget_studio_statefor the available datamodel types, and stop it withis_startfalse. character_navigationneedsdatamodel_typeClient.user_mouse_inputanduser_keyboard_inputsend ordered actions to the game.get_console_outputreads the output log for script errors and prints.- Never start play by hand before
run_playtest, because a running test makes it fail.
Clean up
- Each call removes its harness scripts,
RobloxKitPlaytestServerHarnessin ServerScriptService andRobloxKitPlaytestClientHarnessin StarterPlayerScripts, even after a failure. - If removal fails the error names both scripts. Delete them by hand, because they are left in the place.
- Stop hand-started play with
start_stop_playbefore finishing.
Judgment
- One failed check outranks any count of passing ones.
- A check body outranks manual input, because it can run again.
- The smallest mode outranks wider coverage.