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

Posted at

概要

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

練習問題

マウスクリックしたら、partのサイズを変えよ。

手順

  • workspaceに、partを追加。
  • partに、clickdetectorを追加。
  • partに、scriptを追加。
  • スクリプトを書く。
local part = script.Parent
part.Position = Vector3.new(-5, 0, -10)
local clickdetector = part:WaitForChild("ClickDetector")
clickdetector.MouseClick:Connect(function(player)
	for i = 1, 3, 0.1 do
		part.Size = Vector3.new(i, i, i)
		wait(0.01)
	end
	for i = 3, 1, -0.1 do
		part.Size = Vector3.new(i, i, i)
		wait(0.01)
	end
end)

以上。

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?