local target = FindNearest(script.Parent.HumanoidRootPart.Position)
cf = mouse.Hit
WormholeEvent:FireServer(target, cf)
The matter here is that the server script will show an error saying that the cf value is nil, which is obviously not. This script part is in a local script in the player’s character, it works well there as I can print the mouse position, but it doesn’t pass to the server script for some reason.
Here’s a bit of the server script, it errors when setting wormhole2’s position
Also, whether it’s wormhole2.Position or wormhole2.CFrame, the result is the same, I print position before and the result is nil