local Player = game.Players.LocalPlayer
local Character = Player.Character or Player.CharacterAdded:Wait()
local Camera = workspace.CurrentCamera
local ReplicatedStorage = game:GetService("ReplicatedStorage")


game.ReplicatedStorage.CameraEvent.OnClientEvent:Connect(function()
	repeat wait()
		Camera.CameraType = Enum.CameraType.Scriptable
	until Camera.CameraType == Enum.CameraType.Scriptable
	Camera.CFrame = workspace["Mercedes Benz Biome"].CameraPart
end)

error: Argument 1 missing or nil

local ReplicatedStorage = game:GetService("ReplicatedStorage")

script.Parent.Triggered:Connect(function()
	ReplicatedStorage.CameraEvent:FireClient()
	print("success")
end)

4 comments

0

Is this in a Local Script? Also please provide the entire error message

0

no its script

0

You need to include .CFrame next to the end line. Camera.CFrame = workspace["Mercedes Benz Biome"].CameraPart.CFrame, also why do you need to put the CameraType in a repeat?

0

None of the above code can produce "Argument 1 missing or nil".