LoginSignup
1
0

アクセルキャンプ復習動画(3 13 2)Roblox Lua 関数を使ってみよう その② 引数

Posted at
local function create_block(pos)
	local block = Instance.new("Part", game.workspace)
	block.Position = pos
	block.Size = Vector3.new(5, 5, 5)
	block.Anchored = true
end



--5 5 5の地点
create_block(Vector3.new(5, 5, 5))
-- 10 20 30の地点
create_block(Vector3.new(10, 20, 30))
-- 20 10 12の地点
create_block(Vector3.new(20, 10, 12))



1
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
1
0