character = game.Players.LocalPlayer.Character script.Parent.MouseButton1Click:Connect(function() character.HumanoidRootPart.CFrame.new(workspace.Respawn.Position) end)
1: Use code blocks:
\~
code
\~
2:
You're using dot notation to set a value. Try using the equal sign instead.
character.HumanoidRootPart.CFrame = CFrame.new(workspace.Respawn.Position)