New: Nitro Boost our Discord server and receive full donation perks here on the website! Join the Scripting Helpers Discord Server to learn more! You can also Support on Patreon as always.
Ad
Still have questions? Join our Discord server and get real time help.
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
8 days 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 — 8d
0
Is the car anchored and properly welded? Vibricks 17 — 8d
0
yes, it works fine when you jump into it just the :Sit() wont work Plieax 66 — 8d

1 answer

Log in to vote
0
Answered by
Farsalis 332 Moderation Voter
8 days ago
Edited 8 days 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 — 8d
Ad

Answer this question