КАК сделать урон от падения в Roblox Studio?

12+
12+

2 дня назад

ПожаловатьсяНарушение авторских прав
12+
12+

2 дня назад

ПожаловатьсяНарушение авторских прав
12+
12+

2 дня назад

Моя игра: https://www.roblox.com/games/13653429597/Alpha Дискорд: https://discord.gg/V7ky5znh7j Скрипт: local minHeight = 5 local maxHeight = 10 game.Players.PlayerAdded:Connect(function(player) player.CharacterAdded:Connect(function(character) local humanoid = character:FindFirstChild("Humanoid") local humanoidRootPart = character:FindFirstChild("HumanoidRootPart") local playerHeight if humanoid and humanoidRootPart then wait(2) humanoid.FreeFalling:Connect(function(newState) if newState then playerHeight = humanoidRootPart.Position.Y elseif not newState then local fallHeight = playerHeight - humanoidRootPart.Position.Y if fallHeight знак больше= maxHeight then humanoid.Health = 0 elseif fallHeight знак больше= minHeight then humanoid.Health = humanoid.Health - math.floor(fallHeight) end end end) end end) end)

Название:

КАК сделать урон от падения в Roblox Studio?

Категория:

Разное