So I have this basic string script that I'm using for a plugin:
1 | local string = "Hello World" |
2 | print (string) |
The problem is I cant figure out how I could make it so that it detects spaces in the string and replaces them with dashes, like a url. Example: Hello World
--> Hello-World
.
Also, is it possible to have a button that copies the string to the player's clipboard?
This can be done easily with string manipulation:
1 | local i = string.gsub( "hello world" , "%s" , "-" ) |
2 | print (i) |