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

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

"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

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 :)

3 comments

0

How would i load dex explorer? like a serversided require?

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.

0

What i mean is some serversided commands are requre(module).load'playername' That doesn't require a 3rd party exploit

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