Camera moves for me but not my friend

When you interact with the pc in my game it changes that person’s camera to in frount of it but it only works for me and not my friend any ideas?

What it is supposed to look like and what it does for me:

What is what it looks like for my friend:

Code:

local Camera = game.Workspace.Camera
local player = game.Players.LocalPlayer
local CamScene1 = game.ReplicatedStorage.CamScene1
local ReturnCam = game.ReplicatedStorage.ReturnCam
local TweenService = game:GetService("TweenService")
local Info = TweenInfo.new(1, Enum.EasingStyle.Quad, Enum.EasingDirection.InOut, 0, false, 0)
local ProximityPrompt = game.Workspace.Island.Workshops[player.Name .. "'s Plot"].Interior.PCTEST.PC.Cover.ProximityPrompt
CamScene1.OnClientEvent:Connect(function(CamCFrame, player)
	Camera.CameraType = Enum.CameraType.Scriptable
	ProximityPrompt.Enabled = false
	TweenService:Create(Camera, Info, {CFrame = CamCFrame}):Play()
	game.Workspace[player.Name].Humanoid.WalkSpeed = 0
	for i,v in pairs(player.Character:GetDescendants()) do
		if v:IsA("BasePart") or v:IsA("Decal") then
			v.Transparency = 1
		end
	end
end)

ReturnCam.OnClientEvent:Connect(function(WorkshopGui, player)
	Camera.CameraType = Enum.CameraType.Custom
	ProximityPrompt.Enabled = true
	game.Workspace[player.Name].Humanoid.WalkSpeed = 16
	for i,v in pairs(player.Character:GetDescendants()) do
		if v:IsA("BasePart") or v:IsA("Decal") then
			if v.Name == "HumanoidRootPart" then
				v.Transparency = 1
			else
				v.Transparency = 0
			end
		end
	end
	game.Workspace[player.Name].HumanoidRootPart.Transparency = 1
end)

Camera should be workspace.CurrentCamera not workspace.Camera

2 Likes