this is my script:
local bp = Instance.new("BodyPosition")
local model = script.Parent.Parent
local destination = model:FindFirstChild("D")
function onTouched(hit)
local torso = hit.Parent:WaitForChild("Humanoid").Parent:WaitForChild("Torso")
local h = hit.Parent:findFirstChild("Humanoid")
if h then
bp.Parent = torso
bp.Position = destination.Position
wait(5)
bp:Destroy()
end
end
script.Parent.Touched:Connect(onTouched)
what i am trying to do here is create a bodyposition into the player, so that it can make the player levitate to the destination block when touched. it works only once. If further information is needed, please contact me.

1 comment
OMG THX SOO MUCH! (i feel stupid for not knowing that XD )