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

Did you mean nyaa.LocalPlayer?

0

yeah, the problem is it has to be localplayer like the other person said but next time can you use the code block feature to make it tidy

0

fixed the code block here