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

Seat:Sit() won't actually seat the player, it teleports them to the seat but they cant drive?

Asked by
Plieax 66
4 years ago

Below is part of my round system, this is just the part for seating all the players in their cars, but it wont work, not sure why.

for i=1,12 do
        local plr = plrs[i]
        if plr ~= nil then
            local char = plr.Character
            local n_car = game.Lighting.Car_d:Clone()
            n_car.Seat.MaxSpeed = 0
            n_car.Parent = workspace
            n_car:SetPrimaryPartCFrame(spawns[i].CFrame)

            n_car.Seat:Sit(plr.Character.Humanoid)

        end
        wait(1/12)
    end
0
no errors ^ Plieax 66 — 4y
0
Is the car anchored and properly welded? Vibricks 17 — 4y
0
yes, it works fine when you jump into it just the :Sit() wont work Plieax 66 — 4y

1 answer

Log in to vote
0
Answered by
Farsalis 369 Moderation Voter
4 years ago
Edited 4 years ago

Ok, so what seems to be happening is, that your trying to sit the humanoid down to fast. You have to remember, that the character doesn't always spawn in when the player does (If that's what your trying to do.), correct me if i'm wrong. Anyways, try adding a wait between SetPrimaryPart, and Sit.

Hope This Helped!

0
seems to be working! thanks! Plieax 66 — 4y
Ad

Answer this question