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 その39

Last updated at Posted at 2024-05-14

概要

robloxでassistantやってみた。
練習問題やってみた。

練習問題

マウスクリックしたら、partの複製を作れ。

手順

  • workspaceに、partを追加。
  • partに、clickdetectorを追加。
  • partに、scriptを追加。
  • スクリプトを書く。
local part = script.Parent
local clickdetector = part:WaitForChild("ClickDetector")
clickdetector.MouseClick:Connect(function(player)
	local clone = part:clone()
	clone.Position += Vector3.new(0, 0, -30)
	clone.Parent = game.Workspace
end)

写真

image.png

以上。

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?