🔒 Demo Mode — All data is fictional. MaxRealms is a game-building platform for young creators.
JD
John Doeage 16
My Games
🚀
Space Explorer
Platformer · 3 levels
🐉
Dragon Quest
Adventure · Just started
Sprites
Player
Enemy
$
Coin
Platform
Items
Key
Shield
Space Explorer · Level 1
$
$
$
❤️ 3 · ⭐ 7 · Level 1
⚡ MaxRealms AI
Add a jump mechanic to my player
Sure! Here's a jump mechanic for your player in Luau:
local player = game.Players.LocalPlayer local char = player.Character local humanoid = char:WaitForChild("Humanoid") local UIS = game:GetService("UserInputService") UIS.InputBegan:Connect(function(input) if input.KeyCode == Enum.KeyCode.Space then if humanoid.FloorMaterial ~= Enum.Material.Air then humanoid:ChangeState(Enum.HumanoidStateType.Jumping) end end end)
This adds a double-jump prevention check too! Want me to add coyote time?
Yes add coyote time
Added! Coyote time gives the player 0.15s to jump after walking off a ledge — feels much better. Added the variable to your script. Want to add a jump sound effect too? 🎵