PcoWSkbVqDnWTu_dm2ix
We use cookies on this site to enhance your user experience
Collapse Sidebar

GenerateGUID

GenerateGUID randomly creates a universally unique identifier (UUID) string. The sixteen octets of a UUID are represented as 32 hexadecimal (base 16) digits, displayed in 5 groups separated by hyphens in the form 8-4-4-4-12 for a total of 36 characters. For example: 123e4567-e89b-12d3-a456-426655440000.

Parameters

Name Type Default Description
true

Returns

Return Type Summary

Code Samples


HttpService GenerateGUID

This example uses HttpService’s GenerateGUI method to generate and print a universally unique identifier.

local HttpService = game:GetService("HttpService")
local result = HttpService:GenerateGUID(true)
print(result) --> Example output: {04AEBFEA-87FC-480F-A98B-E5E221007A90}