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

Last updated at Posted at 2024-05-21

概要

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

練習問題

パーツをドラッグして移動せよ。

手順

  • workspaceに、partを追加。
  • partに、DragDetectorを追加。
  • partに、scriptを追加。
  • スクリプトを書く。
local dragDetector = script.Parent.DragDetector
local part = script.Parent
part.Anchored = true
local highlight = Instance.new("Highlight")
highlight.Enabled = false
highlight.Parent = script.Parent
dragDetector.DragStart:Connect(function()
	highlight.Enabled = true
end)
dragDetector.DragContinue:Connect(function()
end)
dragDetector.DragEnd:Connect(function()
	highlight.Enabled = false
end)


写真

スクリーンショット 2024-05-22 064804.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?