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
This works completely fine for me.
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.