Ok so Im trying to make it so the players camera will change to a part, But its not working and I don’t know why, Heres the script
Client
game.ReplicatedStorage.GetPlr.OnClientInvoke = function(plr, pass)
local cam = workspace.CurrentCamera
cam.CameraSubject = pass
local lv = game.Players.LocalPlayer:GetMouse().Hit.LookVector
return lv
end
local function PlrFly(plr)
local Fly = game.ReplicatedStorage.Part:Clone()
Fly.Parent = workspace
Fly.Name = plr.Name.."Fly"
local BV = Instance.new("BodyVelocity")
BV.Parent = Fly
while true do
local update = game.ReplicatedStorage.GetPlr:InvokeClient(plr, Fly)
print(update)
BV.Velocity = update * 30
wait()
end
end