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

Loadstring() is broken? Can someone help?

Asked by 10 years ago

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
0
Roblox broke the coding for 'loadstring' I just found out. :/ TheeDeathCaster 2368 — 10y

3 answers

Log in to vote
0
Answered by 10 years ago

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.

0
Tried that, didn't work. Pawsability 65 — 10y
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. xImmortalChaos 565 — 10y
Ad
Log in to vote
0
Answered by 10 years ago

You can use Wings, No?

Log in to vote
-1
Answered by 10 years ago

**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.

0
You have it mixed up. It's client side scripts that have it disabled MrFlimsy 345 — 9y

Answer this question