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

When a model gets cloned, i cant sit on the vehicleseat even tho its not disabled?

Asked by 5 years ago
Edited 5 years ago

I made a car, that clones when u join. But when it clones, i cant sit in it. Why is that?

script:

local debounce = false
local uis = game:GetService("UserInputService")
local plr = game.Players.LocalPlayer
uis.InputBegan:Connect(function(k)
    if k.KeyCode == Enum.KeyCode.G then
       if not debounce then
    for i,v in pairs(game.Players.LocalPlayer.Character:GetChildren()) do
        if v:IsA("Model") then
        v:Destroy()
        end
    end
    wait(0.1)
         local car = plr.SelectedCar.Value:Clone()
        car.Parent = game.Players.LocalPlayer.Character
        car.Name = plr.Name..("'s Car")
        car:SetPrimaryPartCFrame(plr.Character.Head.CFrame * CFrame.new(0,0,-10))
        car.Chassis.Base.Anchored = false
        car:MakeJoints()
        debounce = true
        wait(1)
        debounce = false
end
end
end)
0
Do post the script thanks. User#19524 175 — 5y
0
normal vehicle seat or custom? 129Steve129 7 — 5y
0
normal. ieatandisbaconhair 77 — 5y

Answer this question