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

Why won't my car change CFrames?

Asked by
sssynk 58
3 years ago
Edited 3 years ago

Hello everyone, I'm currently trying to set the CFrame of a car with a VehicleSeat. However, whenever I attempt to set the CFrame, the car always glides back to its original position.

Local:

currentRC = game.ReplicatedStorage.Init:InvokeServer(mouse.Hit)

Server:

local function deploy(plr, pos)
    if plr.Character:FindFirstChild("E-RC") then
        local c = target:Clone()
        c.Parent = workspace
        c.Main.CFrame = pos
        return c
    end
end

game.ReplicatedStorage.Init.OnServerInvoke = deploy

Video:

(https://streamable.com/zp2jgx)

Hierarchy:

(https://hosting.synk.studio/hostedbysynk/view.php?p=16109886908600)

Everything is welded to the BasePart named 'Main'

Thanks in advance!

Answer this question