Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
0

Change LoadLibrary to what?

Asked by 5 years ago

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

Log in to vote
0
Answered by 5 years ago
Edited 5 years ago

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.

Ad

Answer this question