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

Can someone help me finish my script?

Asked by 9 years ago

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)

1
This works completely fine for me. BlueTaslem 18071 — 9y
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. slenderfoo 0 — 9y

1 answer

Log in to vote
0
Answered by 9 years ago

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

Ad

Answer this question