UNQId - Instance/Bool/Value Sharing Between scripts


UniqueID - Module that allows you to store your bools, instances, and value in a table, having its own, unique id

Purposes:

  • Recive Instances from any script, without allocating them by using locals or globals.
  • User can’t return ID’s table without including uID, So in theory can not be recived by exploiters.

Example:
UNQ ID.rbxl (63.0 KB)

Click Here to download module

Functions/Indexes:
ReciveUNQTable(UnqID:string)
ReciveUID(ItemName:string)
GenUID(InstanceValue, UID:String)

Uses Gooncreeper’s BASE64 Encoding module.

UniqueID Module Documentation

Requiring Module:

local UNQID = require(PATHTOMODULE)

Creating Shared globals:

UNQID.GenUID(ToShare, UID:String)
local ExampleBool = UNQID.GenUID(true, "BooleanTestTrue") -- Example Boolean
local ExampleString = UNQID.GenUID("Test UNQID STRING", "StringTextTest") -- Example Text
local ExampleInstance = UNQID.GenUID(workspace["UNQ TESTING"].Part, "InstanceTest") -- Example Instance

Recieving UIDS in order to Recive Info Table:

local BoolTest = UNQID.ReciveUID("BooleanTestTrue")
local StringTest = UNQID.ReciveUID("StringTextTest")
local InstanceTest = UNQID.ReciveUID("InstanceTest")

Printing Out: MAKE SURE YOU ARE TRYING TO RECIEVE THEM AFTER YOU GENERATED THEM, OTHERWISE IT WILL RETURN nil

print(UNQID.ReciveUNQTable(BoolTest).ItemObject)
print(UNQID.ReciveUNQTable(StringTest).ItemObject)
print(UNQID.ReciveUNQTable(InstanceTest).ItemObject)

(useless module)

4 Likes

1 Like

oh yeah, i forgot to make it public.
Should be public now

1 Like

Update 1.1
Custom UID Support + Boolean, Strings Support

Module Link: https://create.roblox.com/store/asset/79324243054806/UnqID

1 Like

Uh what is going on here

RobloxStudioBeta_9KqyWqfTi5

RobloxStudioBeta_drYQfqtJfg

1 Like

You cant directly check if something is a string or bool so u need to do that, and i dont think ur supposed to have .Name in the end of string :confused:
Could be hard to read because im not commenting lines most of the time

type(InstanceValue) == 'boolean'

2 Likes

??


1 Like

Yeah you might wanna change that

still struggling to understand what this is for :confounded:

2 Likes

i belive its already changed in example, as well in module because ive uploaded it after fixing it