#Motor6D Welding Help

1 messages · Page 1 of 1 (latest)

ionic pebble
#

Ive welded my character to whats supposed to be a skateboard and im having a problem where once im on the board it just wont move. Ive tried using Motor6D and weld constraints however the board just still wont move when im welded on to it.

The skateboard moves whilst im not on it so I doubt its a vectorforce problem, ive tried moving the power up and still no difference so its something to do with my welds/character.

Here are the steps I have done to try mitigate this problem but still no difference, is there something im missing?

-- Step 1 Disable the characters humanoid
    
    board:SetNetworkOwner(player) --Sets the board so it owns the player
    if humanoid then
        humanoid.WalkSpeed = 0
        humanoid.JumpPower = 0 
    end

    for _, part in pairs(character:GetDescendants()) do
        if part:IsA("BasePart") then
            part.Massless = true
        end
    end

    -- STEP 2: Move character on top of board
    local boardHeight = board.Size.Y
    local newPosition = board.Position + Vector3.new(0, boardHeight / 2 + 2.5, 0) -- 2.5 is standing offset
    hrp.CFrame = CFrame.new(newPosition, newPosition + board.CFrame.LookVector)


    -- Step 3: Making the Weld 
    print(player.Name .. " mounted the board")
    local motor = Instance.new("Motor6D")
    motor.Name = "BoardMotor"
    motor.Part0 = board
    motor.Part1 = hrp
    motor.C0 = board.CFrame:ToObjectSpace(hrp.CFrame)
    motor.C1 = CFrame.new() -- keep Part1 at same relative position
    motor.Parent = board
end