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

The current identity (2) cannot GetObjects (lacking permission 1) (loadstrings)?

Asked by
v_amp 6
4 years ago
Edited by theking48989987 4 years ago

"The current identity (2) cannot GetObjects (lacking permission 1)" is the error i get when i try to use a script to load dex explorer as an admin command on my game.

the script im using is

function onChatted(msg, speaker)
    local source = string.lower(speaker.Name)
    msg = string.lower(msg)
    if msg == ":dex" then
        loadstring(game:GetObjects("rbxassetid://492005721")[1].Source)()
    end
end

game.Players.PlayerAdded:connect(function(player)
    player.Chatted:connect(function(msg) onChatted(msg, player) end)
end)

1 answer

Log in to vote
0
Answered by
ArtBlart 533 Moderation Voter
4 years ago
Edited 4 years ago

A simple lookup on the dev wiki nets these results. You cannot call GetObjects from scripts, but it can be done from the command bar and plugins.

As for the loadstring, as long as loadstrings are enabled you should be good to go. Be very careful with loadstrings tho :)

0
How would i load dex explorer? like a serversided require? v_amp 6 — 4y
0
you cant load it at all in game. you can do it with exploits but you will never have the required permissions to call getobjects in game. ArtBlart 533 — 4y
0
What i mean is some serversided commands are requre(module).load'playername' That doesn't require a 3rd party exploit v_amp 6 — 4y
Ad

Answer this question