Well every time I use this code for my game is says CFrame cannot be assigned to
heres the code:
function f(hit)
hit.Parent:WaitForChild("Humanoid")
hit.Position.CFrame=CFrame.new(-2763.989, -34.075, 95.13)
end
script.Parent.Touched:Connect(f)
Help me!

4 comments
To note, there's also 'CFrame.p', however, I never checked if it's read-only or can be redefined/ changed.
It would be read only.
NOTE: You probably don't want to CFrame hit, but rather the torso or model of characters. To do this you would also wanna check for the character.
ik thats why it waits for child humanoid and I just remebered that CFrame aint part of Position