Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Reverse strings function - Lua
--[[ Not sure what this can be used for, but here it is! Made by Ice Scripter ]]-- local x = "Hello, world!" -- Insert string here to test it! local function reverse_string(str) local reversed = "" for i = #str, 1, -1 do reversed = reversed .. string.sub(str, i, i) end return reversed end print(reverse_string(x))
run
|
edit
|
history
|
help
2
test
Properties in Lua
ok
Hello 2
Creating habits v3, Lua
Newton-Raphson method for the square root
Personal Use (Among Us)
example for a friend
Fixed
PAID HACK PuBG