Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
✓ ANSWER ACCEPTED

Change LoadLibrary to what?

In my script, it says that load library is deprecated.

function CreateWarning(Player)
	local RbxGui = assert(LoadLibrary("RbxGui"))
	local Screen = Instance.new("ScreenGui")
	Screen.Name = "NotInGroupGui"
	local Gui = RbxGui.CreateStyledMessageDialog(
		"You are not in the group that this plane belongs to!",
		Player.Name..", you are not a member of the group! Please exit the plane!",
		"Confirm",

It would be really nice if someone could fix this. Thank you for your time.

1 answer

✓ Accepted answer

LoadLibrary is depreciated for whatever reason I do not know. Ask ROBLOX. However, these libraries are open source. You can find them at: This Github.

Note: when something is depreciated, things by ROBLOX no longer consider the existence of the depreciated feature. Luckily, this is open source and makes things easier.

This discussion is preserved as it was. New answers, comments, and votes are closed.