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

How to use loadstring?

Asked by 9 years ago

How do you use loadstring? I don't get it... Can somebody explain it for me?

0
Please use appropriate tags for your question as well, you should only need functions at minimum. Load string is not a feature of Badge or MarketPlace services and it's not often used in tools or BodyObjects. Thank you. M39a9am3R 3210 — 9y

1 answer

Log in to vote
0
Answered by
M39a9am3R 3210 Moderation Voter Community Moderator
9 years ago

Load string will load up a code, say if it were in a string value or something. This is used a lot for script builders and admin commands. You have have load string run lua code so say this loadstring("print('hello world')")() and it would print hello world. But due to many recent exploits ROBLOX has made the LoadStringEnabled property which can be found in ServerScriptService false by factory default. You can modify this property, but ROBLOX recommends you leave it alone (though I don't do this when a place of mine is in beta tests).

0
Thanks. PyccknnXakep 1225 — 9y
Ad

Answer this question