game.ReplicatedStorage.CarCreate.OnServerEvent:Connect(function(player)
local model = game.ReplicatedStorage.Roadster4
local backup = model:Clone()
backup:SetPrimaryPartCFrame(player.Character.HumanoidRootPart.CFrame + Vector3.new(0,25,0))
backup.Parent = game.Workspace
backup:MakeJoints()
player.Character:MoveTo(backup.PrimaryPart.Position)
wait(20)
backup:Destroy()
end)
^ Server Script
local uis = game:GetService("UserInputService")
local player = game.Players.LocalPlayer
local EB = false
uis.InputBegan:Connect(function(input)
if input.KeyCode == Enum.KeyCode.E and not EB then
EB = true
game.ReplicatedStorage.CarCreate:FireServer()
wait(20)
EB = false
end
end)
^ local script
basically it spawns a car and teleports your character to the seat, it works fine when I’m alone in game but when I’m with a player it teleports me to the seat except I can’t drive I need to jump and sit in it again whereas when I’m alone it lets me drive from the start.