Roblox 腳本審查程式設計教學

Roblox Luau 腳本審查

通常 15 分鐘內完成含修改次數品質檢查
方案
付款保障詳細資訊
  • 方案內的修改免費。
  • 若您在交付後 3 天內未回應,成果將自動驗收。

付款時款項會先保留,在您驗收後才會撥付。

Roblox Luau 腳本審查

成果範例

標準版方案範例

Roblox Luau script review: a tycoon game losing player cash

What the code does

  1. ShopServer.lua handles purchases sent from the client through a RemoteEvent.
  2. DataManager.lua loads cash and upgrades from a DataStore on join and saves on leave.
  3. Each dropper runs its own loop that spawns a part every second.

Bugs and weak spots

#Script, lineSeverityIssue
1ShopServer, 22HighThe server trusts the price sent by the client; an exploiter can send a negative price and gain cash.
2DataManager, 41HighSetAsync without pcall: if the DataStore call fails, the error stops the save and progress is lost.
3DataManager, 63HighNo game:BindToClose: when the server shuts down, the last players are not saved.
4Dropper, 8Medium60 separate while true do wait(1) loops; one loop with task.wait is lighter.
5ShopServer, 30LowNo cooldown on the RemoteEvent; spam clicks fire hundreds of requests.

Corrected fragment

Issue 1: the server decides the price

BuyEvent.OnServerEvent:Connect(function(player, itemId)
    local item = Items[itemId]
    if not item then return end
    local cash = player.leaderstats.Cash
    if cash.Value < item.Price then return end
    cash.Value -= item.Price
    grantItem(player, itemId)
end)

Summary

Fix issues 1 to 3 first: they explain both the lost cash and the exploits. Delivered: annotated scripts, a save module with retries and a test plan for Studio.

Client: solo developer of "Lemonade Empire", a Roblox tycoon game with about 2,300 daily players Problem reported: "Some players lose their cash after rejoining, and exploiters give themselves millions."

客戶與所有細節皆為虛構。

關於此服務

Roblox 遊戲會以 Studio 試玩時不會顯現的方式出錯:信任客戶端傳來任何內容的 RemoteEvent、應該在伺服器執行卻寫在 LocalScript 中的邏輯、沒有 pcall 與重試的 DataStore 呼叫,或是從未斷開而慢慢吃光記憶體的連線。我們會閱讀您的 Script、LocalScript 與 ModuleScript,說明哪些在伺服器執行、哪些在每位玩家的裝置上執行,並標出被利用的風險與錯誤。修正片段使用 task.wait、有型別的 Luau 與伺服器端檢查。

包含內容

  • 您會收到什麼在訂單頁面提供的書面審查:遊戲中伺服器與客戶端的劃分、依重要性排序的被利用風險與錯誤,以及修正後的 Luau 片段。進階版另附將程式碼整理成 ModuleScript 的計畫。
  • 伺服器或客戶端每支腳本都在正確的位置
  • Remote 安全伺服器檢查每個請求
  • DataStore 安全pcall、重試與離開時儲存
  • 記憶體與連線連接的都要斷開
  • 現代 Luautask 函式庫與型別標註

服務流程

  1. 1
    需求說明您貼上腳本與 Output 錯誤
  2. 2
    閱讀我們梳理伺服器與客戶端的程式碼
  3. 3
    審查您會收到風險、錯誤與修正後的程式碼

需要您提供的資料

以文字或截圖貼上的腳本,並註明每支腳本在 Explorer 中的位置、功能應有的行為,以及 Output 視窗中的錯誤。

我們會詢問您:

  • 這項功能的作用是什麼?
  • 每支腳本放在哪裡?
  • 出了什麼問題?Output 視窗顯示什麼?
  • 遊戲已經公開了嗎?

比較方案

方案基本版US$15標準版US$35進階版US$69
包含內容100 行內腳本400 行內腳本1,000 行內並附模組計畫
交付期限1 天2 天3 天
修改次數123
程式碼行數最多 100 行最多 400 行最多 1,000 行
修正片段有有有
ModuleScript 計畫無無有
訂購 基本版訂購 標準版訂購 進階版

付款保障

下單時付款,但只有在驗收成果後,款項才會撥付。

  • 固定價格付款後,方案價格不會變動。
  • 款項先行保留付款時,金額只會先保留,在您驗收後才會撥付給服務。
  • 交付前檢查每份成果在交到您手上之前都會經過品質檢查,您也可以在驗收前於訂單頁面查看成果。
  • 免費修改在需求說明範圍內,可依方案允許的次數提出修改。
  • 3 天後自動驗收若您在交付後 3 天內未驗收也未提出修改,成果將自動驗收。若您在交付後於訂單聊天室留言,訂單會暫停自動驗收;我們回覆後,可能會重新起算 3 天,並會在聊天室中告知。
  • 重新製作或全額退款若成果不符合您的需求說明且修改後仍未改善,或製作時間超過交付期限的兩倍,請在訂單聊天室留言:我們將重新製作,或全額退還款項。
運作方式 →

常見問題

你們可以加入我的 Team Create 嗎?

不行,我們不會加入地圖或帳號。請貼上腳本,並在 Studio 與私人伺服器中自行測試修正。

這能擋住所有外掛作弊者嗎?

沒有任何程式碼能保證這一點,但在伺服器上檢查每個客戶端請求,可以堵住最常見的漏洞。

適合年輕的開發者嗎?

適合。請告訴我們您的經驗,我們會讓說明保持簡單並循序漸進。

沒有找到您要的答案?

方案