How would I be able to remove all gravity in a place (the force that brings down parts)? (I could use BodyForces on every part, but I feel there's a better way)
COMMUNITY QUESTION
Make Gravity-Free Place?
2 answers
im a very good scripter so here is the anser
the parts you dont want to float put it in a model and name it "Model"
for _,m in pairs(game.Workspace:GetChildren()) do
if m.ClassName==Put ClassName Of Part Here then
local n = m
local Force = Instance.new("BodyForce")
Force.Parent = n
Force.force = Vector3.new(0,196.2,0) * n:GetMass()
end
end
ONLY PUT IN COMMAND BAR ONCE IF YOU PUT IN TWICE YOU WILL NEED ANOTHER SCRIPT TO CLEAN THE BLOCKS
that i have right here :-D
for _,m in pairs(game.Workspace:GetChildren()) do
if m.ClassName=="Part" then
local n = m
n.BodyForce:Destroy()
end
end
code above makes anti gravity force destroyed --> input code in command bar until blocks has no anti gravity force
you are allowed to copy and paste if you want :-D
my roblox account is MisterHedgehog please visit my place if you liked the script http://www.roblox.com/games/201781794/Obby-Lobby
Ha! I am a developer from the future! Guess what, just change workspace.gravity to 0! LOL answering ancient questions :D
This discussion is preserved as it was. New answers, comments, and votes are closed.

5 comments
What other way is there? It's not like you can actually change the gravity. Might as well spam bodyforces.
The only logically explanation I can come up with is this: Anchoring all the BaseParts (or something of the sorts), but this sadly may not Answer your Question. :( Also, by 'Gravity-Free', do you mean something like Admin Commands 'nograv'?
well, ok thanks for feedback... I'll see what i can do with body stuffs i guess
Lower your FPS xD
You could have only one BodyForce on each model and just calculate the upward force by recursion.