Scripting HelpersARCHIVE
A little piece of Roblox history. Preserved for everyone, one question at a time.Read about the archive →
COMMUNITY QUESTION

Can someone help me finish my script?

I was making my float script but for some reason it wouldn't make the person float. I am not really good at scripting that's why I am trying to learn. I put the code down below if you need it.

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

2 comments

1

This works completely fine for me.

0

Did you put it in a regular scrip then into the workspace or did you put it in a local script then into starter pack. I am sorry for all the question it's just that I'm new at this.

1 answer

If this is a regular script try putting it in the **starter pack **because I think it is like the skydiving script

This discussion is preserved as it was. New answers, comments, and votes are closed.