Im trying to make an elevator that brings you up when your in a part but since Velocity was removed and AssemblyLinearVelocity does not work with no collision objects im kinda of strugguling with what to do.
local part = script.Parent
part.Touched:Connect(function(hit)
local character = hit.Parent
local humanoid = character:FindFirstChild("Humanoid")
if humanoid then
local root = humanoid.RootPart
if root then
local touching = true
while touching == true do
if part.TouchEnded == true then
touching = false
root.AssemblyLinearVelocity = Vector3.new(0,0,0)
end
root.AssemblyLinearVelocity = Vector3.new(0,1,0)
task.wait()
end
end
end
end)```
This is the script I had when I wanted to move the root part instead for a workaround and ive tried diffrent ways with the script but its always really buggy and not what I want at all