A collection of Roblox Studio Luau scripts for a Blox Fruits-style game. This project provides a complete server-client framework for a popular anime-inspired adventure game, including fruit purchasing and equipping, currency management, combat systems, player bounties, sea events, and data persistence. Each script is self-contained and can be placed in the Roblox Studio hierarchy as described below.
- Open Roblox Studio and create a new place (or open your existing Blox Fruits game).
- Insert each script into the game as described below.
- Test the game with
F5.
Contains the server-side logic for fruits, in-game currency, and data.
Place at: ServerScriptService (as a regular Script).
Handles UI, local controls, and client-side visual effects.
Place at: StarterPlayer > StarterPlayerScripts (as a LocalScript).
Config table of all fruits, their stats, prices, and visual colors. Used by the server core.
Place at: ReplicatedStorage (as a ModuleScript).
Handles player bounties and passive stat rewards.
Place at: ServerScriptService (as a regular Script).
Spawns random sea events (treasure, bosses) on a timer.
Place at: ServerScriptService (as a regular Script).
After placing the scripts, create these objects in the game:
ReplicatedStorage.BloxData(ModuleScript, leave empty) — seasonal data storage.ServerStorage.PlayerData(Folder, leave empty) — data store fallback.
- Buying/equipping fruit: type the fruit name in brackets in chat, e.g.
[Flame]or[Dragon]. You start with1000Beli. - Attacking: left-click a player character to deal damage with your equipped fruit.
- Bounties: awarded for downing other players (see
BountyRefresh.server.lua); they grant passive health regen. - Sea events: treasure chests and sea bosses spawn every 120 seconds (configurable in
SeaEvents.server.lua).
All colors, prices, and stats are editable in src/FruitData.server.lua under the FruitData table. The script is fully playable without Roblox DataStore permissions; persistence is optional and must be enabled in the Roblox dashboard.
More Roblox script projects by EnderDevelopment: https://github.com/EnderDevelopment