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

Loadstring() is broken? Can someone help?

My kohl's admin's fly command broke because of the loadstring().

This is the script and the error is the loadstring, I checked.

script:WaitForChild("Code")
if string.sub(script.Code.Value,1,4) == string.reverse(table.concat{string.char(108),string.char(97),string.char(101),string.char(114)}) then
loadstring(string.sub(script.Code.Value,5,(string.len(script.Code.Value)-4)/3+4))()
end

1 comment

0

Roblox broke the coding for 'loadstring' I just found out. :/

3 answers

For one loadstring cannot be accessed from Client Sided Scripts Anymore, And you have to have game.ServerScriptService.LoadStringEnabled or game.Workspace.ServerScriptStorage.LoadStringEnabled set to true.

2 comments

0

Tried that, didn't work.

0

Well, It may also be a problem with the Admin Command Script itself then. Because above is the only way to get LoadStrings to work without having an error. Unless it is really an error.

**Correction: ** Script obfuscation (LoadString) was removed from serverside scripts. This is the reason the ":s" command on Kohl's admin is non-functional (:s runs a script), whereas :ls (localscript obfuscation) runs fine.

1 comment

0

You have it mixed up. It's client side scripts that have it disabled

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