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

Why Does The Size Of The Object Affect This Script?

Asked by 6 years ago
blob.CFrame = CFrame.new(blob.CFrame.p, mouse.Hit.p)*CFrame.Angles(0,math.pi/2,0)
                local heck = Instance.new('BodyVelocity',blob)
    heck.Velocity = (blob.CFrame*CFrame.Angles(0,math.pi/-2,0)).lookVector*120
    local coru = coroutine.wrap(function()
        wait(.45)
        if heck then
            heck:Destroy()
        end
    end)
    coru()

I do not understand why this happens but If I set the size of blob to 0.7 the script runs as needs to it launches the part and then curves down. But when I set the size to 10 then it doesn't even launch. How do I fix this?

0
It is probably the weight of the object. Use more velocity to push heavier things. hiimgoodpack 2009 — 6y
0
Oke let me try that gamingsugo 0 — 6y
0
Its still just droping down gamingsugo 0 — 6y
0
When I change the *120 after lookVector when the object is at 0.7 size it does go faster but when I do it with the 10 sized object it doesnt even move gamingsugo 0 — 6y

1 answer

Log in to vote
0
Answered by 6 years ago

You can edit the "Weight" of a part by going into its custom physical properties and playing around with density; however, you may also add body velocity with infinite force to keep your part afloat.

Ad

Answer this question