gpt-4.1-mini-2025-04-14· OpenAI
WildChat-4.8M (AI2)
напиши скрипт на роблокс чтобы на airjump
- User
напиши скрипт на роблокс чтобы на airjump
- Assistant
Вот простой пример скрипта на языке Lua для Roblox, который позволяет делать "air jump" (двойной прыжок в воздухе). Этот скрипт можно вставить в LocalScript внутри StarterPlayerScripts или StarterCharacterScripts.
lualocal player = game.Players.LocalPlayer local character = player.Character or player.CharacterAdded:Wait() local humanoid = character:WaitForChild("Humanoid") local jumpsLeft = 1 -- количество дополнительных прыжков в воздухе local maxJumps = 1 -- можно изменить, если хотите больше прыжков humanoid.Jumping:Connect(function(active) if active and jumpsLeft > 0 then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) jumpsLeft = jumpsLeft - 1 end end) humanoid.StateChanged:Connect(function(oldState, newState) if newState == Enum.HumanoidStateType.Landed then jumpsLeft = maxJumps -- сбрасываем количество прыжков при касании земли end end)