【Roblox】dummy(Humanoid)をリスポーンさせる方法

RobloxStudio>PLUGINS>BuillRigでdummyのプレイヤーを出現させることができるが、死ぬとそのままで復元されない。

そこで復元させる方法を記載する。

Dummyの直下に以下のscript

Humanoid.Died:Connectを利用するバージョン:

clone = script.Parent:clone()

local humanoid = script.Parent:FindFirstChildOfClass("Humanoid")

humanoid.Died:Connect(function()
	wait(1)
	clone.Parent = script.Parent.Parent
	script.Parent:remove()
end)

コメントを残す

メールアドレスが公開されることはありません。