Hello, im trying to make change player camera position with RemoteEvent but its still giving me error Argument 1 is missing or nil and i cant find the problem by myself, i tried to search on this site but didnt found anything.
Localscript:
local Players = game:GetService("Players")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local player = Players.LocalPlayer
local camchng = ReplicatedStorage:WaitForChild("Change")
local camm = workspace.CurrentCamera
local function changeFired(player, Cactus)
local first = workspace.People:WaitForChild(Cactus)
local two = first.main
camm.CameraSubject = two
end
camchng.OnClientEvent:Connect(changeFired)
Script:
game.Players.PlayerAdded:Connect(function(boomer)
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local camerachange = ReplicatedStorage:WaitForChild("Change")
local get = game:GetService("ServerStorage")
local d = math.random(1, 1)
if d == 1 then
if workspace.Busies.Busy1.Value == false then
workspace.Busies.Busy1.Value = true
wait(5)
get.Cac1:Clone().Parent = workspace.People
local aeugh = workspace.People.Cac1
camerachange:FireClient(boomer, aeugh)
end
end
end)
would be happy if you point at my problem:)

3 comments
That just means you havent filled out the second argument, either that or we havent seen the full script
Here the whole scripts
Which line is the error on?