Trying to send model to local script

i have a remote event but im trying to send a model to a localscript so that i can change the camera subject to one of the parts in the van (model).

script:

	local van = game.ReplicatedStorage:WaitForChild("One Seated Van")
	local vanClone = van:Clone()
	local rigHead = vanClone.Rig:WaitForChild("Head")
	local vcPP = vanClone.PrimaryPart
	local hrp = char.HumanoidRootPart
	local SpawnOFFSET = CFrame.new(-150,1,-5)
	local chainsawSounds = vanClone.chainsawMan["Right Arm"].chainsaw["Pink Shredder Chainsaw"].Handle.sounds
	vanClone.Parent = workspace
	vanClone:PivotTo(char.HumanoidRootPart.CFrame * SpawnOFFSET)
	
	--camera
event:FireClient(plr, vanClone)

local script:

event.OnClientEvent:Connect(function(plr, vanClone)
	cam.CameraSubject = vanClone.PrimaryPart
end)

image

I think it’s because in the local script, the player variable there needs to be removed since when firing events from server to client, the player variable doesn’t pass through to the client from the server.

1 Like

oh for gods sake ofc it was that. u absolute legend thank u so much! :smile:

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.