Scripting Helpers is winding down operations and is now read-only. More info→
Ad
Log in to vote
1

Make Gravity-Free Place?

Asked by 9 years ago

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)

0
What other way is there? It's not like you can actually change the gravity. Might as well spam bodyforces. funyun 958 — 9y
0
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'? TheeDeathCaster 2368 — 9y
0
well, ok thanks for feedback... I'll see what i can do with body stuffs i guess drybones3363 30 — 9y
1
Lower your FPS xD buoyantair 123 — 9y
2
You could have only one BodyForce on each model and just calculate the upward force by recursion. Redbullusa 1580 — 9y

2 answers

Log in to vote
0
Answered by
ZITOI 0
9 years ago

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

Ad
Log in to vote
0
Answered by
OBenjOne 190
6 years ago

Ha! I am a developer from the future! Guess what, just change workspace.gravity to 0! LOL answering ancient questions :D

Answer this question