![見出し画像](https://assets.st-note.com/production/uploads/images/90560733/rectangle_large_type_2_d4309b960b581f7543e0da4d0f81da11.png?width=800)
【Roblox】めいろのつくりかた(スタート~ゴール→次のステージ
めいろをつくるとき、ゴールがひつようですよね
![](https://assets.st-note.com/img/1667658555238-4iYVgfP9SV.png?width=800)
![](https://assets.st-note.com/img/1667658568334-lDFQzzIhEf.png?width=800)
local TeleportService = game:GetService("TeleportService")
local gameID = ここにIDを入れる
local function OnPartTouch(otherPart)
local player = game.Players:GetPlayerFromCharacter(otherPart.Parent)
if player then
TeleportService:Teleport(gameID, player)
end
end
script.Parent.Touched:Connect(OnPartTouch)
PartにScriptをついか。
![](https://assets.st-note.com/img/1667659170704-l2EhTwWeAW.png?width=800)
![](https://assets.st-note.com/img/1667660232396-PS9sR5Hu0b.png)
じっさいのステージはここにあります。
https://www.roblox.com/games/11290036804/unnamed
この記事が気に入ったらサポートをしてみませんか?