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

This BodyPosition script puts my character into the top-middle of the baseplate?

Asked by 6 years ago

Here's my script:

function onTouched(hit)
    wait()
    local character = hit.Parent
    if character and character:findFirstChild("Humanoid") then
        local pos = script.Parent.Parent.PartV
        local b = Instance.new("BodyPosition")
        b.Position = Vector3.new(pos.Position)
        b.maxForce = Vector3.new(500000000, 500000000, 500000000)
        b.Parent = character.Torso
        wait(3)
        b.Parent = nil
    end
end

script.Parent.Touched:connect(onTouched)

I really don't see a problem with it. Can someone help me identify the problem?

0
well the position of an object is basically where the middle is. Just add some studs onto the y axis iddash 45 — 6y

Answer this question