Luau Ability with Mana, Cooldown and Server-Side Validation
For Roblox developers, from those already using RemoteEvent to those building their first skill system. The prompt asks for an ability with a mana or energy cost, per-player cooldown and on-screen feedback, split into a configuration ModuleScript, a server Script and a client LocalScript.
The server decides everything: it validates the character, resource, cooldown and arguments, deducts mana only after the checks and applies the effect. The client only captures input and displays the interface. The AI delivers the files in parts that you test in sequence.
Fill in the bracketed fields with real names from your Explorer, where mana is stored, the RemoteEvents that already exist and the desired effect. If anything is missing, the response states the assumptions made and includes a test plan using Start Server and Start Player.
Act as a senior Roblox developer, an expert in Luau and client-server architecture. Create a special ability with a mana/energy cost and cooldown, with authoritative server-side validation, ready to paste into Roblox Studio. Context of my game: - Ability and effect: [NAME_AND_EFFECT: e.g., Charge, a 20-stud dash with area damage] - Input: [KEY_OR_MOBILE_BUTTON] - Mana cost: [COST] - Cooldown: [SECONDS]