i'm trying to make a script that spawns a vehicle and then positions the camera on it but it isnt working, i think its because i'm using a server script.
game.ReplicatedStorage.Eventos.Defender.OnServerEvent:Connect(function(plr)
local defender = game.ServerStorage.Defender
local oi = defender:clone()
local cam = oi.camera
oi.Parent = game.Workspace
Camera.CameraSubject = cam
Camera.CameraType = "Scriptable"
end)
i'm using a server script because i'm new on the area and dont know how im going to make the script change the camera on the correct model

2 comments
You have to use a LocalScript when manipulating the camera.
You should also put the camera as scriptable before you change the camera subject