Script library

Roblox Combat & Movement Scripts

Explore Roblox Combat & Movement Scripts, including Studio Flight Panel with Camera Controls and Walk Speed Selector with Three Presets. Read the Luau source and installation details for each script.

Studio Flight Panel with Camera Controls

Install this LocalScript in StarterPlayerScripts in a test place. Click the Flight button, then use WASD to steer relative to the camera and Space or Left Control to rise or descend. It uses a temporary LinearVelocity constraint during local Studio play, clears the constraint when the character resets, and leaves the published experience untouched. Adjust the flight rate to fit your map. Test takeoff, landing and reset before using it as a level-building tool.

Walk Speed Selector with Three Presets

Build a movement training area with three pads that set WalkSpeed to deliberate presets. Add anchored parts named EasyPace, RacePace and SprintPace to Workspace. The script creates an interaction prompt on each and applies the chosen speed to the current living character on the server. Adjust the preset table for your course and test several players at once so each can select a pace independently.

Sprint Stamina Meter for Obby Courses

Add this LocalScript to StarterPlayerScripts in your obby. Holding Left Shift boosts movement and drains the visible stamina bar while the avatar is moving. Releasing Shift restores stamina, and running out forces a pause before boost can start again. The local example fits solo courses and prototypes. Keep race rewards on the server and test low-stamina recovery after a character reset.

Double Jump Controller for Platformers

Drop this LocalScript into StarterPlayerScripts to give players one extra airborne jump in your platformer. It listens to Roblox's jump request, so the input comes through the built-in jump control on desktop and mobile. Leaving the ground from a normal jump arms the extra boost after a short delay, and landing resets it. Test tapping twice, running off a ledge and resetting midair.

Spring Jump Pad with Per-Player Cooldown

Place an anchored SpringPad in Workspace under a landing area. Contact with a character adds an upward impulse scaled to their assembly mass, producing a consistent boost for avatars of different sizes. The short per-player cooldown prevents one jump from stacking because multiple body parts touch the pad. Adjust LAUNCH for your level and test how ceiling height affects the landing.

Touch Damage Zone for Obstacle Courses

Use an anchored part named HazardTile to teach hazard feedback in your own obby. Contact deals 18 damage once per character per second while allowing Roblox ForceFields to protect fresh spawns. The server validates a living Humanoid and ignores decorative parts. Color the tile clearly, leave a way around it, and test that multiple limb contacts do not drain health instantly.

Healing Pad with a Personal Cooldown

Create a part called MedStation in Workspace. Its prompt restores up to 25 health without exceeding MaxHealth. A player's cooldown starts only if healing happens, so using the station at full health does not waste the next recharge. Test with two players at different health values and adjust the heal amount or recharge duration for your arena.

Temporary Shield Pickup for Arenas

Place an anchored ShieldStation in Workspace. Interacting grants a visible Roblox ForceField for five seconds and ignores repeat use while that shield is active. The shield attaches to the current character, so resetting cannot carry it into the next life. Use Humanoid:TakeDamage in your hazard scripts to honor the shield and test the expiry with a damage tile.

Safe Zone Attribute for Server Logic

Add an anchored box named SafeZone and set CanCollide off. The server checks player root positions against the box in the part's local coordinates, so rotating the box still works. It puts a boolean InSafeZone attribute on each player for your combat or interaction rules to read. Test the corners and the vertical boundary before connecting it to damage logic.

Low Gravity Room with a Local Boundary

Create a transparent anchored box called GravityRoom and set CanCollide off. Players inside get an upward VectorForce equal to 65 percent of their weight. The force is destroyed as soon as the current root leaves the room, so the rest of the map keeps its usual gravity. Test entering from more than one direction and resetting inside the volume.