0 views0 copies0 likes
Low Gravity Room with a Local Boundary
Universal script
Copy it, then test it in your own Studio place.
Script code
29 lines · 1.2 KBlocal Players = game:GetService("Players")local room = workspace:WaitForChild("GravityRoom")local active = {}local function clear(player) local entry = active[player] if entry then entry.force:Destroy(); entry.attach:Destroy(); active[player] = nil endendPlayers.PlayerRemoving:Connect(clear)while room.Parent do local half = room.Size / 2 for _, player in Players:GetPlayers() do local root = player.Character and player.Character:FindFirstChild("HumanoidRootPart") local p = root and room.CFrame:PointToObjectSpace(root.Position) local inside = p and math.abs(p.X) <= half.X and math.abs(p.Y) <= half.Y and math.abs(p.Z) <= half.Z-- …open Get script for the full sourceAbout this script
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.
Log in to leave a comment.
No comments yet
Be the first to share your thoughts!
Comments
Share what works, ask questions, or report an issue.