0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

robloxでassistant その140

Posted at

概要

robloxでassistantやってみた。
stringをテストしてみた。

サンプルコード

print("Hello world!")


a = string.len("ok")
print(a)

b = string.format("%s  %d", "jj", 25)
print(b)	
print(string.char(48))
print(string.byte("0"))
print(string.lower("A"))
print(string.sub("ABC", 1, 2))
print(string.find("ABC", "C"))
print(string.gsub("ABCDEFG", '[^A=]', ''))
print(string.match("ABC1234", "%d+"))


for l in string.gmatch("a b c", "[^ ]+") do
	print(l)
end

実行結果

  10:29:56.598  Hello world!  -  クライアント - LocalScript:1
  10:29:56.598  2  -  クライアント - LocalScript:5
  10:29:56.598  jj  25  -  クライアント - LocalScript:8
  10:29:56.598  0  -  クライアント - LocalScript:9
  10:29:56.598  48  -  クライアント - LocalScript:10
  10:29:56.599  a  -  クライアント  - LocalScript:11
  10:29:56.599  AB  -  クライアント - LocalScript:12
  10:29:56.599  3 3  -  クライアント - LocalScript:13
  10:29:56.599  A 6  -  クライアント - LocalScript:14
  10:29:56.599  1234  -  クライアント - LocalScript:15
  10:29:56.600  a  -  クライアント - LocalScript:19
  10:29:56.600  b  -  クライアント - LocalScript:19
  10:29:56.600  c  -  クライアント - LocalScript:19

以上。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?