so I made this script that when you touch a part it fires a client event to another script
script that fires the event:
v.ss.Touched:Connect(function(plr)
local w = v:WaitForChild("ww")
game.workspace.CurrentCamera.CFrame = camra2.CFrame
game.workspace.CurrentCamera.CameraType = "Scriptable"
s1:FireClient(plr,w)
end)
local script that makes the function when the event is fired:
s1.OnClientEvent:connect(function(plr,w)
print(":>")
game.Players.LocalPlayer.Character.Humanoid:MoveTo(w.Position)
end)
why does it say that w is a nil value?
btw there are local things that I haven't added since it's not necessary and has nothing to do with the initial question.

3 comments
Edited for code block.
On line one of the local script, remove the plr argument from the function.
thank you so much :D