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
855
Lua stuff
Fixed
Personal Use (Among Us)
Binary to Integers / Integers to Binary
hij
PAID HACK PuBG
PAID HACK PuBG
Hakusu
фыв