Scripts in Roblox games like Elemental Battlegrounds are typically written in Lua. A simple script to modify player stamina (assuming stamina is represented by a certain value) could look something like this: