Tutorial · Gameplay

How to make a low gravity zone in Roblox Studio

A low gravity zone is a room or an area where players float: they jump several times higher and drift back down. Roblox has one gravity setting for the whole game, Workspace.Gravity, so a zone needs a trick. This guide uses an upward force on each character inside the zone, added by the server so it decides who floats, then shows the quicker client-side way that changes gravity on one player's device.

Updated 14 November 20268 min readIntermediateLuauWritten by

In short

Tag an invisible part LowGravityZone and give it a number attribute Gravity, such as 50. In a Script in ServerScriptService, check every character's root part each frame. While it is inside a zone, keep a VectorForce on the root part pushing up with root.AssemblyMass * (workspace.Gravity - 50), relative to the World. When the player leaves, destroy the force.

  • Roblox's default gravity is 196.2 studs per second squared. A zone at 50 feels like about a quarter of normal gravity.
  • A force that cancels part of the weight leaves every other part of the game at normal gravity.
  • Setting Workspace.Gravity in a LocalScript changes gravity only on that player's device. It is simpler, but the server does not decide it.

Get the script

Low gravity zone script

One Script in ServerScriptService: players inside any part tagged LowGravityZone feel that part's Gravity attribute instead of normal gravity.

Script in ServerScriptService named LowGravityZones
-- Script in ServerScriptService named LowGravityZones.
-- Inside a part tagged LowGravityZone, players feel the part's Gravity attribute instead of normal gravity.
local CollectionService = game:GetService("CollectionService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local DEFAULT_ZONE_GRAVITY = 50 -- used when a zone part has no Gravity attribute
local FORCE_NAME = "LowGravityForce"

local function isInside(zone: BasePart, position: Vector3): boolean
	-- In the zone's own space, the point is inside when every axis is within half the size
	local offset = zone.CFrame:PointToObjectSpace(position)
	local half = zone.Size / 2
	return math.abs(offset.X) <= half.X and math.abs(offset.Y) <= half.Y and math.abs(offset.Z) <= half.Z
end

-- The gravity of the zone the position is in, or nil when it is in no zone
local function getZoneGravity(position: Vector3): number?
	for _, zone in CollectionService:GetTagged("LowGravityZone") do
		if zone:IsA("BasePart") and isInside(zone, position) then
			local gravity = zone:GetAttribute("Gravity")
			return if typeof(gravity) == "number" then math.max(0, gravity) else DEFAULT_ZONE_GRAVITY
		end
	end
	return nil
end

local function getForce(root: BasePart): VectorForce?
	local existing = root:FindFirstChild(FORCE_NAME)
	if existing and existing:IsA("VectorForce") then
		return existing
	end
	local attachment = root:FindFirstChild("RootAttachment")
	if not (attachment and attachment:IsA("Attachment")) then
		return nil
	end
	local force = Instance.new("VectorForce")
	force.Name = FORCE_NAME
	force.Attachment0 = attachment
	force.RelativeTo = Enum.ActuatorRelativeTo.World -- always straight up
	force.ApplyAtCenterOfMass = true -- push the whole body evenly, so it does not tip over
	force.Parent = root
	return force
end

RunService.Heartbeat:Connect(function()
	for _, player in Players:GetPlayers() do
		local character = player.Character
		local humanoid = character and character:FindFirstChildOfClass("Humanoid")
		local root = humanoid and humanoid.RootPart
		if not (character and humanoid and root) then
			continue
		end
		local zoneGravity = if humanoid.Health > 0 then getZoneGravity(root.Position) else nil
		if zoneGravity then
			local force = getForce(root)
			if force then
				-- Cancel the difference between normal gravity and the zone's gravity.
				-- AssemblyMass is the whole character, and is read every frame because tools change it.
				local lift = root.AssemblyMass * (workspace.Gravity - zoneGravity)
				force.Force = Vector3.new(0, math.max(0, lift), 0)
			end
			if character:GetAttribute("InLowGravity") ~= true then
				character:SetAttribute("InLowGravity", true) -- entered a zone
			end
		else
			local force = root:FindFirstChild(FORCE_NAME)
			if force then
				force:Destroy()
			end
			if character:GetAttribute("InLowGravity") == true then
				character:SetAttribute("InLowGravity", false) -- left the zone
			end
		end
	end
end)

RoCode builds it in the place you have open in Roblox Studio, on Windows or macOS with a desktop browser; on a phone the button sends the prompt and the link to your computer. Free to start, with free credits every day. More Roblox Studio scripts

Where to put it

Explorer: one Script, then tag your zone parts
ServerScriptService
  LowGravityZones Script new
Workspace
  MoonZone Part (tag: LowGravityZone, Gravity = 50)

Settings you can change

GravityAttribute
On each zone part: the gravity inside it, in studs per second squared. Normal is 196.2; 0 means players float. Default: 50.
DEFAULT_ZONE_GRAVITYIn the script
Gravity for a zone part that has no Gravity attribute. Default: 50.

Make zone parts invisible and walk-through: Transparency 1, CanCollide off, Anchored on. The script does not use Touched, so CanTouch can be off too.

Type-checked with luau-lsp strict against Roblox's API definitions on 14 November 2026. Not playtested in Studio yet: press Play and watch the Output window before you publish.

Prompt for RoCode

Add a low gravity zone to my game: one Script in ServerScriptService that checks every player character each Heartbeat against parts tagged LowGravityZone, and while inside keeps a VectorForce on the root part with force AssemblyMass times (Workspace.Gravity minus the zone's Gravity attribute, default 50) upward, relative to World, then removes it on leaving. Set a character attribute InLowGravity while inside.

On this page
  1. Get the script
  2. How it works
  3. 1. Zone part
  4. 2. Script
  5. 3. Explained
  6. 4. Client way
  7. 5. Ideas
  8. 6. Test
  9. Common errors
  10. With RoCode
  11. Questions
  12. Sources

How a gravity zone works

Gravity pulls each part down with a force equal to its mass times Workspace.Gravity. To make a character feel lighter, push it up with a force that cancels part of that pull. If the zone should feel like gravity 50, the push is the mass times 196.2 minus 50, so what is left pulls down like gravity 50.

Two ways to lower gravity for a player
MethodWho decidesWhat changes
VectorForce on the character (Steps 1 to 3)The serverOnly that character. Balls, crates and other players keep normal gravity.
Workspace.Gravity in a LocalScript (Step 4)The player's deviceEverything that device simulates, including its own character.

With the VectorForce method the game's gravity setting does not change, so a jump starts at its normal speed and, with less pull, goes higher. With the default jump height of 7.2 studs, a zone at 50 sends a jump about 28 studs up (7.2 times 196.2 divided by 50), and the fall back takes about twice as long.

Step 1: Make the zone

  1. Insert a Part and scale it to cover the low gravity area, from the floor to well above the highest jump. Name it MoonZone.
  2. In the Properties window: Transparency 1, untick CanCollide, tick Anchored.
  3. Under Tags, click + and type LowGravityZone.
  4. Under Attributes, click +, add a number attribute named Gravity and set it to 50.

While you build, leave Transparency at 0.8 so you can see the zone, and set it to 1 when it is in the right place. Make it taller than you think: a player who jumps out of the top of the zone falls back at normal gravity.

Step 2: The zone Script

  1. Hover over ServerScriptService, click + and insert a Script. Name it LowGravityZones.
  2. Paste the code below and press Play. Walk into the zone and jump.
Script in ServerScriptService named LowGravityZones
-- Script in ServerScriptService named LowGravityZones.
-- Inside a part tagged LowGravityZone, players feel the part's Gravity attribute instead of normal gravity.
local CollectionService = game:GetService("CollectionService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local DEFAULT_ZONE_GRAVITY = 50 -- used when a zone part has no Gravity attribute
local FORCE_NAME = "LowGravityForce"

local function isInside(zone: BasePart, position: Vector3): boolean
	-- In the zone's own space, the point is inside when every axis is within half the size
	local offset = zone.CFrame:PointToObjectSpace(position)
	local half = zone.Size / 2
	return math.abs(offset.X) <= half.X and math.abs(offset.Y) <= half.Y and math.abs(offset.Z) <= half.Z
end

-- The gravity of the zone the position is in, or nil when it is in no zone
local function getZoneGravity(position: Vector3): number?
	for _, zone in CollectionService:GetTagged("LowGravityZone") do
		if zone:IsA("BasePart") and isInside(zone, position) then
			local gravity = zone:GetAttribute("Gravity")
			return if typeof(gravity) == "number" then math.max(0, gravity) else DEFAULT_ZONE_GRAVITY
		end
	end
	return nil
end

local function getForce(root: BasePart): VectorForce?
	local existing = root:FindFirstChild(FORCE_NAME)
	if existing and existing:IsA("VectorForce") then
		return existing
	end
	local attachment = root:FindFirstChild("RootAttachment")
	if not (attachment and attachment:IsA("Attachment")) then
		return nil
	end
	local force = Instance.new("VectorForce")
	force.Name = FORCE_NAME
	force.Attachment0 = attachment
	force.RelativeTo = Enum.ActuatorRelativeTo.World -- always straight up
	force.ApplyAtCenterOfMass = true -- push the whole body evenly, so it does not tip over
	force.Parent = root
	return force
end

RunService.Heartbeat:Connect(function()
	for _, player in Players:GetPlayers() do
		local character = player.Character
		local humanoid = character and character:FindFirstChildOfClass("Humanoid")
		local root = humanoid and humanoid.RootPart
		if not (character and humanoid and root) then
			continue
		end
		local zoneGravity = if humanoid.Health > 0 then getZoneGravity(root.Position) else nil
		if zoneGravity then
			local force = getForce(root)
			if force then
				-- Cancel the difference between normal gravity and the zone's gravity.
				-- AssemblyMass is the whole character, and is read every frame because tools change it.
				local lift = root.AssemblyMass * (workspace.Gravity - zoneGravity)
				force.Force = Vector3.new(0, math.max(0, lift), 0)
			end
			if character:GetAttribute("InLowGravity") ~= true then
				character:SetAttribute("InLowGravity", true) -- entered a zone
			end
		else
			local force = root:FindFirstChild(FORCE_NAME)
			if force then
				force:Destroy()
			end
			if character:GetAttribute("InLowGravity") == true then
				character:SetAttribute("InLowGravity", false) -- left the zone
			end
		end
	end
end)

Step 3: What each part does

Inside or outside

PointToObjectSpace turns the root part's position into the zone's own coordinates, where the zone runs from minus half its size to plus half on every axis. That works for a rotated zone too. Checking positions every frame is more reliable than Touched, which can miss a player who stands still or fire many times while they move.

The force

A VectorForce pushes on an Attachment. Every character's root part has one called RootAttachment, so the script uses it. ApplyAtCenterOfMass makes the force act at the middle of the whole body instead of at the attachment, so it lifts evenly and does not tip the character. AssemblyMass is the mass of everything welded into the character, accessories and held tools included, which is why it is read again each frame.

If the zone's Gravity is higher than the game's, the lift would be negative. The script clamps it at 0, so this version only makes gravity lower. For a heavy gravity zone, remove the math.max and the force pushes down instead.

Why the server does it

The player's device simulates its own character, but a VectorForce the server adds to that character replicates to the device and is simulated there. So the server decides who is in low gravity, and the movement still feels smooth for the player. A cheater could delete the force on their own device, but that only makes their own life harder.

Entering and leaving

The script sets an InLowGravity attribute on the character when it enters and leaves a zone. Any script can listen with character:GetAttributeChangedSignal("InLowGravity"), for example to change the music like a music zone, tint the screen, or show a "Low gravity" label.

Step 4: The client way with Workspace.Gravity

For a quick test, or a game where every player is in the same zone at once, you can change Workspace.Gravity on the player's own device. A change made by a LocalScript stays on that device and does not reach the server or other players. That device simulates its own character, so the player floats.

LocalScript in StarterPlayerScripts named ClientLowGravity
-- LocalScript in StarterPlayerScripts named ClientLowGravity.
-- Changes gravity on this player's device only, while they are inside a LowGravityZone part.
local CollectionService = game:GetService("CollectionService")
local Players = game:GetService("Players")
local RunService = game:GetService("RunService")

local DEFAULT_ZONE_GRAVITY = 50

local player = Players.LocalPlayer
local normalGravity = workspace.Gravity

local function isInside(zone: BasePart, position: Vector3): boolean
	local offset = zone.CFrame:PointToObjectSpace(position)
	local half = zone.Size / 2
	return math.abs(offset.X) <= half.X and math.abs(offset.Y) <= half.Y and math.abs(offset.Z) <= half.Z
end

RunService.Heartbeat:Connect(function()
	local character = player.Character
	local root = character and character:FindFirstChild("HumanoidRootPart")
	local target = normalGravity
	if root and root:IsA("BasePart") then
		for _, zone in CollectionService:GetTagged("LowGravityZone") do
			if zone:IsA("BasePart") and isInside(zone, root.Position) then
				local gravity = zone:GetAttribute("Gravity")
				target = if typeof(gravity) == "number" then gravity else DEFAULT_ZONE_GRAVITY
				break
			end
		end
	end
	if workspace.Gravity ~= target then
		workspace.Gravity = target
	end
end)

The catch: on that device, everything it simulates falls slowly, not only the character. Loose parts near the player are often simulated by the player's device, so a crate next to them floats on their screen while it falls normally for everyone else. Use one method, not both: with both, the VectorForce is worked out from normal gravity and the player would float upwards.

Step 5: Ideas for gravity zones

  • A moon level in an obby: Gravity 40 and gaps that need a floaty jump. Put checkpoints before and after it.
  • An anti-gravity lift: a tall, narrow zone with Gravity 0. Players drift up if they jump in and keep floating until they leave.
  • A space station: one big zone with Gravity 20, and the lighting set to night.
  • Pads and zones together: a jump pad inside a low gravity zone throws players very high.

If your game has fall damage, check how the two fit. That script needs both a long fall and a fast landing. In a zone at 50, players land slowly, but a drop of more than about 36 studs still lands at 60 studs per second and counts. If floating should always be safe, skip damage for characters with InLowGravity set.

Step 6: Test it

  1. Press Play and jump outside the zone: a normal jump.
  2. Walk into the zone and jump: you go about four times higher and float down.
  3. Jump out of the side of the zone: you drop at normal speed as soon as you leave it.
  4. Stop, set the zone's Gravity attribute to 0 and play again: after a jump you keep floating until you leave the zone.
  5. Start a local server with 2 players from the Test tab: one player in the zone floats, the other outside does not.

Common errors and fixes

If nothing changes inside the zone, check the Output window first: a red line names the script and the line.

Nothing happens in the zone

Check that the tag is exactly LowGravityZone, that the zone is big enough to contain the character's middle (the root part), and that LowGravityZones is a Script in ServerScriptService.

Players fly up and never come down

The zone's Gravity is 0, or both the server Script and the client LocalScript are running. Use one of them and set Gravity above 0.

Players spin or tip over in the zone

ApplyAtCenterOfMass is off, so the force pushes at the root attachment. Turn it on.

Players walk into an invisible wall

The zone part has CanCollide on. Untick it.

Build it with RoCode

If you would rather not set this up by hand, RoCode can build it in the place you have open. RoCode is an independent AI agent for Roblox Studio, not made by Roblox: you describe the change in a web chat, and its Studio plugin creates the parts and scripts in your Explorer, so there is no code to paste.

You type

Add a moon area to my obby where gravity is a quarter of normal, with a sign at the entrance, and make the jumps there long enough that you need the low gravity.

RoCode does
  • Can read your place first to find the area you mean, then adds the zone part, its tag and the Script
  • Writes the scripts with Create Script and is told to compile-check each one with Check Script
  • Sets an undo point before and after each batch of changes, so Ctrl+Z steps back one batch at a time

After a build, RoCode can run its test robot: it plays your game in Studio and reports PASS or FAIL. It checks only what it chose to test, so jump through the zone yourself too. How RoCode connects to Studio.

Questions

How do you make low gravity in one area in Roblox?

Tag a part LowGravityZone, and in a server Script add a VectorForce to each character inside it that pushes up with the character's mass times the difference between normal gravity and the zone's gravity. Step 2 has the full script.

What is the default gravity in Roblox?

196.2 studs per second squared, set by Workspace.Gravity.

Can I change gravity for only one player?

Yes. Either give only that player's character a VectorForce from the server, or change Workspace.Gravity in a LocalScript, which only affects their device.

Should I use BodyForce for low gravity?

No. Roblox has deprecated BodyForce. Use VectorForce with RelativeTo set to World.

How high can players jump in low gravity?

With the VectorForce method, jump height grows in proportion: normal gravity divided by the zone's gravity, times the normal jump. A zone at 50 gives about 28 studs instead of 7.2.

Sources and further reading

How the code was checked: every script on this page passes Luau's strict type checker against Roblox's API definitions (luau-lsp, 14 November 2026). A type check catches misspelt APIs and wrong types, not game logic, so playtest in Studio before you publish.

Try RoCode on your own place.

Free every day, no card required. Install the plugin, describe the feature, and review what lands in Studio.