
Photo by
my_event00
Robloxでプレイヤーをスピードアップさせる方法
今回はRobloxでスピードアップする方法について解説していきます
さっそく方法を解説していきます。
以下の手順を行ってください
1.WorkspaceにPartを追加する
2.そのPartにScriptを追加する
3.そのScriptに下記のCodeを書く
local function onTouch(otherPart)
local character = otherPart.Parent
local humanoid = character:FindFirstChildWhichIsA("Humanoid")
if humanoid then -- 乗ったのがHumanoid(プレイヤー)だったら起動
humanoid.WalkSpeed = humanoid.WalkSpeed + 1
print (humanoid.WalkSpeed)
end
end
script.Parent.Touched:Connect(onTouch)
これで設置したPartに触れたHumanoid(プレイヤー)はスピードアップするようになります
Code自体は単純なので少しRobloxやったことある人なら理解できると思います。
では。
P.S
完璧output
いいなと思ったら応援しよう!
