Im working on a simulator and im kinda new to scripting , i wanted to make one of those portals you touch with the body and get teleported at specific coordonates , but it doesnt work
game.Workspace.Player.HumanoidTouchPart.CFrame = CFrame.new(Vector3.new(-69, 0.5, -171))
What am i doing wrong?

1 comment
If you wanted to do it in a ServerScript, you would have to do the .Touched event and get the player from that and send the player to a different location.