I was trying to update the position of the players head every time the position is changed but I got an error:
Changed is not a valid member
game.Players.PlayerAdded:connect(function(Player)
Player.CharacterAdded:connect(function(Character)
-----------------------------------------------------
Head = Character:FindFirstChild("Head")
Head.Position.Changed:connect(function()
local Ray = Ray.new(Head.Position,
Head.CFrame.lookVector.unit*1000)
local Hit = Workspace:FindPartOnRay(Ray)
if not Hit then
print("Nope")
else
print(Hit)
end
end)
end)
end)

1 comment
You cannot use the Changed event on the Position property because it consists of 3 other properties - X, Y, and Z. You mayt be able to use the Changed event on a specific scale but not as specifying them all.