local train = script.Parent.Parent:FindFirstChild("VehiclePart") -- 動いてるパーツ local textLabel = script.Parent.SurfaceGui:FindFirstChild("TextLabel")
while true do if train and textLabel then local speed = train.Velocity.Magnitude * 0.28 -- Roblox単位(Stud/s)→km/h換算 textLabel.Text = string.format("%.1f km/h", speed) end task.wait(0.1) end
にだりんご【荒らしの荒らし】
local train = script.Parent.Parent:FindFirstChild("VehiclePart") -- 動いてるパーツ
local textLabel = script.Parent.SurfaceGui:FindFirstChild("TextLabel")
while true do
if train and textLabel then
local speed = train.Velocity.Magnitude * 0.28 -- Roblox単位(Stud/s)→km/h換算
textLabel.Text = string.format("%.1f km/h", speed)
end
task.wait(0.1)
end
4 days ago | [YT] | 0