local nyaa = game:GetService("Players")
local NY = nyaa.Player
local nya = NY.Character
if not nya or not nya.Parent then
	nya = NY.CharacterAdded:wait()
end
hrp = nya:FindFirstChild("HumanoidRootPart")
game.ReplicatedStorage.RemoteEvent.OnServerEvent:Connect(function(player)
	game.Workspace.tae.CFrame = CFrame.new(game.Workspace.tae.Position, hrp.position)
end)

keep getting the error Player is not a valid member of Players "Players". Thank you in advance for the help.

3 comments

0

nya also guys it's a server script because he used OnServerEvent

0

people like him at first dont understand that you cant get the "LocalPlayer" on the server because it hosts all the players. nyaa.Player doesn't exist.

0

We've all been in that place before.