-- ScriptsCodes | Roblox Studio ModuleScript example -- Install this file as ReplicatedStorage/Modules/FormatScore (a ModuleScript). -- From a Script, call: -- local FormatScore = require(game:GetService("ReplicatedStorage").Modules.FormatScore) -- print(FormatScore.format(125.8)) local FormatScore = {} function FormatScore.format(value) assert(type(value) == "number", "score must be numeric") return string.format("%d pts", math.floor(value)) end return FormatScore